Home
last modified time | relevance | path

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

/frameworks/base/services/tests/mockingservicestests/src/com/android/server/rollback/
DRollbackPackageHealthObserverTest.java84 RollbackManager mRollbackManager; field in RollbackPackageHealthObserverTest
172 when(mMockContext.getSystemService(RollbackManager.class)).thenReturn(mRollbackManager); in testHealthCheckLevels()
183 when(mRollbackManager.getAvailableRollbacks()).thenReturn(List.of(mRollbackInfo)); in testHealthCheckLevels()
203 when(mRollbackManager.getAvailableRollbacks()).thenReturn(List.of()); in testHealthCheckLevels()
220 when(mMockContext.getSystemService(RollbackManager.class)).thenReturn(mRollbackManager); in testMayObservePackage_withoutAnyRollback()
221 when(mRollbackManager.getAvailableRollbacks()).thenReturn(List.of()); in testMayObservePackage_withoutAnyRollback()
232 when(mMockContext.getSystemService(RollbackManager.class)).thenReturn(mRollbackManager); in testMayObservePackage_forPersistentApp()
233 when(mRollbackManager.getAvailableRollbacks()).thenReturn(List.of(mRollbackInfo)); in testMayObservePackage_forPersistentApp()
245 when(mMockContext.getSystemService(RollbackManager.class)).thenReturn(mRollbackManager); in testMayObservePackage_forNonPersistentApp()
246 when(mRollbackManager.getAvailableRollbacks()).thenReturn(List.of(mRollbackInfo)); in testMayObservePackage_forNonPersistentApp()
[all …]
/frameworks/base/tests/RollbackTest/SampleRollbackApp/src/com/android/sample/rollbackapp/
DMainActivity.java49 RollbackManager mRollbackManager; field in MainActivity
58 mRollbackManager = getApplicationContext().getSystemService(RollbackManager.class); in onCreate()
62 List<RollbackInfo> availableRollbacks = mRollbackManager.getAvailableRollbacks(); in onCreate()
95 mRollbackManager.commitRollback(mIdsToRollback.get(i), in initTriggerRollbackButton()
/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DCrashRecoveryTest.java121 RollbackManager mRollbackManager; field in CrashRecoveryTest
274 when(mRollbackManager.getAvailableRollbacks()).thenReturn(List.of(ROLLBACK_INFO_HIGH, in testBootLoopWithRollbackPackageHealthObserver()
283 when(mRollbackManager.getAvailableRollbacks()).thenReturn(List.of(ROLLBACK_INFO_MANUAL)); in testBootLoopWithRollbackPackageHealthObserver()
318 when(mRollbackManager.getAvailableRollbacks()).thenReturn(List.of(ROLLBACK_INFO_HIGH, in testBootLoopWithRescuePartyAndRollbackPackageHealthObserver()
345 when(mRollbackManager.getAvailableRollbacks()).thenReturn(List.of(ROLLBACK_INFO_MANUAL)); in testBootLoopWithRescuePartyAndRollbackPackageHealthObserver()
366 when(mSpyContext.getSystemService(RollbackManager.class)).thenReturn(mRollbackManager); in setUpRollbackPackageHealthObserver()
367 when(mRollbackManager.getAvailableRollbacks()).thenReturn(List.of(ROLLBACK_INFO_LOW, in setUpRollbackPackageHealthObserver()