Home
last modified time | relevance | path

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

/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java95 private static final String APP_A = "com.package.a"; field in PackageWatchdogTest
217 watchdog.startObservingHealth(observer, Arrays.asList(APP_A), SHORT_DURATION); in testRegistration_singleObserver()
219 Arrays.asList(new VersionedPackage(APP_A, VERSION_CODE)), in testRegistration_singleObserver()
224 assertThat(observer.mHealthCheckFailedPackages).containsExactly(APP_A); in testRegistration_singleObserver()
233 watchdog.startObservingHealth(observer1, Arrays.asList(APP_A), SHORT_DURATION); in testRegistration_multiObservers()
234 watchdog.startObservingHealth(observer2, Arrays.asList(APP_A, APP_B), SHORT_DURATION); in testRegistration_multiObservers()
236 Arrays.asList(new VersionedPackage(APP_A, VERSION_CODE), in testRegistration_multiObservers()
242 assertThat(observer1.mHealthCheckFailedPackages).containsExactly(APP_A); in testRegistration_multiObservers()
243 assertThat(observer2.mHealthCheckFailedPackages).containsExactly(APP_A, APP_B); in testRegistration_multiObservers()
251 watchdog.startObservingHealth(observer, Arrays.asList(APP_A), SHORT_DURATION); in testUnregistration_singleObserver()
[all …]
DCrashRecoveryTest.java93 private static final String APP_A = "com.package.a"; field in CrashRecoveryTest
99 private static final RollbackInfo ROLLBACK_INFO_LOW = getRollbackInfo(APP_A, VERSION_CODE, 1,
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/rollback/
DRollbackPackageHealthObserverTest.java99 private static final String APP_A = "com.package.a"; field in RollbackPackageHealthObserverTest
169 VersionedPackage testFailedPackage = new VersionedPackage(APP_A, VERSION_CODE); in testHealthCheckLevels()
222 assertFalse(observer.mayObservePackage(APP_A)); in testMayObservePackage_withoutAnyRollback()
236 when(mMockPackageManager.getApplicationInfo(APP_A, 0)).thenReturn(info); in testMayObservePackage_forPersistentApp()
237 assertTrue(observer.mayObservePackage(APP_A)); in testMayObservePackage_forPersistentApp()
249 when(mMockPackageManager.getApplicationInfo(APP_A, 0)) in testMayObservePackage_forNonPersistentApp()
251 assertFalse(observer.mayObservePackage(APP_A)); in testMayObservePackage_forNonPersistentApp()
261 VersionedPackage appAFrom = new VersionedPackage(APP_A, VERSION_CODE_2); in healthCheckFailed_impactLevelLow_onePackage()
262 VersionedPackage appATo = new VersionedPackage(APP_A, VERSION_CODE); in healthCheckFailed_impactLevelLow_onePackage()
292 VersionedPackage appAFrom = new VersionedPackage(APP_A, VERSION_CODE_2); in healthCheckFailed_impactLevelHigh_onePackage()
[all …]