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()
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/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java86 private static final String TABLE_NAME = "results"; field in TestResultsProvider
117 db.execSQL("CREATE TABLE " + TABLE_NAME + " (" in onCreate()
128 db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME); in onUpgrade()
137 query.setTables(TABLE_NAME); in query()
167 long id = db.insert(TABLE_NAME, null, values); in insert()
204 int numUpdated = db.update(TABLE_NAME, values, selection, selectionArgs); in update()
215 int numDeleted = db.delete(TABLE_NAME, selection, selectionArgs); in delete()
/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.java67 private static final String TABLE_NAME = "test"; field in SQLiteDatabaseTest
386 int count = mDatabase.delete(TABLE_NAME, "name = 'Mike'", null); in testDelete()
389 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testDelete()
405 count = mDatabase.delete(TABLE_NAME, "name = ?", new String[] { "Jack" }); in testDelete()
408 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, in testDelete()
423 count = mDatabase.delete(TABLE_NAME, null, null); in testDelete()
426 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testDelete()
439 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, in testExecSQL()
452 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testExecSQL()
468 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testExecSQL()
[all …]