/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | TransactionExecutorTests.java | 21 import static android.app.servertransaction.ActivityLifecycleItem.ON_PAUSE; 90 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME, ON_PAUSE}, path(ON_PAUSE)); in testLifecycleFromPreOnCreate() 91 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME, ON_PAUSE, ON_STOP}, in testLifecycleFromPreOnCreate() 93 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME, ON_PAUSE, ON_STOP, ON_DESTROY}, in testLifecycleFromPreOnCreate() 103 assertArrayEquals(new int[] {ON_START, ON_RESUME, ON_PAUSE}, path(ON_PAUSE)); in testLifecycleFromOnCreate() 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() 116 assertArrayEquals(new int[] {ON_RESUME, ON_PAUSE}, path(ON_PAUSE)); in testLifecycleFromOnStart() 117 assertArrayEquals(new int[] {ON_RESUME, ON_PAUSE, ON_STOP}, path(ON_STOP)); in testLifecycleFromOnStart() [all …]
|
/frameworks/support/lifecycle/extensions/src/androidTest/java/androidx/lifecycle/ |
D | FragmentOperationsLifecycleTest.java | 21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 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()
|
D | FragmentLifecycleInActivityTest.java | 21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 86 assertEvents(ON_PAUSE, ON_STOP, ON_DESTROY); in testFullEvents() 103 assertEvents(ON_PAUSE, ON_STOP); in testStopStart()
|
/frameworks/support/lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/ |
D | TestObserver.java | 21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 56 @OnLifecycleEvent(ON_PAUSE) 58 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_PAUSE)); in pause()
|
/frameworks/support/lifecycle/compiler/src/tests/test-data/lib/src/test/library/ |
D | LibraryBaseObserver.java | 20 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 32 @OnLifecycleEvent(ON_PAUSE)
|
/frameworks/base/core/java/android/app/servertransaction/ |
D | ActivityLifecycleItem.java | 36 ON_PAUSE, 48 public static final int ON_PAUSE = 4; field in ActivityLifecycleItem
|
D | TransactionExecutorHelper.java | 21 import static android.app.servertransaction.ActivityLifecycleItem.ON_PAUSE; 44 private static final int[] ON_RESUME_PRE_EXCUTION_STATES = new int[] { ON_START, ON_PAUSE }; 78 if (start == ON_PAUSE && finish == ON_RESUME) { in getLifecyclePath() 177 case ON_PAUSE: in getLifecycleRequestForCurrentState()
|
D | TransactionExecutor.java | 21 import static android.app.servertransaction.ActivityLifecycleItem.ON_PAUSE; 186 case ON_PAUSE: in performLifecycleSequence()
|
/frameworks/support/lifecycle/integration-tests/testapp/src/test/java/androidx/lifecycle/ |
D | GeneratedAdaptersTest.java | 103 @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE) 106 @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE) 111 @OnLifecycleEvent(Lifecycle.Event.ON_PAUSE) 146 callback.onStateChanged(mOwner, Lifecycle.Event.ON_PAUSE); in testClashingInterfaces()
|
/frameworks/base/core/tests/coretests/src/android/app/activity/ |
D | LaunchpadActivity.java | 130 public static final String ON_PAUSE = "onPause"; field in LaunchpadActivity 176 DO_FINISH, ON_PAUSE, ON_STOP, ON_DESTROY}); in onCreate() 179 DO_LOCAL_SCREEN, ON_FREEZE, ON_PAUSE, ON_STOP, in onCreate() 181 DO_FINISH, ON_PAUSE, ON_STOP, ON_DESTROY}); in onCreate() 184 DO_LOCAL_DIALOG, ON_FREEZE, ON_PAUSE, ON_RESUME, in onCreate() 185 DO_FINISH, ON_PAUSE, ON_STOP, ON_DESTROY}); in onCreate() 327 checkLifecycle(ON_PAUSE); in onPause()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
D | ObservableDialogFragment.java | 20 import static android.arch.lifecycle.Lifecycle.Event.ON_PAUSE; 67 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
|
D | ObservableActivity.java | 20 import static android.arch.lifecycle.Lifecycle.Event.ON_PAUSE; 75 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
|
D | ObservableFragment.java | 21 import static android.arch.lifecycle.Lifecycle.Event.ON_PAUSE; 82 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
|
D | ObservablePreferenceFragment.java | 21 import static android.arch.lifecycle.Lifecycle.Event.ON_PAUSE; 93 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
|
/frameworks/support/lifecycle/common/src/test/java/androidx/lifecycle/ |
D | ReflectiveGenericLifecycleObserverTest.java | 22 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 75 observer.onStateChanged(mOwner, ON_PAUSE); in anyState() 76 verify(obj).onAnyState(mOwner, ON_PAUSE); in anyState() 138 observer.onStateChanged(mOwner, ON_PAUSE); in eachEvent() 164 @OnLifecycleEvent(ON_PAUSE)
|
D | FullLifecycleObserverTest.java | 21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 75 observer.onStateChanged(mOwner, ON_PAUSE); in eachEvent()
|
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/ |
D | TestUtils.java | 21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 159 Arrays.asList(new Pair(LIFECYCLE_EVENT, ON_PAUSE), 160 new Pair(OWNER_CALLBACK, ON_PAUSE));
|
D | SimpleAppFullLifecycleTest.java | 63 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_PAUSE), 67 new Pair(TestEventType.PROCESS_EVENT, Event.ON_PAUSE),
|
D | FragmentInBackStackLifecycleTest.java | 22 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 81 ON_PAUSE, ON_STOP))); in test()
|
D | ProcessOwnerTest.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 150 assertThat(events.toArray(), is(new Event[]{ON_PAUSE, ON_STOP})); in testPressHomeButton()
|
/frameworks/support/lifecycle/runtime/src/test/java/androidx/lifecycle/ |
D | LifecycleRegistryTest.java | 21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 144 dispatchEvent(ON_PAUSE); in constructionDestruction1() 160 dispatchEvent(ON_PAUSE); in constructionDestruction2() 278 dispatchEvent(ON_PAUSE); in downEvents() 332 dispatchEvent(ON_PAUSE); in downEventsRemoveAll() 340 dispatchEvent(ON_PAUSE); in downEventsRemoveAll() 450 mRegistry.handleLifecycleEvent(ON_PAUSE); in changeStateDuringDescending() 612 @OnLifecycleEvent(ON_PAUSE)
|
/frameworks/support/lifecycle/runtime/src/main/java/androidx/lifecycle/ |
D | LifecycleRegistry.java | 21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE; 241 case ON_PAUSE: in getStateAfter() 262 return ON_PAUSE; in downEvent()
|
/frameworks/support/lifecycle/common/src/main/java/androidx/lifecycle/ |
D | Lifecycle.java | 131 ON_PAUSE, enumConstant
|
D | FullLifecycleObserverAdapter.java | 39 case ON_PAUSE: in onStateChanged()
|
/frameworks/support/lifecycle/compiler/src/tests/test-data/expected/ |
D | DerivedFromJar_LifecycleAdapter.java | 51 if (event == Lifecycle.Event.ON_PAUSE) { in callMethods()
|