Home
last modified time | relevance | path

Searched refs:mDatabaseFile (Results 1 – 12 of 12) sorted by relevance

/cts/tests/app/src/android/app/cts/
DAlertDialog_BuilderCursorTest.java69 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/
DCursorJoinerTest.java61 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()
DMergeCursorTest.java62 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()
DAbstractCursorTest.java83 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()
DDatabaseCursorTest.java49 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()
DCursorWrapperTest.java68 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()
DDatabaseUtilsTest.java44 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/
DCursorAdapterTest.java74 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()
DCursorTreeAdapterTest.java80 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/
DSQLiteRawStatementTest.java61 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()
DSQLiteDatabaseTest.java94 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/
DContextTest.java1041 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()