Home
last modified time | relevance | path

Searched refs:ON_CREATE (Results 1 – 25 of 47) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/app/servertransaction/
DTransactionExecutorTests.java19 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/
DServiceLifecycleTest.java19 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/
DLifecycleRegistryTest.java19 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/
DFragmentOperationsLifecycleTest.java19 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()
DFragmentLifecycleInActivityTest.java19 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/
DNoPackageObserver.java17 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE;
23 @OnLifecycleEvent(ON_CREATE)
DNoPackageTest.java17 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/
DTestObserver.java19 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/
DReflectiveGenericLifecycleObserverTest.java20 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)
DFullLifecycleObserverTest.java19 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/
DObservableActivity.java18 import static android.arch.lifecycle.Lifecycle.Event.ON_CREATE;
48 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
57 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
DObservableDialogFragment.java18 import static android.arch.lifecycle.Lifecycle.Event.ON_CREATE;
49 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
DObservableFragment.java19 import static android.arch.lifecycle.Lifecycle.Event.ON_CREATE;
54 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
DObservablePreferenceFragment.java19 import static android.arch.lifecycle.Lifecycle.Event.ON_CREATE;
59 mLifecycle.handleLifecycleEvent(ON_CREATE); in onCreate()
/frameworks/base/core/java/android/app/servertransaction/
DActivityLifecycleItem.java33 ON_CREATE,
45 public static final int ON_CREATE = 1; field in ActivityLifecycleItem
/frameworks/support/lifecycle/integration-tests/testapp/src/test/java/androidx/lifecycle/
DGeneratedAdaptersTest.java60 @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/
DFragmentInBackStackLifecycleTest.java20 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()
DTestUtils.java19 import static androidx.lifecycle.Lifecycle.Event.ON_CREATE;
150 Arrays.asList(new Pair(OWNER_CALLBACK, ON_CREATE),
151 new Pair(LIFECYCLE_EVENT, ON_CREATE));
DSimpleAppFullLifecycleTest.java51 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/
DDerivedWithOverridenMethodsWithLfAnnotation.java24 @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
DBase.java25 @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
DInterface1.java25 @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
DInterface2.java25 @OnLifecycleEvent(Lifecycle.Event.ON_CREATE)
/frameworks/support/lifecycle/runtime/src/main/java/androidx/lifecycle/
DLifecycleRegistry.java19 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/
DLifecycle.java119 ON_CREATE, enumConstant

12