/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseErrorHandlerTest.java | 37 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 …]
|
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() 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()
|
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()
|
D | SQLiteDatabaseTest.java | 69 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()
|
D | SQLiteRawStatementTest.java | 55 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/ |
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 | 98 private File mDatabaseFile; field in PlatformKeyManagerTest 107 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp() 121 mDatabaseFile.delete(); in tearDown()
|
D | KeySyncTaskTest.java | 114 private File mDatabaseFile; field in KeySyncTaskTest 125 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp() 160 mDatabaseFile.delete(); in tearDown()
|
D | RecoverableKeyStoreManagerTest.java | 180 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/ |
D | RecoverableKeyStoreDbTest.java | 58 private File mDatabaseFile; field in RecoverableKeyStoreDbTest 69 mDatabaseFile = context.getDatabasePath(DATABASE_FILE_NAME); in setUp() 76 mDatabaseFile.delete(); in tearDown()
|