Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java34 private File mDatabaseFile; field in DatabaseErrorHandlerTest
42 mDatabaseFile = new File(dbDir, DB_NAME); in setUp()
43 if (mDatabaseFile.exists()) { in setUp()
44 mDatabaseFile.delete(); in setUp()
46 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in setUp()
54 mDatabaseFile.delete(); in tearDown()
61 assertTrue(mDatabaseFile.exists()); in testNoCorruptionCase()
68 BufferedWriter writer = new BufferedWriter(new FileWriter(mDatabaseFile.getPath())); in testDatabaseIsCorrupt()
71 assertTrue(mDatabaseFile.exists()); in testDatabaseIsCorrupt()
84 if (mDatabaseFile.exists()) { in testDatabaseIsCorrupt()
[all …]
DDatabaseStressTest.java35 private File mDatabaseFile; field in DatabaseStressTest
42 mDatabaseFile = c.getDatabasePath("database_test.db"); in setUp()
43 if (mDatabaseFile.exists()) { in setUp()
44 mDatabaseFile.delete(); in setUp()
59 mDatabaseFile.delete(); in tearDown()
DDatabaseLockTest.java41 private File mDatabaseFile; field in DatabaseLockTest
48 mDatabaseFile = new File(parentDir, "database_test.db"); in setUp()
50 if (mDatabaseFile.exists()) { in setUp()
51 mDatabaseFile.delete(); in setUp()
53 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setUp()
60 mDatabaseFile.delete(); in tearDown()
DDatabaseStatementTest.java39 private File mDatabaseFile; field in DatabaseStatementTest
45 mDatabaseFile = new File(dbDir, "database_test.db"); in setUp()
47 if (mDatabaseFile.exists()) { in setUp()
48 mDatabaseFile.delete(); in setUp()
50 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setUp()
58 mDatabaseFile.delete(); in tearDown()
DDatabaseCursorTest.java47 private File mDatabaseFile; field in DatabaseCursorTest
53 mDatabaseFile = new File(dbDir, "database_test.db"); in setUp()
55 if (mDatabaseFile.exists()) { in setUp()
56 mDatabaseFile.delete(); in setUp()
58 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setUp()
66 mDatabaseFile.delete(); in tearDown()
DDatabaseGeneralTest.java60 private File mDatabaseFile; field in DatabaseGeneralTest
66 mDatabaseFile = new File(dbDir, "database_test.db"); in setUp()
67 if (mDatabaseFile.exists()) { in setUp()
68 mDatabaseFile.delete(); in setUp()
70 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setUp()
78 SQLiteDatabase.deleteDatabase(mDatabaseFile); in tearDown()
913 mDatabase = SQLiteDatabase.openDatabase(mDatabaseFile, params); in testOpenDatabaseLookasideConfig()
937 if (dbStat.dbName.endsWith(mDatabaseFile.getName())) { in verifyLookasideStats()
948 assertTrue("No dbstat found for " + mDatabaseFile.getName(), dbStatFound); in verifyLookasideStats()
1048 mDatabase = SQLiteDatabase.openDatabase(mDatabaseFile, params); in testCloseIdleConnection()
DNewDatabasePerformanceTests.java66 protected File mDatabaseFile; field in NewDatabasePerformanceTests.PerformanceBase
72 mDatabaseFile = new File("/sdcard", "perf_database_test.db"); in setUp()
73 if (mDatabaseFile.exists()) { in setUp()
74 SQLiteDatabase.deleteDatabase(mDatabaseFile); in setUp()
81 mDatabase = SQLiteDatabase.openDatabase(mDatabaseFile, params.build()); in setUp()
103 SQLiteDatabase.deleteDatabase(mDatabaseFile); in tearDown()
/frameworks/base/core/tests/coretests/src/android/database/sqlite/
DSQLiteCursorTest.java39 private File mDatabaseFile; field in SQLiteCursorTest
46 mDatabaseFile = new File(dbDir, "sqlitecursor_test.db"); in setUp()
47 if (mDatabaseFile.exists()) { in setUp()
48 mDatabaseFile.delete(); in setUp()
50 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); in setUp()
59 mDatabaseFile.delete(); in tearDown()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverableKeyGeneratorTest.java71 private File mDatabaseFile; field in RecoverableKeyGeneratorTest
77 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp()
93 mDatabaseFile.delete(); in tearDown()
DPlatformKeyManagerTest.java86 private File mDatabaseFile; field in PlatformKeyManagerTest
95 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp()
109 mDatabaseFile.delete(); in tearDown()
DKeySyncTaskTest.java111 private File mDatabaseFile; field in KeySyncTaskTest
122 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp()
157 mDatabaseFile.delete(); in tearDown()
DRecoverableKeyStoreManagerTest.java164 private File mDatabaseFile; field in RecoverableKeyStoreManagerTest
175 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp()
205 mDatabaseFile.delete(); in tearDown()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverableKeyStoreDbTest.java58 private File mDatabaseFile; field in RecoverableKeyStoreDbTest
69 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp()
76 mDatabaseFile.delete(); in tearDown()