/external/mockito/src/org/mockito/internal/runners/ |
JUnit45AndHigherRunnerImpl.java | 14 import org.junit.runners.model.Statement;
24 protected Statement withBefores(FrameworkMethod method, Object target,
25 Statement statement) {
28 return super.withBefores(method, target, statement);
|
/frameworks/testing/androidtestlib/src/com/android/test/runner/junit4/ |
NonExecutingJUnit4ClassRunner.java | 21 import org.junit.runners.model.Statement; 29 private static final Statement NON_EXECUTING_STATEMENT = new Statement() { 41 * Override parent to generate an non executing statement 44 protected Statement methodBlock(FrameworkMethod method) {
|
/external/chromium_org/chrome/browser/predictors/ |
resource_prefetch_predictor_tables.cc | 13 #include "sql/statement.h" 16 using sql::Statement; 29 Statement* statement) { 30 statement->BindString(0, primary_key); 31 statement->BindString(1, row.resource_url.spec()); 32 statement->BindInt(2, static_cast<int>(row.resource_type)); 33 statement->BindInt(3, row.number_of_hits); 34 statement->BindInt(4, row.number_of_misses); 35 statement->BindInt(5, row.consecutive_misses) [all...] |
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
DatabaseStatementTest.java | 83 SQLiteStatement statement = mDatabase.compileStatement("DELETE FROM test"); local 84 statement.execute(); 89 statement.close(); 132 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local 135 statement.bindLong(1, i); 136 statement.execute(); 138 statement.close(); 154 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local 157 statement.bindString(1, Long.toHexString(i)); 158 statement.execute() 176 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local 198 String statement = "INSERT INTO test (num, value) VALUES (?,?)"; local 222 SQLiteStatement statement = local 285 SQLiteStatement statement = local 300 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local [all...] |
SQLiteStatementTest.java | 114 // if the SQL statement is something that causes rows of data to 134 SQLiteStatement statement = mDatabase.compileStatement( local 136 assertEquals(1, statement.executeInsert()); 137 statement.close(); 140 statement = mDatabase.compileStatement("insert or ignore into test values(1, 1);"); 141 assertEquals(-1, statement.executeInsert()); 142 statement.close(); 151 // if the sql statement is something that causes rows of data to 153 statement = mDatabase.compileStatement( 156 statement.executeInsert() 169 SQLiteStatement statement = local 193 SQLiteStatement statement = local [all...] |
/frameworks/base/core/tests/coretests/src/android/database/ |
DatabaseStatementTest.java | 82 SQLiteStatement statement = mDatabase.compileStatement("DELETE FROM test"); local 83 statement.execute(); 88 statement.close(); 131 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local 134 statement.bindLong(1, i); 135 statement.execute(); 137 statement.close(); 153 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local 156 statement.bindString(1, Long.toHexString(i)); 157 statement.execute() 175 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local 197 String statement = "INSERT INTO test (num, value) VALUES (?,?)"; local 221 SQLiteStatement statement = local 284 SQLiteStatement statement = local 299 SQLiteStatement statement = mDatabase.compileStatement("INSERT INTO test (num) VALUES (?)"); local [all...] |
/frameworks/base/core/jni/ |
android_database_SQLiteConnection.cpp | 91 // Called each time a statement begins execution, when tracing is enabled. 98 // Called each time a statement finishes execution, when profiling is enabled. 289 sqlite3_stmt* statement; local 291 sql, sqlLength * sizeof(jchar), &statement, NULL); 310 ALOGV("Prepared statement %p on connection %p", statement, connection->db); 311 return reinterpret_cast<jint>(statement); 317 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 320 // whether any errors occurred while executing the statement. The statement itsel 329 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 337 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 345 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 353 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 369 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 380 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 391 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 402 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 417 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 431 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 456 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 464 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 473 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 491 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 503 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 553 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local 671 sqlite3_stmt* statement = reinterpret_cast<sqlite3_stmt*>(statementPtr); local [all...] |
/external/junit/src/org/junit/rules/ |
Timeout.java | 8 import org.junit.runners.model.Statement; 46 public Statement apply(Statement base, Description description) {
|
/external/chromium/chrome/browser/history/ |
multipart_uitest.cc | 8 #include "app/sql/statement.h" 53 sql::Statement statement(db.GetUniqueStatement(query.c_str())); 54 EXPECT_TRUE(statement); 55 EXPECT_TRUE(statement.Step()); 56 EXPECT_EQ(1, statement.ColumnInt(0));
|
/external/chromium/chrome/browser/sync/util/ |
user_settings_posix.cc | 30 SQLStatement statement; local 31 statement.prepare(dbhandle.get(), 35 statement.bind_string(0, email); 36 statement.bind_string(1, service_name); 37 statement.bind_blob(2, encrypted_service_token.data(), 39 if (SQLITE_DONE != statement.step()) {
|
user_settings.cc | 36 SQLStatement statement; local 37 statement.prepare(dbhandle, query); 38 if (SQLITE_DONE != statement.step()) { 166 SQLStatement statement; local 167 statement.prepare(dbhandle, 169 statement.bind_string(0, Generate128BitRandomHexString()); 170 if (SQLITE_DONE != statement.step()) { 218 SQLStatement statement; local 219 statement.prepare(dbhandle.get(), 223 if (SQLITE_DONE != statement.step()) 229 SQLStatement statement; local 237 SQLStatement statement; local 306 SQLStatement statement; local 317 SQLStatement statement; local 364 SQLStatement statement; local 376 SQLStatement statement; local 431 SQLStatement statement; local [all...] |
/external/clang/test/Parser/ |
statements.c | 34 if (0); // expected-warning {{if statement has empty body}} expected-note {{put the semicolon on a separate line to silence this warning}} 38 foo: if (0); // expected-warning {{if statement has empty body}} expected-note {{put the semicolon on a separate line to silence this warning}} 43 if (0); // expected-warning {{if statement has empty body}} expected-note {{put the semicolon on a separate line to silence this warning}} 47 if (0); // expected-warning {{if statement has empty body}} expected-note {{put the semicolon on a separate line to silence this warning}} 58 return 4 // expected-error {{expected ';' after return statement}} 78 return 4, // expected-error {{expected ';' after return statement}}
|
/external/chromium/app/sql/ |
statement.h | 19 // Possible return values from ColumnType in a statement. These should match 30 // sql::Statement s(connection_.GetUniqueStatement(...)); 31 // if (!s) // You should check for errors before using the statement. 41 class Statement { 43 // Creates an uninitialized statement. The statement will be invalid until 45 Statement(); 47 explicit Statement(scoped_refptr<Connection::StatementRef> ref); 48 ~Statement(); 50 // Initializes this object with the given statement, which may or may no [all...] |
/libcore/luni/src/test/java/tests/java/sql/ |
UpdateFunctionalityTest.java | 24 import java.sql.Statement; 40 private static Statement statement; field in class:UpdateFunctionalityTest 47 statement = conn.createStatement(); 58 statement.close(); 72 statement.execute(DatabaseCreator.DROP_TABLE1); 75 statement.execute(DatabaseCreator.DROP_TABLE2); 78 statement.execute(DatabaseCreator.DROP_TABLE3); 83 statement.execute(DatabaseCreator.CREATE_TABLE3); 84 statement.execute(DatabaseCreator.CREATE_TABLE2) [all...] |
/external/junit/src/org/junit/experimental/theories/ |
Theories.java | 20 import org.junit.runners.model.Statement; 66 public Statement methodBlock(final FrameworkMethod method) { 70 public static class TheoryAnchor extends Statement { 127 public Statement methodBlock(FrameworkMethod method) { 128 final Statement statement= super.methodBlock(method); local 129 return new Statement() { 133 statement.evaluate(); 147 protected Statement methodInvoker(FrameworkMethod method, Object test) { 159 private Statement methodCompletesWithParameters [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteStatement.java | 22 * Represents a statement that can be executed against a database. The statement 35 * Execute this SQL statement, if it is not a SELECT / INSERT / DELETE / UPDATE, for example 54 * Execute this SQL statement, if the the number of rows affected by execution of this SQL 55 * statement is of any importance to the caller - for example, UPDATE / DELETE SQL statements. 57 * @return the number of rows affected by this SQL statement execution. 75 * Execute this SQL statement and return the ID of the row inserted due to this call. 76 * The SQL statement should be an INSERT for this to be a useful call. 97 * Execute a statement that returns a 1 by 1 table with a numeric value. 118 * Execute a statement that returns a 1 by 1 table with a text value [all...] |
/external/chromium_org/chrome/browser/history/android/ |
android_provider_backend_unittest.cc | 157 sql::Statement statement(backend->db_->GetCachedStatement(SQL_FROM_HERE, 160 while (statement.Step()) { 162 row.id = statement.ColumnInt64(0); 163 row.raw_url = statement.ColumnString(1); 164 row.url_id = statement.ColumnInt64(2); 172 sql::Statement statement(backend->db_->GetCachedStatement(SQL_FROM_HERE, 176 while (statement.Step()) { 178 row.create_time_ = FromDatabaseTime(statement.ColumnInt64(0)) [all...] |
/development/scripts/app_engine_server/gae_shell/ |
shell.py | 88 it was created by the same statement that created an unpicklable global, 89 it's not stored directly. Instead, the statement is stored in the 91 statement, the unpicklable statements are evaluated to recreate the 96 executing a statement, we skip the ones in unpicklable_names. 143 def add_unpicklable(self, statement, names): 144 """Adds a statement and list of names to the unpicklables. 149 statement: string, the statement that created new unpicklable global(s). 150 names: list of strings; the names of the globals created by the statement. 152 self.unpicklables.append(db.Text(statement)) [all...] |
/development/scripts/app_engine_server/gae_shell/static/ |
shell.js | 22 * statement in the shell prompt text box to the server, and a callback 39 * The last history element is the statement that the user is currently 40 * typing. When a statement is run, it's frozen in the history, a new history 41 * element is added to the end of the array for the new statement, and 81 * was pressed, it will run the statement, navigate the history, or update the 82 * current statement in the history. 88 var statement = document.getElementById('statement'); 91 // we're on the current statement. update it in the history before doing 93 this.history[this.historyCursor] = statement.value [all...] |
/external/chromium_org/chrome/browser/extensions/activity_log/ |
fullstream_ui_policy.cc | 79 sql::Statement statement(db->GetCachedStatement( 85 statement.Reset(true); 86 statement.BindString(0, action.extension_id()); 87 statement.BindInt64(1, action.time().ToInternalValue()); 88 statement.BindInt(2, static_cast<int>(action.action_type())); 89 statement.BindString(3, action.api_name()); 91 statement.BindString(4, Util::Serialize(action.args())); 95 statement.BindString(5, page_url_string); 98 statement.BindString(6, action.page_title()) 235 sql::Statement statement; local 256 sql::Statement statement; local 301 sql::Statement statement; local [all...] |
/external/chromium/testing/gtest/include/gtest/ |
gtest-death-test.h | 154 // Asserts that a given statement causes the program to exit, with an 157 # define ASSERT_EXIT(statement, predicate, regex) \ 158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) 162 # define EXPECT_EXIT(statement, predicate, regex) \ 163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) 165 // Asserts that a given statement causes the program to exit, either by 168 # define ASSERT_DEATH(statement, regex) \ 169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 173 # define EXPECT_DEATH(statement, regex) \ 174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex [all...] |
/external/chromium_org/testing/gtest/include/gtest/ |
gtest-death-test.h | 165 // Asserts that a given statement causes the program to exit, with an 168 # define ASSERT_EXIT(statement, predicate, regex) \ 169 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) 173 # define EXPECT_EXIT(statement, predicate, regex) \ 174 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) 176 // Asserts that a given statement causes the program to exit, either by 179 # define ASSERT_DEATH(statement, regex) \ 180 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 184 # define EXPECT_DEATH(statement, regex) \ 185 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex [all...] |
/external/chromium_org/third_party/mesa/src/src/gtest/include/gtest/ |
gtest-death-test.h | 154 // Asserts that a given statement causes the program to exit, with an 157 # define ASSERT_EXIT(statement, predicate, regex) \ 158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) 162 # define EXPECT_EXIT(statement, predicate, regex) \ 163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) 165 // Asserts that a given statement causes the program to exit, either by 168 # define ASSERT_DEATH(statement, regex) \ 169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 173 # define EXPECT_DEATH(statement, regex) \ 174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex [all...] |
/external/gtest/include/gtest/ |
gtest-death-test.h | 154 // Asserts that a given statement causes the program to exit, with an 157 # define ASSERT_EXIT(statement, predicate, regex) \ 158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) 162 # define EXPECT_EXIT(statement, predicate, regex) \ 163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) 165 // Asserts that a given statement causes the program to exit, either by 168 # define ASSERT_DEATH(statement, regex) \ 169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 173 # define EXPECT_DEATH(statement, regex) \ 174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex [all...] |
/external/llvm/utils/unittest/googletest/include/gtest/ |
gtest-death-test.h | 154 // Asserts that a given statement causes the program to exit, with an 157 # define ASSERT_EXIT(statement, predicate, regex) \ 158 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_FATAL_FAILURE_) 162 # define EXPECT_EXIT(statement, predicate, regex) \ 163 GTEST_DEATH_TEST_(statement, predicate, regex, GTEST_NONFATAL_FAILURE_) 165 // Asserts that a given statement causes the program to exit, either by 168 # define ASSERT_DEATH(statement, regex) \ 169 ASSERT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex) 173 # define EXPECT_DEATH(statement, regex) \ 174 EXPECT_EXIT(statement, ::testing::internal::ExitedUnsuccessfully, regex [all...] |