Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DRootActivityContainerTests.java92 mFullscreenStack = mRootActivityContainer.getDefaultDisplay().createStack( in setUp()
102 ((TestActivityDisplay) mRootActivityContainer.getDefaultDisplay()).removeAllTasks(); in testRestoringInvalidTask()
103 TaskRecord task = mRootActivityContainer.anyTaskForId(0 /*taskId*/, in testRestoringInvalidTask()
129 mRootActivityContainer.moveActivityToPinnedStack(firstActivity, sourceBounds, in testReplacingTaskInPinnedStack()
139 mRootActivityContainer.moveActivityToPinnedStack(secondActivity, sourceBounds, in testReplacingTaskInPinnedStack()
166 final ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testApplySleepTokens()
211 mRootActivityContainer.applySleepTokens(true); in verifySleepTokenBehavior()
222 final ActivityDisplay defaultDisplay = mRootActivityContainer.getDefaultDisplay(); in testRemovingStackOnAppCrash()
224 final ActivityStack stack = mRootActivityContainer.getDefaultDisplay().createStack( in testRemovingStackOnAppCrash()
233 mRootActivityContainer.finishTopCrashedActivities(firstActivity.app, "test"); in testRemovingStackOnAppCrash()
[all …]
DActivityTestsBase.java108 RootActivityContainer mRootActivityContainer; field in ActivityTestsBase
132 mRootActivityContainer = mService.mRootActivityContainer; in setUpBase()
162 mRootActivityContainer.addChild(display, position); in addNewActivityDisplayAt()
169 mRootActivityContainer.addChild(display, position); in addNewActivityDisplayAt()
400 mStack = mSupervisor.mRootActivityContainer.getDefaultDisplay().createStack( in build()
509 spyOn(mRootActivityContainer); in initRootActivityContainerMocks()
510 mRootActivityContainer.setWindowContainer(mock(RootWindowContainer.class)); in initRootActivityContainerMocks()
511 mRootActivityContainer.mWindowManager = wm; in initRootActivityContainerMocks()
512 mRootActivityContainer.mDisplayManager = in initRootActivityContainerMocks()
514 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.java88 ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testRecentsActivityVisiblility()
100 doCallRealMethod().when(mRootActivityContainer).ensureActivitiesVisible( in testRecentsActivityVisiblility()
141 ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testPreloadRecentsActivity()
170 ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testRestartRecentsActivity()
182 doCallRealMethod().when(mRootActivityContainer).ensureActivitiesVisible( in testRestartRecentsActivity()
195 verify(mRootActivityContainer.mStackSupervisor).startSpecificActivityLocked( in testRestartRecentsActivity()
202 ActivityDisplay display = mRootActivityContainer.getDefaultDisplay(); in testSetLaunchTaskBehindOfTargetActivity()
242 ActivityDisplay display = mService.mRootActivityContainer.getDefaultDisplay(); in testCancelAnimationOnVisibleStackOrderChange()
288 ActivityDisplay display = mService.mRootActivityContainer.getDefaultDisplay(); in testKeepAnimationOnHiddenStackOrderChange()
324 ActivityDisplay display = mService.mRootActivityContainer.getDefaultDisplay(); in testMultipleUserHomeActivity_findUserHomeTask()
[all …]
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 …]
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()
DWindowProcessControllerTests.java91 mRootActivityContainer.removeChild(testActivityDisplay1); in testDisplayConfigurationListener()
135 mRootActivityContainer.addChild(testActivityDisplay, POSITION_TOP); in createTestActivityDisplayInContainer()
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()
DRecentTasksTest.java121 mHomeStack = mTestService.mRootActivityContainer.getDefaultDisplay().getOrCreateStack( in setUp()
123 mStack = mTestService.mRootActivityContainer.getDefaultDisplay().createStack( in setUp()
725 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()
DRunningTasksTest.java68 new StackBuilder(mRootActivityContainer).setCreateActivity(false).build(); in testCollectTasksByLastActiveTime()
DActivityStartControllerTests.java76 final ActivityStack stack = mService.mRootActivityContainer.getDefaultDisplay().createStack( in testPendingActivityLaunches()
DActivityStackTests.java87 mDefaultDisplay = mRootActivityContainer.getDefaultDisplay(); in setUp()
126 final ActivityStack destStack = mRootActivityContainer.getDefaultDisplay().createStack( in testResumedActivityFromTaskReparenting()
144 final ActivityStack destStack = mRootActivityContainer.getDefaultDisplay().createStack( in testResumedActivityFromActivityReparenting()
1012 verify(mRootActivityContainer).ensureVisibilityAndConfig(eq(null) /* starting */, in testFinishCurrentActivity()
1121 doReturn(display).when(mRootActivityContainer).getActivityDisplay(anyInt()); in verifyShouldSleepActivities()
/frameworks/base/services/core/java/com/android/server/wm/
DKeyguardController.java77 private RootActivityContainer mRootActivityContainer; field in KeyguardController
87 mRootActivityContainer = mService.mRootActivityContainer; in setWindowManager()
164 mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); in setKeyguardShown()
181 mRootActivityContainer.getDefaultDisplay().mDisplayContent in keyguardGoingAway()
188 mRootActivityContainer.resumeFocusedStacksTopActivities(); in keyguardGoingAway()
189 mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); in keyguardGoingAway()
190 mRootActivityContainer.addStartingWindowsForVisibleActivities( in keyguardGoingAway()
292 for (int displayNdx = mRootActivityContainer.getChildCount() - 1; in visibilitiesUpdated()
294 final ActivityDisplay display = mRootActivityContainer.getChildAt(displayNdx); in visibilitiesUpdated()
323 mRootActivityContainer.getDefaultDisplay().mDisplayContent in handleOccludedChanged()
[all …]
DActivityStackSupervisor.java247 RootActivityContainer mRootActivityContainer; field in ActivityStackSupervisor
515 final ActivityStack recentsStack = mRootActivityContainer.getDefaultDisplay().getStack( in moveRecentsStackToFront()
545 || mRootActivityContainer.anyTaskForId( in getNextTaskIdForUserLocked()
723 if (!mRootActivityContainer.allPausedActivitiesComplete()) { in realStartActivityLocked()
763 mRootActivityContainer.ensureVisibilityAndConfig(r, r.getDisplayId(), in realStartActivityLocked()
934 if (mRootActivityContainer.isTopDisplayFocusedStack(stack)) { in realStartActivityLocked()
1081 mRootActivityContainer.getActivityDisplayOrCreate(launchDisplayId); in isCallerAllowedToLaunchOnDisplay()
1295 if ((mService.isBooting() && mRootActivityContainer.allResumedActivitiesIdle()) in activityIdleInternalLocked()
1305 if (mRootActivityContainer.allResumedActivitiesIdle()) { in activityIdleInternalLocked()
1318 mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); in activityIdleInternalLocked()
[all …]
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.java376 RootActivityContainer mRootActivityContainer; field in ActivityTaskManagerService
824 mRootActivityContainer = new RootActivityContainer(this); in initialize()
825 mRootActivityContainer.onConfigurationChanged(mTempConfig); in initialize()
860 mRootActivityContainer.setWindowManager(wm); in setWindowManager()
1333 sourceRecord = mRootActivityContainer.isInAnyStack(sourceToken); in startActivityAsCaller()
1965 mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); in convertFromTranslucent()
1995 mRootActivityContainer.ensureActivitiesVisible(null, 0, !PRESERVE_WINDOWS); in convertToTranslucent()
2008 ActivityRecord r = mRootActivityContainer.isInAnyStack(token); in notifyActivityDrawn()
2045 return mRootActivityContainer.getStackInfo(focusedStack.mStackId); in getFocusedStackInfo()
2061 final ActivityStack stack = mRootActivityContainer.getStack(stackId); in setFocusedStack()
[all …]
DRecentsAnimation.java84 mDefaultDisplay = mService.mRootActivityContainer.getDefaultDisplay(); in RecentsAnimation()
163 mService.mRootActivityContainer.getDefaultDisplay().mDisplayContent; in startRecentsActivity()
189 mService.mRootActivityContainer.sendPowerHintForLaunchStartIfNeeded( in startRecentsActivity()
252 mService.mRootActivityContainer.ensureActivitiesVisible(null, 0, PRESERVE_WINDOWS); in startRecentsActivity()
285 mService.mRootActivityContainer.sendPowerHintForLaunchEndIfNeeded(); in finishAnimation()
374 mService.mRootActivityContainer.ensureActivitiesVisible(null, 0, false); in finishAnimation()
375 mService.mRootActivityContainer.resumeFocusedStacksTopActivities(); in finishAnimation()
421 mService.mRootActivityContainer.getDefaultDisplay().mDisplayContent; in onStackOrderChanged()
DActivityStarter.java149 private final RootActivityContainer mRootActivityContainer; field in ActivityStarter
444 mRootActivityContainer = service.mRootActivityContainer; in ActivityStarter()
653 sourceRecord = mRootActivityContainer.isInAnyStack(resultTo); in startActivity()
879 mRootActivityContainer.getTopDisplayFocusedStack(); in startActivity()
915 final ActivityStack stack = mRootActivityContainer.getTopDisplayFocusedStack(); in startActivity()
1228 final ActivityStack stack = mRootActivityContainer.getTopDisplayFocusedStack(); in startActivityMayWait()
1418 mRootActivityContainer.ensureVisibilityAndConfig( in startActivity()
1509 if (r.isActivityTypeHome() && !mRootActivityContainer.canStartHomeOnDisplay(r.info, in startActivityUnchecked()
1587 mRootActivityContainer.sendPowerHintForLaunchStartIfNeeded in startActivityUnchecked()
1643 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.java292 mRootActivityContainer.updateUIDsPresentOnDisplay(); in onParentChanged()
410 protected final RootActivityContainer mRootActivityContainer; field in ActivityStack
513 mRootActivityContainer = mService.mRootActivityContainer; in ActivityStack()
565 if (record == mRootActivityContainer.getTopResumedActivity()) { in onActivityStateChanged()
656 mRootActivityContainer.resizeStack(this, new Rect(newBounds), null /* tempTaskBounds */, in onConfigurationChanged()
866 mRootActivityContainer.ensureActivitiesVisible(null, 0, PRESERVE_WINDOWS); in setWindowingModeInSurfaceTransaction()
867 mRootActivityContainer.resumeFocusedStacksTopActivities(); in setWindowingModeInSurfaceTransaction()
906 mRootActivityContainer.resumeFocusedStacksTopActivities(); in postReparent()
909 mRootActivityContainer.ensureActivitiesVisible(null /* starting */, 0 /* configChanges */, in postReparent()
936 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