Home
last modified time | relevance | path

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

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DWindowOrganizerTests.java139 Task createTask(Task rootTask, boolean fakeDraw) { in createTask() argument
140 final Task task = createTaskInRootTask(rootTask, 0); in createTask()
148 Task createTask(Task rootTask) { in createTask() argument
150 return createTask(rootTask, true); in createTask()
160 final Task rootTask = createRootTask(); in testAppearVanish() local
161 final Task task = createTask(rootTask); in testAppearVanish()
167 rootTask.removeImmediately(); in testAppearVanish()
176 final Task rootTask = createRootTask(); in testAppearWaitsForVisibility() local
177 final Task task = createTask(rootTask, false); in testAppearWaitsForVisibility()
183 rootTask.setHasBeenVisible(true); in testAppearWaitsForVisibility()
[all …]
DTaskDisplayAreaTests.java81 final Task rootTask = createTask( in getLaunchRootTask_checksLaunchAdjacentFlagRoot() local
83 rootTask.mCreatedByOrganizer = true; in getLaunchRootTask_checksLaunchAdjacentFlagRoot()
87 final TaskDisplayArea taskDisplayArea = rootTask.getDisplayArea(); in getLaunchRootTask_checksLaunchAdjacentFlagRoot()
88 adjacentRootTask.setAdjacentTaskFragment(rootTask); in getLaunchRootTask_checksLaunchAdjacentFlagRoot()
106 final Task rootTask = createTaskWithActivity( in getLaunchRootTask_checksFocusedRootTask() local
109 rootTask.mCreatedByOrganizer = true; in getLaunchRootTask_checksFocusedRootTask()
114 adjacentRootTask.setAdjacentTaskFragment(rootTask); in getLaunchRootTask_checksFocusedRootTask()
116 taskDisplayArea.setLaunchRootTask(rootTask, in getLaunchRootTask_checksFocusedRootTask()
128 final Task rootTask = createTask( in getLaunchRootTask_fromLaunchAdjacentFlagRoot_checksAdjacentRoot() local
130 rootTask.mCreatedByOrganizer = true; in getLaunchRootTask_fromLaunchAdjacentFlagRoot_checksAdjacentRoot()
[all …]
DRootTaskTests.java111 final Task rootTask = createTask(mDisplayContent); in testRootTaskPositionChildAt() local
112 final Task task1 = createTaskInRootTask(rootTask, 0 /* userId */); in testRootTaskPositionChildAt()
113 final Task task2 = createTaskInRootTask(rootTask, 1 /* userId */); in testRootTaskPositionChildAt()
116 rootTask.positionChildAt(WindowContainer.POSITION_TOP, task1, false /* includingParents */); in testRootTaskPositionChildAt()
117 assertEquals(rootTask.mChildren.get(0), task2); in testRootTaskPositionChildAt()
118 assertEquals(rootTask.mChildren.get(1), task1); in testRootTaskPositionChildAt()
121 rootTask.positionChildAt(WindowContainer.POSITION_TOP, task2, false /* includingParents */); in testRootTaskPositionChildAt()
122 assertEquals(rootTask.mChildren.get(0), task2); in testRootTaskPositionChildAt()
123 assertEquals(rootTask.mChildren.get(1), task1); in testRootTaskPositionChildAt()
128 rootTask.positionChildAt(WindowContainer.POSITION_TOP, task2, false /* includingParents */); in testRootTaskPositionChildAt()
[all …]
DTaskTests.java134 final Task rootTask = createTask(mDisplayContent); in testRemoveContainer() local
135 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testRemoveContainer()
141 assertTrue(rootTask.hasChild()); in testRemoveContainer()
151 verify(mAtm.getLockTaskController(), atLeast(1)).clearLockedTask(rootTask); in testRemoveContainer()
156 final Task rootTask = createTask(mDisplayContent); in testRemoveContainer_multipleNestedTasks() local
157 rootTask.mCreatedByOrganizer = true; in testRemoveContainer_multipleNestedTasks()
158 final Task task1 = new TaskBuilder(mSupervisor).setParentTask(rootTask).build(); in testRemoveContainer_multipleNestedTasks()
159 final Task task2 = new TaskBuilder(mSupervisor).setParentTask(rootTask).build(); in testRemoveContainer_multipleNestedTasks()
165 rootTask.remove(true /* withTransition */, "test"); in testRemoveContainer_multipleNestedTasks()
172 assertFalse(rootTask.isAttached()); in testRemoveContainer_multipleNestedTasks()
[all …]
DRootWindowContainerTests.java208 final Task rootTask = new TaskBuilder(mSupervisor).build(); in testTaskLayerRank() local
209 final Task task1 = new TaskBuilder(mSupervisor).setParentTask(rootTask).build(); in testTaskLayerRank()
216 assertEquals(Task.LAYER_RANK_INVISIBLE, rootTask.mLayerRank); in testTaskLayerRank()
628 final Task rootTask = defaultTaskDisplayArea.createRootTask( in testRemovingRootTaskOnAppCrash() local
630 final ActivityRecord firstActivity = new ActivityBuilder(mAtm).setTask(rootTask).build(); in testRemovingRootTaskOnAppCrash()
641 assertEquals(rootTask, finishedTask); in testRemovingRootTaskOnAppCrash()
653 final Task rootTask = defaultTaskDisplayArea.createRootTask( in testRemovingRootTaskOnAppCrash_multipleDisplayAreas() local
655 final ActivityRecord firstActivity = new ActivityBuilder(mAtm).setTask(rootTask).build(); in testRemovingRootTaskOnAppCrash_multipleDisplayAreas()
722 final Task rootTask = new TaskBuilder(mSupervisor) in testFindTaskToMoveToFrontWhenRecentsOnTop() local
751 final Task rootTask = secondDisplay.getDefaultTaskDisplayArea() in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay() local
[all …]
DWindowContainerTransactionTests.java57 final Task rootTask = createTask(mDisplayContent); in testRemoveTask() local
58 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testRemoveTask()
68 assertTrue(rootTask.hasChild()); in testRemoveTask()
78 verify(mAtm.getLockTaskController(), atLeast(1)).clearLockedTask(rootTask); in testRemoveTask()
DWindowContainerTests.java974 final Task rootTask = createTask(mDisplayContent); in testOnDisplayChanged() local
975 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testOnDisplayChanged()
980 rootTask.getDisplayArea().removeRootTask(rootTask); in testOnDisplayChanged()
981 newDc.getDefaultTaskDisplayArea().addChild(rootTask, POSITION_TOP); in testOnDisplayChanged()
983 verify(rootTask).onDisplayChanged(newDc); in testOnDisplayChanged()
987 assertEquals(newDc, rootTask.mDisplayContent); in testOnDisplayChanged()
1061 final Task rootTask = createTask(mDisplayContent); in testTaskCanApplyAnimation() local
1062 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testTaskCanApplyAnimation()
1070 final Task rootTask = createTask(mDisplayContent); in testRootTaskCanApplyAnimation() local
1072 createTaskInRootTask(rootTask, 0 /* userId */)); in testRootTaskCanApplyAnimation()
[all …]
DDisplayContentTests.java463 final Task rootTask = createTask(dc); in testMoveRootTaskBetweenDisplays() local
464 assertEquals(dc.getDisplayId(), rootTask.getDisplayContent().getDisplayId()); in testMoveRootTaskBetweenDisplays()
465 assertEquals(dc, rootTask.getDisplayContent()); in testMoveRootTaskBetweenDisplays()
467 final Task task = createTaskInRootTask(rootTask, 0 /* userId */); in testMoveRootTaskBetweenDisplays()
474 rootTask.reparent(mDisplayContent.getDefaultTaskDisplayArea(), true /* onTop */); in testMoveRootTaskBetweenDisplays()
475 assertEquals(mDisplayContent.getDisplayId(), rootTask.getDisplayContent().getDisplayId()); in testMoveRootTaskBetweenDisplays()
476 assertEquals(mDisplayContent, rootTask.getDisplayContent()); in testMoveRootTaskBetweenDisplays()
999 final Task rootTask = mDisplayContent.getTopRootTask(); in testInputMethodTargetUpdateWhenSwitchingOnDisplays() local
1000 final ActivityRecord activity = rootTask.topRunningActivity(); in testInputMethodTargetUpdateWhenSwitchingOnDisplays()
1035 final Task rootTask = new TaskBuilder(mSupervisor) in testAllowsTopmostFullscreenOrientation() local
[all …]
DLaunchParamsPersisterTests.java120 Task rootTask = mTestDisplay.getDefaultTaskDisplayArea() in setUp() local
123 .setParentTask(rootTask).build(); in setUp()
165 Task rootTask = mTestDisplay.getDefaultTaskDisplayArea() in testSavingTestWithoutRealActivityWontMakePackageRemovalCrash() local
167 assertNull(rootTask.realActivity); in testSavingTestWithoutRealActivityWontMakePackageRemovalCrash()
169 mTarget.saveTask(rootTask); in testSavingTestWithoutRealActivityWontMakePackageRemovalCrash()
DActivityRecordTests.java231 final Task rootTask = activity.getRootTask(); in testRootTaskCleanupOnTaskRemoval() local
232 rootTask.removeChild(task, null /*reason*/); in testRootTaskCleanupOnTaskRemoval()
234 assertNull(mAtm.mRootWindowContainer.getRootTask(rootTask.mTaskId)); in testRootTaskCleanupOnTaskRemoval()
253 final Task rootTask = activity.getRootTask(); in testNoCleanupMovingActivityInSameStack() local
254 final Task newTask = createTaskInRootTask(rootTask, 0 /* userId */); in testNoCleanupMovingActivityInSameStack()
256 verify(rootTask, times(0)).cleanUpActivityReferences(any()); in testNoCleanupMovingActivityInSameStack()
658 final Task rootTask = activity.getRootTask(); in ignoreRequestedOrientationForResizableInSplitWindows() local
659 rootTask.setWindowingMode(WINDOWING_MODE_MULTI_WINDOW); in ignoreRequestedOrientationForResizableInSplitWindows()
661 rootTask.mDisplayContent.getStableRect(stableRect); in ignoreRequestedOrientationForResizableInSplitWindows()
665 final DisplayInfo displayInfo = rootTask.mDisplayContent.getDisplayInfo(); in ignoreRequestedOrientationForResizableInSplitWindows()
[all …]
/frameworks/base/services/core/java/com/android/server/wm/
DTaskDisplayArea.java213 return getRootTask(rootTask -> { in getRootTask()
215 && windowingMode == rootTask.getWindowingMode()) { in getRootTask()
220 return rootTask.isCompatible(windowingMode, activityType); in getRootTask()
248 void onRootTaskWindowingModeChanged(Task rootTask) {
249 removeRootTaskReferenceIfNeeded(rootTask);
250 addRootTaskReferenceIfNeeded(rootTask);
251 if (rootTask == mRootPinnedTask && getTopRootTask() != rootTask) {
253 positionChildAt(POSITION_TOP, rootTask, false /* includingParents */);
257 void addRootTaskReferenceIfNeeded(Task rootTask) {
258 if (rootTask.isActivityTypeHome()) {
[all …]
DRootWindowContainer.java1410 final Task rootTask = getTopDisplayFocusedRootTask(); in startHomeOnDisplay() local
1411 displayId = rootTask != null ? rootTask.getDisplayId() : DEFAULT_DISPLAY; in startHomeOnDisplay()
1436 final Task rootTask = getTopDisplayFocusedRootTask(); in startHomeOnTaskDisplayArea() local
1437 taskDisplayArea = rootTask != null ? rootTask.getDisplayArea() in startHomeOnTaskDisplayArea()
1794 forAllRootTasks(rootTask -> { in getTopVisibleActivities()
1796 if (rootTask.shouldBeVisible(null /* starting */)) { in getTopVisibleActivities()
1797 final ActivityRecord top = rootTask.getTopNonFinishingActivity(); in getTopVisibleActivities()
1810 if (rootTask == topFocusedRootTask) { in getTopVisibleActivities()
1933 forAllRootTasks(rootTask -> { in switchUser()
1934 rootTask.switchUser(userId); in switchUser()
[all …]
DActivityTaskSupervisor.java818 final Task rootTask = task.getRootTask(); in realStartActivityLocked() local
1037 if (mRootWindowContainer.isTopDisplayFocusedRootTask(rootTask)) { in realStartActivityLocked()
1616 private void removePinnedRootTaskInSurfaceTransaction(Task rootTask) { in removePinnedRootTaskInSurfaceTransaction() argument
1617 final Transition transition = rootTask.mTransitionController.requestTransitionIfNeeded( in removePinnedRootTaskInSurfaceTransaction()
1618 TRANSIT_TO_BACK, 0 /* flags */, rootTask, rootTask.mDisplayContent); in removePinnedRootTaskInSurfaceTransaction()
1620 rootTask.mTransitionController.collect(rootTask); in removePinnedRootTaskInSurfaceTransaction()
1622 transition.collect(rootTask); in removePinnedRootTaskInSurfaceTransaction()
1634 rootTask.cancelAnimation(); in removePinnedRootTaskInSurfaceTransaction()
1635 rootTask.setForceHidden(FLAG_FORCE_HIDDEN_FOR_PINNED_TASK, true /* set */); in removePinnedRootTaskInSurfaceTransaction()
1636 rootTask.ensureActivitiesVisible(null /* starting */); in removePinnedRootTaskInSurfaceTransaction()
[all …]
DRecentsAnimation.java397 final Task rootTask = targetRootTask.getRootTask(); in finishAnimation() local
400 rootTask.dispatchTaskInfoChangedIfNeeded(true /* force */); in finishAnimation()
452 public void onRootTaskOrderChanged(Task rootTask) { in onRootTaskOrderChanged() argument
453 ProtoLog.d(WM_DEBUG_RECENTS_ANIMATIONS, "onRootTaskOrderChanged(): rootTask=%s", rootTask); in onRootTaskOrderChanged()
454 if (mDefaultTaskDisplayArea.getRootTask(t -> t == rootTask) == null in onRootTaskOrderChanged()
455 || !rootTask.shouldBeVisible(null)) { in onRootTaskOrderChanged()
469 if ((!controller.isAnimatingTask(rootTask.getTopMostTask()) in onRootTaskOrderChanged()
470 || controller.isTargetApp(rootTask.getTopNonFinishingActivity())) in onRootTaskOrderChanged()
DActivityClientController.java616 final Task rootTask = ActivityRecord.getRootTask(token); in willActivityBeVisible() local
617 return rootTask != null && rootTask.willActivityBeVisible(token); in willActivityBeVisible()
624 final Task rootTask = ActivityRecord.getRootTask(activityToken); in getDisplayId() local
625 if (rootTask != null) { in getDisplayId()
626 final int displayId = rootTask.getDisplayId(); in getDisplayId()
1163 final Task rootTask = r.getRootTask(); in toggleFreeformWindowingMode() local
1164 if (rootTask == null) { in toggleFreeformWindowingMode()
1169 if (!rootTask.inFreeformWindowingMode() in toggleFreeformWindowingMode()
1170 && rootTask.getWindowingMode() != WINDOWING_MODE_FULLSCREEN) { in toggleFreeformWindowingMode()
1175 if (rootTask.inFreeformWindowingMode()) { in toggleFreeformWindowingMode()
[all …]
DWindowToken.java654 final Task rootTask = r != null ? r.getRootTask() : null; in updateSurfacePosition() local
656 if (rootTask == null || !rootTask.inPinnedWindowingMode()) { in updateSurfacePosition()
669 final Task rootTask = r.getRootTask(); in updateSurfaceRotation() local
672 if (rootTask != null && mTransitionController.getWindowingModeAtStart(rootTask) in updateSurfaceRotation()
DTaskOrganizerController.java626 final Task rootTask = task.getRootTask(); in addStartingWindow() local
627 if (rootTask == null || activity.mStartingData == null) { in addStartingWindow()
652 final Task rootTask = task.getRootTask(); in removeStartingWindow() local
653 if (rootTask == null) { in removeStartingWindow()
714 final Task rootTask = task.getRootTask(); in addWindowlessStartingSurface() local
715 if (rootTask == null) { in addWindowlessStartingSurface()
755 final Task rootTask = task.getRootTask(); in copySplashScreenView() local
756 if (rootTask == null) { in copySplashScreenView()
784 final Task rootTask = task.getRootTask(); in onAppSplashScreenViewRemoved() local
785 if (rootTask == null) { in onAppSplashScreenViewRemoved()
DActivityRecord.java1682 final Task rootTask = getRootTask(); in onParentChanged() local
1709 if (rootTask != null && rootTask.topRunningActivity() == this) { in onParentChanged()
1712 rootTask.setHasBeenVisible(true); in onParentChanged()
1783 final Task rootTask = getRootTask(); in updateAnimatingActivityRegistry() local
1784 final AnimatingActivityRegistry registry = rootTask != null in updateAnimatingActivityRegistry()
1785 ? rootTask.getAnimatingActivityRegistry() in updateAnimatingActivityRegistry()
3295 final Task rootTask = getRootTask(); in isInRootTaskLocked() local
3296 return rootTask != null && rootTask.isInTask(this) != null; in isInRootTaskLocked()
3537 final Task rootTask = getRootTask(); in moveFocusableActivityToTop() local
3538 if (rootTask == null) { in moveFocusableActivityToTop()
[all …]
DActivityStartController.java603 final Task rootTask = mService.mRootWindowContainer.getDefaultTaskDisplayArea() in startExistingRecents() local
605 if (rootTask == null) return false; in startExistingRecents()
606 final ActivityRecord r = rootTask.topRunningActivity(); in startExistingRecents()
607 if (r == null || (r.isVisibleRequested() && rootTask.isTopRootTaskInDisplayArea()) in startExistingRecents()
625 controller.setTransientLaunch(r, TaskDisplayArea.getRootTaskAbove(rootTask)); in startExistingRecents()
DRecentTasks.java592 final Task rootTask = task != null ? task.getRootTask() : null; in notifyTaskPersisterLocked() local
593 if (rootTask != null && rootTask.isActivityTypeHomeOrRecents()) { in notifyTaskPersisterLocked()
626 final Task rootTask = task.getRootTask(); in shouldPersistTaskLocked() local
627 return task.isPersistable && (rootTask == null || !rootTask.isActivityTypeHomeOrRecents()); in shouldPersistTaskLocked()
1042 final Task rootTask = task.getRootTask(); in getPersistableTaskIds() local
1044 && (rootTask == null || !rootTask.isActivityTypeHomeOrRecents())) { in getPersistableTaskIds()
DInputMonitor.java653 final Task rootTask = w.getTask().getRootTask(); in accept() local
655 rootTask.getSurfaceControl()); in accept()
656 final DisplayArea targetDA = rootTask.getDisplayArea(); in accept()
659 mPipInputConsumer.layout(mInputTransaction, rootTask.getBounds()); in accept()
DTask.java2381 final Task rootTask = getRootTask(); in updateOverrideConfigurationFromLaunchBounds() local
2382 final Rect bounds = rootTask != this && rootTask.isOrganized() ? null : getLaunchBounds(); in updateOverrideConfigurationFromLaunchBounds()
2394 final Task rootTask = getRootTask(); in getLaunchBounds() local
2395 if (rootTask == null) { in getLaunchBounds()
2402 return isResizeable() ? rootTask.getRequestedOverrideBounds() : null; in getLaunchBounds()
2404 return rootTask.getRequestedOverrideBounds(); in getLaunchBounds()
2551 final Task rootTask = focusableTask.getRootTask(); in adjustFocusToNextFocusableTask() local
2563 return rootTask; in adjustFocusToNextFocusableTask()
2572 return rootTask; in adjustFocusToNextFocusableTask()
2579 if (rootTask.getTopResumedActivity() != null) { in adjustFocusToNextFocusableTask()
[all …]
DTaskLaunchParamsModifier.java474 Task rootTask = (taskDisplayArea == null && task != null) in getPreferredLaunchTaskDisplayArea() local
476 if (rootTask != null) { in getPreferredLaunchTaskDisplayArea()
477 if (DEBUG) appendLog("display-from-task=" + rootTask.getDisplayId()); in getPreferredLaunchTaskDisplayArea()
478 taskDisplayArea = rootTask.getDisplayArea(); in getPreferredLaunchTaskDisplayArea()
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/
DCarActivityInterceptorUpdatableImpl.java152 TaskWrapper rootTask = TaskWrapper.createFromToken(rootTaskToken); in isRootTaskDisplayIdSameAsLaunchDisplayId() local
153 int rootTaskDisplayId = rootTask.getTaskDisplayArea().getDisplay().getDisplayId(); in isRootTaskDisplayIdSameAsLaunchDisplayId()
171 TaskWrapper rootTask = TaskWrapper.createFromToken(rootTaskToken); in isRootTaskUserSameAsActivityUser() local
172 if (rootTask == null) { in isRootTaskUserSameAsActivityUser()
176 if (rootTask.getTaskDisplayArea() == null) { in isRootTaskUserSameAsActivityUser()
181 int userIdFromRootTask = mBuiltIn.getUserAssignedToDisplay(rootTask in isRootTaskUserSameAsActivityUser()
/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/policy/
DWorkProfilePolicy.kt58 val (rootTask, childTask) = in <lambda>() constant
78 component = childTask.componentName ?: rootTask.topActivity, in <lambda>()

12