Searched refs:hasObserver (Results 1 – 5 of 5) sorted by relevance
41 assertTrue(timeBase.hasObserver(timer)); in testResetDetach()42 assertFalse(subTimeBase.hasObserver(timer)); in testResetDetach()43 assertFalse(timeBase.hasObserver(timer.getSubTimer())); in testResetDetach()44 assertTrue(subTimeBase.hasObserver(timer.getSubTimer())); in testResetDetach()50 assertTrue(timeBase.hasObserver(timer)); in testResetDetach()51 assertTrue(subTimeBase.hasObserver(timer.getSubTimer())); in testResetDetach()57 assertFalse(timeBase.hasObserver(timer)); in testResetDetach()58 assertFalse(timeBase.hasObserver(timer.getSubTimer())); in testResetDetach()
92 Assert.assertTrue(tb.hasObserver(observer1)); in testRunning()93 Assert.assertTrue(tb.hasObserver(observer2)); in testRunning()94 Assert.assertTrue(tb.hasObserver(observer3)); in testRunning()98 Assert.assertTrue(tb.hasObserver(observer1)); in testRunning()99 Assert.assertTrue(tb.hasObserver(observer2)); in testRunning()100 Assert.assertFalse(tb.hasObserver(observer3)); in testRunning()
248 Assert.assertEquals(true, timeBase.hasObserver(timer)); in testResetNoDetach()283 Assert.assertEquals(false, timeBase.hasObserver(timer)); in testResetDetach()
142 Assert.assertTrue(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()145 Assert.assertFalse(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()
701 public boolean hasObserver(TimeBaseObs observer) { in hasObserver() method in BatteryStatsImpl.TimeBase