Home
last modified time | relevance | path

Searched refs:mObserverMap (Results 1 – 4 of 4) sorted by relevance

/frameworks/support/lifecycle/runtime/src/main/java/androidx/lifecycle/
DLifecycleRegistry.java60 private FastSafeIterableMap<LifecycleObserver, ObserverWithState> mObserverMap = field in LifecycleRegistry
143 if (mObserverMap.size() == 0) { in isSynced()
146 State eldestObserverState = mObserverMap.eldest().getValue().mState; in isSynced()
147 State newestObserverState = mObserverMap.newest().getValue().mState; in isSynced()
152 Entry<LifecycleObserver, ObserverWithState> previous = mObserverMap.ceil(observer); in calculateTargetState()
164 ObserverWithState previous = mObserverMap.putIfAbsent(observer, statefulObserver); in addObserver()
179 && mObserverMap.contains(observer))) { in addObserver()
216 mObserverMap.remove(observer); in removeObserver()
226 return mObserverMap.size(); in getObserverCount()
286 mObserverMap.iteratorWithAdditions(); in forwardPass()
[all …]
/frameworks/support/room/runtime/src/main/java/androidx/room/
DInvalidationTracker.java118 final SafeIterableMap<Observer, ObserverWrapper> mObserverMap = new SafeIterableMap<>(); field in InvalidationTracker
242 synchronized (mObserverMap) { in addObserver()
243 currentObserver = mObserverMap.putIfAbsent(observer, wrapper); in addObserver()
274 synchronized (mObserverMap) { in removeObserver()
275 wrapper = mObserverMap.remove(observer); in removeObserver()
346 synchronized (mObserverMap) {
347 for (Map.Entry<Observer, ObserverWrapper> entry : mObserverMap) {
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/
DInvalidationTrackerTrojan.java24 return tracker.mObserverMap.size(); in countObservers()
/frameworks/support/room/runtime/src/test/java/androidx/room/
DInvalidationTrackerTest.java129 assertThat(mTracker.mObserverMap.size(), is(1)); in addRemoveObserver()
131 assertThat(mTracker.mObserverMap.size(), is(1)); in addRemoveObserver()
133 assertThat(mTracker.mObserverMap.size(), is(0)); in addRemoveObserver()