Searched refs:backupFile (Results 1 – 4 of 4) 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 …]
716 const char* backupFile = "/sdcard/backup.dat"; in main() local719 backupFile = argv[optind]; in main()735 res = android::restore_data(backupFile); in main()742 res = android::backup_data(backupFile); in main()
170 File backupFile = mContext.getDatabasePath(getDatabaseName() in backupDatabase() local172 if (backupFile.exists()) { in backupDatabase()175 databaseFile.renameTo(backupFile); in backupDatabase()
1572 File backupFile = getUserPackagesStateBackupFile(userId); in readPackageRestrictionsLPr() local1573 if (backupFile.exists()) { in readPackageRestrictionsLPr()1575 str = new FileInputStream(backupFile); in readPackageRestrictionsLPr()1926 File backupFile = getUserPackagesStateBackupFile(userId); in writePackageRestrictionsLPr() local1933 if (!backupFile.exists()) { in writePackageRestrictionsLPr()1934 if (!userPackagesStateFile.renameTo(backupFile)) { in writePackageRestrictionsLPr()2038 backupFile.delete(); in writePackageRestrictionsLPr()