Home
last modified time | relevance | path

Searched refs:rollbackId (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/services/core/java/com/android/server/rollback/
DRollbackPackageHealthObserver.java128 int rollbackId = rollback.getRollbackId(); in execute()
130 mPendingStagedRollbackIds.add(rollbackId); in execute()
133 listenForStagedSessionReady(rollbackManager, rollbackId, in execute()
135 handleStagedSessionChange(rollbackManager, rollbackId, listener, in execute()
185 int rollbackId = popLastStagedRollbackId(); in onBootCompleted() local
186 if (rollbackId == INVALID_ROLLBACK_ID) { in onBootCompleted()
193 if (rollbackId == info.getRollbackId()) { in onBootCompleted()
200 Slog.e(TAG, "rollback info not found for last staged rollback: " + rollbackId); in onBootCompleted()
274 int rollbackId, VersionedPackage moduleMetadataPackage) { in listenForStagedSessionReady() argument
279 rollbackId, this /* BroadcastReceiver */, moduleMetadataPackage); in listenForStagedSessionReady()
[all …]
DRollbackStore.java197 RollbackData createNonStagedRollback(int rollbackId) { in createNonStagedRollback() argument
198 File backupDir = new File(mRollbackDataDir, Integer.toString(rollbackId)); in createNonStagedRollback()
199 return new RollbackData(rollbackId, backupDir, -1); in createNonStagedRollback()
206 RollbackData createStagedRollback(int rollbackId, int stagedSessionId) { in createStagedRollback() argument
207 File backupDir = new File(mRollbackDataDir, Integer.toString(rollbackId)); in createStagedRollback()
208 return new RollbackData(rollbackId, backupDir, stagedSessionId); in createStagedRollback()
DRollbackData.java111 RollbackData(int rollbackId, File backupDir, int stagedSessionId) { in RollbackData() argument
112 this.info = new RollbackInfo(rollbackId, in RollbackData()
DAppDataRollbackHelper.java93 public boolean restoreAppData(int rollbackId, PackageRollbackInfo packageRollbackInfo, in restoreAppData() argument
123 userId, rollbackId, storageFlags); in restoreAppData() local
136 public void destroyAppDataSnapshot(int rollbackId, PackageRollbackInfo packageRollbackInfo, in destroyAppDataSnapshot() argument
146 ceSnapshotInode, rollbackId, storageFlags); in destroyAppDataSnapshot() local
DRollbackManagerServiceImpl.java346 public void commitRollback(int rollbackId, ParceledListSlice causePackages, in commitRollback() argument
355 commitRollbackInternal(rollbackId, causePackages.getList(), in commitRollback()
394 private void commitRollbackInternal(int rollbackId, List<VersionedPackage> causePackages, in commitRollbackInternal() argument
398 RollbackData data = getRollbackForId(rollbackId); in commitRollbackInternal()
1407 private RollbackData getRollbackForId(int rollbackId) { in getRollbackForId() argument
1414 if (data.info.getRollbackId() == rollbackId) { in getRollbackForId()
1441 int rollbackId; in allocateRollbackIdLocked() local
1443 rollbackId = mRandom.nextInt(Integer.MAX_VALUE - 1) + 1; in allocateRollbackIdLocked()
1444 if (!mAllocatedRollbackIds.get(rollbackId, false)) { in allocateRollbackIdLocked()
1445 mAllocatedRollbackIds.put(rollbackId, true); in allocateRollbackIdLocked()
[all …]
/frameworks/base/core/java/android/content/rollback/
DRollbackInfo.java50 public RollbackInfo(int rollbackId, List<PackageRollbackInfo> packages, boolean isStaged, in RollbackInfo() argument
52 this.mRollbackId = rollbackId; in RollbackInfo()
DRollbackManager.java203 public void commitRollback(int rollbackId, @NonNull List<VersionedPackage> causePackages, in commitRollback() argument
206 mBinder.commitRollback(rollbackId, new ParceledListSlice(causePackages), in commitRollback()
DIRollbackManager.aidl29 void commitRollback(int rollbackId, in ParceledListSlice causePackages, in commitRollback() argument
/frameworks/base/tests/RollbackTest/RollbackTest/src/com/android/tests/rollback/
DRollbackTestUtils.java147 static void rollback(int rollbackId, VersionedPackage... causePackages) in rollback() argument
150 rm.commitRollback(rollbackId, Arrays.asList(causePackages), in rollback()