Home
last modified time | relevance | path

Searched refs:ON_PAUSE (Results 1 – 25 of 39) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTransactionExecutorTests.java21 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/
DFragmentOperationsLifecycleTest.java21 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()
DFragmentLifecycleInActivityTest.java21 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/
DTestObserver.java21 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/
DLibraryBaseObserver.java20 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE;
32 @OnLifecycleEvent(ON_PAUSE)
/frameworks/base/core/java/android/app/servertransaction/
DActivityLifecycleItem.java36 ON_PAUSE,
48 public static final int ON_PAUSE = 4; field in ActivityLifecycleItem
DTransactionExecutorHelper.java21 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()
DTransactionExecutor.java21 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/
DGeneratedAdaptersTest.java103 @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/
DLaunchpadActivity.java130 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/
DObservableDialogFragment.java20 import static android.arch.lifecycle.Lifecycle.Event.ON_PAUSE;
67 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
DObservableActivity.java20 import static android.arch.lifecycle.Lifecycle.Event.ON_PAUSE;
75 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
DObservableFragment.java21 import static android.arch.lifecycle.Lifecycle.Event.ON_PAUSE;
82 mLifecycle.handleLifecycleEvent(ON_PAUSE); in onPause()
DObservablePreferenceFragment.java21 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/
DReflectiveGenericLifecycleObserverTest.java22 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)
DFullLifecycleObserverTest.java21 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/
DTestUtils.java21 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE;
159 Arrays.asList(new Pair(LIFECYCLE_EVENT, ON_PAUSE),
160 new Pair(OWNER_CALLBACK, ON_PAUSE));
DSimpleAppFullLifecycleTest.java63 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_PAUSE),
67 new Pair(TestEventType.PROCESS_EVENT, Event.ON_PAUSE),
DFragmentInBackStackLifecycleTest.java22 import static androidx.lifecycle.Lifecycle.Event.ON_PAUSE;
81 ON_PAUSE, ON_STOP))); in test()
DProcessOwnerTest.java19 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/
DLifecycleRegistryTest.java21 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/
DLifecycleRegistry.java21 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/
DLifecycle.java131 ON_PAUSE, enumConstant
DFullLifecycleObserverAdapter.java39 case ON_PAUSE: in onStateChanged()
/frameworks/support/lifecycle/compiler/src/tests/test-data/expected/
DDerivedFromJar_LifecycleAdapter.java51 if (event == Lifecycle.Event.ON_PAUSE) { in callMethods()

12