/cts/tests/tests/database/src/android/database/cts/ |
D | DatabaseCursorTest.java | 125 String sql = "INSERT INTO test (s, d, l, b) VALUES (?,?,?,?)"; in testBlob() local 126 mDatabase.execSQL(sql, args); in testBlob() 261 StringBuilder sql = new StringBuilder(2100); in testLargeField() local 262 sql.append("INSERT INTO test (data) VALUES ('"); in testLargeField() 268 sql.append(randomString); in testLargeField() 269 sql.append("');"); in testLargeField() 270 mDatabase.execSQL(sql.toString()); in testLargeField() 349 StringBuilder sql = new StringBuilder(2100); in testManyRowsTxt() local 350 sql.append("INSERT INTO test (data) VALUES ('"); in testManyRowsTxt() 356 sql.append(randomString); in testManyRowsTxt() [all …]
|
D | MergeCursorTest.java | 132 String sql = "INSERT INTO " + TABLE5_NAME + " (" + TEXT_COLUMN_NAME + ") VALUES ('TEXT')"; in testCursorSwiching() local 133 mDatabase.execSQL(sql); in testCursorSwiching() 355 String sql = "INSERT INTO " + tablename + " (string_text, double_number, int_number," in buildDatabaseWithTestValues() local 357 mDatabase.execSQL(sql, args); in buildDatabaseWithTestValues() 359 sql = "INSERT INTO " + tablename + " (string_text) VALUES ('" + COLUMN_FOR_NULL_TEST + "')"; in buildDatabaseWithTestValues() 360 mDatabase.execSQL(sql); in buildDatabaseWithTestValues() 378 String sql = "Create TABLE " + tableName + " (_id INTEGER PRIMARY KEY, " + columnNames in createTable() local 380 mDatabase.execSQL(sql); in createTable()
|
D | CursorWrapperTest.java | 362 String sql = "INSERT INTO test2 (string_text, double_number, int_number, blob_data)" in testGettingValues() local 364 mDatabase.execSQL(sql, args); in testGettingValues() 399 sql = "INSERT INTO test2 (string_text) VALUES ('" + STRING_TEXT2 + "')"; in testGettingValues() 400 mDatabase.execSQL(sql); in testGettingValues()
|
D | CursorJoinerTest.java | 253 String sql = "Create TABLE " + tableName + " (_id INTEGER PRIMARY KEY, " + columnNames in createTable() local 255 mDatabase.execSQL(sql); in createTable()
|
D | DatabaseUtilsTest.java | 251 String sql = "INSERT INTO " + TABLE_NAME + " (name, age, address) VALUES (?, ?, ?);"; in testBindObjectToProgram() local 252 SQLiteStatement statement = mDatabase.compileStatement(sql); in testBindObjectToProgram()
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteStatementTest.java | 225 String sql = "SELECT data FROM blob_test WHERE _id = " + 2; in testSimpleQueryForBlobFileDescriptorSuccessNull() local 226 SQLiteStatement stm = mDatabase.compileStatement(sql); in testSimpleQueryForBlobFileDescriptorSuccessNull() 245 String sql = "SELECT data FROM blob_test WHERE _id = " + i; in doTestSimpleQueryForBlobFileDescriptorSuccess() local 246 SQLiteStatement stm = mDatabase.compileStatement(sql); in doTestSimpleQueryForBlobFileDescriptorSuccess() 254 String sql = "SELECT data FROM blob_test WHERE _id = ?"; in testSimpleQueryForBlobFileDescriptorSuccessParam() local 255 SQLiteStatement stm = mDatabase.compileStatement(sql); in testSimpleQueryForBlobFileDescriptorSuccessParam() 264 String sql = "SELECT data FROM blob_test WHERE _id = 100"; in testGetBlobFailureNoParam() local 265 SQLiteStatement stm = mDatabase.compileStatement(sql); in testGetBlobFailureNoParam() 284 String sql = "SELECT data FROM blob_test WHERE _id = ?"; in testGetBlobFailureParam() local 285 SQLiteStatement stm = mDatabase.compileStatement(sql); in testGetBlobFailureParam()
|
D | SQLiteQueryBuilderTest.java | 92 String sql = sqliteQueryBuilder.buildQuery(new String[] { "age", "address" }, in testSetDistinct() local 96 assertEquals(expected, sql); in testSetDistinct() 102 sql = sqliteQueryBuilder.buildQuery(new String[] { "age", "address" }, in testSetDistinct() 106 assertEquals(expected, sql); in testSetDistinct() 112 sql = sqliteQueryBuilder.buildQuery(new String[] { "age", "address" }, in testSetDistinct() 117 assertEquals(expected, sql); in testSetDistinct() 131 String sql = sqliteQueryBuilder.buildQuery(new String[] { "EmployeeName", "EmployeeAge" }, in testSetProjectionMap() local 134 assertEquals(expected, sql); in testSetProjectionMap() 136 sql = sqliteQueryBuilder.buildQuery(null, // projectionIn is null in testSetProjectionMap() 138 assertTrue(sql.matches("SELECT (age|name|address), (age|name|address), (age|name|address) " in testSetProjectionMap() [all …]
|
D | SQLiteRawStatementTest.java | 554 final String sql = "INSERT INTO t1 (i, d, t) VALUES (:1, ?2, @FOO)"; in testParameterMetadata() local 559 try (SQLiteRawStatement s = mDatabase.createRawStatement(sql)) { in testParameterMetadata() 579 try (SQLiteRawStatement s = mDatabase.createRawStatement(sql)) { in testParameterMetadata() 614 final String sql = "SELECT i AS " + cat + " FROM t1 WHERE j = " + head; in testUnicode() local 617 try (SQLiteRawStatement s = mDatabase.createRawStatement(sql)) { in testUnicode()
|
D | SQLiteDatabaseTest.java | 472 String sql = "INSERT INTO test (name, age, address) VALUES (?, ?, ?);"; in testCompileStatement() local 473 SQLiteStatement insertStatement = mDatabase.compileStatement(sql); in testCompileStatement() 1012 String sql = "SELECT name, month FROM employee WHERE salary > ?;"; in testQuery() local 1013 cursor = mDatabase.rawQuery(sql, new String[] { "2000" }); in testQuery() 1026 cursor = mDatabase.rawQueryWithFactory(factory, sql, new String[] { "2000" }, null); in testQuery() 1367 String sql = "SELECT data FROM test ORDER BY data COLLATE LOCALIZED ASC"; in testSetLocale() local 1368 Cursor cursor = mDatabase.rawQuery(sql, null); in testSetLocale() 1481 String sql = "INSERT INTO test (i) VALUES (?);"; in testGroupConcat() local 1482 SQLiteStatement insertStatement = mDatabase.compileStatement(sql); in testGroupConcat() 1520 String sql = "INSERT INTO test VALUES (?, ?);"; in testSchemaChanges() local [all …]
|
D | SQLiteCursorTest.java | 263 String sql = "Create TABLE " + tableName + " (_id INTEGER PRIMARY KEY, " in createTable() local 265 mDatabase.execSQL(sql); in createTable()
|
/cts/tests/libcore/luni/ |
D | Android.bp | 418 "tests.java.sql", 419 "libcore.java.sql", 420 "org.apache.harmony.sql.tests.java.sql", 639 "libcore.javax.sql", 640 "org.apache.harmony.sql.tests.javax.sql",
|
/cts/common/device-side/bedstead/remoteframeworkclasses/java/apis/ |
D | current.txt | 10441 field public static final String QUERY_ARG_SQL_GROUP_BY = "android:query-arg-sql-group-by"; 10442 field public static final String QUERY_ARG_SQL_HAVING = "android:query-arg-sql-having"; 10443 field public static final String QUERY_ARG_SQL_LIMIT = "android:query-arg-sql-limit"; 10444 field public static final String QUERY_ARG_SQL_SELECTION = "android:query-arg-sql-selection"; 10445 …field public static final String QUERY_ARG_SQL_SELECTION_ARGS = "android:query-arg-sql-selection-a… 10446 field public static final String QUERY_ARG_SQL_SORT_ORDER = "android:query-arg-sql-sort-order";
|