Searched refs:mObserverMap (Results 1 – 4 of 4) sorted by relevance
60 private FastSafeIterableMap<LifecycleObserver, ObserverWithState> mObserverMap = field in LifecycleRegistry143 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 …]
118 final SafeIterableMap<Observer, ObserverWrapper> mObserverMap = new SafeIterableMap<>(); field in InvalidationTracker242 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) {
24 return tracker.mObserverMap.size(); in countObservers()
129 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()