Searched refs:CREATED (Results 1 - 24 of 24) sorted by relevance

/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
H A DStrictFragment.java30 public static final int CREATED = 2; field in class:StrictFragment
46 case CREATED: return "CREATED";
110 mState = CREATED;
118 checkState("onActivityCreated", ATTACHED, CREATED);
149 // back stack, so fragments may be in the CREATED state.
150 checkStateAtLeast("onSaveInstanceState", CREATED);
167 mState = CREATED;
175 checkState("onDestroy", CREATED);
177 onStateChanged(CREATED);
[all...]
H A DStrictViewFragment.java45 checkState("onCreateView", CREATED);
57 checkState("onViewCreated", CREATED);
68 checkState("onDestroyView", CREATED);
H A DFragmentArchLifecycleTest.java62 assertEquals(Lifecycle.State.CREATED, first.getLifecycle().getCurrentState());
63 assertEquals(Lifecycle.State.CREATED, second.getLifecycle().getCurrentState());
64 Assert.assertEquals(Lifecycle.State.CREATED, activity.getLifecycle().getCurrentState());
H A DTransitionFragment.java63 checkState("onCreateView", CREATED);
H A DFragmentLifecycleTest.java499 * to at least the CREATED state by the time the parent fragment receives onCreateView.
623 testLifecycleTransitionFailure(StrictFragment.ATTACHED, StrictFragment.CREATED);
624 testLifecycleTransitionFailure(StrictFragment.CREATED, StrictFragment.ACTIVITY_CREATED);
629 testLifecycleTransitionFailure(StrictFragment.STARTED, StrictFragment.CREATED);
630 testLifecycleTransitionFailure(StrictFragment.CREATED, StrictFragment.ATTACHED);
/frameworks/support/lifecycle/common/src/main/java/androidx/lifecycle/
H A DLifecycle.java174 CREATED, enum constant in enum:Lifecycle.State
/frameworks/support/lifecycle/common/src/test/java/androidx/lifecycle/
H A DFullLifecycleObserverTest.java25 import static androidx.lifecycle.Lifecycle.State.CREATED;
57 when(mLifecycle.getCurrentState()).thenReturn(CREATED);
79 when(mLifecycle.getCurrentState()).thenReturn(CREATED);
H A DReflectiveGenericLifecycleObserverTest.java26 import static androidx.lifecycle.Lifecycle.State.CREATED;
99 when(mLifecycle.getCurrentState()).thenReturn(CREATED);
121 when(mLifecycle.getCurrentState()).thenReturn(CREATED);
142 when(mLifecycle.getCurrentState()).thenReturn(CREATED);
/frameworks/base/core/java/android/app/
H A DLocalActivityManager.java68 static final int CREATED = 2; // Created, not started or resumed. field in class:LocalActivityManager
172 // of our own (it is now STARTED, while we are only CREATED).
179 case CREATED:
188 mActivityThread.performResumeActivity(r, true, "moveToState-CREATED");
201 if (desiredState == CREATED) {
204 r.curState = CREATED;
214 if (desiredState == CREATED) {
219 r.curState = CREATED;
492 mCurState = CREATED;
593 mCurState = CREATED;
[all...]
H A DFragmentManager.java1167 if ((!f.mAdded || f.mDetached) && newState > Fragment.CREATED) {
1168 newState = Fragment.CREATED;
1173 newState = Fragment.CREATED;
1202 if (DEBUG) Log.v(TAG, "moveto CREATED: " + f);
1227 // If we have a target fragment, push it along to at least CREATED
1235 if (f.mTarget.mState < Fragment.CREATED) {
1236 moveToState(f.mTarget, Fragment.CREATED, 0, 0, true);
1260 f.mState = Fragment.CREATED;
1265 case Fragment.CREATED:
1267 // even if we do a moveToState from CREATED
[all...]
H A DFragment.java271 static final int CREATED = 1; // Created. field in class:Fragment
833 } else if (mState >= CREATED) {
1527 && !mChildFragmentManager.isStateAtLeast(Fragment.CREATED)) {
2501 mState = CREATED;
2762 mState = CREATED;
H A DFragmentTransition.java90 if (fragmentManager.mCurState < Fragment.CREATED) {
1311 * Ensure that fragments that are entering are at least at the CREATED state
1315 if (fragment.mState < Fragment.CREATED && manager.mCurState >= Fragment.CREATED &&
1319 manager.moveToState(fragment, Fragment.CREATED, 0, 0, false);
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/
H A DSimpleAppFullLifecycleTest.java19 import static androidx.lifecycle.Lifecycle.State.CREATED;
93 assertThat(currentState, is(CREATED));
H A DTestUtils.java25 import static androidx.lifecycle.Lifecycle.State.CREATED;
86 waitTillState(owner, activityRule, CREATED);
/frameworks/support/compat/src/main/java/androidx/core/app/
H A DComponentActivity.java78 mLifecycleRegistry.markState(Lifecycle.State.CREATED);
/frameworks/support/lifecycle/runtime/src/main/java/androidx/lifecycle/
H A DLifecycleRegistry.java25 import static androidx.lifecycle.Lifecycle.State.CREATED;
85 // newObserver should be brought only to CREATED state during the execution of
239 return CREATED;
257 case CREATED:
274 case CREATED:
/frameworks/support/lifecycle/livedata-core/src/test/java/androidx/lifecycle/
H A DLiveDataTest.java611 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.CREATED);
628 * observing was in the CREATED state and no event was dispatched).
644 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.CREATED);
662 * Arrange: One of two Lifecycles enter the CREATED state without sending an event.
683 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.CREATED);
701 * Arrange: Two observed Lifecycles enter the CREATED state without sending an event.
721 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.CREATED);
722 when(mLifecycle4.getCurrentState()).thenReturn(Lifecycle.State.CREATED);
741 * observing were in the CREATED state and no event was dispatched).
762 when(mLifecycle3.getCurrentState()).thenReturn(Lifecycle.State.CREATED);
[all...]
/frameworks/support/fragment/src/main/java/androidx/fragment/app/
H A DFragmentManager.java1321 if ((!f.mAdded || f.mDetached) && newState > Fragment.CREATED) {
1322 newState = Fragment.CREATED;
1327 newState = Fragment.CREATED;
1357 if (DEBUG) Log.v(TAG, "moveto CREATED: " + f);
1389 // If we have a target fragment, push it along to at least CREATED
1397 if (f.mTarget.mState < Fragment.CREATED) {
1398 moveToState(f.mTarget, Fragment.CREATED, 0, 0, true);
1422 f.mState = Fragment.CREATED;
1427 case Fragment.CREATED:
1429 // even if we do a moveToState from CREATED
[all...]
H A DFragmentTransition.java105 if (fragmentManager.mCurState < Fragment.CREATED) {
1183 * Ensure that fragments that are entering are at least at the CREATED state
1187 if (fragment.mState < Fragment.CREATED && manager.mCurState >= Fragment.CREATED
1190 manager.moveToState(fragment, Fragment.CREATED, 0, 0, false);
H A DFragment.java93 static final int CREATED = 1; // Created. field in class:Fragment
836 } else if (mState >= CREATED) {
1483 && !mChildFragmentManager.isStateAtLeast(Fragment.CREATED)) {
1495 * the child FragmentManager will be instantiated and brought to the {@link #CREATED} state.
2398 mState = CREATED;
2656 mState = CREATED;
H A DFragmentActivity.java1038 reiterate = markState(getSupportFragmentManager(), Lifecycle.State.CREATED);
/frameworks/base/core/java/android/provider/
H A DBrowser.java467 public static final String CREATED = "created"; field in class:Browser.BookmarkColumns
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/
H A DWorkContinuationImplTest.java103 lifecycleOwner.mLifecycleRegistry.markState(Lifecycle.State.CREATED);
/frameworks/base/cmds/statsd/src/
H A Datoms.proto1494 CREATED = 1;

Completed in 296 milliseconds