/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | TransactionExecutorTests.java | 23 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/ |
D | FragmentOperationsLifecycleTest.java | 22 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()
|
D | FragmentLifecycleInActivityTest.java | 22 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()
|
D | ViewModelTest.java | 19 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/ |
D | GeneratedAdaptersTest.java | 20 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/ |
D | TestObserver.java | 22 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/ |
D | ActivityLifecycleItem.java | 35 ON_RESUME, 47 public static final int ON_RESUME = 3; field in ActivityLifecycleItem
|
D | TransactionExecutorHelper.java | 23 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()
|
D | TransactionExecutor.java | 23 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/ |
D | FragmentInBackStackLifecycleTest.java | 23 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()
|
D | TestUtils.java | 22 import static androidx.lifecycle.Lifecycle.Event.ON_RESUME; 156 Arrays.asList(new Pair(OWNER_CALLBACK, ON_RESUME), 157 new Pair(LIFECYCLE_EVENT, ON_RESUME));
|
D | SimpleAppFullLifecycleTest.java | 55 new Pair(TestEventType.PROCESS_EVENT, Event.ON_RESUME), 56 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_RESUME),
|
D | PartiallyCoveredActivityTest.java | 19 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/ |
D | LaunchpadActivity.java | 128 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/ |
D | ObservableDialogFragment.java | 21 import static android.arch.lifecycle.Lifecycle.Event.ON_RESUME; 61 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
|
D | ObservableActivity.java | 21 import static android.arch.lifecycle.Lifecycle.Event.ON_RESUME; 69 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
|
D | ObservableFragment.java | 22 import static android.arch.lifecycle.Lifecycle.Event.ON_RESUME; 75 mLifecycle.handleLifecycleEvent(ON_RESUME); in onResume()
|
D | ObservablePreferenceFragment.java | 22 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/ |
D | ReflectiveGenericLifecycleObserverTest.java | 23 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)
|
D | FullLifecycleObserverTest.java | 22 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/ |
D | LifecycleRegistry.java | 22 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/ |
D | Lifecycle.java | 127 ON_RESUME, enumConstant
|
D | FullLifecycleObserverAdapter.java | 36 case ON_RESUME: in onStateChanged()
|
/frameworks/support/lifecycle/runtime/src/androidTest/java/androidx/lifecycle/ |
D | MissingClassTest.java | 36 @OnLifecycleEvent(Lifecycle.Event.ON_RESUME)
|
/frameworks/support/lifecycle/reactivestreams/ktx/src/test/java/androidx/lifecycle/ |
D | LiveDataReactiveStreamsTest.kt | 37 registry.handleLifecycleEvent(Lifecycle.Event.ON_RESUME) in init()
|