/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | TransactionExecutorTests.java | 25 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/ |
D | InheritanceOk1.java | 19 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)
|
D | InterfaceOk2.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 27 @OnLifecycleEvent(ON_STOP) 33 @OnLifecycleEvent(ON_STOP) 41 @OnLifecycleEvent(ON_STOP)
|
D | DifferentPackagesBase2.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 27 @OnLifecycleEvent(ON_STOP) 32 @OnLifecycleEvent(ON_STOP)
|
D | InheritanceOk2.java | 3 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 11 @OnLifecycleEvent(ON_STOP) 17 @OnLifecycleEvent(ON_STOP)
|
D | InheritanceOk3.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 27 @OnLifecycleEvent(ON_STOP) 33 @OnLifecycleEvent(ON_STOP)
|
D | Bar.java | 4 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 16 @OnLifecycleEvent(ON_STOP) 20 @OnLifecycleEvent(ON_STOP)
|
D | InvalidMethodModifier.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 26 @OnLifecycleEvent(ON_STOP)
|
D | InvalidClassModifier.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 27 @OnLifecycleEvent(ON_STOP)
|
D | InvalidFirstArg1.java | 3 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 10 @OnLifecycleEvent(ON_STOP)
|
D | NoPackageOk.java | 17 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 25 @OnLifecycleEvent(ON_STOP)
|
D | InterfaceOk1.java | 17 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 25 @OnLifecycleEvent(ON_STOP)
|
D | DifferentPackagesDerived2.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 27 @OnLifecycleEvent(ON_STOP)
|
D | DifferentPackagesDerived1.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 27 @OnLifecycleEvent(ON_STOP)
|
D | DifferentPackagesBase1.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 27 @OnLifecycleEvent(ON_STOP)
|
D | InvalidInheritance1.java | 20 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 26 @OnLifecycleEvent(ON_STOP)
|
D | InvalidInheritance2.java | 20 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 26 @OnLifecycleEvent(ON_STOP)
|
D | TooManyArgs2.java | 3 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 11 @OnLifecycleEvent(ON_STOP)
|
/frameworks/support/lifecycle/common/src/test/java/androidx/lifecycle/ |
D | ReflectiveGenericLifecycleObserverTest.java | 25 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/ |
D | MediatorLiveDataTest.java | 86 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/ |
D | ServiceLifecycleTest.java | 22 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/ |
D | FragmentOperationsLifecycleTest.java | 24 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/ |
D | TestObserver.java | 24 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/ |
D | ObserverNoAdapter.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 27 @OnLifecycleEvent(ON_STOP)
|
D | PPObserverWithAdapter.java | 20 import static androidx.lifecycle.Lifecycle.Event.ON_STOP; 32 @OnLifecycleEvent(ON_STOP)
|