Home
last modified time | relevance | path

Searched refs:mRootActivityContainer (Results 1 – 25 of 40) sorted by relevance

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRootActivityContainerTests.java90 mFullscreenStack = mRootActivityContainer.getDefaultDisplay().createStack( in setUp()
100 ((TestActivityDisplay) mRootActivityContainer.getDefaultDisplay()).removeAllTasks(); in testRestoringInvalidTask()
101 TaskRecord task = mRootActivityContainer.anyTaskForId(0 /*taskId*/, in testRestoringInvalidTask()
127 mRootActivityContainer.moveActivityToPinnedStack(firstActivity, sourceBounds, in testReplacingTaskInPinnedStack()
137 mRootActivityContainer.moveActivityToPinnedStack(secondActivity, sourceBounds, in testReplacingTaskInPinnedStack()
164 final ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testApplySleepTokens()
209 mRootActivityContainer.applySleepTokens(true); in verifySleepTokenBehavior()
220 final ActivityDisplay defaultDisplay = mRootActivityContainer.getDefaultDisplay(); in testRemovingStackOnAppCrash()
222 final ActivityStack stack = mRootActivityContainer.getDefaultDisplay().createStack( in testRemovingStackOnAppCrash()
231 mRootActivityContainer.finishTopCrashedActivities(firstActivity.app, "test"); in testRemovingStackOnAppCrash()
[all …]
DActivityTestsBase.java103 RootActivityContainer mRootActivityContainer; field in ActivityTestsBase
127 mRootActivityContainer = mService.mRootActivityContainer; in setUpBase()
157 mRootActivityContainer.addChild(display, position); in addNewActivityDisplayAt()
164 mRootActivityContainer.addChild(display, position); in addNewActivityDisplayAt()
373 mStack = mSupervisor.mRootActivityContainer.getDefaultDisplay().createStack( in build()
477 spyOn(mRootActivityContainer); in initRootActivityContainerMocks()
478 mRootActivityContainer.setWindowContainer(mock(RootWindowContainer.class)); in initRootActivityContainerMocks()
479 mRootActivityContainer.mWindowManager = wm; in initRootActivityContainerMocks()
480 mRootActivityContainer.mDisplayManager = in initRootActivityContainerMocks()
482 doNothing().when(mRootActivityContainer).setWindowManager(any()); in initRootActivityContainerMocks()
[all …]
DActivityDisplayTests.java69 final ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testLastFocusedStackIsUpdatedWhenMovingStack()
71 new StackBuilder(mRootActivityContainer).setOnTop(!ON_TOP).build(); in testLastFocusedStackIsUpdatedWhenMovingStack()
91 final ActivityStack pinnedStack = mRootActivityContainer.getDefaultDisplay().createStack( in testFullscreenStackCanBeFocusedWhenFocusablePinnedStackExists()
104 mRootActivityContainer.getDefaultDisplay()); in testFullscreenStackCanBeFocusedWhenFocusablePinnedStackExists()
146 mRootActivityContainer.addChild(display, ActivityDisplay.POSITION_TOP); in testNotResumeHomeStackOnRemovingDisplay()
183 final ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testTopRunningActivity()
185 final ActivityStack stack = new StackBuilder(mRootActivityContainer).build(); in testTopRunningActivity()
190 new StackBuilder(mRootActivityContainer).setCreateActivity(false).build(); in testTopRunningActivity()
233 final ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testAlwaysOnTopStackLocation()
287 removeStackTests(() -> mRootActivityContainer.removeStacksInWindowingModes( in testRemoveStackInWindowingModes()
[all …]
DRecentsAnimationTest.java85 ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testRecentsActivityVisiblility()
97 doCallRealMethod().when(mRootActivityContainer).ensureActivitiesVisible( in testRecentsActivityVisiblility()
116 ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testRestartRecentsActivity()
128 doCallRealMethod().when(mRootActivityContainer).ensureActivitiesVisible( in testRestartRecentsActivity()
141 verify(mRootActivityContainer.mStackSupervisor).startSpecificActivityLocked( in testRestartRecentsActivity()
148 ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testSetLaunchTaskBehindOfTargetActivity()
188 ActivityDisplay display = mService.mRootActivityContainer.getDefaultDisplay(); in testCancelAnimationOnVisibleStackOrderChange()
233 ActivityDisplay display = mService.mRootActivityContainer.getDefaultDisplay(); in testKeepAnimationOnHiddenStackOrderChange()
269 ActivityDisplay display = mService.mRootActivityContainer.getDefaultDisplay(); in testMultipleUserHomeActivity_findUserHomeTask()
287 doCallRealMethod().when(mRootActivityContainer).ensureActivitiesVisible( in testMultipleUserHomeActivity_findUserHomeTask()
DActivityStarterTests.java130 .setStack(mService.mRootActivityContainer.getDefaultDisplay().createStack( in testUpdateLaunchBounds()
141 .setStack(mService.mRootActivityContainer.getDefaultDisplay().createStack( in testUpdateLaunchBounds()
337 final ActivityStack stack = mRootActivityContainer.getDefaultDisplay().createStack( in prepareStarter()
341 doReturn(stack).when(mRootActivityContainer) in prepareStarter()
343 doReturn(stack).when(mRootActivityContainer) in prepareStarter()
439 doReturn(reusableActivity).when(mRootActivityContainer).findTask(any(), anyInt()); in testSplitScreenDeliverToTop()
471 doReturn(reusableActivity).when(mRootActivityContainer).findTask(any(), anyInt()); in testSplitScreenTaskToFront()
484 final ActivityDisplay display = mService.mRootActivityContainer.getDefaultDisplay(); in testTaskModeViolation()
711 assertEquals(finishingTopActivity, mRootActivityContainer.topRunningActivity()); in testBringTaskToFrontWhenFocusedStackIsFinising()
720 assertEquals(activity, mRootActivityContainer.topRunningActivity()); in testBringTaskToFrontWhenFocusedStackIsFinising()
[all …]
DWindowProcessControllerTests.java76 mRootActivityContainer.removeChild(testActivityDisplay1); in testDisplayConfigurationListener()
83 mRootActivityContainer.addChild(testActivityDisplay, POSITION_TOP); in createTestActivityDisplayInContainer()
DTaskRecordTests.java180 ActivityDisplay display = mService.mRootActivityContainer.getDefaultDisplay(); in testFitWithinBounds()
218 ActivityDisplay display = mService.mRootActivityContainer.getDefaultDisplay(); in testBoundsOnModeChangeFreeformToFullscreen()
219 ActivityStack stack = new StackBuilder(mRootActivityContainer).setDisplay(display) in testBoundsOnModeChangeFreeformToFullscreen()
267 assertTrue(mRootActivityContainer.getActivityDisplay(display.mDisplayId) != null); in testFullscreenBoundsForcedOrientation()
274 ActivityStack stack = new StackBuilder(mRootActivityContainer) in testFullscreenBoundsForcedOrientation()
339 ActivityStack stack = new StackBuilder(mRootActivityContainer) in testIgnoresForcedOrientationWhenParentHandles()
449 ActivityDisplay display = mService.mRootActivityContainer.getDefaultDisplay(); in testStackBoundsConfiguration()
DActivityStackSupervisorTests.java61 mFullscreenStack = mRootActivityContainer.getDefaultDisplay().createStack( in setUp()
118 final ActivityStack stack = new StackBuilder(mRootActivityContainer) in testHandleNonResizableTaskOnSecondaryDisplay()
DActivityStartInterceptorTest.java93 private RootActivityContainer mRootActivityContainer; field in ActivityStartInterceptorTest
117 mService, mSupervisor, mRootActivityContainer, mContext); in setUp()
DLaunchParamsPersisterTests.java109 mRootActivityContainer.addChild(mTestDisplay, ActivityDisplay.POSITION_TOP); in setUp()
110 when(mRootActivityContainer.getActivityDisplay(eq(mDisplayUniqueId))) in setUp()
184 when(mRootActivityContainer.getActivityDisplay(eq(mDisplayUniqueId))).thenReturn(null); in testReturnsEmptyDisplayIfDisplayIsNotFound()
DRunningTasksTest.java65 new StackBuilder(mRootActivityContainer).setCreateActivity(false).build(); in testCollectTasksByLastActiveTime()
DActivityStartControllerTests.java76 final ActivityStack stack = mService.mRootActivityContainer.getDefaultDisplay().createStack( in testPendingActivityLaunches()
DRecentTasksTest.java120 mHomeStack = mTestService.mRootActivityContainer.getDefaultDisplay().getOrCreateStack( in setUp()
122 mStack = mTestService.mRootActivityContainer.getDefaultDisplay().createStack( in setUp()
724 doReturn(stack).when(mTestService.mRootActivityContainer).getTopDisplayFocusedStack(); in testFreezeTaskListOrder_timeout()
1122 mDisplay = mRootActivityContainer.getActivityDisplay(DEFAULT_DISPLAY); in createDefaultDisplay()
1127 mRootActivityContainer.addChild(mOtherDisplay, ActivityDisplay.POSITION_TOP); in createDefaultDisplay()
1128 mRootActivityContainer.addChild(mDisplay, ActivityDisplay.POSITION_TOP); in createDefaultDisplay()
1129 mRootActivityContainer.addChild(mSingleTaskDisplay, ActivityDisplay.POSITION_TOP); in createDefaultDisplay()
DActivityStackTests.java84 mDefaultDisplay = mRootActivityContainer.getDefaultDisplay(); in setUp()
122 final ActivityStack destStack = mRootActivityContainer.getDefaultDisplay().createStack( in testResumedActivityFromTaskReparenting()
140 final ActivityStack destStack = mRootActivityContainer.getDefaultDisplay().createStack( in testResumedActivityFromActivityReparenting()
1008 verify(mRootActivityContainer).ensureVisibilityAndConfig(eq(null) /* starting */, in testFinishCurrentActivity()
1086 doReturn(display).when(mRootActivityContainer).getActivityDisplay(anyInt()); in verifyShouldSleepActivities()
/frameworks/base/services/core/java/com/android/server/wm/
DKeyguardController.java75 private RootActivityContainer mRootActivityContainer; field in KeyguardController
85 mRootActivityContainer = mService.mRootActivityContainer; in setWindowManager()
162 mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); in setKeyguardShown()
179 mRootActivityContainer.getDefaultDisplay().mDisplayContent in keyguardGoingAway()
186 mRootActivityContainer.resumeFocusedStacksTopActivities(); in keyguardGoingAway()
187 mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); in keyguardGoingAway()
188 mRootActivityContainer.addStartingWindowsForVisibleActivities( in keyguardGoingAway()
287 for (int displayNdx = mRootActivityContainer.getChildCount() - 1; in visibilitiesUpdated()
289 final ActivityDisplay display = mRootActivityContainer.getChildAt(displayNdx); in visibilitiesUpdated()
318 mRootActivityContainer.getDefaultDisplay().mDisplayContent in handleOccludedChanged()
[all …]
DActivityStackSupervisor.java246 RootActivityContainer mRootActivityContainer; field in ActivityStackSupervisor
500 final ActivityStack recentsStack = mRootActivityContainer.getDefaultDisplay().getStack( in moveRecentsStackToFront()
530 || mRootActivityContainer.anyTaskForId( in getNextTaskIdForUserLocked()
708 if (!mRootActivityContainer.allPausedActivitiesComplete()) { in realStartActivityLocked()
748 mRootActivityContainer.ensureVisibilityAndConfig(r, r.getDisplayId(), in realStartActivityLocked()
919 if (mRootActivityContainer.isTopDisplayFocusedStack(stack)) { in realStartActivityLocked()
1078 mRootActivityContainer.getActivityDisplayOrCreate(launchDisplayId); in isCallerAllowedToLaunchOnDisplay()
1292 if ((mService.isBooting() && mRootActivityContainer.allResumedActivitiesIdle()) in activityIdleInternalLocked()
1302 if (mRootActivityContainer.allResumedActivitiesIdle()) { in activityIdleInternalLocked()
1315 mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); in activityIdleInternalLocked()
[all …]
DRecentsAnimation.java79 mDefaultDisplay = mService.mRootActivityContainer.getDefaultDisplay(); in RecentsAnimation()
94 mService.mRootActivityContainer.getDefaultDisplay().mDisplayContent; in startRecentsActivity()
126 mService.mRootActivityContainer.sendPowerHintForLaunchStartIfNeeded( in startRecentsActivity()
198 mService.mRootActivityContainer.ensureActivitiesVisible(null, 0, PRESERVE_WINDOWS); in startRecentsActivity()
231 mService.mRootActivityContainer.sendPowerHintForLaunchEndIfNeeded(); in finishAnimation()
319 mService.mRootActivityContainer.ensureActivitiesVisible(null, 0, false); in finishAnimation()
320 mService.mRootActivityContainer.resumeFocusedStacksTopActivities(); in finishAnimation()
366 mService.mRootActivityContainer.getDefaultDisplay().mDisplayContent; in onStackOrderChanged()
DActivityDisplay.java94 private RootActivityContainer mRootActivityContainer; field in ActivityDisplay
162 mRootActivityContainer = root; in ActivityDisplay()
281 EventLogTags.writeAmFocusedStack(mRootActivityContainer.mCurrentUser, mDisplayId, in positionChildAt()
426 return mRootActivityContainer.getDefaultDisplay().createStack( in createStack()
466 mRootActivityContainer.mStackSupervisor, windowingMode, activityType, onTop); in createStackUnchecked()
660 mRootActivityContainer.mStackSupervisor.removeStack(stacks.get(i)); in removeStacksInWindowingModes()
684 mRootActivityContainer.mStackSupervisor.removeStack(stacks.get(i)); in removeStacksWithActivityTypes()
744 mRootActivityContainer.mWindowManager.deferSurfaceLayout(); in onSplitScreenModeDismissed()
768 mRootActivityContainer.mWindowManager.continueSurfaceLayout(); in onSplitScreenModeDismissed()
773 mRootActivityContainer.mWindowManager.deferSurfaceLayout(); in onSplitScreenModeActivated()
[all …]
DActivityTaskManagerService.java373 RootActivityContainer mRootActivityContainer; field in ActivityTaskManagerService
821 mRootActivityContainer = new RootActivityContainer(this); in initialize()
822 mRootActivityContainer.onConfigurationChanged(mTempConfig); in initialize()
857 mRootActivityContainer.setWindowManager(wm); in setWindowManager()
1330 sourceRecord = mRootActivityContainer.isInAnyStack(sourceToken); in startActivityAsCaller()
1950 mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); in convertFromTranslucent()
1980 mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); in convertToTranslucent()
1993 ActivityRecord r = mRootActivityContainer.isInAnyStack(token); in notifyActivityDrawn()
2030 return mRootActivityContainer.getStackInfo(focusedStack.mStackId); in getFocusedStackInfo()
2046 final ActivityStack stack = mRootActivityContainer.getStack(stackId); in setFocusedStack()
[all …]
DActivityStarter.java149 private final RootActivityContainer mRootActivityContainer; field in ActivityStarter
443 mRootActivityContainer = service.mRootActivityContainer; in ActivityStarter()
651 sourceRecord = mRootActivityContainer.isInAnyStack(resultTo); in startActivity()
877 mRootActivityContainer.getTopDisplayFocusedStack(); in startActivity()
913 final ActivityStack stack = mRootActivityContainer.getTopDisplayFocusedStack(); in startActivity()
1218 final ActivityStack stack = mRootActivityContainer.getTopDisplayFocusedStack(); in startActivityMayWait()
1408 mRootActivityContainer.ensureVisibilityAndConfig( in startActivity()
1491 if (r.isActivityTypeHome() && !mRootActivityContainer.canStartHomeOnDisplay(r.info, in startActivityUnchecked()
1569 mRootActivityContainer.sendPowerHintForLaunchStartIfNeeded in startActivityUnchecked()
1625 final ActivityStack topStack = mRootActivityContainer.getTopDisplayFocusedStack(); in startActivityUnchecked()
[all …]
DAppTaskImpl.java82 TaskRecord tr = mService.mRootActivityContainer.anyTaskForId(mTaskId, in getTaskInfo()
142 tr = mService.mRootActivityContainer.anyTaskForId(mTaskId, in startActivity()
170 TaskRecord tr = mService.mRootActivityContainer.anyTaskForId(mTaskId, in setExcludeFromRecents()
DActivityStack.java289 mRootActivityContainer.updateUIDsPresentOnDisplay(); in onParentChanged()
407 protected final RootActivityContainer mRootActivityContainer; field in ActivityStack
510 mRootActivityContainer = mService.mRootActivityContainer; in ActivityStack()
562 if (record == mRootActivityContainer.getTopResumedActivity()) { in onActivityStateChanged()
653 mRootActivityContainer.resizeStack(this, new Rect(newBounds), null /* tempTaskBounds */, in onConfigurationChanged()
863 mRootActivityContainer.ensureActivitiesVisible(null, 0, PRESERVE_WINDOWS); in setWindowingModeInSurfaceTransaction()
864 mRootActivityContainer.resumeFocusedStacksTopActivities(); in setWindowingModeInSurfaceTransaction()
903 mRootActivityContainer.resumeFocusedStacksTopActivities(); in postReparent()
906 mRootActivityContainer.ensureActivitiesVisible(null /* starting */, 0 /* configChanges */, in postReparent()
933 return mRootActivityContainer.getActivityDisplay(mDisplayId); in getDisplay()
[all …]
DLockTaskController.java462 mSupervisor.mRootActivityContainer.resumeFocusedStacksTopActivities(); in clearLockedTask()
594 mSupervisor.mRootActivityContainer.resumeFocusedStacksTopActivities(); in setLockTaskMode()
656 for (int displayNdx = mSupervisor.mRootActivityContainer.getChildCount() - 1; in updateLockTaskPackages()
658 mSupervisor.mRootActivityContainer.getChildAt(displayNdx).onLockTaskPackagesUpdated(); in updateLockTaskPackages()
661 final ActivityRecord r = mSupervisor.mRootActivityContainer.topRunningActivity(); in updateLockTaskPackages()
673 mSupervisor.mRootActivityContainer.resumeFocusedStacksTopActivities(); in updateLockTaskPackages()
DActivityStartInterceptor.java72 private final RootActivityContainer mRootActivityContainer; field in ActivityStartInterceptor
105 this(service, supervisor, service.mRootActivityContainer, service.mContext); in ActivityStartInterceptor()
113 mRootActivityContainer = root; in ActivityStartInterceptor()
DTaskLaunchParamsModifier.java151 ActivityDisplay display = mSupervisor.mRootActivityContainer.getActivityDisplay(displayId); in calculate()
327 && mSupervisor.mRootActivityContainer.getActivityDisplay(displayId) == null) { in getPreferredLaunchDisplay()
333 && mSupervisor.mRootActivityContainer.getActivityDisplay(displayId) != null) in getPreferredLaunchDisplay()
639 mSupervisor.mRootActivityContainer.getConfiguration().getLayoutDirection(); in adjustBoundsToFitInDisplay()

12