HomeSort by relevance Sort by last modified time
    Searched defs:observer1 (Results 1 - 4 of 4) sorted by null

  /cts/tests/tests/database/src/android/database/cts/
ObservableTest.java 72 Object observer1 = new Object(); local
75 observable.registerObserver(observer1);
80 observable.registerObserver(observer1);
93 observable.registerObserver(observer1);
  /system/update_engine/update_manager/
variable_unittest.cc 113 BaseVariableObserver observer1; local
114 var.AddObserver(&observer1);
117 ASSERT_EQ(0U, observer1.calls_.size());
120 ASSERT_EQ(1U, observer1.calls_.size());
122 EXPECT_EQ(&var, observer1.calls_[0]);
130 EXPECT_EQ(2U, observer1.calls_.size());
133 var.RemoveObserver(&observer1);
163 BaseVariableObserverRemover observer1; local
166 var.AddObserver(&observer1);
170 observer1.OnCallRemoveObserver(&observer1)
    [all...]
  /frameworks/base/core/tests/coretests/src/com/android/internal/os/
BatteryStatsTimeBaseTest.java 84 BatteryStatsImpl.TimeBaseObs observer1 = Mockito.mock(BatteryStatsImpl.TimeBaseObs.class); local
89 tb.add(observer1);
92 Assert.assertTrue(tb.hasObserver(observer1));
98 Assert.assertTrue(tb.hasObserver(observer1));
121 Mockito.verify(observer1).onTimeStarted(14000, 100, 1000);
122 Mockito.verify(observer1, Mockito.never()).onTimeStopped(-1, -1, -1);
123 Mockito.verifyNoMoreInteractions(observer1);
128 Mockito.reset(observer1);
153 Mockito.verify(observer1).onTimeStopped(14002, 252, 1002);
154 Mockito.verify(observer1, Mockito.never()).onTimeStopped(-1, -1, -1)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
ObservableTest.java 195 DeleteTestObserver observer1, observer2; local
197 observable.addObserver(observer1 = new DeleteTestObserver(false));
201 assertTrue("Failed to notify all", observer1.updateCount() == 1
205 observable.addObserver(observer1 = new DeleteTestObserver(false));
209 assertTrue("Failed to notify all 2", observer1.updateCount() == 1

Completed in 1841 milliseconds