Searched refs:mRollbackManager (Results 1 – 3 of 3) sorted by relevance
84 RollbackManager mRollbackManager; field in RollbackPackageHealthObserverTest172 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 …]
49 RollbackManager mRollbackManager; field in MainActivity58 mRollbackManager = getApplicationContext().getSystemService(RollbackManager.class); in onCreate()62 List<RollbackInfo> availableRollbacks = mRollbackManager.getAvailableRollbacks(); in onCreate()95 mRollbackManager.commitRollback(mIdsToRollback.get(i), in initTriggerRollbackButton()
121 RollbackManager mRollbackManager; field in CrashRecoveryTest274 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()