/cts/tests/app/src/android/app/cts/ |
D | AlertDialog_BuilderCursorTest.java | 62 private File mDatabaseFile; field in AlertDialog_BuilderCursorTest 127 mDatabaseFile = new File(dbDir, "database_alert_dialog_test.db"); in setUp() 128 if (mDatabaseFile.exists()) { in setUp() 129 mDatabaseFile.delete(); in setUp() 131 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setUp() 158 if (mDatabaseFile != null) { in tearDown() 159 mDatabaseFile.delete(); in tearDown()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | CursorJoinerTest.java | 45 private File mDatabaseFile; field in CursorJoinerTest 56 mDatabaseFile.delete(); in tearDown() 208 mDatabaseFile = new File(dbDir, "database_test.db"); in setupDatabase() 209 if (mDatabaseFile.exists()) { in setupDatabase() 210 mDatabaseFile.delete(); in setupDatabase() 212 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setupDatabase() 213 assertNotNull(mDatabaseFile); in setupDatabase()
|
D | MergeCursorTest.java | 42 private File mDatabaseFile; field in MergeCursorTest 72 mDatabaseFile.delete(); in tearDown() 328 mDatabaseFile = new File(dbDir, "database_test.db"); in setupDatabase() 329 if (mDatabaseFile.exists()) { in setupDatabase() 330 mDatabaseFile.delete(); in setupDatabase() 332 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setupDatabase() 333 assertNotNull(mDatabaseFile); in setupDatabase()
|
D | AbstractCursorTest.java | 61 private File mDatabaseFile; field in AbstractCursorTest 82 if (mDatabaseFile.exists()) { in tearDown() 83 mDatabaseFile.delete(); in tearDown() 468 mDatabaseFile = new File(dbDir, "database_test.db"); in setupDatabase() 469 if (mDatabaseFile.exists()) { in setupDatabase() 470 mDatabaseFile.delete(); in setupDatabase() 472 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setupDatabase() 473 assertNotNull(mDatabaseFile); in setupDatabase()
|
D | DatabaseCursorTest.java | 49 private File mDatabaseFile; field in DatabaseCursorTest 58 mDatabaseFile = new File(dbDir, "database_test.db"); in setUp() 59 if (mDatabaseFile.exists()) { in setUp() 60 mDatabaseFile.delete(); in setUp() 62 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setUp() 70 mDatabaseFile.delete(); in tearDown()
|
D | CursorWrapperTest.java | 49 private File mDatabaseFile; field in CursorWrapperTest 490 mDatabaseFile = new File(dbDir, "cursor_test.db"); in setupDatabase() 491 if (mDatabaseFile.exists()) { in setupDatabase() 492 mDatabaseFile.delete(); in setupDatabase() 494 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setupDatabase() 509 mDatabaseFile.delete(); in closeDatabase()
|
D | DatabaseUtilsTest.java | 44 private File mDatabaseFile; field in DatabaseUtilsTest 57 mDatabaseFile = new File(dbDir, "database_test.db"); in setUp() 58 if (mDatabaseFile.exists()) { in setUp() 59 mDatabaseFile.delete(); in setUp() 61 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setUp() 74 mDatabaseFile.delete(); in tearDown()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | CursorAdapterTest.java | 74 private File mDatabaseFile; field in CursorAdapterTest 84 mDatabaseFile = new File(dbDir, "database_test.db"); in setup() 85 if (mDatabaseFile.exists()) { in setup() 86 mDatabaseFile.delete(); in setup() 88 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setup() 108 mDatabaseFile.delete(); in teardown()
|
D | CursorTreeAdapterTest.java | 80 private File mDatabaseFile; field in CursorTreeAdapterTest 119 mDatabaseFile = new File(dbDir, "database_test.db"); in setup() 120 if (mDatabaseFile.exists()) { in setup() 121 mDatabaseFile.delete(); in setup() 123 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setup() 157 mDatabaseFile.delete(); in teardown()
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteDatabaseTest.java | 62 private File mDatabaseFile; field in SQLiteDatabaseTest 90 mDatabaseFile = getContext().getDatabasePath(DATABASE_FILE_NAME); in setUp() 91 mDatabaseDir = mDatabaseFile.getParent(); in setUp() 92 mDatabaseFile.getParentFile().mkdirs(); // directory may not exist in setUp() 93 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile, null); in setUp() 109 SQLiteDatabase.deleteDatabase(mDatabaseFile); in closeAndDeleteDatabase() 1537 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, null); in testReaderGetsOldVersionOfDataWhenWriterIsInXact() 1610 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, null); in testExceptionsFromEnableWriteAheadLogging() 1657 mDatabase = SQLiteDatabase.openDatabase(mDatabaseFile.getPath(), null, in testEnableThenDisableWriteAheadLoggingUsingOpenFlag() 1769 mDatabase = SQLiteDatabase.openDatabase(mDatabaseFile, params); in testOpenDatabaseLookasideConfig() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 916 File mDatabaseFile; in testAccessDatabase() local 959 mDatabaseFile = mContext.getDatabasePath(DATABASE_NAME + i); in testAccessDatabase() 960 assertTrue(mDatabaseFile.exists()); in testAccessDatabase() 962 mDatabaseFile = new File(actualDBPath, DATABASE_NAME + i); in testAccessDatabase() 963 assertFalse(mDatabaseFile.exists()); in testAccessDatabase()
|