Home
last modified time | relevance | path

Searched refs:backupDir (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackData.java68 public final File backupDir; field in RollbackData
111 RollbackData(int rollbackId, File backupDir, int stagedSessionId) { in RollbackData() argument
117 this.backupDir = backupDir; in RollbackData()
126 RollbackData(RollbackInfo info, File backupDir, Instant timestamp, int stagedSessionId, in RollbackData() argument
129 this.backupDir = backupDir; in RollbackData()
DRollbackStore.java198 File backupDir = new File(mRollbackDataDir, Integer.toString(rollbackId)); in createNonStagedRollback() local
199 return new RollbackData(rollbackId, backupDir, -1); in createNonStagedRollback()
207 File backupDir = new File(mRollbackDataDir, Integer.toString(rollbackId)); in createStagedRollback() local
208 return new RollbackData(rollbackId, backupDir, stagedSessionId); in createStagedRollback()
219 File targetDir = new File(data.backupDir, packageName); in backupPackageCodePath()
232 File targetDir = new File(data.backupDir, packageName); in getPackageCodePaths()
246 File targetDir = new File(data.backupDir, info.getPackageName()); in deletePackageCodePaths()
264 PrintWriter pw = new PrintWriter(new File(data.backupDir, "rollback.json")); in saveRollbackData()
276 removeFile(data.backupDir); in deleteRollbackData()
283 private static RollbackData loadRollbackData(File backupDir) throws IOException { in loadRollbackData() argument
[all …]
/frameworks/base/services/usage/java/com/android/server/usage/
DUsageStatsDatabase.java414 final File backupDir = new File(mBackupsDir, Long.toString(token)); in doUpgradeLocked() local
415 backupDir.mkdirs(); in doUpgradeLocked()
416 if (!backupDir.exists()) { in doUpgradeLocked()
418 "Failed to create backup directory " + backupDir.getAbsolutePath()); in doUpgradeLocked()
422 new File(backupDir, mVersionFile.getName()).toPath(), in doUpgradeLocked()
430 final File backupIntervalDir = new File(backupDir, mIntervalDirs[i].getName()); in doUpgradeLocked()
480 final File backupDir = new File(mBackupsDir, Long.toString(token)); in continueUpgradeLocked() local
485 final File backedUpInterval = new File(backupDir, mIntervalDirs[i].getName()); in continueUpgradeLocked()