/frameworks/base/core/tests/coretests/src/android/app/servertransaction/ |
D | TransactionExecutorTests.java | 19 import static android.app.servertransaction.ActivityLifecycleItem.ON_CREATE; 87 assertArrayEquals(new int[] {ON_CREATE}, path(ON_CREATE)); in testLifecycleFromPreOnCreate() 88 assertArrayEquals(new int[] {ON_CREATE, ON_START}, path(ON_START)); in testLifecycleFromPreOnCreate() 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() 99 mClientRecord.setState(ON_CREATE); in testLifecycleFromOnCreate() 100 assertArrayEquals(new int[] {}, path(ON_CREATE)); in testLifecycleFromOnCreate() 112 assertArrayEquals(new int[] {ON_RESUME, ON_PAUSE, ON_STOP, ON_DESTROY, ON_CREATE}, in testLifecycleFromOnStart() [all …]
|
/frameworks/support/lifecycle/service/src/androidTest/java/androidx/lifecycle/ |
D | ServiceLifecycleTest.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 95 awaitAndAssertEvents(ON_CREATE, ON_START); in testUnboundedService() 97 awaitAndAssertEvents(ON_CREATE, ON_START, ON_STOP, ON_DESTROY); in testUnboundedService() 103 awaitAndAssertEvents(ON_CREATE, ON_START); in testBoundedService() 105 awaitAndAssertEvents(ON_CREATE, ON_START, ON_STOP, ON_DESTROY); in testBoundedService() 112 awaitAndAssertEvents(ON_CREATE, ON_START); in testStartBindUnbindStop() 118 awaitAndAssertEvents(ON_CREATE, ON_START); in testStartBindUnbindStop() 124 awaitAndAssertEvents(ON_CREATE, ON_START); in testStartBindUnbindStop() 127 awaitAndAssertEvents(ON_CREATE, ON_START, ON_STOP, ON_DESTROY); in testStartBindUnbindStop() 134 awaitAndAssertEvents(ON_CREATE, ON_START); in testStartBindStopUnbind() [all …]
|
/frameworks/support/lifecycle/runtime/src/test/java/androidx/lifecycle/ |
D | LifecycleRegistryTest.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 70 dispatchEvent(ON_CREATE); in addGenericAndObserve() 71 verify(generic).onStateChanged(mLifecycleOwner, ON_CREATE); in addGenericAndObserve() 73 dispatchEvent(ON_CREATE); in addGenericAndObserve() 74 verify(generic, never()).onStateChanged(mLifecycleOwner, ON_CREATE); in addGenericAndObserve() 96 dispatchEvent(ON_CREATE); in add2RemoveOne() 122 dispatchEvent(ON_CREATE); in removeWhileTraversing() 185 dispatchEvent(ON_CREATE); in twoObserversChangingState() 206 dispatchEvent(ON_CREATE); in addDuringTraversing() 237 dispatchEvent(ON_CREATE); in addDuringAddition() [all …]
|
/frameworks/support/lifecycle/extensions/src/androidTest/java/androidx/lifecycle/ |
D | FragmentOperationsLifecycleTest.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 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()
|
D | FragmentLifecycleInActivityTest.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 83 assertEvents(ON_CREATE, ON_START, ON_RESUME); in testFullEvents() 93 assertEvents(ON_CREATE, ON_START, ON_RESUME); in testStopStart()
|
/frameworks/support/lifecycle/runtime/src/test/java/ |
D | NoPackageObserver.java | 17 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 23 @OnLifecycleEvent(ON_CREATE)
|
D | NoPackageTest.java | 17 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 51 mRegistry.handleLifecycleEvent(ON_CREATE); in testNoPackage()
|
/frameworks/support/lifecycle/integration-tests/testapp/src/main/java/androidx/lifecycle/testapp/ |
D | TestObserver.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 42 @OnLifecycleEvent(ON_CREATE) 44 mCollectedEvents.add(new Pair<>(LIFECYCLE_EVENT, ON_CREATE)); in create()
|
/frameworks/support/lifecycle/common/src/test/java/androidx/lifecycle/ |
D | ReflectiveGenericLifecycleObserverTest.java | 20 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 63 observer.onStateChanged(mOwner, ON_CREATE); in anyState() 64 verify(obj).onAnyState(mOwner, ON_CREATE); in anyState() 100 observer.onStateChanged(mOwner, ON_CREATE); in singleMethod() 106 @OnLifecycleEvent(ON_CREATE) 111 @OnLifecycleEvent(ON_CREATE) 123 observer.onStateChanged(mOwner, ON_CREATE); in eachEvent() 155 @OnLifecycleEvent(ON_CREATE)
|
D | FullLifecycleObserverTest.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 59 observer.onStateChanged(mOwner, ON_CREATE); in eachEvent()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/lifecycle/ |
D | ObservableActivity.java | 18 import static android.arch.lifecycle.Lifecycle.Event.ON_CREATE; 48 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate() 57 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
|
D | ObservableDialogFragment.java | 18 import static android.arch.lifecycle.Lifecycle.Event.ON_CREATE; 49 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
|
D | ObservableFragment.java | 19 import static android.arch.lifecycle.Lifecycle.Event.ON_CREATE; 54 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
|
D | ObservablePreferenceFragment.java | 19 import static android.arch.lifecycle.Lifecycle.Event.ON_CREATE; 59 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
|
/frameworks/base/core/java/android/app/servertransaction/ |
D | ActivityLifecycleItem.java | 33 ON_CREATE, 45 public static final int ON_CREATE = 1; field in ActivityLifecycleItem
|
/frameworks/support/lifecycle/integration-tests/testapp/src/test/java/androidx/lifecycle/ |
D | GeneratedAdaptersTest.java | 60 @OnLifecycleEvent(Lifecycle.Event.ON_CREATE) 70 callback.onStateChanged(mOwner, Lifecycle.Event.ON_CREATE); in testSimpleSingleGeneratedAdapter() 82 @OnLifecycleEvent(Lifecycle.Event.ON_CREATE) 97 callback.onStateChanged(mOwner, Lifecycle.Event.ON_CREATE); in testOnAny()
|
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/ |
D | FragmentInBackStackLifecycleTest.java | 20 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 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 | 19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 150 Arrays.asList(new Pair(OWNER_CALLBACK, ON_CREATE), 151 new Pair(LIFECYCLE_EVENT, ON_CREATE));
|
D | SimpleAppFullLifecycleTest.java | 51 new Pair(TestEventType.PROCESS_EVENT, Event.ON_CREATE), 52 new Pair(TestEventType.ACTIVITY_EVENT, Event.ON_CREATE),
|
/frameworks/support/lifecycle/common/src/test/java/androidx/lifecycle/observers/ |
D | DerivedWithOverridenMethodsWithLfAnnotation.java | 24 @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
|
D | Base.java | 25 @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
|
D | Interface1.java | 25 @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
|
D | Interface2.java | 25 @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
|
/frameworks/support/lifecycle/runtime/src/main/java/androidx/lifecycle/ |
D | LifecycleRegistry.java | 19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE; 237 case ON_CREATE: in getStateAfter() 273 return ON_CREATE; in upEvent()
|
/frameworks/support/lifecycle/common/src/main/java/androidx/lifecycle/ |
D | Lifecycle.java | 119 ON_CREATE, enumConstant
|