/frameworks/base/services/core/java/com/android/server/rollback/ |
D | AppDataRollbackHelper.java | 67 int rollbackId, PackageRollbackInfo packageRollbackInfo, int[] userIds) { in snapshotAppData() argument 80 doSnapshot(packageRollbackInfo, user, rollbackId, storageFlags); in snapshotAppData() 94 public boolean restoreAppData(int rollbackId, PackageRollbackInfo packageRollbackInfo, in restoreAppData() argument 122 doRestoreOrWipe(packageRollbackInfo, userId, rollbackId, appId, seInfo, storageFlags); in restoreAppData() 128 PackageRollbackInfo packageRollbackInfo, int userId, int rollbackId, int flags) { in doSnapshot() argument 133 userId, rollbackId, packageRollbackInfo.getPackageName()); in doSnapshot() 144 packageRollbackInfo.getPackageName(), userId, rollbackId, flags); in doSnapshot() 158 int rollbackId, int appId, String seInfo, int flags) { in doRestoreOrWipe() argument 168 userId, rollbackId, packageRollbackInfo.getPackageName()); in doRestoreOrWipe() 185 appId, seInfo, userId, rollbackId, flags); in doRestoreOrWipe() local [all …]
|
D | RollbackPackageHealthObserver.java | 195 int rollbackId, @Nullable VersionedPackage logPackage) { in listenForStagedSessionReady() argument 200 rollbackId, this /* BroadcastReceiver */, logPackage); in listenForStagedSessionReady() 209 private void handleStagedSessionChange(RollbackManager rollbackManager, int rollbackId, in handleStagedSessionChange() argument 218 if ((rollbackId == recentRollback.getRollbackId()) in handleStagedSessionChange() 222 if (sessionInfo.isStagedSessionReady() && markStagedSessionHandled(rollbackId)) { in handleStagedSessionChange() 224 saveStagedRollbackId(rollbackId, logPackage); in handleStagedSessionChange() 231 && markStagedSessionHandled(rollbackId)) { in handleStagedSessionChange() 252 private boolean markStagedSessionHandled(int rollbackId) { in markStagedSessionHandled() argument 254 return mPendingStagedRollbackIds.remove(rollbackId); in markStagedSessionHandled() 305 String rollbackId = values[0]; in readStagedRollbackIds() local [all …]
|
D | RollbackManagerServiceImpl.java | 343 public void commitRollback(int rollbackId, ParceledListSlice causePackages, in commitRollback() argument 352 commitRollbackInternal(rollbackId, causePackages.getList(), in commitRollback() 392 private void commitRollbackInternal(int rollbackId, List<VersionedPackage> causePackages, in commitRollbackInternal() argument 394 Slog.i(TAG, "commitRollback id=" + rollbackId + " caller=" + callerPackageName); in commitRollbackInternal() 396 Rollback rollback = getRollbackForId(rollbackId); in commitRollbackInternal() 1195 private Rollback getRollbackForId(int rollbackId) { in getRollbackForId() argument 1199 if (rollback.info.getRollbackId() == rollbackId) { in getRollbackForId() 1212 int rollbackId; in allocateRollbackIdLocked() local 1214 rollbackId = mRandom.nextInt(Integer.MAX_VALUE - 1) + 1; in allocateRollbackIdLocked() 1215 if (!mAllocatedRollbackIds.get(rollbackId, false)) { in allocateRollbackIdLocked() [all …]
|
D | RollbackStore.java | 229 Rollback createNonStagedRollback(int rollbackId, int userId, String installerPackageName, in createNonStagedRollback() argument 231 File backupDir = new File(mRollbackDataDir, Integer.toString(rollbackId)); in createNonStagedRollback() 232 return new Rollback(rollbackId, backupDir, -1, userId, installerPackageName, in createNonStagedRollback() 240 Rollback createStagedRollback(int rollbackId, int stagedSessionId, int userId, in createStagedRollback() argument 243 File backupDir = new File(mRollbackDataDir, Integer.toString(rollbackId)); in createStagedRollback() 244 return new Rollback(rollbackId, backupDir, stagedSessionId, userId, installerPackageName, in createStagedRollback()
|
D | WatchdogRollbackLogger.java | 118 static void logRollbackStatusOnBoot(Context context, int rollbackId, String logPackageName, in logRollbackStatusOnBoot() argument 124 if (rollbackId == info.getRollbackId()) { in logRollbackStatusOnBoot() 131 Slog.e(TAG, "rollback info not found for last staged rollback: " + rollbackId); in logRollbackStatusOnBoot()
|
D | Rollback.java | 199 Rollback(int rollbackId, File backupDir, int stagedSessionId, int userId, in Rollback() argument 202 this.info = new RollbackInfo(rollbackId, in Rollback() 217 Rollback(int rollbackId, File backupDir, int stagedSessionId, int userId, in Rollback() argument 219 this(rollbackId, backupDir, stagedSessionId, userId, installerPackageName, null, in Rollback()
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ApexManager.java | 326 public abstract long snapshotCeData(int userId, int rollbackId, String apexPackageName); in snapshotCeData() argument 334 public abstract boolean restoreCeData(int userId, int rollbackId, String apexPackageName); in restoreCeData() argument 342 public abstract boolean destroyDeSnapshots(int rollbackId); in destroyDeSnapshots() argument 820 public long snapshotCeData(int userId, int rollbackId, String apexPackageName) { in snapshotCeData() argument 832 return waitForApexService().snapshotCeData(userId, rollbackId, apexModuleName); in snapshotCeData() 840 public boolean restoreCeData(int userId, int rollbackId, String apexPackageName) { in restoreCeData() argument 852 waitForApexService().restoreCeData(userId, rollbackId, apexModuleName); in restoreCeData() 861 public boolean destroyDeSnapshots(int rollbackId) { in destroyDeSnapshots() argument 863 waitForApexService().destroyDeSnapshots(rollbackId); in destroyDeSnapshots() 1109 public long snapshotCeData(int userId, int rollbackId, String apexPackageName) { in snapshotCeData() argument [all …]
|
D | StagingManager.java | 251 apexSessionParams.rollbackId = retrieveRollbackIdForCommitSession(session.sessionId); in submitSessionToApexService() 254 int rollbackId = mSessionRollbackIds.get(session.sessionId, -1); in submitSessionToApexService() local 255 if (rollbackId != -1) { in submitSessionToApexService() 257 apexSessionParams.rollbackId = rollbackId; in submitSessionToApexService() 1405 int rollbackId = rm.notifyStagedSession(session.sessionId); in handlePreRebootVerification_Start() local 1406 if (rollbackId != -1) { in handlePreRebootVerification_Start() 1408 mSessionRollbackIds.put(session.sessionId, rollbackId); in handlePreRebootVerification_Start()
|
/frameworks/base/core/java/android/content/rollback/ |
D | RollbackInfo.java | 50 public RollbackInfo(int rollbackId, List<PackageRollbackInfo> packages, boolean isStaged, in RollbackInfo() argument 52 this.mRollbackId = rollbackId; in RollbackInfo()
|
D | RollbackManager.java | 203 public void commitRollback(int rollbackId, @NonNull List<VersionedPackage> causePackages, in commitRollback() argument 206 mBinder.commitRollback(rollbackId, new ParceledListSlice(causePackages), in commitRollback()
|
D | IRollbackManager.aidl | 29 void commitRollback(int rollbackId, in ParceledListSlice causePackages, in commitRollback() argument
|
/frameworks/base/services/tests/servicestests/src/com/android/server/rollback/ |
D | RollbackUnitTest.java | 82 int rollbackId = 123; in newEmptyStagedRollbackDefaults() local 86 Rollback rollback = new Rollback(rollbackId, file, sessionId, USER, INSTALLER); in newEmptyStagedRollbackDefaults() 96 int rollbackId = 123; in newEmptyNonStagedRollbackDefaults() local 99 Rollback rollback = new Rollback(rollbackId, file, -1, USER, INSTALLER); in newEmptyNonStagedRollbackDefaults()
|
D | AppDataRollbackHelperTest.java | 120 private static Rollback createRollbackForId(int rollbackId) { in createRollbackForId() argument 121 return new Rollback(rollbackId, new File("/does/not/exist"), -1, in createRollbackForId()
|