/frameworks/base/services/core/java/com/android/server/wm/ |
D | ActivityDisplay.java | 42 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED; 43 import static com.android.server.wm.ActivityStack.STACK_VISIBILITY_VISIBLE; 79 class ActivityDisplay extends ConfigurationContainer<ActivityStack> 106 private final ArrayList<ActivityStack> mStacks = new ArrayList<>(); 140 private ActivityStack mPreferredTopFocusableStack; 147 private ActivityStack mLastFocusedStack; 151 private ActivityStack mHomeStack = null; 152 private ActivityStack mRecentsStack = null; 153 private ActivityStack mPinnedStack = null; 154 private ActivityStack mSplitScreenPrimaryStack = null; [all …]
|
D | RootActivityContainer.java | 47 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 48 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED; 49 import static com.android.server.wm.ActivityStack.ActivityState.STOPPED; 50 import static com.android.server.wm.ActivityStack.ActivityState.STOPPING; 670 final ActivityStack topFocusedStack = getTopDisplayFocusedStack(); in getTopVisibleActivities() 676 final ActivityStack stack = display.getChildAt(j); in getTopVisibleActivities() 693 ActivityStack getTopDisplayFocusedStack() { in getTopDisplayFocusedStack() 695 final ActivityStack focusedStack = mActivityDisplays.get(i).getFocusedStack(); in getTopDisplayFocusedStack() 704 final ActivityStack focusedStack = getTopDisplayFocusedStack(); in getTopResumedActivity() 732 boolean isTopDisplayFocusedStack(ActivityStack stack) { in isTopDisplayFocusedStack() [all …]
|
D | RecentsAnimation.java | 76 private ActivityStack mRestoreTargetBehindStack; 105 ActivityStack targetStack = mDefaultDisplay.getStack(WINDOWING_MODE_UNDEFINED, in preloadRecentsActivity() 146 if (!targetActivity.isState(ActivityStack.ActivityState.STOPPING, in preloadRecentsActivity() 147 ActivityStack.ActivityState.STOPPED)) { in preloadRecentsActivity() 172 ActivityStack targetStack = mDefaultDisplay.getStack(WINDOWING_MODE_UNDEFINED, in startRecentsActivity() 304 final ActivityStack targetStack = mDefaultDisplay.getStack( in finishAnimation() 337 final ActivityStack topStack = getTopNonAlwaysOnTopStack(); in finishAnimation() 348 final ActivityStack aboveTargetStack = in finishAnimation() 408 public void onStackOrderChanged(ActivityStack stack) { in onStackOrderChanged() 472 private ActivityStack getTopNonAlwaysOnTopStack() { in getTopNonAlwaysOnTopStack() [all …]
|
D | ActivityStackSupervisor.java | 52 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 53 import static com.android.server.wm.ActivityStack.ActivityState.PAUSING; 54 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_MOVING; 411 final ActivityStack stack; 415 int _startFlags, ActivityStack _stack, WindowProcessController app) { in PendingActivityLaunch() 515 final ActivityStack recentsStack = mRootActivityContainer.getDefaultDisplay().getStack( in moveRecentsStackToFront() 734 final ActivityStack stack = task.getStack(); in realStartActivityLocked() 1006 ActivityStack resultStack) { in checkStartAnyActivityPermission() 1339 final ActivityStack stack = r.getActivityStack(); in activityIdleInternalLocked() 1342 stack.finishCurrentActivityLocked(r, ActivityStack.FINISH_IMMEDIATELY, false, in activityIdleInternalLocked() [all …]
|
D | ActivityStarter.java | 62 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED; 184 private ActivityStack mSourceStack; 185 private ActivityStack mTargetStack; 750 final ActivityStack resultStack = resultRecord == null in startActivity() 878 final ActivityStack focusedStack = in startActivity() 915 final ActivityStack stack = mRootActivityContainer.getTopDisplayFocusedStack(); in startActivity() 1097 ActivityStack startedActivityStack) { in postStartActivityProcessing() 1134 final ActivityStack homeStack = in postStartActivityProcessing() 1228 final ActivityStack stack = mRootActivityContainer.getTopDisplayFocusedStack(); in startActivityMayWait() 1401 final ActivityStack startedActivityStack; in startActivity() [all …]
|
D | ActivityServiceConnectionsHolder.java | 19 import static com.android.server.wm.ActivityStack.ActivityState.PAUSING; 20 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED;
|
D | ActivityRecord.java | 105 import static com.android.server.wm.ActivityStack.ActivityState.DESTROYED; 106 import static com.android.server.wm.ActivityStack.ActivityState.INITIALIZING; 107 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 108 import static com.android.server.wm.ActivityStack.ActivityState.PAUSING; 109 import static com.android.server.wm.ActivityStack.ActivityState.RESTARTING_PROCESS; 110 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED; 111 import static com.android.server.wm.ActivityStack.ActivityState.STOPPED; 112 import static com.android.server.wm.ActivityStack.ActivityState.STOPPING; 113 import static com.android.server.wm.ActivityStack.LAUNCH_TICK; 114 import static com.android.server.wm.ActivityStack.LAUNCH_TICK_MSG; [all …]
|
D | KeyguardController.java | 405 final ActivityStack stack = in dismissDockedStackIfNeeded() 488 final ActivityStack stack = getStackForControllingOccluding(display); in visibilitiesUpdated() 527 private ActivityStack getStackForControllingOccluding(ActivityDisplay display) { in getStackForControllingOccluding() 529 final ActivityStack stack = display.getChildAt(stackNdx); in getStackForControllingOccluding()
|
D | WindowProcessController.java | 24 import static com.android.server.wm.ActivityStack.ActivityState.DESTROYED; 25 import static com.android.server.wm.ActivityStack.ActivityState.DESTROYING; 26 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 27 import static com.android.server.wm.ActivityStack.ActivityState.PAUSING; 28 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED; 29 import static com.android.server.wm.ActivityStack.ActivityState.STOPPING; 609 final ActivityStack stack = mPreQTopResumedActivity.getActivityStack(); in updateTopResumingActivityInProcessIfNeeded()
|
D | ActivityStack.java | 59 import static com.android.server.wm.ActivityStack.ActivityState.DESTROYED; 60 import static com.android.server.wm.ActivityStack.ActivityState.DESTROYING; 61 import static com.android.server.wm.ActivityStack.ActivityState.FINISHING; 62 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 63 import static com.android.server.wm.ActivityStack.ActivityState.PAUSING; 64 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED; 65 import static com.android.server.wm.ActivityStack.ActivityState.STOPPED; 66 import static com.android.server.wm.ActivityStack.ActivityState.STOPPING; 180 class ActivityStack extends ConfigurationContainer { class 509 ActivityStack(ActivityDisplay display, int stackId, ActivityStackSupervisor supervisor, in ActivityStack() method in ActivityStack [all …]
|
D | RunningTasks.java | 56 final ActivityStack stack = display.getChildAt(stackNdx); in getTasks()
|
D | RecentTasks.java | 212 final ActivityStack stack = mService.getTopDisplayFocusedStack(); 312 final ActivityStack focusedStack = mService.getTopDisplayFocusedStack(); in resetFreezeTaskListReorderingOnTimeout() 502 final ActivityStack stack = task != null ? task.getStack() : null; in notifyTaskPersisterLocked() 536 final ActivityStack stack = task.getStack(); in shouldPersistTaskLocked() 966 final ActivityStack stack = task.getStack(); in getPersistableTaskIds() 1301 final ActivityStack stack = task.getStack(); in isVisibleRecentTask() 1311 final ActivityStack stack = task.getStack(); in isVisibleRecentTask() 1369 final ActivityStack stack = task.getStack(); in isTrimmable()
|
D | TaskRecord.java | 70 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_MOVING; 71 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_MOVING_TO_TOP; 129 import com.android.server.wm.ActivityStack.ActivityState; 271 private ActivityStack mStack; 638 boolean reparent(ActivityStack preferredStack, boolean toTop, in reparent() 649 boolean reparent(ActivityStack preferredStack, boolean toTop, in reparent() 657 boolean reparent(ActivityStack preferredStack, int position, in reparent() 683 boolean reparent(ActivityStack preferredStack, int position, in reparent() 689 final ActivityStack sourceStack = getStack(); in reparent() 690 final ActivityStack toStack = supervisor.getReparentTargetStack(this, preferredStack, in reparent() [all …]
|
D | ActivityTaskManagerService.java | 89 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_DESTROYING; 1084 final ActivityStack stack = getTopDisplayFocusedStack(); in startActivityIntentSender() 1671 ActivityStack stack = ActivityRecord.getStackLocked(token); in activityIdle() 1712 ActivityStack stack = ActivityRecord.getStackLocked(token); in activityPaused() 1739 && r.isState(ActivityStack.ActivityState.RESTARTING_PROCESS)) { in activityStopped() 1767 ActivityStack stack = ActivityRecord.getStackLocked(token); in activityDestroyed() 1893 ActivityStack.ActivityState.RESUMED, ActivityStack.ActivityState.PAUSING)) { in overridePendingTransition() 2029 final ActivityStack stack = ActivityRecord.getStackLocked(activityToken); in getActivityDisplayId() 2043 ActivityStack focusedStack = getTopDisplayFocusedStack(); in getFocusedStackInfo() 2061 final ActivityStack stack = mRootActivityContainer.getStack(stackId); in setFocusedStack() [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | ActivityDisplayTests.java | 70 final ActivityStack stack = in testLastFocusedStackIsUpdatedWhenMovingStack() 72 final ActivityStack prevFocusedStack = display.getFocusedStack(); in testLastFocusedStackIsUpdatedWhenMovingStack() 91 final ActivityStack pinnedStack = mRootActivityContainer.getDefaultDisplay().createStack( in testFullscreenStackCanBeFocusedWhenFocusablePinnedStackExists() 103 final ActivityStack fullscreenStack = createFullscreenStackWithSimpleActivityAt( in testFullscreenStackCanBeFocusedWhenFocusablePinnedStackExists() 119 final ActivityStack stack1 = createFullscreenStackWithSimpleActivityAt(display); in testStackShouldNotBeFocusedAfterMovingToBackOrRemoving() 120 final ActivityStack stack2 = createFullscreenStackWithSimpleActivityAt(display); in testStackShouldNotBeFocusedAfterMovingToBackOrRemoving() 149 final ActivityStack homeStack = display.createStack( in testNotResumeHomeStackOnRemovingDisplay() 154 final ActivityStack spiedHomeStack = spy(homeStack); in testNotResumeHomeStackOnRemovingDisplay() 159 final ActivityStack stack = createFullscreenStackWithSimpleActivityAt(display); in testNotResumeHomeStackOnRemovingDisplay() 169 private ActivityStack createFullscreenStackWithSimpleActivityAt(ActivityDisplay display) { in createFullscreenStackWithSimpleActivityAt() [all …]
|
D | ActivityStackTests.java | 33 import static com.android.server.wm.ActivityStack.ActivityState.DESTROYING; 34 import static com.android.server.wm.ActivityStack.ActivityState.FINISHING; 35 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 36 import static com.android.server.wm.ActivityStack.ActivityState.PAUSING; 37 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED; 38 import static com.android.server.wm.ActivityStack.ActivityState.STOPPED; 39 import static com.android.server.wm.ActivityStack.ActivityState.STOPPING; 40 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_DESTROYING; 41 import static com.android.server.wm.ActivityStack.STACK_VISIBILITY_INVISIBLE; 42 import static com.android.server.wm.ActivityStack.STACK_VISIBILITY_VISIBLE; [all …]
|
D | RecentsAnimationTest.java | 34 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 89 ActivityStack recentsStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testRecentsActivityVisiblility() 142 ActivityStack recentsStack = display.getStack(WINDOWING_MODE_FULLSCREEN, in testPreloadRecentsActivity() 171 ActivityStack recentsStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testRestartRecentsActivity() 204 ActivityStack homeStack = display.getHomeStack(); in testSetLaunchTaskBehindOfTargetActivity() 244 ActivityStack fullscreenStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testCancelAnimationOnVisibleStackOrderChange() 251 ActivityStack recentsStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testCancelAnimationOnVisibleStackOrderChange() 258 ActivityStack fullscreenStack2 = display.createStack(WINDOWING_MODE_FULLSCREEN, in testCancelAnimationOnVisibleStackOrderChange() 289 ActivityStack fullscreenStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testKeepAnimationOnHiddenStackOrderChange() 296 ActivityStack recentsStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testKeepAnimationOnHiddenStackOrderChange() [all …]
|
D | RootActivityContainerTests.java | 39 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_DESTROYING; 70 import com.android.server.wm.ActivityStack.ActivityState; 88 private ActivityStack mFullscreenStack; 133 ActivityStack pinnedStack = display.getPinnedStack(); in testReplacingTaskInPinnedStack() 150 private static void ensureStackPlacement(ActivityStack stack, TaskRecord... tasks) { in ensureStackPlacement() 168 final ActivityStack stack = mock(ActivityStack.class); in testApplySleepTokens() 200 ActivityStack stack, boolean displaySleeping, boolean displayShouldSleep, in verifySleepTokenBehavior() 224 final ActivityStack stack = mRootActivityContainer.getDefaultDisplay().createStack( in testRemovingStackOnAppCrash() 241 final ActivityStack stack = mRootActivityContainer.getDefaultDisplay().createStack( in testFocusability() 256 final ActivityStack pinnedStack = mRootActivityContainer.getDefaultDisplay().createStack( in testFocusability() [all …]
|
D | ActivityRecordTests.java | 34 import static com.android.server.wm.ActivityStack.ActivityState.INITIALIZING; 35 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 36 import static com.android.server.wm.ActivityStack.ActivityState.PAUSING; 37 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED; 38 import static com.android.server.wm.ActivityStack.ActivityState.STOPPED; 39 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_MOVING; 40 import static com.android.server.wm.ActivityStack.STACK_VISIBILITY_INVISIBLE; 41 import static com.android.server.wm.ActivityStack.STACK_VISIBILITY_VISIBLE; 42 import static com.android.server.wm.ActivityStack.STACK_VISIBILITY_VISIBLE_BEHIND_TRANSLUCENT; 198 mActivity.setState(ActivityStack.ActivityState.RESUMED, "testRestart"); in testRestartProcessIfVisible() [all …]
|
D | ActivityTestsBase.java | 40 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_DESTROYING; 208 private ActivityStack mStack; 248 ActivityBuilder setStack(ActivityStack stack) { in setStack() 348 private ActivityStack mStack; 393 TaskBuilder setStack(ActivityStack stack) { in setStack() 719 ActivityStack createStackUnchecked(int windowingMode, int activityType, in createStackUnchecked() 736 final ActivityStack stack = getChildAt(i); in removeAllTasks() 770 extends ActivityStack { 913 ActivityStack build() { in build() 916 return new ActivityStack(mDisplay, stackId, mRootActivityContainer.mStackSupervisor, in build()
|
D | RunningTasksTest.java | 67 final ActivityStack stack = in testCollectTasksByLastActiveTime() 105 private TaskRecord createTask(ActivityStack stack, String className, int taskId, in createTask()
|
D | ActivityStackSupervisorTests.java | 57 private ActivityStack mFullscreenStack; 118 final ActivityStack stack = new StackBuilder(mRootActivityContainer) in testHandleNonResizableTaskOnSecondaryDisplay()
|
D | ActivityStarterTests.java | 144 assertThat((Object) task2.getStack()).isInstanceOf(ActivityStack.class); in testUpdateLaunchBounds() 337 final ActivityStack stack = mRootActivityContainer.getDefaultDisplay().createStack( in prepareStarter() 436 final ActivityStack focusStack = focusActivity.getActivityStack(); in testSplitScreenDeliverToTop() 501 final ActivityStack stack = display.getChildAt(i); in assertNoTasks() 736 final ActivityStack stack = secondaryDisplay.createStack(WINDOWING_MODE_FULLSCREEN, in testDeliverIntentToTopActivityOfNonTopDisplay() 779 final ActivityStack topStack = secondaryDisplay.createStack(WINDOWING_MODE_FULLSCREEN, in testBringTaskToFrontOnSecondaryDisplay() 799 private ActivityRecord createSingleTaskActivityOn(ActivityStack stack) { in createSingleTaskActivityOn()
|
D | RecentTasksTest.java | 103 private ActivityStack mStack; 104 private ActivityStack mHomeStack; 608 ActivityStack singleTaskStack = mSingleTaskDisplay.createStack( in testVisibleTasks_singleTaskDisplay() 723 ActivityStack stack = mTasks.get(2).getStack(); in testFreezeTaskListOrder_timeout() 746 final ActivityStack homeStack = mDisplay.getHomeStack(); in testBackStackTasks_expectNoTrim() 747 final ActivityStack aboveHomeStack = new MyTestActivityStack(mDisplay, supervisor); in testBackStackTasks_expectNoTrim() 765 final ActivityStack behindHomeStack = new MyTestActivityStack(mDisplay, supervisor); in testBehindHomeStackTasks_expectTaskTrimmed() 766 final ActivityStack homeStack = mDisplay.getHomeStack(); in testBehindHomeStackTasks_expectTaskTrimmed() 767 final ActivityStack aboveHomeStack = new MyTestActivityStack(mDisplay, supervisor); in testBehindHomeStackTasks_expectTaskTrimmed() 787 final ActivityStack homeStack = mDisplay.getHomeStack(); in testOtherDisplayTasks_expectNoTrim() [all …]
|
D | TaskRecordTests.java | 181 ActivityStack stack = display.createStack(WINDOWING_MODE_FREEFORM, ACTIVITY_TYPE_STANDARD, in testFitWithinBounds() 219 ActivityStack stack = new StackBuilder(mRootActivityContainer).setDisplay(display) in testBoundsOnModeChangeFreeformToFullscreen() 274 ActivityStack stack = new StackBuilder(mRootActivityContainer) in testFullscreenBoundsForcedOrientation() 339 ActivityStack stack = new StackBuilder(mRootActivityContainer) in testIgnoresForcedOrientationWhenParentHandles() 450 ActivityStack stack = display.createStack(windowingMode, ACTIVITY_TYPE_STANDARD, in testStackBoundsConfiguration()
|