Searched refs:getLifecycle (Results 1 - 25 of 51) sorted by relevance

123

/frameworks/support/lifecycle/common/src/main/java/androidx/lifecycle/
H A DLifecycleOwner.java35 Lifecycle getLifecycle(); method in interface:LifecycleOwner
/frameworks/support/lifecycle/runtime/src/main/java/androidx/lifecycle/
H A DLifecycleRegistryOwner.java30 LifecycleRegistry getLifecycle(); method in interface:LifecycleRegistryOwner
H A DReportFragment.java115 ((LifecycleRegistryOwner) activity).getLifecycle().handleLifecycleEvent(event);
120 Lifecycle lifecycle = ((LifecycleOwner) activity).getLifecycle();
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/
H A DTestLifecycleOwner.java35 public Lifecycle getLifecycle() { method in class:TestLifecycleOwner
/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
H A DFragmentArchLifecycleTest.java54 first.getLifecycle().addObserver(new LifecycleObserver() {
58 first.getLifecycle().removeObserver(this);
62 assertEquals(Lifecycle.State.CREATED, first.getLifecycle().getCurrentState());
63 assertEquals(Lifecycle.State.CREATED, second.getLifecycle().getCurrentState());
64 Assert.assertEquals(Lifecycle.State.CREATED, activity.getLifecycle().getCurrentState());
H A DFragmentViewLifecycleTest.java66 fragment.getViewLifecycleOwner().getLifecycle().getCurrentState());
115 fragment.getViewLifecycleOwner().getLifecycle().getCurrentState());
170 viewLifecycleOwner.getLifecycle().getCurrentState());
176 viewLifecycleOwner.getLifecycle().getCurrentState());
198 viewLifecycleOwner.getLifecycle().getCurrentState());
205 viewLifecycleOwner.getLifecycle().getCurrentState());
213 fragment.getViewLifecycleOwner().getLifecycle().getCurrentState());
/frameworks/support/lifecycle/service/src/main/java/androidx/lifecycle/
H A DLifecycleService.java74 public Lifecycle getLifecycle() { method in class:LifecycleService
75 return mDispatcher.getLifecycle();
H A DServiceLifecycleDispatcher.java87 public Lifecycle getLifecycle() { method in class:ServiceLifecycleDispatcher
/frameworks/support/lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/
H A DSimpleAppLifecycleTestActivity.java69 ProcessLifecycleOwner.get().getLifecycle().addObserver(sProcessObserver);
76 ProcessLifecycleOwner.get().getLifecycle().removeObserver(sProcessObserver);
84 getLifecycle().addObserver(new TestObserver(TestEventType.ACTIVITY_EVENT));
H A DFrameworkLifecycleRegistryActivity.java44 public LifecycleRegistry getLifecycle() { method in class:FrameworkLifecycleRegistryActivity
56 getLifecycle().addObserver(mTestObserver);
H A DCollectingSupportActivity.java51 getLifecycle().addObserver(mTestObserver);
/frameworks/support/lifecycle/runtime/src/test/java/
H A DNoPackageTest.java43 when(mLifecycleOwner.getLifecycle()).thenReturn(mLifecycle);
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/
H A DTestUtils.java109 Lifecycle.State currentState = owner.getLifecycle().getCurrentState();
113 owner.getLifecycle().addObserver(new LifecycleObserver() {
116 if (provider.getLifecycle().getCurrentState() == state) {
118 provider.getLifecycle().removeObserver(this);
126 + owner.getLifecycle().getCurrentState(), latchResult, is(true));
H A DProcessOwnerTest.java171 ProcessLifecycleOwner.get().getLifecycle().addObserver(observer));
176 ProcessLifecycleOwner.get().getLifecycle().removeObserver(observer));
183 ProcessLifecycleOwner.get().getLifecycle().removeObserver(mObserver));
190 ProcessLifecycleOwner.get().getLifecycle().removeObserver(mObserver));
H A DFragmentInBackStackLifecycleTest.java75 fragment.getLifecycle().addObserver(collectingObserver);
94 fragment.getLifecycle().addObserver(collectingObserver);
/frameworks/support/lifecycle/livedata-core/src/main/java/androidx/lifecycle/
H A DLiveData.java167 if (owner.getLifecycle().getCurrentState() == DESTROYED) {
180 owner.getLifecycle().addObserver(wrapper);
361 return mOwner.getLifecycle().getCurrentState().isAtLeast(STARTED);
366 if (mOwner.getLifecycle().getCurrentState() == DESTROYED) {
380 mOwner.getLifecycle().removeObserver(this);
/frameworks/support/compat/src/main/java/androidx/core/app/
H A DComponentActivity.java94 public Lifecycle getLifecycle() { method in class:ComponentActivity
/frameworks/support/lifecycle/service/src/androidTest/java/androidx/lifecycle/service/
H A DTestService.java40 getLifecycle().addObserver(new LifecycleObserver() {
/frameworks/support/lifecycle/reactivestreams/ktx/src/test/java/androidx/lifecycle/
H A DLiveDataReactiveStreamsTest.kt40 override fun getLifecycle(): Lifecycle {
/frameworks/support/navigation/fragment/src/androidTest/java/androidx/navigation/fragment/
H A DFragmentNavigatorTest.java97 assertThat("Old instance should be destroyed", fragment.getLifecycle().getCurrentState(),
128 assertThat("Old instance should be destroyed", fragment.getLifecycle().getCurrentState(),
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
H A DObservableActivity.java40 public Lifecycle getLifecycle() { method in class:ObservableActivity
H A DObservableDialogFragment.java105 public Lifecycle getLifecycle() { method in class:ObservableDialogFragment
/frameworks/support/lifecycle/livedata-core/src/test/java/androidx/lifecycle/
H A DThreadedLiveDataTest.java56 when(mLifecycleOwner.getLifecycle()).thenReturn(mRegistry);
/frameworks/support/lifecycle/process/src/main/java/androidx/lifecycle/
H A DProcessLifecycleOwner.java178 public Lifecycle getLifecycle() { method in class:ProcessLifecycleOwner
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/core/lifecycle/
H A DLifecycleTest.java67 getLifecycle().addObserver(mFragObserver);
77 getLifecycle().addObserver(mActObserver);
244 fragment.getLifecycle().addObserver(accepter);

Completed in 37 milliseconds

123