Searched refs:hasObservers (Results 1 - 11 of 11) sorted by relevance

/frameworks/base/libs/hwui/
H A DFrameMetricsReporter.h47 bool hasObservers() { return mObservers.size() > 0; } function in class:android::uirenderer::FrameMetricsReporter
/frameworks/support/lifecycle/livedata-core/src/test/java/androidx/lifecycle/
H A DLiveDataTest.java122 assertThat(mLiveData.hasObservers(), is(true));
127 assertThat(mLiveData.hasObservers(), is(false));
137 assertThat(mLiveData.hasObservers(), is(true));
148 assertThat(mLiveData.hasObservers(), is(true));
154 assertThat(mLiveData.hasObservers(), is(true));
160 assertThat(mLiveData.hasObservers(), is(false));
170 assertThat(mLiveData.hasObservers(), is(true));
179 assertThat(mLiveData.hasObservers(), is(true));
190 assertThat(mLiveData.hasObservers(), is(false));
217 assertThat(mLiveData.hasObservers(), i
[all...]
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
H A DFragmentViewLifecycleTest.java231 mLiveData.hasObservers());
261 mLiveData.hasObservers());
270 mLiveData.hasObservers());
278 mLiveData.hasObservers());
/frameworks/support/lifecycle/livedata/src/test/java/androidx/lifecycle/
H A DMediatorLiveDataTest.java153 assertThat(mSource.hasObservers(), is(false));
156 assertThat(mSource.hasObservers(), is(true));
160 assertThat(mSource.hasObservers(), is(false));
H A DTransformationsTest.java193 assertThat(first.hasObservers(), is(false));
/frameworks/support/lifecycle/reactivestreams/src/test/java/androidx/lifecycle/
H A DLiveDataReactiveStreamsTest.java260 assertThat(liveData.hasObservers(), is(true));
268 assertThat(liveData.hasObservers(), is(false));
/frameworks/base/libs/hwui/renderthread/
H A DCanvasContext.h178 if (!mFrameMetricsReporter->hasObservers()) {
/frameworks/support/lifecycle/livedata-core/src/main/java/androidx/lifecycle/
H A DLiveData.java325 * You can check if there are observers via {@link #hasObservers()}.
337 public boolean hasObservers() { method in class:LiveData
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
H A DRecyclerViewBasicTest.java187 assertTrue("attached adapter should have observables", adapterOld.hasObservers());
191 assertFalse("detached adapter should lose observable", adapterOld.hasObservers());
192 assertTrue("new adapter should have observers", adapterNew.hasObservers());
197 adapterNew.hasObservers());
/frameworks/base/core/java/com/android/internal/widget/
H A DRecyclerView.java6370 if (hasObservers()) {
6495 public final boolean hasObservers() { method in class:RecyclerView.Adapter
6496 return mObservable.hasObservers();
11031 public boolean hasObservers() { method in class:RecyclerView.AdapterDataObservable
/frameworks/support/v7/recyclerview/src/main/java/androidx/recyclerview/widget/
H A DRecyclerView.java6811 if (hasObservers()) {
6936 public final boolean hasObservers() { method in class:RecyclerView.Adapter
6937 return mObservable.hasObservers();
11941 public boolean hasObservers() { method in class:RecyclerView.AdapterDataObservable

Completed in 84 milliseconds