Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsDualTimerTest.java41 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()
DBatteryStatsTimeBaseTest.java92 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()
DBatteryStatsTimerTest.java248 Assert.assertEquals(true, timeBase.hasObserver(timer)); in testResetNoDetach()
283 Assert.assertEquals(false, timeBase.hasObserver(timer)); in testResetDetach()
DBatteryStatsServTest.java142 Assert.assertTrue(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()
145 Assert.assertFalse(bsi.getOnBatteryTimeBase().hasObserver(serv)); in testConstructAndDetach()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java701 public boolean hasObserver(TimeBaseObs observer) { in hasObserver() method in BatteryStatsImpl.TimeBase