Home
last modified time | relevance | path

Searched refs:statement (Results 1 – 25 of 421) sorted by relevance

12345678910>>...17

/aosp12/art/tools/checker/match/
H A Dfile.py28 self.statement = statement
86 variant = statement.variant
88 self._if(statement, variables)
92 self._else(statement)
95 self._fi(statement)
132 def _else(self, statement): argument
147 def _fi(self, statement): argument
283 def handle(self, statement): argument
284 variant = None if statement is None else statement.variant
316 self.handle_eval(statement)
[all …]
/aosp12/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseStatementTest.java83 statement.execute(); in testExecuteStatement()
88 statement.close(); in testExecuteStatement()
135 statement.execute(); in testStatementLongBinding()
137 statement.close(); in testStatementLongBinding()
157 statement.execute(); in testStatementStringBinding()
159 statement.close(); in testStatementStringBinding()
182 statement.close(); in testStatementClearBindings()
229 statement.close(); in testStatementMultipleBindings()
292 statement.close(); in testStatementMultiThreaded()
312 statement.execute(); in testStatementConstraint()
[all …]
/aosp12/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnection.java510 executeForString(statement.first, statement.second, null); in executePerConnectionSqlFromConfiguration()
513 execute(statement.first, statement.second, null); in executePerConnectionSqlFromConfiguration()
1037 if (statement != null) { in acquirePreparedStatement()
1060 if (statement == null || !statement.mInCache) { in acquirePreparedStatement()
1065 statement.mInUse = true; in acquirePreparedStatement()
1066 return statement; in acquirePreparedStatement()
1344 if (statement != null) { in obtainPreparedStatement()
1351 statement.mSql = sql; in obtainPreparedStatement()
1354 statement.mType = type; in obtainPreparedStatement()
1356 return statement; in obtainPreparedStatement()
[all …]
H A DSQLiteDatabase.java1700 SQLiteStatement statement = new SQLiteStatement(this, sql.toString(), bindArgs); in insertWithOnConflict() local
1702 return statement.executeInsert(); in insertWithOnConflict()
1704 statement.close(); in insertWithOnConflict()
1727 SQLiteStatement statement = new SQLiteStatement(this, "DELETE FROM " + table + in delete() local
1730 return statement.executeUpdateDelete(); in delete()
1732 statement.close(); in delete()
1805 SQLiteStatement statement = new SQLiteStatement(this, sql.toString(), bindArgs); in updateWithOnConflict() local
1807 return statement.executeUpdateDelete(); in updateWithOnConflict()
1809 statement.close(); in updateWithOnConflict()
1920 try (SQLiteStatement statement = new SQLiteStatement(this, sql, bindArgs)) { in executeSql() argument
[all …]
/aosp12/frameworks/base/core/jni/
H A Dandroid_database_SQLiteConnection.cpp372 sqlite3_stmt* statement; in nativePrepareStatement() local
394 return reinterpret_cast<jlong>(statement); in nativePrepareStatement()
406 sqlite3_finalize(statement); in nativeFinalizeStatement()
427 return sqlite3_column_count(statement); in nativeGetColumnCount()
512 int err = sqlite3_reset(statement); in nativeResetStatementAndClearBindings()
514 err = sqlite3_clear_bindings(statement); in nativeResetStatementAndClearBindings()
522 int err = sqlite3_step(statement); in executeNonQuery()
537 executeNonQuery(env, connection, statement); in nativeExecute()
560 int err = sqlite3_step(statement); in executeOneRowQuery()
777 int err = sqlite3_step(statement); in nativeExecuteForCursorWindow()
[all …]
/aosp12/packages/apps/TV/src/com/android/tv/dvr/provider/
H A DDvrDatabaseHelper.java380 statement.execute(); in insertSchedules()
388 statement.execute(); in insertSchedules()
410 statement.execute(); in updateSchedules()
419 statement.execute(); in updateSchedules()
435 statement.clearBindings(); in deleteSchedules()
437 statement.execute(); in deleteSchedules()
452 statement.clearBindings(); in insertSeriesRecordings()
455 statement.execute(); in insertSeriesRecordings()
470 statement.clearBindings(); in updateSeriesRecordings()
474 statement.execute(); in updateSeriesRecordings()
[all …]
/aosp12/frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
H A DStatement.java111 Statement statement = (Statement) o; in equals() local
113 if (!mRelation.equals(statement.mRelation)) { in equals()
116 if (!mTarget.equals(statement.mTarget)) { in equals()
119 if (!mSource.equals(statement.mSource)) { in equals()
137 statement.append("Statement: "); in toString()
138 statement.append(mSource); in toString()
139 statement.append(", "); in toString()
140 statement.append(mTarget); in toString()
141 statement.append(", "); in toString()
142 statement.append(mRelation); in toString()
[all …]
/aosp12/frameworks/base/tests/testables/src/android/testing/
H A DAndroidTestingRunner.java20 import androidx.test.internal.runner.junit4.statement.RunAfters;
21 import androidx.test.internal.runner.junit4.statement.RunBefores;
22 import androidx.test.internal.runner.junit4.statement.UiThreadStatement;
56 final Statement statement = super.methodInvoker(method, test); in methodInvoker() local
57 return shouldRunOnUiThread(method) ? new UiThreadStatement(statement, true) : statement; in methodInvoker()
60 protected Statement withBefores(FrameworkMethod method, Object target, Statement statement) { in withBefores() argument
63 return befores.isEmpty() ? statement : new RunBefores(method, statement, in withBefores()
67 protected Statement withAfters(FrameworkMethod method, Object target, Statement statement) { in withAfters() argument
70 return afters.isEmpty() ? statement : new RunAfters(method, statement, afters, in withAfters()
/aosp12/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
H A DWindowTestRunner.java58 private Statement wrapStatement(Statement statement, FrameworkMethod method, Object target) { in wrapStatement() argument
60 statement = wrapper.apply(statement, describeChild(method)); in wrapStatement()
62 return statement; in wrapStatement()
73 protected Statement withBefores(FrameworkMethod method, Object target, Statement statement) { in withBefores() argument
75 return statement; in withBefores()
82 return new RunBefores(statement, befores, target); in withBefores()
94 protected Statement withAfters(FrameworkMethod method, Object target, Statement statement) { in withAfters() argument
96 return statement; in withAfters()
103 return new RunAfters(statement, afters, target); in withAfters()
H A DSystemServicesTestRuleTest.java38 Statement statement = new Statement() { in testRule_rethrows_unchecked_exceptions() local
45 mWmsRule.apply(statement, null /* Description*/).evaluate(); in testRule_rethrows_unchecked_exceptions()
51 Statement statement = new Statement() { in testRule_rethrows_checked_exceptions() local
58 mWmsRule.apply(statement, null /* Description*/).evaluate(); in testRule_rethrows_checked_exceptions()
65 Statement statement = new Statement() { in testRule_ranSuccessfully() local
71 mWmsRule.apply(statement, null /* Description*/).evaluate(); in testRule_ranSuccessfully()
/aosp12/art/tools/checker/file_format/checker/
H A Dparser.py162 statement = TestStatement(parent, variant, line, line_no)
164 if statement.is_no_content_statement() and line:
165 Logger.fail("Expected empty statement: '{}'".format(line), statement.filename,
166 statement.line_no)
171 if statement.is_eval_content_statement():
188 statement.add_expression(TestExpression.create_separator())
193 statement.add_expression(TestExpression.create_pattern(pattern))
198 statement.add_expression(TestExpression.create_variable_reference(name))
217 if statement.is_eval_content_statement():
218 statement.add_expression(TestExpression.create_plain_text(text))
[all …]
H A Dtest.py205 statement = TestStatement(test_case, variant, content, 0)
206 if statement.is_eval_content_statement():
208 elif statement.is_pattern_match_content_statement():
389 statement = test_case.statements[0]
390 self.assertEqual(statement.variant, TestStatement.Variant.EVAL)
391 self.assertEqual(statement.original_text, string)
392 return statement.expressions
397 statement = test_case.statements[0]
399 self.assertEqual(statement.original_text, text)
400 self.assertEqual(len(statement.expressions), 1)
[all …]
/aosp12/build/make/tools/product_config/src/com/android/build/config/
H A DMakeWriter.java65 for (GenericConfig.Statement statement: file.getStatements()) { in writeFile()
66 if (statement instanceof GenericConfig.Assign) { in writeFile()
67 writeAssign(out, config, (GenericConfig.Assign)statement); in writeFile()
68 } else if (statement instanceof GenericConfig.Inherit) { in writeFile()
69 writeInherit(out, (GenericConfig.Inherit)statement); in writeFile()
71 throw new RuntimeException("Unexpected Statement: " + statement); in writeFile()
77 GenericConfig.Assign statement) { in writeAssign() argument
78 final List<Str> values = statement.getValue(); in writeAssign()
80 final String varName = statement.getName(); in writeAssign()
108 private void writeInherit(PrintStream out, GenericConfig.Inherit statement) { in writeInherit() argument
[all …]
H A DGenericConfig.java57 public void addStatement(Statement statement) { in addStatement() argument
58 mStatements.add(statement); in addStatement()
H A DFlattenConfig.java135 for (final GenericConfig.Statement statement: genericFile.getStatements()) { in forEachStatement()
136 if (statement instanceof GenericConfig.Assign) { in forEachStatement()
138 final GenericConfig.Assign assign = (GenericConfig.Assign)statement; in forEachStatement()
149 } else if (statement instanceof GenericConfig.Inherit) { in forEachStatement()
151 final GenericConfig.Inherit inherit = (GenericConfig.Inherit)statement; in forEachStatement()
/aosp12/frameworks/base/tools/aapt2/java/
H A DClassDefinition.cpp30 void MethodDefinition::AppendStatement(const StringPiece& statement) { in AppendStatement() argument
31 statements_.push_back(statement.to_string()); in AppendStatement()
37 for (const auto& statement : statements_) { in Print() local
38 printer->Println(statement); in Print()
/aosp12/frameworks/base/packages/StatementService/src/com/android/statementservice/network/retriever/
H A DStatementParser.kt85 val statement = JsonParser.parse(reader) regex
86 val delegate = statement.optString(StatementUtils.DELEGATE_FIELD_DELEGATE)
91 val targetObject = statement.optJSONObject(StatementUtils.ASSET_DESCRIPTOR_FIELD_TARGET)
95 val relations = statement.optJSONArray(StatementUtils.ASSET_DESCRIPTOR_FIELD_RELATION)
/aosp12/art/tools/checker/common/
H A Dlogger.py98 def test_failed(msg, statement, variables): argument
100 Logger.fail(msg, statement.filename, statement.line_no, statement.original_text, variables)
/aosp12/system/chre/platform/linux/include/chre/platform/linux/
H A Dexpect_assert.h63 #define EXPECT_CHRE_ASSERT(statement) \ argument
68 statement; \
/aosp12/frameworks/av/media/libaaudio/tests/
H A Dtest_disconnect_race.cpp40 #define MY_ASSERT_TRUE(statement) \ argument
41 if (!(statement)) { \
42 printf("ERROR line:%d - " #statement "\n", __LINE__); \
/aosp12/art/test/435-try-finally-without-catch/
H A Dinfo.txt1 Exercise a method containing a `try' statement with several
18 clue that it contains a `try' statement, which it cannot optimize
20 special block(s) related to `catch'-less `try' statement(s), the
/aosp12/frameworks/base/packages/StatementService/src/com/android/statementservice/domain/
H A DDomainVerifier.kt114 val isVerified = result.statements.any { statement ->
115 (StatementUtils.RELATION.matches(statement.relation) &&
116 assetMatcher.matches(statement.target))
/aosp12/frameworks/base/tests/PlatformCompatGating/test-rules/src/android/compat/testing/
H A DPlatformCompatChangeRule.java73 protected Statement createStatementForConfig(final Statement statement, ChangeConfig config) { in createStatementForConfig() argument
74 return new CompatChangeStatement(statement, config); in createStatementForConfig()
/aosp12/art/tools/checker/
H A DREADME31 therefore create a scope within which the statement is verified.
111 variables as part of the statement input is not allowed. Any other surrounding text will be passed
123 Branch blocks can contain any statement, including CHECK-NEXT and CHECK-DAG.
124 Notice the CHECK-NEXT statement within the IF branch. When a CHECK-NEXT is encountered,
125 Checker expects that the previously executed statement was either a CHECK or a CHECK-NEXT.
131 block defined by the CHECK-START statement. The absence of lexical scoping for Checker variables
/aosp12/system/tools/aidl/
H A Dast_cpp.cpp249 void StatementBlock::AddStatement(unique_ptr<AstNode> statement) { in AddStatement() argument
250 statements_.push_back(std::move(statement)); in AddStatement()
253 void StatementBlock::AddStatement(AstNode* statement) { in AddStatement() argument
254 statements_.emplace_back(statement); in AddStatement()
270 for (const auto& statement : statements_) { in Write() local
271 statement->Write(to); in Write()

12345678910>>...17