Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/wm/
DActivityServiceConnectionsHolder.java76 return mActivity.visible || mActivity.isState(RESUMED, PAUSING); in isActivityVisible()
DWindowProcessController.java608 if (mPreQTopResumedActivity != null && mPreQTopResumedActivity.isState(RESUMED)) { in updateTopResumingActivityInProcessIfNeeded()
734 if (r.finishing || r.isState(DESTROYING, DESTROYED)) { in getReleaseSomeActivitiesTasks()
741 || r.isState(RESUMED, PAUSING, PAUSED, STOPPING)) { in getReleaseSomeActivitiesTasks()
798 } else if (r.isState(PAUSING, PAUSED)) { in computeOomAdjFromActivities()
800 } else if (r.isState(STOPPING)) { in computeOomAdjFromActivities()
DActivityStack.java1613 if (r.isState(STOPPING, STOPPED, PAUSED, PAUSING)) { in goToSleep()
1779 if (r.isState(PAUSING)) { in activityPausedLocked()
1799 final boolean wasStopping = prev.isState(STOPPING); in completePauseLocked()
2417 && !r.isState(STOPPING, STOPPED, PAUSED); in makeInvisible()
2650 if (mResumedActivity == next && next.isState(RESUMED) in resumeTopActivityInnerLocked()
2774 } else if (mResumedActivity == next && next.isState(RESUMED) in resumeTopActivityInnerLocked()
3888 if (r.isState(RESUMED, PAUSING, PAUSED)) { in finishTopCrashedActivityLocked()
4058 } else if (!r.isState(PAUSING)) { in finishActivityLocked()
4195 if (r.isState(RESUMED) && mPausingActivity != null) { in finishCurrentActivityLocked()
4615 if (r.isState(DESTROYING, DESTROYED)) { in destroyActivityLocked()
[all …]
DActivityRecord.java1902 boolean isState(ActivityState state) { in isState() method in ActivityRecord
1909 boolean isState(ActivityState state1, ActivityState state2) { in isState() method in ActivityRecord
1916 boolean isState(ActivityState state1, ActivityState state2, ActivityState state3) { in isState() method in ActivityRecord
1923 boolean isState(ActivityState state1, ActivityState state2, ActivityState state3, in isState() method in ActivityRecord
2043 if (isState(STOPPING, STOPPED) && isFocusable()) { in makeClientVisible()
2094 return shouldMakeActive(activeActivity) && !isFocusable() && !isState(PAUSING, PAUSED); in shouldPauseActivity()
2106 return shouldMakeActive(activeActivity) && isFocusable() && !isState(RESUMED) in shouldResumeActivity()
2124 if (!isState(RESUMED, PAUSED, STOPPED, STOPPING) in shouldMakeActive()
DRecentsAnimation.java146 if (!targetActivity.isState(ActivityStack.ActivityState.STOPPING, in preloadRecentsActivity()
DActivityDisplay.java555 if (r != null && !r.isState(RESUMED)) { in allResumedActivitiesComplete()
1044 if (!r.isState(RESUMED) || r.getWindowingMode() != WINDOWING_MODE_FULLSCREEN) { in handleActivitySizeCompatModeIfNeeded()
DRootActivityContainer.java1178 if (display.isTopStack(stack) && topRunningActivity.isState(RESUMED)) { in resumeFocusedStacksTopActivities()
2105 if (r != null && !r.isState(PAUSED, STOPPED, STOPPING)) { in allPausedActivitiesComplete()
DActivityStackSupervisor.java2156 if (!processPausingActivities && s.isState(PAUSING)) { in processStoppingActivitiesLocked()
2668 && r.isState(ActivityStack.ActivityState.RESTARTING_PROCESS)) { in handleMessage()
DActivityStarter.java1354 if (r.nowVisible && r.isState(RESUMED)) { in startActivityMayWait()
1879 if (top != null && !top.isState(RESUMED)) { in setInitialState()
DTaskRecord.java1220 if (reportOut.top == null || (reportOut.top.isState(ActivityState.INITIALIZING))) { in getNumRunningActivities()
DActivityTaskManagerService.java1739 && r.isState(ActivityStack.ActivityState.RESTARTING_PROCESS)) { in activityStopped()
1892 if (self.isState( in overridePendingTransition()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DActivityRecordTests.java149 assertTrue(mActivity.isState(RESUMED)); in testPausingWhenVisibleFromStopped()
158 assertTrue(mActivity.isState(PAUSING)); in testPausingWhenVisibleFromStopped()
167 assertTrue(mActivity.isState(INITIALIZING)); in testPausingWhenVisibleFromStopped()
175 assertTrue(mActivity.isState(PAUSED)); in testPausingWhenVisibleFromStopped()