Home
last modified time | relevance | path

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

/frameworks/base/tests/PackageWatchdog/src/com/android/server/
DPackageWatchdogTest.java414 TestObserver observerFirst = new TestObserver(OBSERVER_NAME_1, in testPackageFailureNotifyLeastImpactSuccessively() local
420 watchdog.startObservingHealth(observerFirst, Arrays.asList(APP_A), LONG_DURATION); in testPackageFailureNotifyLeastImpactSuccessively()
431 assertEquals(1, observerFirst.mFailedPackages.size()); in testPackageFailureNotifyLeastImpactSuccessively()
432 assertEquals(APP_A, observerFirst.mFailedPackages.get(0)); in testPackageFailureNotifyLeastImpactSuccessively()
436 observerFirst.mImpact = PackageHealthObserverImpact.USER_IMPACT_HIGH; in testPackageFailureNotifyLeastImpactSuccessively()
437 observerFirst.mFailedPackages.clear(); in testPackageFailureNotifyLeastImpactSuccessively()
450 assertEquals(0, observerFirst.mFailedPackages.size()); in testPackageFailureNotifyLeastImpactSuccessively()
454 observerFirst.mFailedPackages.clear(); in testPackageFailureNotifyLeastImpactSuccessively()
465 assertEquals(1, observerFirst.mFailedPackages.size()); in testPackageFailureNotifyLeastImpactSuccessively()
466 assertEquals(APP_A, observerFirst.mFailedPackages.get(0)); in testPackageFailureNotifyLeastImpactSuccessively()
[all …]