Searched refs:mLiveData (Results 1 – 7 of 7) sorted by relevance
/frameworks/support/lifecycle/livedata-core/src/test/java/androidx/lifecycle/ |
D | LiveDataTest.java | 61 private PublicLiveData<String> mLiveData; field in LiveDataTest 82 mLiveData = new PublicLiveData<>(); in init() 85 mLiveData.activeObserversChanged = mActiveObserversChanged; in init() 119 mLiveData.observe(mOwner, observer); in testObserverToggle() 122 assertThat(mLiveData.hasObservers(), is(true)); in testObserverToggle() 123 assertThat(mLiveData.hasActiveObservers(), is(false)); in testObserverToggle() 125 mLiveData.removeObserver(observer); in testObserverToggle() 127 assertThat(mLiveData.hasObservers(), is(false)); in testObserverToggle() 128 assertThat(mLiveData.hasActiveObservers(), is(false)); in testObserverToggle() 134 mLiveData.observe(mOwner, observer); in testActiveObserverToggle() [all …]
|
D | ThreadedLiveDataTest.java | 47 private LiveData<String> mLiveData; field in ThreadedLiveDataTest 53 mLiveData = new MutableLiveData<>(); in init() 78 mLiveData.observe(mLifecycleOwner, observer); in testPostValue() 83 mLiveData.postValue("fail"); in testPostValue() 84 mLiveData.postValue("success"); in testPostValue()
|
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/ |
D | FragmentViewLifecycleTest.java | 172 fragment.mLiveData.hasActiveObservers()); in testFragmentViewLifecycleDetach() 178 fragment.mLiveData.hasActiveObservers()); in testFragmentViewLifecycleDetach() 200 fragment.mLiveData.hasActiveObservers()); in testFragmentViewLifecycleReattach() 207 fragment.mLiveData.hasActiveObservers()); in testFragmentViewLifecycleReattach() 215 fragment.mLiveData.hasActiveObservers()); in testFragmentViewLifecycleReattach() 219 MutableLiveData<Boolean> mLiveData = new MutableLiveData<>(); field in FragmentViewLifecycleTest.ObserveInOnCreateViewFragment 229 mLiveData.observe(getViewLifecycleOwner(), mOnCreateViewObserver); in onCreateView() 231 mLiveData.hasObservers()); in onCreateView() 239 MutableLiveData<Boolean> mLiveData = new MutableLiveData<>(); field in FragmentViewLifecycleTest.ObservingFragment 259 mLiveData.observe(getViewLifecycleOwner(), mOnCreateViewObserver); in onCreateView() [all …]
|
/frameworks/support/lifecycle/livedata/src/main/java/androidx/lifecycle/ |
D | MediatorLiveData.java | 131 final LiveData<V> mLiveData; field in MediatorLiveData.Source 136 mLiveData = liveData; in Source() 141 mLiveData.observeForever(this); in plug() 145 mLiveData.removeObserver(this); in unplug() 150 if (mVersion != mLiveData.getVersion()) { in onChanged() 151 mVersion = mLiveData.getVersion(); in onChanged()
|
D | ComputableLiveData.java | 44 private final LiveData<T> mLiveData; field in ComputableLiveData 66 mLiveData = new LiveData<T>() { in ComputableLiveData() 82 return mLiveData; in getLiveData() 103 mLiveData.postValue(value); 127 boolean isActive = mLiveData.hasActiveObservers();
|
/frameworks/support/lifecycle/reactivestreams/src/main/java/androidx/lifecycle/ |
D | LiveDataReactiveStreams.java | 62 final LiveData<T> mLiveData; field in LiveDataReactiveStreams.LiveDataPublisher 66 this.mLiveData = liveData; in LiveDataPublisher() 71 subscriber.onSubscribe(new LiveDataSubscription<T>(subscriber, mLifecycle, mLiveData)); in subscribe() 77 final LiveData<T> mLiveData; field in LiveDataReactiveStreams.LiveDataPublisher.LiveDataSubscription 91 this.mLiveData = liveData; in LiveDataSubscription() 124 mLiveData.removeObserver(LiveDataSubscription.this); in request() 138 mLiveData.observe(mLifecycle, LiveDataSubscription.this); in request() 157 mLiveData.removeObserver(LiveDataSubscription.this); in cancel()
|
/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
D | KeyguardSliceView.java | 85 private LiveData<Slice> mLiveData; field in KeyguardSliceView 137 mLiveData.observeForever(this); in onAttachedToWindow() 145 mLiveData.removeObserver(this); in onDetachedFromWindow() 355 if (mLiveData != null && mLiveData.hasActiveObservers()) { in setupUri() 357 mLiveData.removeObserver(this); in setupUri() 361 mLiveData = SliceLiveData.fromUri(mContext, mKeyguardSliceUri); in setupUri() 364 mLiveData.observeForever(this); in setupUri()
|