Home
last modified time | relevance | path

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

/frameworks/base/core/java/com/android/internal/util/
DFileRotator.java114 final File backupFile = new File(mBasePath, name); in FileRotator() local
119 backupFile.renameTo(file); in FileRotator()
236 final File backupFile; in rewriteSingle() local
248 backupFile = new File(mBasePath, name + SUFFIX_BACKUP); in rewriteSingle()
249 file.renameTo(backupFile); in rewriteSingle()
255 backupFile.delete(); in rewriteSingle()
259 backupFile.renameTo(file); in rewriteSingle()
265 backupFile = new File(mBasePath, name + SUFFIX_NO_BACKUP); in rewriteSingle()
266 backupFile.createNewFile(); in rewriteSingle()
272 backupFile.delete(); in rewriteSingle()
[all …]
/frameworks/native/cmds/rawbu/
Dbackup.cpp716 const char* backupFile = "/sdcard/backup.dat"; in main() local
719 backupFile = argv[optind]; in main()
735 res = android::restore_data(backupFile); in main()
742 res = android::backup_data(backupFile); in main()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java170 File backupFile = mContext.getDatabasePath(getDatabaseName() in backupDatabase() local
172 if (backupFile.exists()) { in backupDatabase()
175 databaseFile.renameTo(backupFile); in backupDatabase()
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java1572 File backupFile = getUserPackagesStateBackupFile(userId); in readPackageRestrictionsLPr() local
1573 if (backupFile.exists()) { in readPackageRestrictionsLPr()
1575 str = new FileInputStream(backupFile); in readPackageRestrictionsLPr()
1926 File backupFile = getUserPackagesStateBackupFile(userId); in writePackageRestrictionsLPr() local
1933 if (!backupFile.exists()) { in writePackageRestrictionsLPr()
1934 if (!userPackagesStateFile.renameTo(backupFile)) { in writePackageRestrictionsLPr()
2038 backupFile.delete(); in writePackageRestrictionsLPr()