/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 | 46 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 47 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED; 48 import static com.android.server.wm.ActivityStack.ActivityState.STOPPED; 49 import static com.android.server.wm.ActivityStack.ActivityState.STOPPING; 669 final ActivityStack topFocusedStack = getTopDisplayFocusedStack(); in getTopVisibleActivities() 675 final ActivityStack stack = display.getChildAt(j); in getTopVisibleActivities() 692 ActivityStack getTopDisplayFocusedStack() { in getTopDisplayFocusedStack() 694 final ActivityStack focusedStack = mActivityDisplays.get(i).getFocusedStack(); in getTopDisplayFocusedStack() 703 final ActivityStack focusedStack = getTopDisplayFocusedStack(); in getTopResumedActivity() 731 boolean isTopDisplayFocusedStack(ActivityStack stack) { in isTopDisplayFocusedStack() [all …]
|
D | RecentsAnimation.java | 72 private ActivityStack mRestoreTargetBehindStack; 108 ActivityStack targetStack = mDefaultDisplay.getStack(WINDOWING_MODE_UNDEFINED, in startRecentsActivity() 249 final ActivityStack targetStack = mDefaultDisplay.getStack( in finishAnimation() 282 final ActivityStack topStack = getTopNonAlwaysOnTopStack(); in finishAnimation() 293 final ActivityStack aboveTargetStack = in finishAnimation() 353 public void onStackOrderChanged(ActivityStack stack) { in onStackOrderChanged() 400 private ActivityStack getTopNonAlwaysOnTopStack() { in getTopNonAlwaysOnTopStack() 402 final ActivityStack s = mDefaultDisplay.getChildAt(i); in getTopNonAlwaysOnTopStack() 415 private ActivityRecord getTargetActivity(ActivityStack targetStack, ComponentName component, in getTargetActivity()
|
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; 404 final ActivityStack stack; 408 int _startFlags, ActivityStack _stack, WindowProcessController app) { in PendingActivityLaunch() 500 final ActivityStack recentsStack = mRootActivityContainer.getDefaultDisplay().getStack( in moveRecentsStackToFront() 719 final ActivityStack stack = task.getStack(); in realStartActivityLocked() 1003 ActivityStack resultStack) { in checkStartAnyActivityPermission() 1336 final ActivityStack stack = r.getActivityStack(); in activityIdleInternalLocked() 1339 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; 748 final ActivityStack resultStack = resultRecord == null in startActivity() 876 final ActivityStack focusedStack = in startActivity() 913 final ActivityStack stack = mRootActivityContainer.getTopDisplayFocusedStack(); in startActivity() 1095 ActivityStack startedActivityStack) { in postStartActivityProcessing() 1124 final ActivityStack homeStack = in postStartActivityProcessing() 1218 final ActivityStack stack = mRootActivityContainer.getTopDisplayFocusedStack(); in startActivityMayWait() 1391 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 | 400 final ActivityStack stack = in dismissDockedStackIfNeeded() 483 final ActivityStack stack = getStackForControllingOccluding(display); in visibilitiesUpdated() 522 private ActivityStack getStackForControllingOccluding(ActivityDisplay display) { in getStackForControllingOccluding() 524 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; 597 final ActivityStack stack = mPreQTopResumedActivity.getActivityStack(); in updateTopResumingActivityInProcessIfNeeded()
|
D | ActivityStack.java | 58 import static com.android.server.wm.ActivityStack.ActivityState.DESTROYED; 59 import static com.android.server.wm.ActivityStack.ActivityState.DESTROYING; 60 import static com.android.server.wm.ActivityStack.ActivityState.FINISHING; 61 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 62 import static com.android.server.wm.ActivityStack.ActivityState.PAUSING; 63 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED; 64 import static com.android.server.wm.ActivityStack.ActivityState.STOPPED; 65 import static com.android.server.wm.ActivityStack.ActivityState.STOPPING; 177 class ActivityStack extends ConfigurationContainer { class 506 ActivityStack(ActivityDisplay display, int stackId, ActivityStackSupervisor supervisor, in ActivityStack() method in ActivityStack [all …]
|
D | RunningTasks.java | 55 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 | 87 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_DESTROYING; 1081 final ActivityStack stack = getTopDisplayFocusedStack(); in startActivityIntentSender() 1656 ActivityStack stack = ActivityRecord.getStackLocked(token); in activityIdle() 1697 ActivityStack stack = ActivityRecord.getStackLocked(token); in activityPaused() 1724 && r.isState(ActivityStack.ActivityState.RESTARTING_PROCESS)) { in activityStopped() 1752 ActivityStack stack = ActivityRecord.getStackLocked(token); in activityDestroyed() 1878 ActivityStack.ActivityState.RESUMED, ActivityStack.ActivityState.PAUSING)) { in overridePendingTransition() 2014 final ActivityStack stack = ActivityRecord.getStackLocked(activityToken); in getActivityDisplayId() 2028 ActivityStack focusedStack = getTopDisplayFocusedStack(); in getFocusedStackInfo() 2046 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 | RecentsAnimationTest.java | 34 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 86 ActivityStack recentsStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testRecentsActivityVisiblility() 117 ActivityStack recentsStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testRestartRecentsActivity() 150 ActivityStack homeStack = display.getHomeStack(); in testSetLaunchTaskBehindOfTargetActivity() 190 ActivityStack fullscreenStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testCancelAnimationOnVisibleStackOrderChange() 197 ActivityStack recentsStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testCancelAnimationOnVisibleStackOrderChange() 204 ActivityStack fullscreenStack2 = display.createStack(WINDOWING_MODE_FULLSCREEN, in testCancelAnimationOnVisibleStackOrderChange() 234 ActivityStack fullscreenStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testKeepAnimationOnHiddenStackOrderChange() 241 ActivityStack recentsStack = display.createStack(WINDOWING_MODE_FULLSCREEN, in testKeepAnimationOnHiddenStackOrderChange() 248 ActivityStack fullscreenStack2 = display.createStack(WINDOWING_MODE_FULLSCREEN, in testKeepAnimationOnHiddenStackOrderChange() [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 | ActivityRecordTests.java | 33 import static com.android.server.wm.ActivityStack.ActivityState.INITIALIZING; 34 import static com.android.server.wm.ActivityStack.ActivityState.PAUSED; 35 import static com.android.server.wm.ActivityStack.ActivityState.PAUSING; 36 import static com.android.server.wm.ActivityStack.ActivityState.RESUMED; 37 import static com.android.server.wm.ActivityStack.ActivityState.STOPPED; 38 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_MOVING; 39 import static com.android.server.wm.ActivityStack.STACK_VISIBILITY_INVISIBLE; 40 import static com.android.server.wm.ActivityStack.STACK_VISIBILITY_VISIBLE; 41 import static com.android.server.wm.ActivityStack.STACK_VISIBILITY_VISIBLE_BEHIND_TRANSLUCENT; 192 mActivity.setState(ActivityStack.ActivityState.RESUMED, "testRestart"); in testRestartProcessIfVisible() [all …]
|
D | RootActivityContainerTests.java | 38 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_DESTROYING; 68 import com.android.server.wm.ActivityStack.ActivityState; 86 private ActivityStack mFullscreenStack; 131 ActivityStack pinnedStack = display.getPinnedStack(); in testReplacingTaskInPinnedStack() 148 private static void ensureStackPlacement(ActivityStack stack, TaskRecord... tasks) { in ensureStackPlacement() 166 final ActivityStack stack = mock(ActivityStack.class); in testApplySleepTokens() 198 ActivityStack stack, boolean displaySleeping, boolean displayShouldSleep, in verifySleepTokenBehavior() 222 final ActivityStack stack = mRootActivityContainer.getDefaultDisplay().createStack( in testRemovingStackOnAppCrash() 239 final ActivityStack stack = mRootActivityContainer.getDefaultDisplay().createStack( in testFocusability() 254 final ActivityStack pinnedStack = mRootActivityContainer.getDefaultDisplay().createStack( in testFocusability() [all …]
|
D | ActivityTestsBase.java | 40 import static com.android.server.wm.ActivityStack.REMOVE_TASK_MODE_DESTROYING; 195 private ActivityStack mStack; 233 ActivityBuilder setStack(ActivityStack stack) { in setStack() 322 private ActivityStack mStack; 367 TaskBuilder setStack(ActivityStack stack) { in setStack() 688 ActivityStack createStackUnchecked(int windowingMode, int activityType, in createStackUnchecked() 705 final ActivityStack stack = getChildAt(i); in removeAllTasks() 739 extends ActivityStack { 882 ActivityStack build() { in build() 885 return new ActivityStack(mDisplay, stackId, mRootActivityContainer.mStackSupervisor, in build()
|
D | RunningTasksTest.java | 64 final ActivityStack stack = in testCollectTasksByLastActiveTime() 100 private TaskRecord createTask(ActivityStack stack, String className, int taskId, in createTask()
|
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 | ActivityStackSupervisorTests.java | 57 private ActivityStack mFullscreenStack; 118 final ActivityStack stack = new StackBuilder(mRootActivityContainer) in testHandleNonResizableTaskOnSecondaryDisplay()
|
D | RecentTasksTest.java | 102 private ActivityStack mStack; 103 private ActivityStack mHomeStack; 607 ActivityStack singleTaskStack = mSingleTaskDisplay.createStack( in testVisibleTasks_singleTaskDisplay() 722 ActivityStack stack = mTasks.get(2).getStack(); in testFreezeTaskListOrder_timeout() 745 final ActivityStack homeStack = mDisplay.getHomeStack(); in testBackStackTasks_expectNoTrim() 746 final ActivityStack aboveHomeStack = new MyTestActivityStack(mDisplay, supervisor); in testBackStackTasks_expectNoTrim() 764 final ActivityStack behindHomeStack = new MyTestActivityStack(mDisplay, supervisor); in testBehindHomeStackTasks_expectTaskTrimmed() 765 final ActivityStack homeStack = mDisplay.getHomeStack(); in testBehindHomeStackTasks_expectTaskTrimmed() 766 final ActivityStack aboveHomeStack = new MyTestActivityStack(mDisplay, supervisor); in testBehindHomeStackTasks_expectTaskTrimmed() 786 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()
|