Home
last modified time | relevance | path

Searched refs:ON_RESUME (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTransactionExecutorTests.java23 import static android.app.servertransaction.ActivityLifecycleItem.ON_RESUME;
89 assertArrayEquals(new int[] {ON_CREATE, ON_START, ON_RESUME}, path(ON_RESUME)); in testLifecycleFromPreOnCreate()
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()
102 assertArrayEquals(new int[] {ON_START, ON_RESUME}, path(ON_RESUME)); in testLifecycleFromOnCreate()
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()
[all …]
/frameworks/support/lifecycle/extensions/src/androidTest/java/androidx/lifecycle/
DFragmentOperationsLifecycleTest.java22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
64 assertThat(observer.getEventsAndReset(), is(asList(ON_CREATE, ON_START, ON_RESUME))); in addRemoveFragment()
68 assertThat(observer.getEventsAndReset(), is(asList(ON_CREATE, ON_START, ON_RESUME))); in addRemoveFragment()
81 assertThat(observer1.getEventsAndReset(), is(asList(ON_CREATE, ON_START, ON_RESUME))); in fragmentInBackstack()
90 assertThat(observer2.getEventsAndReset(), is(asList(ON_CREATE, ON_START, ON_RESUME))); in fragmentInBackstack()
93 assertThat(observer1.getEventsAndReset(), is(asList(ON_START, ON_RESUME))); in fragmentInBackstack()
DFragmentLifecycleInActivityTest.java22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
83 assertEvents(ON_CREATE, ON_START, ON_RESUME); in testFullEvents()
93 assertEvents(ON_CREATE, ON_START, ON_RESUME); in testStopStart()
113 assertEvents(ON_START, ON_RESUME); in testStopStart()
DViewModelTest.java19 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
121 @OnLifecycleEvent(ON_RESUME) in testOnClear()
/frameworks/support/lifecycle/integration-tests/testapp/src/test/java/androidx/lifecycle/
DGeneratedAdaptersTest.java20 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
114 @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
150 callback.onStateChanged(mOwner, Lifecycle.Event.ON_RESUME); in testClashingInterfaces()
172 @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
199 assertThat(event, is(ON_RESUME)); in onAny()
207 callback.onStateChanged(mOwner, Lifecycle.Event.ON_RESUME); in testClashingClassAndInterface()
/frameworks/support/lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/
DTestObserver.java22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
52 @OnLifecycleEvent(ON_RESUME)
54 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_RESUME)); in resume()
/frameworks/base/core/java/android/app/servertransaction/
DActivityLifecycleItem.java35 ON_RESUME,
47 public static final int ON_RESUME = 3; field in ActivityLifecycleItem
DTransactionExecutorHelper.java23 import static android.app.servertransaction.ActivityLifecycleItem.ON_RESUME;
78 if (start == ON_PAUSE && finish == ON_RESUME) { in getLifecyclePath()
80 mLifecycleSequence.add(ON_RESUME); in getLifecyclePath()
132 case ON_RESUME: in getClosestPreExecutionState()
DTransactionExecutor.java23 import static android.app.servertransaction.ActivityLifecycleItem.ON_RESUME;
182 case ON_RESUME: in performLifecycleSequence()
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/
DFragmentInBackStackLifecycleTest.java23 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
80 assertThat(collectedEvents, is(asList(ON_CREATE, ON_START, ON_RESUME, in test()
97 assertThat(collectedEvents, is(asList(ON_CREATE, ON_START, ON_RESUME))); in test()
DTestUtils.java22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
156 Arrays.asList(new Pair(OWNER_CALLBACK, ON_RESUME),
157 new Pair(LIFECYCLE_EVENT, ON_RESUME));
DSimpleAppFullLifecycleTest.java55 new Pair(TestEventType.PROCESS_EVENT, Event.ON_RESUME),
56 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_RESUME),
DPartiallyCoveredActivityTest.java19 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
75 asList(new Pair<>(OWNER_CALLBACK, ON_RESUME),
77 new Pair<>(LIFECYCLE_EVENT, ON_RESUME)),
/frameworks/base/core/tests/coretests/src/android/app/activity/
DLaunchpadActivity.java128 public static final String ON_RESUME = "onResume"; field in LaunchpadActivity
175 setExpectedLifecycle(new String[]{ON_START, ON_RESUME, in onCreate()
178 setExpectedLifecycle(new String[]{ON_START, ON_RESUME, in onCreate()
180 ON_RESTART, ON_START, ON_RESUME, in onCreate()
183 setExpectedLifecycle(new String[]{ON_START, ON_RESUME, in onCreate()
184 DO_LOCAL_DIALOG, ON_FREEZE, ON_PAUSE, ON_RESUME, in onCreate()
220 checkLifecycle(ON_RESUME); in onResume()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/
DObservableDialogFragment.java21 import static android.arch.lifecycle.Lifecycle.Event.ON_RESUME;
61 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
DObservableActivity.java21 import static android.arch.lifecycle.Lifecycle.Event.ON_RESUME;
69 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
DObservableFragment.java22 import static android.arch.lifecycle.Lifecycle.Event.ON_RESUME;
75 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
DObservablePreferenceFragment.java22 import static android.arch.lifecycle.Lifecycle.Event.ON_RESUME;
86 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
/frameworks/support/lifecycle/common/src/test/java/androidx/lifecycle/
DReflectiveGenericLifecycleObserverTest.java23 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
71 observer.onStateChanged(mOwner, ON_RESUME); in anyState()
72 verify(obj).onAnyState(mOwner, ON_RESUME); in anyState()
133 observer.onStateChanged(mOwner, ON_RESUME); in eachEvent()
161 @OnLifecycleEvent(ON_RESUME)
DFullLifecycleObserverTest.java22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
70 observer.onStateChanged(mOwner, ON_RESUME); in eachEvent()
/frameworks/support/lifecycle/runtime/src/main/java/androidx/lifecycle/
DLifecycleRegistry.java22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME;
243 case ON_RESUME: in getStateAfter()
277 return ON_RESUME; in upEvent()
/frameworks/support/lifecycle/common/src/main/java/androidx/lifecycle/
DLifecycle.java127 ON_RESUME, enumConstant
DFullLifecycleObserverAdapter.java36 case ON_RESUME: in onStateChanged()
/frameworks/support/lifecycle/runtime/src/androidTest/java/androidx/lifecycle/
DMissingClassTest.java36 @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
/frameworks/support/lifecycle/reactivestreams/ktx/src/test/java/androidx/lifecycle/
DLiveDataReactiveStreamsTest.kt37 registry.handleLifecycleEvent(Lifecycle.Event.ON_RESUME) in init()

12