Home
last modified time | relevance | path

Searched refs:databaseFile (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/core/java/android/database/sqlite/
DSQLiteOpenHelper.java397 File databaseFile = new File(db.getPath()); in getDatabaseLocked() local
400 if (SQLiteDatabase.deleteDatabase(databaseFile)) { in getDatabaseLocked()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java119 File databaseFile = new File( in dbNameForUser() local
123 if (!databaseFile.exists()) { in dbNameForUser()
127 return databaseFile.getPath(); in dbNameForUser()
151 File databaseFile = mContext.getDatabasePath(getDatabaseName()); in dropDatabase() local
152 if (databaseFile.exists()) { in dropDatabase()
153 SQLiteDatabase.deleteDatabase(databaseFile); in dropDatabase()
163 File databaseFile = mContext.getDatabasePath(getDatabaseName()); in backupDatabase() local
164 if (!databaseFile.exists()) { in backupDatabase()
172 databaseFile.renameTo(backupFile); in backupDatabase()
/frameworks/base/media/java/android/mtp/
DMtpDatabase.java384 File databaseFile = context.getDatabasePath(devicePropertiesName); in initDeviceProperties() local
386 if (databaseFile.exists()) { in initDeviceProperties()
/frameworks/base/services/core/java/com/android/server/accounts/
DAccountManagerService.java6349 File databaseFile = new File(Environment.getDataSystemDeDirectory(userId),
6351 return databaseFile.getPath();
6355 File databaseFile = new File(Environment.getDataSystemCeDirectory(userId),
6357 return databaseFile.getPath();
6362 File databaseFile = new File(Environment.getUserSystemDirectory(userId),
6370 if (oldFile.exists() && !databaseFile.exists()) {
6379 if (!oldFile.renameTo(databaseFile)) {
6381 "User dir cannot be migrated: " + databaseFile);
6385 return databaseFile.getPath();