Searched refs:backupFile (Results 1 – 5 of 5) sorted by relevance
114 final File backupFile = new File(mBasePath, name); in FileRotator() local119 backupFile.renameTo(file); in FileRotator()236 final File backupFile; in rewriteSingle() local248 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 …]
715 const char* backupFile = "/sdcard/backup.dat"; in main() local718 backupFile = argv[optind]; in main()734 res = android::restore_data(backupFile); in main()741 res = android::backup_data(backupFile); in main()
441 final File backupFile = new File(backupIntervalDir, files[j].getName()); in doUpgradeLocked() local446 + i + " to " + backupFile.toString()); in doUpgradeLocked()451 Files.move(files[j].toPath(), backupFile.toPath(), in doUpgradeLocked()
166 File backupFile = mContext.getDatabasePath(getDatabaseName() in backupDatabase() local168 if (backupFile.exists()) { in backupDatabase()171 databaseFile.renameTo(backupFile); in backupDatabase()
1512 File backupFile = getUserPackagesStateBackupFile(userId); in readPackageRestrictionsLPr() local1513 if (backupFile.exists()) { in readPackageRestrictionsLPr()1515 str = new FileInputStream(backupFile); in readPackageRestrictionsLPr()1949 File backupFile = getUserPackagesStateBackupFile(userId); in writePackageRestrictionsLPr() local1956 if (!backupFile.exists()) { in writePackageRestrictionsLPr()1957 if (!userPackagesStateFile.renameTo(backupFile)) { in writePackageRestrictionsLPr()2106 backupFile.delete(); in writePackageRestrictionsLPr()