Searched refs:observer3 (Results 1 – 2 of 2) sorted by relevance
87 BatteryStatsImpl.TimeBaseObs observer3 = Mockito.mock(BatteryStatsImpl.TimeBaseObs.class); in testRunning() local92 tb.add(observer3); in testRunning()95 Assert.assertTrue(tb.hasObserver(observer3)); in testRunning()98 tb.remove(observer3); in testRunning()101 Assert.assertFalse(tb.hasObserver(observer3)); in testRunning()131 Mockito.reset(observer3); in testRunning()
125 TestObserver observer3 = new TestObserver(OBSERVER_NAME_3); in testRegistration() local132 watchdog.startObservingHealth(observer3, Arrays.asList(APP_A), LONG_DURATION); in testRegistration()143 assertEquals(1, watchdog.getPackages(observer3).size()); in testRegistration()144 assertTrue(watchdog.getPackages(observer3).contains(APP_A)); in testRegistration()157 assertEquals(1, watchdog.getPackages(observer3).size()); in testRegistration()158 assertTrue(watchdog.getPackages(observer3).contains(APP_A)); in testRegistration()170 assertEquals(1, watchdog.getPackages(observer3).size()); in testRegistration()171 assertTrue(watchdog.getPackages(observer3).contains(APP_A)); in testRegistration()183 assertNull(watchdog.getPackages(observer3)); in testRegistration()535 TestObserver observer3 = new TestObserver(OBSERVER_NAME_3, in testExplicitHealthChecks() local[all …]