/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseErrorHandlerTest.java | 34 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 …]
|
D | DatabaseStressTest.java | 35 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()
|
D | DatabaseLockTest.java | 41 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()
|
D | DatabaseStatementTest.java | 39 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()
|
D | DatabaseCursorTest.java | 47 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()
|
D | DatabaseGeneralTest.java | 60 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()
|
D | NewDatabasePerformanceTests.java | 66 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/ |
D | SQLiteCursorTest.java | 39 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/ |
D | RecoverableKeyGeneratorTest.java | 71 private File mDatabaseFile; field in RecoverableKeyGeneratorTest 77 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp() 93 mDatabaseFile.delete(); in tearDown()
|
D | PlatformKeyManagerTest.java | 86 private File mDatabaseFile; field in PlatformKeyManagerTest 95 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp() 109 mDatabaseFile.delete(); in tearDown()
|
D | KeySyncTaskTest.java | 111 private File mDatabaseFile; field in KeySyncTaskTest 122 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp() 157 mDatabaseFile.delete(); in tearDown()
|
D | RecoverableKeyStoreManagerTest.java | 164 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/ |
D | RecoverableKeyStoreDbTest.java | 58 private File mDatabaseFile; field in RecoverableKeyStoreDbTest 69 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp() 76 mDatabaseFile.delete(); in tearDown()
|