Home
last modified time | relevance | path

Searched refs:backupFile (Results 1 – 5 of 5) 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.cpp715 const char* backupFile = "/sdcard/backup.dat"; in main() local
718 backupFile = argv[optind]; in main()
734 res = android::restore_data(backupFile); in main()
741 res = android::backup_data(backupFile); in main()
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java441 final File backupFile = new File(backupIntervalDir, files[j].getName()); in doUpgradeLocked() local
446 + i + " to " + backupFile.toString()); in doUpgradeLocked()
451 Files.move(files[j].toPath(), backupFile.toPath(), in doUpgradeLocked()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
DDatabaseHelper.java166 File backupFile = mContext.getDatabasePath(getDatabaseName() in backupDatabase() local
168 if (backupFile.exists()) { in backupDatabase()
171 databaseFile.renameTo(backupFile); in backupDatabase()
/frameworks/base/services/core/java/com/android/server/pm/
DSettings.java1512 File backupFile = getUserPackagesStateBackupFile(userId); in readPackageRestrictionsLPr() local
1513 if (backupFile.exists()) { in readPackageRestrictionsLPr()
1515 str = new FileInputStream(backupFile); in readPackageRestrictionsLPr()
1949 File backupFile = getUserPackagesStateBackupFile(userId); in writePackageRestrictionsLPr() local
1956 if (!backupFile.exists()) { in writePackageRestrictionsLPr()
1957 if (!userPackagesStateFile.renameTo(backupFile)) { in writePackageRestrictionsLPr()
2106 backupFile.delete(); in writePackageRestrictionsLPr()