Searched refs:hasObserver (Results 1 – 9 of 9) 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()
636 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 …]
633 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 …]
136 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 …]
140 boolean hasObserver() { in hasObserver() method in ObjectAdapter.DataObservable221 public final boolean hasObserver() { in hasObserver() method in ObjectAdapter222 return mObservable.hasObserver(); in hasObserver()
1124 public boolean hasObserver(TimeBaseObs observer) { in hasObserver() method in BatteryStatsImpl.TimeBase