Home
last modified time | relevance | path

Searched refs:hasObserver (Results 1 – 9 of 9) 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/support/leanback/src/androidTest/java/androidx/leanback/app/
DRowsFragmentTest.java636 assertTrue(adapter1.hasObserver()); in browseFragmentSetNullAdapter()
637 assertTrue(wrappedAdapter.hasObserver()); in browseFragmentSetNullAdapter()
646 assertFalse(adapter1.hasObserver()); in browseFragmentSetNullAdapter()
647 assertFalse(wrappedAdapter.hasObserver()); in browseFragmentSetNullAdapter()
662 assertTrue(adapter1.hasObserver()); in browseFragmentSetNullAdapter()
676 assertTrue(adapter1.hasObserver()); in browseFragmentChangeAdapter()
677 assertTrue(wrappedAdapter.hasObserver()); in browseFragmentChangeAdapter()
686 assertFalse(adapter1.hasObserver()); in browseFragmentChangeAdapter()
687 assertFalse(wrappedAdapter.hasObserver()); in browseFragmentChangeAdapter()
690 assertTrue(adapter2.hasObserver()); in browseFragmentChangeAdapter()
[all …]
DRowsSupportFragmentTest.java633 assertTrue(adapter1.hasObserver()); in browseFragmentSetNullAdapter()
634 assertTrue(wrappedAdapter.hasObserver()); in browseFragmentSetNullAdapter()
643 assertFalse(adapter1.hasObserver()); in browseFragmentSetNullAdapter()
644 assertFalse(wrappedAdapter.hasObserver()); in browseFragmentSetNullAdapter()
659 assertTrue(adapter1.hasObserver()); in browseFragmentSetNullAdapter()
673 assertTrue(adapter1.hasObserver()); in browseFragmentChangeAdapter()
674 assertTrue(wrappedAdapter.hasObserver()); in browseFragmentChangeAdapter()
683 assertFalse(adapter1.hasObserver()); in browseFragmentChangeAdapter()
684 assertFalse(wrappedAdapter.hasObserver()); in browseFragmentChangeAdapter()
687 assertTrue(adapter2.hasObserver()); in browseFragmentChangeAdapter()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/usage/
DAppTimeLimitControllerTests.java136 assertTrue("Observer wasn't added", hasObserver(OBS_ID1)); in testAddObserver()
138 assertTrue("Observer wasn't added", hasObserver(OBS_ID2)); in testAddObserver()
139 assertTrue("Observer wasn't added", hasObserver(OBS_ID1)); in testAddObserver()
146 assertTrue("Observer wasn't added", hasObserver(OBS_ID1)); in testRemoveObserver()
148 assertFalse("Observer wasn't removed", hasObserver(OBS_ID1)); in testRemoveObserver()
155 assertTrue("Observer wasn't added", hasObserver(OBS_ID1)); in testObserverReAdd()
160 assertFalse("Observer wasn't removed", hasObserver(OBS_ID1)); in testObserverReAdd()
218 assertFalse(hasObserver(OBS_ID1)); in testTimeout()
237 assertFalse(hasObserver(OBS_ID2)); in testAlreadyRunning()
255 assertFalse(hasObserver(OBS_ID1)); in testAlreadyRunningTimeout()
[all …]
/frameworks/support/leanback/src/main/java/androidx/leanback/widget/
DObjectAdapter.java140 boolean hasObserver() { in hasObserver() method in ObjectAdapter.DataObservable
221 public final boolean hasObserver() { in hasObserver() method in ObjectAdapter
222 return mObservable.hasObserver(); in hasObserver()
/frameworks/base/core/java/com/android/internal/os/
DBatteryStatsImpl.java1124 public boolean hasObserver(TimeBaseObs observer) { in hasObserver() method in BatteryStatsImpl.TimeBase