Searched refs:backupDir (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/services/core/java/com/android/server/rollback/ |
D | RollbackStore.java | 226 File backupDir = new File(mRollbackDataDir, Integer.toString(rollbackId)); in createNonStagedRollback() local 227 return new Rollback(rollbackId, backupDir, originalSessionId, /* isStaged */ false, userId, in createNonStagedRollback() 238 File backupDir = new File(mRollbackDataDir, Integer.toString(rollbackId)); in createStagedRollback() local 239 return new Rollback(rollbackId, backupDir, originalSessionId, /* isStaged */ true, userId, in createStagedRollback() 363 File backupDir = new File(mRollbackHistoryDir, dirName + "-" + suffix); in saveRollbackToHistory() local 364 saveRollback(rollback, backupDir); in saveRollbackToHistory() 378 private static Rollback loadRollback(File backupDir) throws IOException { in loadRollback() argument 380 File rollbackJsonFile = new File(backupDir, "rollback.json"); in loadRollback() 384 return rollbackFromJson(dataJson, backupDir); in loadRollback() 391 static Rollback rollbackFromJson(JSONObject dataJson, File backupDir) in rollbackFromJson() argument [all …]
|
D | Rollback.java | 212 Rollback(int rollbackId, File backupDir, int originalSessionId, boolean isStaged, int userId, in Rollback() argument 223 mBackupDir = backupDir; in Rollback() 235 Rollback(RollbackInfo info, File backupDir, Instant timestamp, int originalSessionId, in Rollback() argument 241 mBackupDir = backupDir; in Rollback()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | RollbackUnitTest.java | 78 private Rollback createStagedRollback(int rollbackId, File backupDir, int originalSessionId) { in createStagedRollback() argument 79 return new Rollback(rollbackId, backupDir, originalSessionId, /* isStaged */ true, USER, in createStagedRollback() 83 private Rollback createNonStagedRollback(int rollbackId, File backupDir) { in createNonStagedRollback() argument 84 return new Rollback(rollbackId, backupDir, -1, /* isStaged */ false, USER, in createNonStagedRollback()
|
/frameworks/base/services/usage/java/com/android/server/usage/ |
D | UsageStatsDatabase.java | 454 final File backupDir = new File(mBackupsDir, Long.toString(token)); in doUpgradeLocked() local 455 backupDir.mkdirs(); in doUpgradeLocked() 456 if (!backupDir.exists()) { in doUpgradeLocked() 458 "Failed to create backup directory " + backupDir.getAbsolutePath()); in doUpgradeLocked() 462 new File(backupDir, mVersionFile.getName()).toPath(), in doUpgradeLocked() 470 final File backupIntervalDir = new File(backupDir, mIntervalDirs[i].getName()); in doUpgradeLocked() 523 final File backupDir = new File(mBackupsDir, Long.toString(token)); in continueUpgradeLocked() local 533 final File backedUpInterval = new File(backupDir, mIntervalDirs[i].getName()); in continueUpgradeLocked()
|