Home
last modified time | relevance | path

Searched refs:isState (Results 1 – 11 of 11) sorted by relevance

/frameworks/base/services/core/java/com/android/server/wm/
DActivityServiceConnectionsHolder.java76 return mActivity.visible || mActivity.isState(RESUMED, PAUSING); in isActivityVisible()
DWindowProcessController.java596 if (mPreQTopResumedActivity != null && mPreQTopResumedActivity.isState(RESUMED)) { in updateTopResumingActivityInProcessIfNeeded()
722 if (r.finishing || r.isState(DESTROYING, DESTROYED)) { in getReleaseSomeActivitiesTasks()
729 || r.isState(RESUMED, PAUSING, PAUSED, STOPPING)) { in getReleaseSomeActivitiesTasks()
786 } else if (r.isState(PAUSING, PAUSED)) { in computeOomAdjFromActivities()
788 } else if (r.isState(STOPPING)) { in computeOomAdjFromActivities()
DActivityStack.java1610 if (r.isState(STOPPING, STOPPED, PAUSED, PAUSING)) { in goToSleep()
1776 if (r.isState(PAUSING)) { in activityPausedLocked()
1796 final boolean wasStopping = prev.isState(STOPPING); in completePauseLocked()
2415 && !r.isState(STOPPING, STOPPED, PAUSED); in makeInvisible()
2648 if (mResumedActivity == next && next.isState(RESUMED) in resumeTopActivityInnerLocked()
2765 } else if (mResumedActivity == next && next.isState(RESUMED) in resumeTopActivityInnerLocked()
3873 if (r.isState(RESUMED, PAUSING, PAUSED)) { in finishTopCrashedActivityLocked()
4035 } else if (!r.isState(PAUSING)) { in finishActivityLocked()
4168 if (r.isState(RESUMED) && mPausingActivity != null) { in finishCurrentActivityLocked()
4588 if (r.isState(DESTROYING, DESTROYED)) { in destroyActivityLocked()
[all …]
DActivityRecord.java1904 boolean isState(ActivityState state) { in isState() method in ActivityRecord
1911 boolean isState(ActivityState state1, ActivityState state2) { in isState() method in ActivityRecord
1918 boolean isState(ActivityState state1, ActivityState state2, ActivityState state3) { in isState() method in ActivityRecord
1925 boolean isState(ActivityState state1, ActivityState state2, ActivityState state3, in isState() method in ActivityRecord
2045 if (isState(STOPPING, STOPPED) && isFocusable()) { in makeClientVisible()
2096 return shouldMakeActive(activeActivity) && !isFocusable() && !isState(PAUSING, PAUSED); in shouldPauseActivity()
2108 return shouldMakeActive(activeActivity) && isFocusable() && !isState(RESUMED) in shouldResumeActivity()
2126 if (!isState(RESUMED, PAUSED, STOPPED, STOPPING) in shouldMakeActive()
DActivityDisplay.java555 if (r != null && !r.isState(RESUMED)) { in allResumedActivitiesComplete()
1044 if (!r.isState(RESUMED) || r.getWindowingMode() != WINDOWING_MODE_FULLSCREEN) { in handleActivitySizeCompatModeIfNeeded()
DRootActivityContainer.java1177 if (display.isTopStack(stack) && topRunningActivity.isState(RESUMED)) { in resumeFocusedStacksTopActivities()
2084 if (r != null && !r.isState(PAUSED, STOPPED, STOPPING)) { in allPausedActivitiesComplete()
DActivityStackSupervisor.java2152 if (!processPausingActivities && s.isState(PAUSING)) { in processStoppingActivitiesLocked()
2664 && r.isState(ActivityStack.ActivityState.RESTARTING_PROCESS)) { in handleMessage()
DActivityStarter.java1344 if (r.nowVisible && r.isState(RESUMED)) { in startActivityMayWait()
1860 if (top != null && !top.isState(RESUMED)) { in setInitialState()
DTaskRecord.java1220 if (reportOut.top == null || (reportOut.top.isState(ActivityState.INITIALIZING))) { in getNumRunningActivities()
DActivityTaskManagerService.java1724 && r.isState(ActivityStack.ActivityState.RESTARTING_PROCESS)) { in activityStopped()
1877 if (self.isState( in overridePendingTransition()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordTests.java143 assertTrue(mActivity.isState(RESUMED)); in testPausingWhenVisibleFromStopped()
152 assertTrue(mActivity.isState(PAUSING)); in testPausingWhenVisibleFromStopped()
161 assertTrue(mActivity.isState(INITIALIZING)); in testPausingWhenVisibleFromStopped()
169 assertTrue(mActivity.isState(PAUSED)); in testPausingWhenVisibleFromStopped()