Searched refs:hasObserver (Results 1 – 7 of 7) sorted by relevance
43 assertTrue(timeBase.hasObserver(timer)); in testResetDetach()44 assertFalse(subTimeBase.hasObserver(timer)); in testResetDetach()45 assertFalse(timeBase.hasObserver(timer.getSubTimer())); in testResetDetach()46 assertTrue(subTimeBase.hasObserver(timer.getSubTimer())); in testResetDetach()52 assertTrue(timeBase.hasObserver(timer)); in testResetDetach()53 assertTrue(subTimeBase.hasObserver(timer.getSubTimer())); in testResetDetach()59 assertFalse(timeBase.hasObserver(timer)); in testResetDetach()60 assertFalse(timeBase.hasObserver(timer.getSubTimer())); in testResetDetach()
93 Assert.assertTrue(tb.hasObserver(observer1)); in testRunning()94 Assert.assertTrue(tb.hasObserver(observer2)); in testRunning()95 Assert.assertTrue(tb.hasObserver(observer3)); in testRunning()99 Assert.assertTrue(tb.hasObserver(observer1)); in testRunning()100 Assert.assertTrue(tb.hasObserver(observer2)); in testRunning()101 Assert.assertFalse(tb.hasObserver(observer3)); in testRunning()
129 assertEquals(true, timeBase.hasObserver(timer)); in testReset()166 assertEquals(false, timeBase.hasObserver(timer)); in testResetAndDetach()
173 Assert.assertEquals(true, timeBase.hasObserver(timer)); in testResetNoDetach()196 Assert.assertEquals(false, timeBase.hasObserver(timer)); in testResetDetach()
98 Assert.assertTrue(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()101 Assert.assertFalse(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()
1194 public boolean hasObserver(TimeBaseObs observer) { in hasObserver() method in BatteryStatsImpl.TimeBase
94445 Lcom/android/internal/os/BatteryStatsImpl$TimeBase;->hasObserver(Lcom/android/internal/os/BatterySt…