HomeSort by relevance Sort by last modified time
    Searched full:observer (Results 1 - 25 of 821) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/libchrome/base/process/
port_provider_mac.cc 12 void PortProvider::AddObserver(Observer* observer) {
14 observer_list_.AddObserver(observer);
17 void PortProvider::RemoveObserver(Observer* observer) {
19 observer_list_.RemoveObserver(observer);
24 FOR_EACH_OBSERVER(Observer, observer_list_, OnReceivedTaskPort(process));
port_provider_mac.h 26 class Observer {
28 virtual ~Observer() {};
42 // Observer interface.
43 void AddObserver(Observer* observer);
44 void RemoveObserver(Observer* observer);
54 base::ObserverList<Observer> observer_list_;
  /frameworks/base/core/java/android/database/
Observable.java 27 * @param T The observer type.
31 * The list of observers. An observer can be in the list at most
37 * Adds an observer to the list. The observer cannot be null and it must not already
39 * @param observer the observer to register
40 * @throws IllegalArgumentException the observer is null
41 * @throws IllegalStateException the observer is already registered
43 public void registerObserver(T observer) {
44 if (observer == null)
    [all...]
ContentObservable.java 31 public void registerObserver(ContentObserver observer) {
32 super.registerObserver(observer);
36 * Invokes {@link ContentObserver#dispatchChange(boolean)} on each observer.
39 * to the observer if it has indicated that it wants to receive self-change
54 * Invokes {@link ContentObserver#dispatchChange(boolean, Uri)} on each observer.
58 * to the observer if it has indicated that it wants to receive self-change
68 for (ContentObserver observer : mObservers) {
69 if (!selfChange || observer.deliverSelfNotifications()) {
70 observer.dispatchChange(selfChange, uri);
77 * Invokes {@link ContentObserver#onChange} on each observer
    [all...]
  /external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/
ShadowBaseAdapter.java 35 * Registers the observer.
37 * @param observer observer
40 public void registerDataSetObserver(DataSetObserver observer) {
41 dataSetObservers.add(observer);
45 * Unregisters the observer if it can be found. Nothing otherwise.
47 * @param observer observer
50 public void unregisterDataSetObserver(DataSetObserver observer) {
51 dataSetObservers.remove(observer);
    [all...]
  /frameworks/opt/setupwizard/library/main/src/com/android/setupwizardlib/items/
AbstractItemHierarchy.java 32 private ArrayList<Observer> mObservers = new ArrayList<>();
53 public void registerObserver(Observer observer) {
54 mObservers.add(observer);
58 public void unregisterObserver(Observer observer) {
59 mObservers.remove(observer);
63 for (Observer observer : mObservers) {
64 observer.onChanged(this)
    [all...]
ItemHierarchy.java 30 * Observer for any changes in this hierarchy. If anything updated that causes this hierarchy to
31 * show different content, this observer should be called.
33 interface Observer {
42 * Register an observer to observe changes for this item hierarchy.
44 void registerObserver(Observer observer);
47 * Unregister a previously registered observer.
49 void unregisterObserver(Observer observer);
  /external/libchrome/base/
scoped_observer.h 18 // attached itself to as an observer. When ScopedObserver is destroyed it
19 // removes the object as an observer from all sources it has been added to.
20 template <class Source, class Observer>
23 explicit ScopedObserver(Observer* observer) : observer_(observer) {}
29 // Adds the object passed to the constructor as an observer on |source|.
35 // Remove the object passed to the constructor as an observer from |source|.
56 Observer* observer_;
  /external/libweave/third_party/chromium/base/
scoped_observer.h 17 // attached itself to as an observer. When ScopedObserver is destroyed it
18 // removes the object as an observer from all sources it has been added to.
19 template <class Source, class Observer>
22 explicit ScopedObserver(Observer* observer) : observer_(observer) {}
28 // Adds the object passed to the constructor as an observer on |source|.
34 // Remove the object passed to the constructor as an observer from |source|.
55 Observer* observer_;
  /packages/apps/UnifiedEmail/src/com/android/mail/utils/
MailObservable.java 35 public void registerObserver(DataSetObserver observer) {
37 super.registerObserver(observer);
38 LogUtils.d(LOG_TAG, "IN register(%s)Observer: %s before=%d after=%d",
39 mName, observer, count, mObservers.size());
43 public void unregisterObserver(DataSetObserver observer) {
45 super.unregisterObserver(observer);
46 LogUtils.d(LOG_TAG, "IN unregister(%s)Observer: %s before=%d after=%d",
47 mName, observer, count, mObservers.size());
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
ObservableTest.java 21 import java.util.Observer;
27 static class TestObserver implements Observer {
43 static class DeleteTestObserver implements Observer {
76 Observer observer; field in class:ObservableTest
95 * java.util.Observable#addObserver(java.util.Observer)
99 // java.util.Observable.addObserver(java.util.Observer)
102 assertEquals("Failed to add observer", 1, observable.countObservers());
104 assertEquals("Duplicate observer", 1, observable.countObservers());
109 fail("Expected adding a null observer to throw a NPE.")
243 final Observer observer = (observable1, data) -> updated.set(observable1); local
    [all...]
  /cts/tests/tests/database/src/android/database/cts/
ObservableTest.java 26 // Test register a null observer object
33 Object observer = new Object(); local
34 // In the beginning, Observable has no observer object, nothing to be unregistered.
36 observable.unregisterObserver(observer);
48 // Test register a observer object
49 observable.registerObserver(observer);
53 observable.registerObserver(observer);
58 // Test unregister a observer object
59 observable.unregisterObserver(observer);
60 // If unregister function was executed successfully, the input observer object will b
    [all...]
  /external/webrtc/webrtc/modules/rtp_rtcp/source/
bitrate.h 30 class Observer;
31 Bitrate(Clock* clock, Observer* observer);
51 class Observer {
53 Observer() {}
54 virtual ~Observer() {}
73 Observer* const observer_;
  /external/v8/test/mjsunit/es7/regress/
regress-443982.js 8 function observer(r) { function
17 Array.observe(arr, observer);
21 Object.deliverChangeRecords(observer);
  /external/webrtc/webrtc/call/
bitrate_allocator.cc 56 for (const auto& observer : bitrate_observers_)
57 sum_min_bitrates += observer.second.min_bitrate;
64 int BitrateAllocator::AddBitrateObserver(BitrateObserver* observer,
70 FindObserverConfigurationPair(observer);
84 observer, BitrateConfiguration(min_bitrate_bps, max_bitrate_bps)));
92 if (kv.first == observer)
98 void BitrateAllocator::RemoveBitrateObserver(BitrateObserver* observer) {
101 FindObserverConfigurationPair(observer);
114 for (const auto& observer : bitrate_observers_) {
115 *min_bitrate_sum_bps += observer.second.min_bitrate
    [all...]
bitrate_allocator.h 43 // |observer| updates bitrates if already in use.
46 // Returns bitrate allocated for the bitrate observer.
47 int AddBitrateObserver(BitrateObserver* observer,
51 void RemoveBitrateObserver(BitrateObserver* observer);
60 // respective minimum bitrate, satisfying one observer after the other.
71 ObserverConfiguration(BitrateObserver* observer, uint32_t bitrate)
72 : observer(observer), min_bitrate(bitrate) {}
73 BitrateObserver* const observer; member in struct:webrtc::BitrateAllocator::ObserverConfiguration
83 const BitrateObserver* observer) EXCLUSIVE_LOCKS_REQUIRED(crit_sect_)
    [all...]
  /external/clang/test/CodeGenObjC/
block-6.m 14 // CHECK-NEXT: [[OBSERVER:%.*]] = getelementptr inbounds [[OBSERVER_T]], [[OBSERVER_T]]* [[T0]], i32 0, i32 6
15 // CHECK-NEXT: store i8* [[T1]], i8** [[OBSERVER]]
16 __block id observer = ^{ return observer; };
  /dalvik/dx/src/com/android/dx/cf/direct/
StdAttributeFactory.java 80 int offset, int length, ParseObserver observer) {
84 return deprecated(cf, offset, length, observer);
87 return enclosingMethod(cf, offset, length, observer);
90 return innerClasses(cf, offset, length, observer);
94 observer);
98 observer);
101 return synthetic(cf, offset, length, observer);
104 return signature(cf, offset, length, observer);
107 return sourceFile(cf, offset, length, observer);
113 return constantValue(cf, offset, length, observer);
    [all...]
  /libcore/luni/src/test/java/libcore/java/util/
OldObserverTest.java 20 import java.util.Observer;
25 class Mock_Observer implements Observer {
45 Mock_Observer observer = null; local
46 observable.addObserver(observer = new Mock_Observer());
48 assertEquals(0, observer.getUpdateCount());
51 assertEquals(1, observer.getUpdateCount());
  /external/v8/test/mjsunit/es7/
object-observe.js 33 allObservers.forEach(function(observer) { observer.reset(); });
47 var observer = {
77 observer.callback = function(r) {
81 observer.records = r;
82 observer.callbackCount++;
85 observer.reset();
86 allObservers.push(observer);
87 return observer;
90 var observer = createObserver()
    [all...]
  /external/pdfium/fpdfsdk/src/javascript/
JS_Runtime.h 23 class Observer {
28 virtual ~Observer() {}
68 void AddObserver(Observer* observer);
69 void RemoveObserver(Observer* observer);
83 std::set<Observer*> m_observers;
  /system/connectivity/shill/
property_observer_unittest.cc 59 bool GetSavedValue(const PropertyObserver<bool>& observer) {
60 return observer.saved_value_;
70 PropertyObserver<bool> observer(bool_accessor_,
73 EXPECT_TRUE(GetSavedValue(observer));
80 observer.Update();
84 observer.Update();
91 observer.Update();
92 EXPECT_FALSE(GetSavedValue(observer));
99 observer.Update();
  /system/bt/service/test/
adapter_unittest.cpp 60 class TestObserver final : public bluetooth::Adapter::Observer {
86 // bluetooth::Adapter::Observer override:
124 TestObserver observer(adapter_.get());
138 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, observer.prev_state());
139 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_ON, observer.cur_state());
150 EXPECT_EQ(bluetooth::ADAPTER_STATE_TURNING_ON, observer.prev_state());
151 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.cur_state());
158 TestObserver observer(adapter_.get());
172 EXPECT_EQ(bluetooth::ADAPTER_STATE_OFF, observer.prev_state());
173 EXPECT_EQ(bluetooth::ADAPTER_STATE_ON, observer.cur_state())
    [all...]
  /external/clang/test/SemaObjC/
mismatched-undefined-method.m 9 - (void)BrightnessAssistantUnregisterForNotifications:(void*) observer; // expected-note {{previous definition is here}}
12 - (void)BrightnessAssistantUnregisterForNotifications:(CGDirectDisplayID) displayID, void* observer // expected-warning {{conflicting parameter types in implementation of 'BrightnessAssistantUnregisterForNotifications:': 'void *' vs 'CGDirectDisplayID'}}
  /frameworks/base/services/tests/servicestests/src/com/android/server/
NetworkManagementServiceTest.java 89 BaseNetworkObserver observer = mock(BaseNetworkObserver.class); local
90 doReturn(new Binder()).when(observer).asBinder(); // Used by registerObserver.
91 mNMService.registerObserver(observer);
95 reset(observer);
97 // Now send NetworkManagementService messages and ensure that the observer methods are
105 expectSoon(observer).interfaceAdded("rmnet12");
108 expectSoon(observer).interfaceRemoved("eth1");
120 expectSoon(observer).interfaceStatusChanged("clat4", true);
123 expectSoon(observer).interfaceLinkStateChanged("rmnet0", false);
132 expectSoon(observer).limitReached("data", "rmnet_usb0")
    [all...]

Completed in 2755 milliseconds

1 2 3 4 5 6 7 8 91011>>