/frameworks/base/core/tests/coretests/src/android/database/ |
DatabaseErrorHandlerTest.java | 35 private File mDatabaseFile; 43 mDatabaseFile = new File(dbDir, DB_NAME); 44 if (mDatabaseFile.exists()) { 45 mDatabaseFile.delete(); 47 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, 55 mDatabaseFile.delete(); 62 assertTrue(mDatabaseFile.exists()); 69 BufferedWriter writer = new BufferedWriter(new FileWriter(mDatabaseFile.getPath())); 72 assertTrue(mDatabaseFile.exists()); 85 if (mDatabaseFile.exists()) [all...] |
DatabaseStressTest.java | 35 private File mDatabaseFile; 42 mDatabaseFile = c.getDatabasePath("database_test.db"); 43 if (mDatabaseFile.exists()) { 44 mDatabaseFile.delete(); 59 mDatabaseFile.delete();
|
DatabaseLockTest.java | 44 private File mDatabaseFile; 51 mDatabaseFile = new File(parentDir, "database_test.db"); 53 if (mDatabaseFile.exists()) { 54 mDatabaseFile.delete(); 56 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 63 mDatabaseFile.delete();
|
DatabaseStatementTest.java | 41 private File mDatabaseFile; 47 mDatabaseFile = new File(dbDir, "database_test.db"); 49 if (mDatabaseFile.exists()) { 50 mDatabaseFile.delete(); 52 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 60 mDatabaseFile.delete();
|
DatabaseCursorTest.java | 52 private File mDatabaseFile; 58 mDatabaseFile = new File(dbDir, "database_test.db"); 60 if (mDatabaseFile.exists()) { 61 mDatabaseFile.delete(); 63 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 71 mDatabaseFile.delete();
|
DatabasePerformanceTests.java | 81 protected File mDatabaseFile; 86 mDatabaseFile = new File("/tmp", "perf_database_test.db"); 87 if (mDatabaseFile.exists()) { 88 mDatabaseFile.delete(); 90 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 97 mDatabaseFile.delete(); [all...] |
NewDatabasePerformanceTests.java | 43 protected File mDatabaseFile; 46 mDatabaseFile = new File("/sdcard", "perf_database_test.db"); 47 if (mDatabaseFile.exists()) { 48 mDatabaseFile.delete(); 51 SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), 59 mDatabaseFile.delete();
|
DatabaseGeneralTest.java | 53 private File mDatabaseFile; 59 mDatabaseFile = new File(dbDir, "database_test.db"); 60 if (mDatabaseFile.exists()) { 61 mDatabaseFile.delete(); 63 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 71 mDatabaseFile.delete(); [all...] |
/frameworks/base/core/tests/coretests/src/android/database/sqlite/ |
SQLiteUnfinalizedExceptionTest.java | 28 private File mDatabaseFile; 35 mDatabaseFile = new File(dbDir, "UnfinalizedExceptionTest.db"); 36 if (mDatabaseFile.exists()) { 37 mDatabaseFile.delete(); 39 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 46 mDatabaseFile.delete();
|
SQLiteCursorTest.java | 33 private File mDatabaseFile; 40 mDatabaseFile = new File(dbDir, "sqlitecursor_test.db"); 41 if (mDatabaseFile.exists()) { 42 mDatabaseFile.delete(); 44 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 53 mDatabaseFile.delete();
|
SQLiteStatementTest.java | 30 private File mDatabaseFile; 37 mDatabaseFile = new File(dbDir, "database_test.db"); 38 if (mDatabaseFile.exists()) { 39 mDatabaseFile.delete(); 41 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 48 mDatabaseFile.delete();
|
DatabaseConnectionPoolTest.java | 39 private File mDatabaseFile; 47 mDatabaseFile = new File(dbDir, "database_test.db"); 48 if (mDatabaseFile.exists()) { 49 mDatabaseFile.delete(); 51 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 62 mDatabaseFile.delete();
|
SQLiteDatabaseTest.java | 45 private File mDatabaseFile; 65 mDatabaseFile.delete(); 70 mDatabaseFile = new File(dbDir, DB_NAME); 71 if (mDatabaseFile.exists()) { 72 mDatabaseFile.delete(); 74 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null, null); [all...] |
/cts/tests/tests/database/src/android/database/cts/ |
CursorJoinerTest.java | 50 private File mDatabaseFile; 61 mDatabaseFile.delete(); 248 mDatabaseFile = new File(dbDir, "database_test.db"); 249 if (mDatabaseFile.exists()) { 250 mDatabaseFile.delete(); 252 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 253 assertNotNull(mDatabaseFile);
|
MergeCursorTest.java | 47 private File mDatabaseFile; 77 mDatabaseFile.delete(); 455 mDatabaseFile = new File(dbDir, "database_test.db"); 456 if (mDatabaseFile.exists()) { 457 mDatabaseFile.delete(); 459 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 460 assertNotNull(mDatabaseFile);
|
AbstractCursorTest.java | 59 private File mDatabaseFile; 76 if (mDatabaseFile.exists()) { 77 mDatabaseFile.delete(); 638 mDatabaseFile = new File(dbDir, "database_test.db"); 639 if (mDatabaseFile.exists()) { 640 mDatabaseFile.delete(); 642 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 643 assertNotNull(mDatabaseFile);
|
CursorWrapperTest.java | 57 private File mDatabaseFile; 763 mDatabaseFile = new File(dbDir, "cursor_test.db"); 764 if (mDatabaseFile.exists()) { 765 mDatabaseFile.delete(); 767 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 782 mDatabaseFile.delete();
|
DatabaseCursorTest.java | 49 private File mDatabaseFile; 58 mDatabaseFile = new File(dbDir, "database_test.db"); 59 if (mDatabaseFile.exists()) { 60 mDatabaseFile.delete(); 62 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 70 mDatabaseFile.delete();
|
DatabaseUtilsTest.java | 50 private File mDatabaseFile; 63 mDatabaseFile = new File(dbDir, "database_test.db"); 64 if (mDatabaseFile.exists()) { 65 mDatabaseFile.delete(); 67 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 78 mDatabaseFile.delete(); [all...] |
/cts/tests/tests/widget/src/android/widget/cts/ |
CursorAdapterTest.java | 61 private File mDatabaseFile; 70 mDatabaseFile = new File(dbDir, "database_test.db"); 71 if (mDatabaseFile.exists()) { 72 mDatabaseFile.delete(); 74 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 94 mDatabaseFile.delete();
|
CursorTreeAdapterTest.java | 65 private File mDatabaseFile; 103 mDatabaseFile = new File(dbDir, "database_test.db"); 104 if (mDatabaseFile.exists()) { 105 mDatabaseFile.delete(); 107 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile.getPath(), null); 141 mDatabaseFile.delete();
|
/cts/tests/tests/content/src/android/content/cts/ |
ContextWrapperTest.java | 425 File mDatabaseFile; 471 mDatabaseFile = mContextWrapper.getDatabasePath(DATABASE_NAME + i); 472 assertTrue(mDatabaseFile.exists()); 474 mDatabaseFile = new File(actualDBPath, DATABASE_NAME + i); 475 assertFalse(mDatabaseFile.exists()); [all...] |
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
SQLiteDatabaseTest.java | 48 private File mDatabaseFile; 75 mDatabaseFile = getContext().getDatabasePath(DATABASE_FILE_NAME); 76 mDatabaseDir = mDatabaseFile.getParent(); 77 mDatabaseFile.getParentFile().mkdirs(); // directory may not exist 78 mDatabase = SQLiteDatabase.openOrCreateDatabase(mDatabaseFile, null); 89 mDatabaseFile.delete(); [all...] |