/cts/tests/app/src/android/app/cts/ |
D | AlertDialog_BuilderCursorTest.java | 69 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 | 61 private File mDatabaseFile; field in CursorJoinerTest 75 mDatabaseFile.delete(); in tearDown() 234 mDatabaseFile = new File(dbDir, "database_test.db"); in setupDatabase() 235 if (mDatabaseFile.exists()) { in setupDatabase() 236 mDatabaseFile.delete(); in setupDatabase() 238 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setupDatabase() 239 assertNotNull(mDatabaseFile); in setupDatabase()
|
D | MergeCursorTest.java | 62 private File mDatabaseFile; field in MergeCursorTest 95 mDatabaseFile.delete(); in tearDown() 365 mDatabaseFile = new File(dbDir, "database_test.db"); in setupDatabase() 366 if (mDatabaseFile.exists()) { in setupDatabase() 367 mDatabaseFile.delete(); in setupDatabase() 369 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setupDatabase() 370 assertNotNull(mDatabaseFile); in setupDatabase()
|
D | AbstractCursorTest.java | 83 private File mDatabaseFile; field in AbstractCursorTest 111 if (mDatabaseFile.exists()) { in tearDown() 112 mDatabaseFile.delete(); in tearDown() 541 mDatabaseFile = new File(dbDir, "database_test.db"); in setupDatabase() 542 if (mDatabaseFile.exists()) { in setupDatabase() 543 mDatabaseFile.delete(); in setupDatabase() 545 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setupDatabase() 546 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 | 68 private File mDatabaseFile; field in CursorWrapperTest 540 mDatabaseFile = new File(dbDir, "cursor_test.db"); in setupDatabase() 541 if (mDatabaseFile.exists()) { in setupDatabase() 542 mDatabaseFile.delete(); in setupDatabase() 544 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setupDatabase() 559 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 | SQLiteRawStatementTest.java | 61 private File mDatabaseFile; field in SQLiteRawStatementTest 72 mDatabaseFile = mContext.getDatabasePath(DATABASE_FILE_NAME); in setUp() 73 mDatabaseFile.getParentFile().mkdirs(); // directory may not exist in setUp() 74 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile, null); in setUp() 85 SQLiteDatabase.deleteDatabase(mDatabaseFile); in closeAndDeleteDatabase()
|
D | SQLiteDatabaseTest.java | 94 private File mDatabaseFile; field in SQLiteDatabaseTest 128 mDatabaseFile = getContext().getDatabasePath(DATABASE_FILE_NAME); in setUp() 129 mDatabaseDir = mDatabaseFile.getParent(); in setUp() 130 mDatabaseFile.getParentFile().mkdirs(); // directory may not exist in setUp() 131 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile, null); in setUp() 146 SQLiteDatabase.deleteDatabase(mDatabaseFile); in closeAndDeleteDatabase() 1694 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, null); in testReaderGetsOldVersionOfDataWhenWriterIsInXact() 1768 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, null); in testExceptionsFromEnableWriteAheadLogging() 1818 mDatabase = SQLiteDatabase.openDatabase(mDatabaseFile.getPath(), null, in testEnableThenDisableWriteAheadLoggingUsingOpenFlag() 1935 mDatabase = SQLiteDatabase.openDatabase(mDatabaseFile, params); in testOpenDatabaseLookasideConfig() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 1041 File mDatabaseFile; in testAccessDatabase() local 1084 mDatabaseFile = mContext.getDatabasePath(DATABASE_NAME + i); in testAccessDatabase() 1085 assertTrue(mDatabaseFile.exists()); in testAccessDatabase() 1087 mDatabaseFile = new File(actualDBPath, DATABASE_NAME + i); in testAccessDatabase() 1088 assertFalse(mDatabaseFile.exists()); in testAccessDatabase()
|