Searched refs:persistentObserver (Results 1 – 1 of 1) sorted by relevance
1179 TestObserver persistentObserver = new TestObserver(OBSERVER_NAME_1); in testPersistentObserverWatchesPackage() local1180 persistentObserver.setPersistent(true); in testPersistentObserverWatchesPackage()1181 persistentObserver.setMayObservePackages(true); in testPersistentObserverWatchesPackage()1183 watchdog.startObservingHealth(persistentObserver, Arrays.asList(APP_B), SHORT_DURATION); in testPersistentObserverWatchesPackage()1187 assertThat(persistentObserver.mHealthCheckFailedPackages).containsExactly(APP_A); in testPersistentObserverWatchesPackage()1197 TestObserver persistentObserver = new TestObserver(OBSERVER_NAME_1); in testPersistentObserverDoesNotWatchPackage() local1198 persistentObserver.setPersistent(true); in testPersistentObserverDoesNotWatchPackage()1199 persistentObserver.setMayObservePackages(false); in testPersistentObserverDoesNotWatchPackage()1201 watchdog.startObservingHealth(persistentObserver, Arrays.asList(APP_B), SHORT_DURATION); in testPersistentObserverDoesNotWatchPackage()1205 assertThat(persistentObserver.mHealthCheckFailedPackages).isEmpty(); in testPersistentObserverDoesNotWatchPackage()