/cts/tests/tests/database/src/android/database/cts/ |
D | DatabaseUtilsTest.java | 51 private static final String TABLE_NAME = "test"; field in DatabaseUtilsTest 63 mDatabase.execSQL("CREATE TABLE " + TABLE_NAME + " (_id INTEGER PRIMARY KEY, " + in setUp() 118 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testBindObjectToProgram() 123 String sql = "INSERT INTO " + TABLE_NAME + " (name, age, address) VALUES (?, ?, ?);"; in testBindObjectToProgram() 131 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testBindObjectToProgram() 142 String sqls = "CREATE TABLE " + TABLE_NAME + " (_id INTEGER PRIMARY KEY, name TEXT);\n" in testCreateDbFromSqlStatements() 143 + "INSERT INTO " + TABLE_NAME + " (name) VALUES ('Mike');\n"; in testCreateDbFromSqlStatements() 151 Cursor cursor = db.query(TABLE_NAME, PROJECTION, null, null, null, null, null); in testCreateDbFromSqlStatements() 160 mDatabase.execSQL("INSERT INTO " + TABLE_NAME + " (name, age, address)" + in testCursorDoubleToContentValues() 162 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorDoubleToContentValues() [all …]
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteCursorTest.java | 42 private static final String TABLE_NAME = "test"; field in SQLiteCursorTest 54 createTable(TABLE_NAME, TABLE_COLUMNS); in setUp() 55 addValuesIntoTable(TABLE_NAME, DEFAULT_TABLE_VALUE_BEGINS, TEST_COUNT); in setUp() 67 TEST_SQL, TABLE_NAME, null); in testConstructor() 69 new SQLiteCursor(mDatabase, cursorDriver, TABLE_NAME, null); in testConstructor() 146 final String DELETE = "DELETE FROM " + TABLE_NAME + " WHERE number_1 ="; in testRequery() 208 SQLiteCursor cursor = (SQLiteCursor) mDatabase.query(TABLE_NAME, null, SELECTION, in testSetSelectionArguments() 275 SQLiteCursor cursor = (SQLiteCursor) mDatabase.query(TABLE_NAME, null, null, in getCursor()
|
D | SQLiteDatabaseTest.java | 71 private static final String TABLE_NAME = "test"; field in SQLiteDatabaseTest 398 int count = mDatabase.delete(TABLE_NAME, "name = 'Mike'", null); in testDelete() 401 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testDelete() 417 count = mDatabase.delete(TABLE_NAME, "name = ?", new String[] { "Jack" }); in testDelete() 420 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, in testDelete() 435 count = mDatabase.delete(TABLE_NAME, null, null); in testDelete() 438 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testDelete() 451 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testExecSQL() 464 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testExecSQL() 480 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testExecSQL() [all …]
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestResultsProvider.java | 81 private static final String TABLE_NAME = "results"; field in TestResultsProvider 182 query.setTables(TABLE_NAME); in query() 238 long id = db.insert(TABLE_NAME, null, values); in insert() 282 int numUpdated = db.update(TABLE_NAME, values, selection, selectionArgs); in update() 307 int numDeleted = db.delete(TABLE_NAME, selection, selectionArgs); in delete() 414 db.execSQL("CREATE TABLE " + TABLE_NAME + " (" in onCreate() 426 db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); in onUpgrade()
|