Home
last modified time | relevance | path

Searched refs:ObserverWrapper (Results 1 – 2 of 2) sorted by relevance

/frameworks/support/lifecycle/livedata-core/src/main/java/androidx/lifecycle/
DLiveData.java64 private SafeIterableMap<Observer<? super T>, ObserverWrapper> mObservers =
91 private void considerNotify(ObserverWrapper observer) { in considerNotify()
112 private void dispatchingValue(@Nullable ObserverWrapper initiator) { in dispatchingValue()
124 for (Iterator<Map.Entry<Observer<? super T>, ObserverWrapper>> iterator = in dispatchingValue()
172 ObserverWrapper existing = mObservers.putIfAbsent(observer, wrapper); in observe()
201 ObserverWrapper existing = mObservers.putIfAbsent(observer, wrapper); in observeForever()
220 ObserverWrapper removed = mObservers.remove(observer); in removeObserver()
237 for (Map.Entry<Observer<? super T>, ObserverWrapper> entry : mObservers) { in removeObservers()
351 class LifecycleBoundObserver extends ObserverWrapper implements GenericLifecycleObserver {
384 private abstract class ObserverWrapper { class in LiveData
[all …]
/frameworks/support/room/runtime/src/main/java/androidx/room/
DInvalidationTracker.java118 final SafeIterableMap<Observer, ObserverWrapper> mObserverMap = new SafeIterableMap<>();
240 ObserverWrapper wrapper = new ObserverWrapper(observer, tableIds, tableNames, versions); in addObserver()
241 ObserverWrapper currentObserver; in addObserver()
273 ObserverWrapper wrapper; in removeObserver()
347 for (Map.Entry<Observer, ObserverWrapper> entry : mObserverMap) {
471 static class ObserverWrapper { class in InvalidationTracker
478 ObserverWrapper(Observer observer, int[] tableIds, String[] tableNames, long[] versions) { in ObserverWrapper() method in InvalidationTracker.ObserverWrapper