/aosp12/art/tools/checker/match/ |
H A D | file.py | 28 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 D | DatabaseStatementTest.java | 83 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 D | SQLiteConnection.java | 510 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 D | SQLiteDatabase.java | 1700 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 D | android_database_SQLiteConnection.cpp | 372 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 D | DvrDatabaseHelper.java | 380 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 D | Statement.java | 111 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 D | AndroidTestingRunner.java | 20 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 D | WindowTestRunner.java | 58 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 D | SystemServicesTestRuleTest.java | 38 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 D | parser.py | 162 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 D | test.py | 205 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 D | MakeWriter.java | 65 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 D | GenericConfig.java | 57 public void addStatement(Statement statement) { in addStatement() argument 58 mStatements.add(statement); in addStatement()
|
H A D | FlattenConfig.java | 135 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 D | ClassDefinition.cpp | 30 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 D | StatementParser.kt | 85 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 D | logger.py | 98 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 D | expect_assert.h | 63 #define EXPECT_CHRE_ASSERT(statement) \ argument 68 statement; \
|
/aosp12/frameworks/av/media/libaaudio/tests/ |
H A D | test_disconnect_race.cpp | 40 #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 D | info.txt | 1 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 D | DomainVerifier.kt | 114 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 D | PlatformCompatChangeRule.java | 73 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 D | README | 31 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 D | ast_cpp.cpp | 249 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()
|