Searched refs:RESUMED (Results 1 - 20 of 20) sorted by relevance

/frameworks/support/fragment/src/androidTest/java/androidx/fragment/app/
H A DStrictFragment.java33 public static final int RESUMED = 5; field in class:StrictFragment
49 case RESUMED: return "RESUMED";
138 mState = RESUMED;
157 checkState("onPause", RESUMED);
159 onStateChanged(RESUMED);
H A DFragmentViewLifecycleTest.java65 assertEquals(Lifecycle.State.RESUMED,
114 assertEquals(Lifecycle.State.RESUMED,
169 assertEquals(Lifecycle.State.RESUMED,
171 assertTrue("LiveData should have active observers when RESUMED",
197 assertEquals(Lifecycle.State.RESUMED,
199 assertTrue("LiveData should have active observers when RESUMED",
212 assertEquals(Lifecycle.State.RESUMED,
214 assertTrue("LiveData should have active observers when RESUMED",
H A DFragmentLifecycleTest.java626 testLifecycleTransitionFailure(StrictFragment.STARTED, StrictFragment.RESUMED);
628 testLifecycleTransitionFailure(StrictFragment.RESUMED, StrictFragment.STARTED);
/frameworks/support/lifecycle/common/src/main/java/androidx/lifecycle/
H A DLifecycle.java190 RESUMED; enum constant in enum:Lifecycle.State
/frameworks/base/core/java/android/app/
H A DLocalActivityManager.java70 static final int RESUMED = 4; // Created started and resumed. field in class:LocalActivityManager
163 if (desiredState == RESUMED) {
166 r.curState = RESUMED;
185 if (desiredState == RESUMED) {
189 r.curState = RESUMED;
194 if (desiredState == RESUMED) {
199 r.curState = RESUMED;
208 case RESUMED:
218 mActivityThread.performStopActivity(r, false, "moveToState-RESUMED");
314 if (old != null && old != r && mCurState == RESUMED) {
[all...]
H A DFragment.java275 static final int RESUMED = 5; // Created started and resumed. field in class:Fragment
827 if (mState >= RESUMED) {
889 return mState >= RESUMED;
2566 mState = RESUMED;
H A DFragmentManager.java1340 if (DEBUG) Log.v(TAG, "moveto RESUMED: " + f);
1350 case Fragment.RESUMED:
1351 if (newState < Fragment.RESUMED) {
1352 if (DEBUG) Log.v(TAG, "movefrom RESUMED: " + f);
1660 if (mNeedMenuInvalidate && mHost != null && mCurState == Fragment.RESUMED) {
3008 dispatchMoveToState(Fragment.RESUMED);
3463 if (mHost != null && mCurState == Fragment.RESUMED) {
/frameworks/support/lifecycle/common/src/test/java/androidx/lifecycle/
H A DFullLifecycleObserverTest.java27 import static androidx.lifecycle.Lifecycle.State.RESUMED;
69 when(mLifecycle.getCurrentState()).thenReturn(RESUMED);
H A DReflectiveGenericLifecycleObserverTest.java28 import static androidx.lifecycle.Lifecycle.State.RESUMED;
132 when(mLifecycle.getCurrentState()).thenReturn(RESUMED);
/frameworks/support/lifecycle/runtime/src/main/java/androidx/lifecycle/
H A DLifecycleRegistry.java28 import static androidx.lifecycle.Lifecycle.State.RESUMED;
244 return RESUMED;
261 case RESUMED:
278 case RESUMED:
/frameworks/support/lifecycle/integration-tests/testapp/src/androidTest/java/androidx/lifecycle/
H A DTestUtils.java27 import static androidx.lifecycle.Lifecycle.State.RESUMED;
96 waitTillState(owner, activityRule, RESUMED);
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DActivityStackTests.java28 import static com.android.server.am.ActivityStack.ActivityState.RESUMED;
102 r.setState(RESUMED, "testResumedActivity");
112 r.setState(RESUMED, "testResumedActivityFromTaskReparenting");
130 r.setState(RESUMED, "testResumedActivityFromActivityReparenting");
/frameworks/base/services/core/java/com/android/server/am/
H A DActivityStack.java80 import static com.android.server.am.ActivityStack.ActivityState.RESUMED;
245 RESUMED, enum constant in enum:ActivityStack.ActivityState
490 if (record == mResumedActivity && state != RESUMED) {
494 if (state == RESUMED) {
1253 if (DEBUG_STATES) Slog.v(TAG_STATES, "Moving to RESUMED: " + r + " (starting new instance)"
1255 r.setState(RESUMED, "minimalResumeActivityLocked");
2152 case RESUMED:
2363 if (mResumedActivity == next && next.isState(RESUMED)
2462 } else if (mResumedActivity == next && next.isState(RESUMED)
2616 if (DEBUG_STATES) Slog.v(TAG_STATES, "Moving to RESUMED
[all...]
H A DActivityRecord.java99 import static com.android.server.am.ActivityStack.ActivityState.RESUMED;
1309 case RESUMED:
1437 if ((mState == RESUMED || mState == PAUSED
1729 if (mState == RESUMED || this == starting) {
1789 // to RESUMED. Adding PAUSING in this scenario will lead to double lifecycles.
1822 return mState == RESUMED;
2191 return visible || nowVisible || mState == PAUSING || mState == RESUMED;
2319 mState.ordinal() >= RESUMED.ordinal() && mState.ordinal() <= STOPPED.ordinal(),
2625 } else if (mState == RESUMED) {
2758 "Moving to " + (andResume ? "RESUMED"
[all...]
H A DActivityStackSupervisor.java83 import static com.android.server.am.ActivityStack.ActivityState.RESUMED;
1036 if (r != null && !r.isState(RESUMED)) {
2226 if (r == null || !r.isState(RESUMED)) {
2228 } else if (r.isState(RESUMED)) {
3784 || r.isState(RESUMED, PAUSING, PAUSED, STOPPING)) {
3956 if (state != INITIALIZING && state != RESUMED) Slog.e(TAG,
3965 if (r != null && (state == INITIALIZING || state == RESUMED)) Slog.e(TAG,
H A DActivityStarter.java69 import static com.android.server.am.ActivityStack.ActivityState.RESUMED;
1150 if (r.nowVisible && r.isState(RESUMED)) {
1592 if (top != null && !top.isState(RESUMED)) {
H A DActivityManagerService.java5871 if (self.isState(ActivityState.RESUMED, ActivityState.PAUSING)) {
[all...]
/frameworks/support/fragment/src/main/java/androidx/fragment/app/
H A DFragment.java96 static final int RESUMED = 4; // Created started and resumed. field in class:Fragment
830 if (mState >= RESUMED) {
902 return mState >= RESUMED;
2482 mState = RESUMED;
H A DFragmentManager.java1500 if (DEBUG) Log.v(TAG, "moveto RESUMED: " + f);
1509 case Fragment.RESUMED:
1510 if (newState < Fragment.RESUMED) {
1511 if (DEBUG) Log.v(TAG, "movefrom RESUMED: " + f);
1867 if (mNeedMenuInvalidate && mHost != null && mCurState == Fragment.RESUMED) {
3239 dispatchStateChange(Fragment.RESUMED);
/frameworks/base/tests/net/java/com/android/server/
H A DConnectivityServiceTest.java1420 RESUMED, enum constant in enum:ConnectivityServiceTest.CallbackState
1495 setLastCallback(CallbackState.RESUMED, network, null);
2735 cellNetworkCallback.expectCallback(CallbackState.RESUMED, mCellNetworkAgent);

Completed in 215 milliseconds