Home
last modified time | relevance | path

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

/aosp12/frameworks/base/core/java/com/android/internal/util/
H A DFileRotator.java115 final File backupFile = new File(mBasePath, name); in FileRotator() local
120 backupFile.renameTo(file); in FileRotator()
237 final File backupFile; in rewriteSingle() local
249 backupFile = new File(mBasePath, name + SUFFIX_BACKUP); in rewriteSingle()
250 file.renameTo(backupFile); in rewriteSingle()
256 backupFile.delete(); in rewriteSingle()
260 backupFile.renameTo(file); in rewriteSingle()
266 backupFile = new File(mBasePath, name + SUFFIX_NO_BACKUP); in rewriteSingle()
267 backupFile.createNewFile(); in rewriteSingle()
273 backupFile.delete(); in rewriteSingle()
[all …]
/aosp12/frameworks/base/packages/WallpaperBackup/src/com/android/wallpaperbackup/
H A DWallpaperBackupAgent.java130 backupFile(empty, data); in onFullBackup()
167 backupFile(infoStage, data); in onFullBackup()
178 backupFile(imageStage, data); in onFullBackup()
204 backupFile(lockImageStage, data); in onFullBackup()
227 protected void backupFile(File file, FullBackupDataOutput data) { in backupFile() method in WallpaperBackupAgent
/aosp12/frameworks/native/cmds/rawbu/
H A 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()
/aosp12/frameworks/base/packages/WallpaperBackup/test/src/com/android/wallpaperbackup/
H A DWallpaperBackupAgentTest.java251 protected void backupFile(File file, FullBackupDataOutput data) { in backupFile() method in WallpaperBackupAgentTest.IsolatedWallpaperBackupAgent
/aosp12/frameworks/base/services/usage/java/com/android/server/usage/
H A DUsageStatsDatabase.java469 final File backupFile = new File(backupIntervalDir, files[j].getName()); in doUpgradeLocked() local
474 + i + " to " + backupFile.toString()); in doUpgradeLocked()
479 Files.move(files[j].toPath(), backupFile.toPath(), in doUpgradeLocked()
/aosp12/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/
H A DDatabaseHelper.java167 File backupFile = mContext.getDatabasePath(getDatabaseName() in backupDatabase() local
169 if (backupFile.exists()) { in backupDatabase()
172 databaseFile.renameTo(backupFile); in backupDatabase()
/aosp12/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DTelephonyBackupAgent.java468 backupFile(chunk, fileName, data); in backupAll()
499 private void backupFile(BackupChunkInformation chunkInformation, String fileName, in backupFile() method in TelephonyBackupAgent
/aosp12/frameworks/base/services/core/java/com/android/server/pm/
H A DSettings.java1569 File backupFile = getUserPackagesStateBackupFile(userId);
1570 if (backupFile.exists()) {
1572 str = new FileInputStream(backupFile);
1955 File backupFile = getUserPackagesStateBackupFile(userId);
1962 if (!backupFile.exists()) {
1963 if (!userPackagesStateFile.renameTo(backupFile)) {
2092 backupFile.delete();