/libcore/luni/src/test/java/tests/java/sql/ |
InsertFunctionalityTest.java | 23 import java.sql.Statement; 37 private static Statement statement = null; field in class:InsertFunctionalityTest 43 statement = conn.createStatement(); 50 statement.close(); 63 statement 67 statement 71 statement 75 statement 79 statement [all...] |
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...] |
MultiThreadAccessTest.java | 23 import java.sql.Statement; 39 private static Statement statement; field in class:MultiThreadAccessTest 52 statement = conn.createStatement(); 64 statement.close(); 76 statement.execute(DatabaseCreator.DROP_TABLE1); 79 statement.execute(DatabaseCreator.DROP_TABLE2); 82 statement.execute(DatabaseCreator.DROP_TABLE4); 85 statement.execute(DatabaseCreator.DROP_TABLE3); 90 statement.execute(DatabaseCreator.CREATE_TABLE3) 159 Statement statement = conn.createStatement(); local 207 Statement statement = conn.createStatement(); local [all...] |
/external/junit/src/org/junit/rules/ |
RunRules.java | 4 import org.junit.runners.model.Statement; 7 * Runs a collection of rules on a statement. 9 public class RunRules extends Statement { 10 private final Statement statement; field in class:RunRules 12 public RunRules(Statement base, Iterable<TestRule> rules, Description description) { 13 statement= applyAll(base, rules, description); 18 statement.evaluate(); 21 private static Statement applyAll(Statement result, Iterable<TestRule> rules [all...] |
ExternalResource.java | 4 import org.junit.runners.model.Statement; 36 public Statement apply(Statement base, Description description) { 37 return statement(base); 40 private Statement statement(final Statement base) { method in class:ExternalResource 41 return new Statement() {
|
/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...] |
/external/chromium/app/sql/ |
meta_table.cc | 8 #include "app/sql/statement.h" 53 Statement s; 61 Statement s; 70 Statement s; 79 Statement s; 88 Statement s; 96 Statement s; 126 bool MetaTable::PrepareSetStatement(Statement* statement, const char* key) { 127 DCHECK(db_ && statement); [all...] |
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteConnection.java | 115 // Because SQLite statement execution can be reentrant, we keep track of how many 421 // Update prepared statement cache size. 448 // Returns true if the prepared statement cache contains the specified SQL. 470 * Prepares a statement for execution but does not bind its parameters or execute it. 473 * prior to execution of the statement. If the {@code outStatementInfo} argument 475 * with information about the statement. 477 * A prepared statement makes no reference to the arguments that may eventually 479 * such as SELECT or INSERT/UPDATE statements. If the statement is cacheable, 483 * provides a method to acquire a connection that already has a given SQL statement 484 * in its prepared statement cache so that it is ready for execution 500 final PreparedStatement statement = acquirePreparedStatement(sql); local 548 final PreparedStatement statement = acquirePreparedStatement(sql); local 591 final PreparedStatement statement = acquirePreparedStatement(sql); local 634 final PreparedStatement statement = acquirePreparedStatement(sql); local 680 final PreparedStatement statement = acquirePreparedStatement(sql); local 727 final PreparedStatement statement = acquirePreparedStatement(sql); local 775 final PreparedStatement statement = acquirePreparedStatement(sql); local 838 final PreparedStatement statement = acquirePreparedStatement(sql); local 877 PreparedStatement statement = mPreparedStatementCache.get(sql); local 1183 PreparedStatement statement = mPreparedStatementPool; local 1270 PreparedStatement statement = entry.getValue(); local [all...] |
/external/chromium/chrome/browser/sync/util/ |
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...] |
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()) {
|
/external/jmonkeyengine/engine/src/core-plugins/com/jme3/material/plugins/ |
J3MLoader.java | 50 import com.jme3.util.blockparser.Statement; 80 throw new IOException("Expected a statement, got '"+got+"'!"); 87 private void readShaderStatement(String statement) throws IOException { 88 String[] split = statement.split(":"); 90 throw new IOException("Shader statement syntax incorrect" + statement); 94 throw new IOException("Shader statement syntax incorrect: " + statement); 105 private void readLightMode(String statement) throws IOException{ 106 String[] split = statement.split(whitespacePattern) [all...] |
/external/chromium/chrome/browser/sync/syncable/ |
directory_backing_store.cc | 41 // This just has to be big enough to hold an UPDATE or INSERT statement that 52 SQLStatement statement; local 53 int result = statement.prepare(dbhandle, query); 57 result = statement.step(); 70 // Iterate over the fields of |entry| and bind each to |statement| for 72 int BindFields(const EntryKernel& entry, SQLStatement* statement) { 76 statement->bind_int64(index++, entry.ref(static_cast<Int64Field>(i))); 79 statement->bind_string(index++, entry.ref(static_cast<IdField>(i)).s_); 82 statement->bind_int(index++, entry.ref(static_cast<BitField>(i))); 85 statement->bind_string(index++, entry.ref(static_cast<StringField>(i))) 198 SQLStatement statement; local 206 SQLStatement statement; local 231 SQLStatement statement; local 342 SQLStatement statement; local 512 SQLStatement statement; local 569 SQLStatement statement; local 658 SQLStatement statement; local 697 SQLStatement statement; local 779 SQLStatement statement; local 823 SQLStatement statement; local 1091 SQLStatement statement; local 1106 SQLStatement statement; local 1151 SQLStatement statement; local [all...] |
/external/chromium/testing/gtest/include/gtest/internal/ |
gtest-death-test-internal.h | 79 static bool Create(const char* statement, const RE* regex, 143 virtual bool Create(const char* statement, const RE* regex, 150 virtual bool Create(const char* statement, const RE* regex, 158 // Traps C++ exceptions escaping statement and reports them as test 161 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ 163 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ 168 "death test statement. Exception message: %s\n", \ 178 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ 179 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) 185 # define GTEST_DEATH_TEST_(statement, predicate, regex, fail) [all...] |
/external/gtest/include/gtest/internal/ |
gtest-death-test-internal.h | 79 static bool Create(const char* statement, const RE* regex, 143 virtual bool Create(const char* statement, const RE* regex, 150 virtual bool Create(const char* statement, const RE* regex, 158 // Traps C++ exceptions escaping statement and reports them as test 161 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ 163 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ 168 "death test statement. Exception message: %s\n", \ 178 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ 179 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) 185 # define GTEST_DEATH_TEST_(statement, predicate, regex, fail) [all...] |
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/internal/ |
gtest-death-test-internal.h | 79 static bool Create(const char* statement, const RE* regex, 143 virtual bool Create(const char* statement, const RE* regex, 150 virtual bool Create(const char* statement, const RE* regex, 158 // Traps C++ exceptions escaping statement and reports them as test 161 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ 163 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ 168 "death test statement. Exception message: %s\n", \ 178 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ 179 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) 185 # define GTEST_DEATH_TEST_(statement, predicate, regex, fail) [all...] |
/external/llvm/utils/unittest/googletest/include/gtest/internal/ |
gtest-death-test-internal.h | 79 static bool Create(const char* statement, const RE* regex, 143 virtual bool Create(const char* statement, const RE* regex, 150 virtual bool Create(const char* statement, const RE* regex, 158 // Traps C++ exceptions escaping statement and reports them as test 161 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ 163 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement); \ 168 "death test statement. Exception message: %s\n", \ 178 # define GTEST_EXECUTE_DEATH_TEST_STATEMENT_(statement, death_test) \ 179 GTEST_SUPPRESS_UNREACHABLE_CODE_WARNING_BELOW_(statement) 185 # define GTEST_DEATH_TEST_(statement, predicate, regex, fail) [all...] |
/external/webkit/Source/WebCore/storage/ |
SQLStatement.cpp | 46 PassRefPtr<SQLStatement> SQLStatement::create(Database* database, const String& statement, const Vector<SQLValue>& arguments, PassRefPtr<SQLStatementCallback> callback, PassRefPtr<SQLStatementErrorCallback> errorCallback, int permissions) 48 return adoptRef(new SQLStatement(database, statement, arguments, callback, errorCallback, permissions)); 51 SQLStatement::SQLStatement(Database* database, const String& statement, const Vector<SQLValue>& arguments, PassRefPtr<SQLStatementCallback> callback, PassRefPtr<SQLStatementErrorCallback> errorCallback, int permissions) 52 : m_statement(statement.crossThreadString()) 64 // If we're re-running this statement after a quota violation, we need to clear that error now 76 SQLiteStatement statement(*database, m_statement); 77 int result = statement.prepare(); 80 LOG(StorageAPI, "Unable to verify correctness of statement %s - error %i (%s)", m_statement.ascii().data(), result, database->lastErrorMsg()); 85 // FIXME: If the statement uses the ?### syntax supported by sqlite, the bind parameter count is very likely off from the number of question marks. 87 if (statement.bindParameterCount() != m_arguments.size()) [all...] |
/external/chromium/sdch/open-vcdiff/src/gtest/internal/ |
gtest-death-test-internal.h | 76 static bool Create(const char* statement, const RE* regex, 131 virtual bool Create(const char* statement, const RE* regex, 138 virtual bool Create(const char* statement, const RE* regex, 148 #define GTEST_DEATH_TEST(statement, predicate, regex, fail) \ 153 if (!::testing::internal::DeathTest::Create(#statement, >est_regex, \ 169 { statement; } \
|
/external/chromium/testing/gtest/include/gtest/ |
gtest-spi.h | 117 // statement will cause exactly one fatal Google Test failure with 'substr' 124 // The verification of the assertion is done correctly even when the statement 128 // - 'statement' cannot reference local non-static variables or 130 // - 'statement' cannot return a value. 138 #define EXPECT_FATAL_FAILURE(statement, substr) \ 142 static void Execute() { statement; }\ 155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ 159 static void Execute() { statement; }\ 174 // statement will cause exactly one non-fatal Google Test failure with 'substr' 181 // 'statement' is allowed to reference local variables and members o [all...] |
/external/gtest/include/gtest/ |
gtest-spi.h | 117 // statement will cause exactly one fatal Google Test failure with 'substr' 124 // The verification of the assertion is done correctly even when the statement 128 // - 'statement' cannot reference local non-static variables or 130 // - 'statement' cannot return a value. 138 #define EXPECT_FATAL_FAILURE(statement, substr) \ 142 static void Execute() { statement; }\ 155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ 159 static void Execute() { statement; }\ 174 // statement will cause exactly one non-fatal Google Test failure with 'substr' 181 // 'statement' is allowed to reference local variables and members o [all...] |
/external/libvpx/libvpx/third_party/googletest/src/include/gtest/ |
gtest-spi.h | 117 // statement will cause exactly one fatal Google Test failure with 'substr' 124 // The verification of the assertion is done correctly even when the statement 128 // - 'statement' cannot reference local non-static variables or 130 // - 'statement' cannot return a value. 138 #define EXPECT_FATAL_FAILURE(statement, substr) \ 142 static void Execute() { statement; }\ 155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ 159 static void Execute() { statement; }\ 174 // statement will cause exactly one non-fatal Google Test failure with 'substr' 181 // 'statement' is allowed to reference local variables and members o [all...] |
/external/llvm/utils/unittest/googletest/include/gtest/ |
gtest-spi.h | 117 // statement will cause exactly one fatal Google Test failure with 'substr' 124 // The verification of the assertion is done correctly even when the statement 128 // - 'statement' cannot reference local non-static variables or 130 // - 'statement' cannot return a value. 138 #define EXPECT_FATAL_FAILURE(statement, substr) \ 142 static void Execute() { statement; }\ 155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ 159 static void Execute() { statement; }\ 174 // statement will cause exactly one non-fatal Google Test failure with 'substr' 181 // 'statement' is allowed to reference local variables and members o [all...] |
/external/open-vcdiff/gtest/include/gtest/ |
gtest-spi.h | 117 // statement will cause exactly one fatal Google Test failure with 'substr' 124 // The verification of the assertion is done correctly even when the statement 128 // - 'statement' cannot reference local non-static variables or 130 // - 'statement' cannot return a value. 138 #define EXPECT_FATAL_FAILURE(statement, substr) \ 142 static void Execute() { statement; }\ 155 #define EXPECT_FATAL_FAILURE_ON_ALL_THREADS(statement, substr) \ 159 static void Execute() { statement; }\ 174 // statement will cause exactly one non-fatal Google Test failure with 'substr' 181 // 'statement' is allowed to reference local variables and members o [all...] |