/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...] |
/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);
|
/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
|
/external/v8/test/cctest/heap/ |
test-spaces.cc | 827 Observer observer1(128); 828 new_space->AddInlineAllocationObserver(&observer1); 833 CHECK_EQ(observer1.count(), 0); 837 CHECK_EQ(observer1.count(), 1); 841 CHECK_EQ(observer1.count(), 2); 845 CHECK_EQ(observer1.count(), 3); 852 CHECK_EQ(observer1.count(), 19); 859 CHECK_EQ(observer1.count(), 20); 863 CHECK_EQ(observer1.count(), 20); 867 new_space->RemoveInlineAllocationObserver(&observer1); [all...] |
/external/v8/test/mjsunit/es6/ |
debug-stepin-microtasks.js | 69 Object.observe(dummy, observer1); 76 function observer1() { function
|
/external/webrtc/talk/app/webrtc/ |
peerconnectioninterface_unittest.cc | [all...] |