Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseErrorHandlerTest.java37 private File mDatabaseFile; field in DatabaseErrorHandlerTest
45 mDatabaseFile = new File(dbDir, DB_NAME); in setUp()
46 if (mDatabaseFile.exists()) { in setUp()
47 mDatabaseFile.delete(); in setUp()
49 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, in setUp()
57 mDatabaseFile.delete(); in tearDown()
64 assertTrue(mDatabaseFile.exists()); in testNoCorruptionCase()
70 BufferedWriter writer = new BufferedWriter(new FileWriter(mDatabaseFile.getPath())); in testDatabaseIsCorrupt()
73 assertTrue(mDatabaseFile.exists()); in testDatabaseIsCorrupt()
85 assertFalse(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()
921 if (dbStat.dbName.endsWith(mDatabaseFile.getName()) && !dbStat.arePoolStats) { in verifyLookasideStats()
932 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()
DSQLiteDatabaseTest.java69 private File mDatabaseFile; field in SQLiteDatabaseTest
76 mDatabaseFile = mContext.getDatabasePath(DATABASE_FILE_NAME); in setUp()
77 mDatabaseFile.getParentFile().mkdirs(); // directory may not exist in setUp()
78 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile, null); in setUp()
89 SQLiteDatabase.deleteDatabase(mDatabaseFile); in closeAndDeleteDatabase()
DSQLiteRawStatementTest.java55 private File mDatabaseFile; field in SQLiteRawStatementTest
62 mDatabaseFile = mContext.getDatabasePath(DATABASE_FILE_NAME); in setUp()
63 mDatabaseFile.getParentFile().mkdirs(); // directory may not exist in setUp()
64 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile, null); in setUp()
75 SQLiteDatabase.deleteDatabase(mDatabaseFile); in closeAndDeleteDatabase()
/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.java98 private File mDatabaseFile; field in PlatformKeyManagerTest
107 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp()
121 mDatabaseFile.delete(); in tearDown()
DKeySyncTaskTest.java114 private File mDatabaseFile; field in KeySyncTaskTest
125 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp()
160 mDatabaseFile.delete(); in tearDown()
DRecoverableKeyStoreManagerTest.java180 private File mDatabaseFile; field in RecoverableKeyStoreManagerTest
192 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp()
235 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()