Home
last modified time | relevance | path

Searched refs:ObserverList (Results 1 – 17 of 17) sorted by relevance

/external/libchrome/base/android/java/src/org/chromium/base/
DObserverList.java32 public class ObserverList<E> implements Iterable<E> { class
51 public ObserverList() {} in ObserverList() method in ObserverList
197 ObserverList.this.incrementIterationDepth(); in ObserverListIterator()
198 mListEndMarker = ObserverList.this.capacity(); in ObserverListIterator()
204 ObserverList.this.incrementIterationDepth(); in rewind()
205 mListEndMarker = ObserverList.this.capacity(); in rewind()
214 && ObserverList.this.getObserverAt(lookupIndex) == null) { in hasNext()
227 while (mIndex < mListEndMarker && ObserverList.this.getObserverAt(mIndex) == null) { in next()
230 if (mIndex < mListEndMarker) return ObserverList.this.getObserverAt(mIndex++); in next()
245 ObserverList.this.decrementIterationDepthAndCompactIfNeeded(); in compactListIfNeeded()
DApplicationStatus.java45 private ObserverList<ActivityStateListener> mListeners = new ObserverList<>();
65 public ObserverList<ActivityStateListener> getListeners() { in getListeners()
104 private static final ObserverList<ActivityStateListener> sGeneralActivityStateListeners =
105 new ObserverList<>();
111 private static final ObserverList<ApplicationStateListener> sApplicationStateListeners =
112 new ObserverList<>();
118 private static final ObserverList<WindowFocusChangedListener> sWindowFocusListeners =
119 new ObserverList<>();
DMemoryPressureListener.java55 private static final ObserverList<MemoryPressureCallback> sCallbacks = new ObserverList<>();
/external/libchrome/base/
Dobserver_list_unittest.cc59 Disrupter(ObserverList<Foo>* list, Foo* doomed, bool remove_self) in Disrupter()
61 Disrupter(ObserverList<Foo>* list, Foo* doomed) in Disrupter()
63 Disrupter(ObserverList<Foo>* list, bool remove_self) in Disrupter()
78 ObserverList<Foo>* list_;
204 ObserverList<Foo> observer_list; in TEST()
205 const ObserverList<Foo>& const_observer_list = observer_list; in TEST()
208 const ObserverList<Foo>::const_iterator it1 = const_observer_list.begin(); in TEST()
211 const ObserverList<Foo>::const_iterator it2 = it1; in TEST()
214 ObserverList<Foo>::const_iterator it3; in TEST()
225 const ObserverList<Foo>::iterator it1 = observer_list.begin(); in TEST()
[all …]
Dobserver_list.h98 class ObserverList
100 ObserverList<ObserverType, check_empty, allow_reentrancy>> {
113 explicit Iter(const ObserverList* list) in Iter()
114 : list_(const_cast<ObserverList*>(list)->AsWeakPtr()), in Iter()
206 WeakPtr<ObserverList> list_;
225 ObserverList() = default;
226 explicit ObserverList(ObserverListPolicy policy) : policy_(policy) {} in ObserverList() function
228 ~ObserverList() { in ~ObserverList()
299 DISALLOW_COPY_AND_ASSIGN(ObserverList);
303 using ReentrantObserverList = ObserverList<ObserverType, check_empty, true>;
Drun_loop.h197 ObserverList<RunLoop::NestingObserver> nesting_observers_;
/external/libchrome/base/android/javatests/src/org/chromium/base/
DObserverListTest.java47 private final ObserverList<Observer> mList;
50 FooAdder(ObserverList<Observer> list, Observer oblivious) { in FooAdder()
65 private final ObserverList<Observer> mList;
68 FooRemover(ObserverList<Observer> list, Observer innocent) { in FooRemover()
90 ObserverList<Observer> observerList = new ObserverList<Observer>(); in testRemoveWhileIteration()
128 ObserverList<Observer> observerList = new ObserverList<Observer>(); in testAddWhileIteration()
150 ObserverList<Integer> observerList = new ObserverList<Integer>(); in testIterator()
190 ObserverList<Integer> observerList = new ObserverList<Integer>(); in testRewindableIterator()
196 ObserverList.RewindableIterator<Integer> it = observerList.rewindableIterator(); in testRewindableIterator()
230 ObserverList<Object> observerList = new ObserverList<Object>(); in testAddObserverReturnValue()
[all …]
/external/libchrome/components/policy/core/common/
Dschema_registry.h99 base::ObserverList<Observer, true> observers_;
100 base::ObserverList<InternalObserver, true> internal_observers_;
Dconfiguration_policy_provider.h98 base::ObserverList<Observer, true> observer_list_;
Dpolicy_service_impl.h49 using Observers = base::ObserverList<PolicyService::Observer, true>;
/external/libchrome/base/message_loop/
Dmessage_loop.h298 ObserverList<DestructionObserver> destruction_observers_;
314 ObserverList<TaskObserver> task_observers_;
/external/libchrome/ipc/
Dipc_test_sink.h134 base::ObserverList<Listener> filter_list_;
/external/libchrome/base/task/sequence_manager/
Dsequence_manager_impl.h201 ObserverList<MessageLoop::TaskObserver> task_observers;
202 ObserverList<TaskTimeObserver> task_time_observers;
Dtask_queue_impl.h353 ObserverList<MessageLoop::TaskObserver> task_observers;
/external/libchrome/base/memory/
Dmemory_pressure_listener.cc47 ObserverList<MemoryPressureListener> sync_observers_;
/external/libchrome/device/bluetooth/
Dbluetooth_advertisement.h146 base::ObserverList<BluetoothAdvertisement::Observer> observers_;
/external/libchrome/libchrome_tools/patch/
Dobserver_list_unittest.patch65 ObserverList<Foo> observer_list(ObserverListPolicy::EXISTING_ONLY);