Home
last modified time | relevance | path

Searched refs:TABLE_NAME (Results 1 – 4 of 4) sorted by relevance

/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java51 private static final String TABLE_NAME = "test"; field in DatabaseUtilsTest
63 mDatabase.execSQL("CREATE TABLE " + TABLE_NAME + " (_id INTEGER PRIMARY KEY, " + in setUp()
246 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testBindObjectToProgram()
251 String sql = "INSERT INTO " + TABLE_NAME + " (name, age, address) VALUES (?, ?, ?);"; in testBindObjectToProgram()
259 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testBindObjectToProgram()
270 String sqls = "CREATE TABLE " + TABLE_NAME + " (_id INTEGER PRIMARY KEY, name TEXT);\n" in testCreateDbFromSqlStatements()
271 + "INSERT INTO " + TABLE_NAME + " (name) VALUES ('Mike');\n"; in testCreateDbFromSqlStatements()
279 Cursor cursor = db.query(TABLE_NAME, PROJECTION, null, null, null, null, null); in testCreateDbFromSqlStatements()
289 mDatabase.execSQL("INSERT INTO " + TABLE_NAME + " (name, age, address)" + in testCursorDoubleToContentValues()
291 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorDoubleToContentValues()
[all …]
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteCursorTest.java42 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()
DSQLiteDatabaseTest.java103 private static final String TABLE_NAME = "test"; field in SQLiteDatabaseTest
509 int count = mDatabase.delete(TABLE_NAME, "name = 'Mike'", null); in testDelete()
512 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testDelete()
528 count = mDatabase.delete(TABLE_NAME, "name = ?", new String[] { "Jack" }); in testDelete()
531 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, in testDelete()
546 count = mDatabase.delete(TABLE_NAME, null, null); in testDelete()
549 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testDelete()
563 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testExecSQL()
576 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testExecSQL()
592 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testExecSQL()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java84 private static final String TABLE_NAME = "results"; field in TestResultsProvider
215 query.setTables(TABLE_NAME); in query()
271 long id = db.insert(TABLE_NAME, null, values); in insert()
315 int numUpdated = db.update(TABLE_NAME, values, selection, selectionArgs); in update()
340 int numDeleted = db.delete(TABLE_NAME, selection, selectionArgs); in delete()
447 db.execSQL("CREATE TABLE " + TABLE_NAME + " (" in onCreate()
460 db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); in onUpgrade()