Home
last modified time | relevance | path

Searched refs:ON_STOP (Results 1 – 25 of 83) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTransactionExecutorTests.java25 import static android.app.servertransaction.ActivityLifecycleItem.ON_STOP;
91 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME, ON_PAUSE, ON_STOP}, in testLifecycleFromPreOnCreate()
92 path(ON_STOP)); in testLifecycleFromPreOnCreate()
93 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME, ON_PAUSE, ON_STOP, ON_DESTROY}, in testLifecycleFromPreOnCreate()
104 assertArrayEquals(new int[] {ON_START, ON_RESUME, ON_PAUSE, ON_STOP}, path(ON_STOP)); in testLifecycleFromOnCreate()
105 assertArrayEquals(new int[] {ON_START, ON_RESUME, ON_PAUSE, ON_STOP, ON_DESTROY}, in testLifecycleFromOnCreate()
112 assertArrayEquals(new int[] {ON_RESUME, ON_PAUSE, ON_STOP, ON_DESTROY, ON_CREATE}, in testLifecycleFromOnStart()
117 assertArrayEquals(new int[] {ON_RESUME, ON_PAUSE, ON_STOP}, path(ON_STOP)); in testLifecycleFromOnStart()
118 assertArrayEquals(new int[] {ON_RESUME, ON_PAUSE, ON_STOP, ON_DESTROY}, path(ON_DESTROY)); in testLifecycleFromOnStart()
124 assertArrayEquals(new int[] {ON_PAUSE, ON_STOP, ON_DESTROY, ON_CREATE}, path(ON_CREATE)); in testLifecycleFromOnResume()
[all …]
/frameworks/support/lifecycle/compiler/src/tests/test-data/
DInheritanceOk1.java19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
27 @OnLifecycleEvent(ON_STOP)
36 @OnLifecycleEvent(ON_STOP)
42 @OnLifecycleEvent(ON_STOP)
48 @OnLifecycleEvent(ON_STOP)
54 @OnLifecycleEvent(ON_STOP)
DInterfaceOk2.java19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
27 @OnLifecycleEvent(ON_STOP)
33 @OnLifecycleEvent(ON_STOP)
41 @OnLifecycleEvent(ON_STOP)
DDifferentPackagesBase2.java19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
27 @OnLifecycleEvent(ON_STOP)
32 @OnLifecycleEvent(ON_STOP)
DInheritanceOk2.java3 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
11 @OnLifecycleEvent(ON_STOP)
17 @OnLifecycleEvent(ON_STOP)
DInheritanceOk3.java19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
27 @OnLifecycleEvent(ON_STOP)
33 @OnLifecycleEvent(ON_STOP)
DBar.java4 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
16 @OnLifecycleEvent(ON_STOP)
20 @OnLifecycleEvent(ON_STOP)
DInvalidMethodModifier.java19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
26 @OnLifecycleEvent(ON_STOP)
DInvalidClassModifier.java19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
27 @OnLifecycleEvent(ON_STOP)
DInvalidFirstArg1.java3 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
10 @OnLifecycleEvent(ON_STOP)
DNoPackageOk.java17 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
25 @OnLifecycleEvent(ON_STOP)
DInterfaceOk1.java17 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
25 @OnLifecycleEvent(ON_STOP)
DDifferentPackagesDerived2.java19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
27 @OnLifecycleEvent(ON_STOP)
DDifferentPackagesDerived1.java19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
27 @OnLifecycleEvent(ON_STOP)
DDifferentPackagesBase1.java19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
27 @OnLifecycleEvent(ON_STOP)
DInvalidInheritance1.java20 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
26 @OnLifecycleEvent(ON_STOP)
DInvalidInheritance2.java20 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
26 @OnLifecycleEvent(ON_STOP)
DTooManyArgs2.java3 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
11 @OnLifecycleEvent(ON_STOP)
/frameworks/support/lifecycle/common/src/test/java/androidx/lifecycle/
DReflectiveGenericLifecycleObserverTest.java25 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
79 observer.onStateChanged(mOwner, ON_STOP); in anyState()
80 verify(obj).onAnyState(mOwner, ON_STOP); in anyState()
143 observer.onStateChanged(mOwner, ON_STOP); in eachEvent()
167 @OnLifecycleEvent(ON_STOP)
260 @OnLifecycleEvent(ON_STOP)
277 @OnLifecycleEvent(ON_STOP)
290 observer.onStateChanged(mock(LifecycleOwner.class), ON_STOP); in testValidSuper1() local
302 @OnLifecycleEvent(ON_STOP)
354 @OnLifecycleEvent(ON_STOP)
/frameworks/support/lifecycle/livedata/src/test/java/androidx/lifecycle/
DMediatorLiveDataTest.java86 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in testSingleDelivery()
98 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in testChangeWhileInactive()
117 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in testAddSourceToInActive()
142 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in testSourceInactive()
157 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in testNoLeakObserver()
178 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in testMultipleSources()
194 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in removeSourceDuringOnActive()
225 mRegistry.handleLifecycleEvent(Lifecycle.Event.ON_STOP); in addSourceDuringOnActive()
/frameworks/support/lifecycle/service/src/androidTest/java/androidx/lifecycle/
DServiceLifecycleTest.java22 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
97 awaitAndAssertEvents(ON_CREATE, ON_START, ON_STOP, ON_DESTROY); in testUnboundedService()
105 awaitAndAssertEvents(ON_CREATE, ON_START, ON_STOP, ON_DESTROY); in testBoundedService()
127 awaitAndAssertEvents(ON_CREATE, ON_START, ON_STOP, ON_DESTROY); in testStartBindUnbindStop()
150 ON_STOP, ON_DESTROY); in testStartBindStopUnbind()
174 ON_STOP, ON_DESTROY); in testBindStartUnbindStop()
197 ON_STOP, ON_DESTROY); in testBindStartStopUnbind()
/frameworks/support/lifecycle/extensions/src/androidTest/java/androidx/lifecycle/
DFragmentOperationsLifecycleTest.java24 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
66 assertThat(observer.getEventsAndReset(), is(asList(ON_PAUSE, ON_STOP, ON_DESTROY))); in addRemoveFragment()
89 assertThat(observer1.getEventsAndReset(), is(asList(ON_PAUSE, ON_STOP))); in fragmentInBackstack()
94 assertThat(observer2.getEventsAndReset(), is(asList(ON_PAUSE, ON_STOP, ON_DESTROY))); in fragmentInBackstack()
97 assertThat(observer1.getEventsAndReset(), is(asList(ON_PAUSE, ON_STOP, ON_DESTROY))); in fragmentInBackstack()
/frameworks/support/lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/
DTestObserver.java24 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
61 @OnLifecycleEvent(ON_STOP)
63 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_STOP)); in stop()
/frameworks/support/lifecycle/compiler/src/tests/test-data/lib/src/test/library/
DObserverNoAdapter.java19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
27 @OnLifecycleEvent(ON_STOP)
DPPObserverWithAdapter.java20 import static androidx.lifecycle.Lifecycle.Event.ON_STOP;
32 @OnLifecycleEvent(ON_STOP)

1234