Home
last modified time | relevance | path

Searched refs:taskDisplayArea (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskDisplayAreaTests.java87 final TaskDisplayArea taskDisplayArea = rootTask.getDisplayArea(); in getLaunchRootTask_checksLaunchAdjacentFlagRoot() local
90 taskDisplayArea.setLaunchAdjacentFlagRootTask(adjacentRootTask); in getLaunchRootTask_checksLaunchAdjacentFlagRoot()
91 Task actualRootTask = taskDisplayArea.getLaunchRootTask( in getLaunchRootTask_checksLaunchAdjacentFlagRoot()
96 taskDisplayArea.setLaunchAdjacentFlagRootTask(null); in getLaunchRootTask_checksLaunchAdjacentFlagRoot()
97 actualRootTask = taskDisplayArea.getLaunchRootTask(WINDOWING_MODE_UNDEFINED, in getLaunchRootTask_checksLaunchAdjacentFlagRoot()
105 final TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in getLaunchRootTask_checksFocusedRootTask() local
107 taskDisplayArea, in getLaunchRootTask_checksFocusedRootTask()
116 taskDisplayArea.setLaunchRootTask(rootTask, in getLaunchRootTask_checksFocusedRootTask()
119 Task actualRootTask = taskDisplayArea.getLaunchRootTask( in getLaunchRootTask_checksFocusedRootTask()
134 final TaskDisplayArea taskDisplayArea = rootTask.getDisplayArea(); in getLaunchRootTask_fromLaunchAdjacentFlagRoot_checksAdjacentRoot() local
[all …]
DRootWindowContainerTests.java327 final TaskDisplayArea taskDisplayArea = fullscreenTask.getDisplayArea(); in testReplacingTaskInPinnedRootTask() local
328 Task pinnedRootTask = taskDisplayArea.getRootPinnedTask(); in testReplacingTaskInPinnedRootTask()
338 pinnedRootTask = taskDisplayArea.getRootPinnedTask(); in testReplacingTaskInPinnedRootTask()
339 fullscreenTask = taskDisplayArea.getRootTask(WINDOWING_MODE_FULLSCREEN, in testReplacingTaskInPinnedRootTask()
479 final TaskDisplayArea taskDisplayArea = fullscreenTask.getDisplayArea(); in testMultipleActivitiesInTaskFragmentEnterPip() local
480 final Task pinnedRootTask = taskDisplayArea.getRootPinnedTask(); in testMultipleActivitiesInTaskFragmentEnterPip()
731 final TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testFindTaskToMoveToFrontWhenRecentsOnTop() local
732 verify(taskDisplayArea).moveHomeRootTaskToFront(contains(reason)); in testFindTaskToMoveToFrontWhenRecentsOnTop()
742 final TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay() local
743 final Task targetRootTask = taskDisplayArea.createRootTask(WINDOWING_MODE_FULLSCREEN, in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay()
[all …]
DRecentsAnimationTest.java93 TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testRecentsActivityVisiblility() local
94 Task recentsStack = taskDisplayArea.createRootTask(WINDOWING_MODE_FULLSCREEN, in testRecentsActivityVisiblility()
213 TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testSetLaunchTaskBehindOfTargetActivity() local
214 Task homeStack = taskDisplayArea.getRootHomeTask(); in testSetLaunchTaskBehindOfTargetActivity()
255 TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testCancelAnimationOnVisibleStackOrderChange() local
256 Task fullscreenStack = taskDisplayArea.createRootTask(WINDOWING_MODE_FULLSCREEN, in testCancelAnimationOnVisibleStackOrderChange()
263 Task recentsStack = taskDisplayArea.createRootTask(WINDOWING_MODE_FULLSCREEN, in testCancelAnimationOnVisibleStackOrderChange()
270 Task fullscreenStack2 = taskDisplayArea.createRootTask(WINDOWING_MODE_FULLSCREEN, in testCancelAnimationOnVisibleStackOrderChange()
296 TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testKeepAnimationOnHiddenStackOrderChange() local
297 Task fullscreenStack = taskDisplayArea.createRootTask(WINDOWING_MODE_FULLSCREEN, in testKeepAnimationOnHiddenStackOrderChange()
[all …]
DWindowOrganizerTests.java705 final TaskDisplayArea taskDisplayArea = mDisplayContent.getDefaultTaskDisplayArea(); in testSetIgnoreOrientationRequest_taskDisplayArea() local
706 final Task rootTask = taskDisplayArea.createRootTask( in testSetIgnoreOrientationRequest_taskDisplayArea()
709 taskDisplayArea.setIgnoreOrientationRequest(true /* ignoreOrientationRequest */); in testSetIgnoreOrientationRequest_taskDisplayArea()
715 assertThat(taskDisplayArea.getOrientation()).isEqualTo(SCREEN_ORIENTATION_UNSET); in testSetIgnoreOrientationRequest_taskDisplayArea()
720 taskDisplayArea.mRemoteToken.toWindowContainerToken(), in testSetIgnoreOrientationRequest_taskDisplayArea()
727 assertThat(taskDisplayArea.getOrientation()).isEqualTo(SCREEN_ORIENTATION_LANDSCAPE); in testSetIgnoreOrientationRequest_taskDisplayArea()
730 taskDisplayArea.mRemoteToken.toWindowContainerToken(), in testSetIgnoreOrientationRequest_taskDisplayArea()
736 assertThat(taskDisplayArea.getOrientation()).isEqualTo(SCREEN_ORIENTATION_UNSET); in testSetIgnoreOrientationRequest_taskDisplayArea()
743 final TaskDisplayArea taskDisplayArea = mDisplayContent.getDefaultTaskDisplayArea(); in testSetIgnoreOrientationRequest_displayContent() local
744 final Task rootTask = taskDisplayArea.createRootTask( in testSetIgnoreOrientationRequest_displayContent()
[all …]
DTestDisplayContent.java57 forAllTaskDisplayAreas(taskDisplayArea -> { in TestDisplayContent()
58 spyOn(taskDisplayArea); in TestDisplayContent()
DDisplayAreaPolicyTests.java223 policy.mRoot.forAllTaskDisplayAreas(taskDisplayArea -> { in assertTaskDisplayAreasOrder()
224 actualOrder.add(taskDisplayArea); in assertTaskDisplayAreasOrder()
DRootTaskTests.java451 final TaskDisplayArea taskDisplayArea = addNewDisplayContentAt(DisplayContent.POSITION_TOP) in testMoveRootTaskToBackIncludingParent() local
453 final Task rootTask1 = createTaskForShouldBeVisibleTest(taskDisplayArea, in testMoveRootTaskToBackIncludingParent()
456 final Task rootTask2 = createTaskForShouldBeVisibleTest(taskDisplayArea, in testMoveRootTaskToBackIncludingParent()
465 taskDisplayArea.removeRootTask(rootTask1); in testMoveRootTaskToBackIncludingParent()
1023 TaskDisplayArea taskDisplayArea, int windowingMode, int activityType, boolean onTop) { in createTaskForShouldBeVisibleTest() argument
1024 return createTaskForShouldBeVisibleTest(taskDisplayArea, in createTaskForShouldBeVisibleTest()
1029 private Task createTaskForShouldBeVisibleTest(TaskDisplayArea taskDisplayArea, in createTaskForShouldBeVisibleTest() argument
1039 .setTaskDisplayArea(taskDisplayArea) in createTaskForShouldBeVisibleTest()
1048 .setTaskDisplayArea(taskDisplayArea) in createTaskForShouldBeVisibleTest()
DWindowTestsBase.java706 static int getTaskIndexOf(TaskDisplayArea taskDisplayArea, Task task) { in getTaskIndexOf() argument
708 final int childCount = taskDisplayArea.getChildCount(); in getTaskIndexOf()
710 final WindowContainer wc = taskDisplayArea.getChildAt(i); in getTaskIndexOf()
747 Task createTaskWithActivity(TaskDisplayArea taskDisplayArea, in createTaskWithActivity() argument
749 return createTask(taskDisplayArea, windowingMode, activityType, in createTaskWithActivity()
763 Task createTask(TaskDisplayArea taskDisplayArea, int windowingMode, int activityType) { in createTask() argument
764 return createTask(taskDisplayArea, windowingMode, activityType, in createTask()
769 Task createTask(TaskDisplayArea taskDisplayArea, int windowingMode, int activityType, in createTask() argument
772 .setTaskDisplayArea(taskDisplayArea) in createTask()
1635 TaskBuilder setTaskDisplayArea(TaskDisplayArea taskDisplayArea) { in setTaskDisplayArea() argument
[all …]
DSystemServicesTestRule.java427 final TaskDisplayArea taskDisplayArea = display.getDefaultTaskDisplayArea();
430 display.onLastFocusedTaskDisplayAreaChanged(taskDisplayArea);
431 spyOn(taskDisplayArea);
432 final Task homeStack = taskDisplayArea.getRootTask(
DTaskTests.java544 TaskDisplayArea taskDisplayArea = mAtm.mRootWindowContainer.getDefaultTaskDisplayArea(); in testFitWithinBounds() local
545 Task rootTask = taskDisplayArea.createRootTask(WINDOWING_MODE_FREEFORM, in testFitWithinBounds()
934 TaskDisplayArea taskDisplayArea = mAtm.mRootWindowContainer.getDefaultTaskDisplayArea(); in testInsetDisregardedWhenFreeformOverlapsNavBar() local
935 Task rootTask = taskDisplayArea.createRootTask(WINDOWING_MODE_FULLSCREEN, in testInsetDisregardedWhenFreeformOverlapsNavBar()
1520 final TaskDisplayArea taskDisplayArea = task.getDisplayArea(); in testNotSpecifyOrientationByFloatingTask() local
1524 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, taskDisplayArea.getOrientation()); in testNotSpecifyOrientationByFloatingTask()
1530 assertEquals(SCREEN_ORIENTATION_LANDSCAPE, taskDisplayArea.getOrientation()); in testNotSpecifyOrientationByFloatingTask()
2030 TaskDisplayArea taskDisplayArea = mAtm.mRootWindowContainer.getDefaultTaskDisplayArea(); in testRootTaskBoundsConfiguration() local
2031 Task rootTask = taskDisplayArea.createRootTask(windowingMode, ACTIVITY_TYPE_STANDARD, in testRootTaskBoundsConfiguration()
DDisplayAreaTest.java148 final TaskDisplayArea taskDisplayArea = new TaskDisplayArea(null /* displayContent */, in testAsDisplayArea() local
153 assertThat(taskDisplayArea.asDisplayArea()).isEqualTo(taskDisplayArea); in testAsDisplayArea()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskLaunchParamsModifier.java319 TaskDisplayArea taskDisplayArea = suggestedDisplayArea; in calculate() local
354 taskDisplayArea = mTmpDisplayArea; in calculate()
359 + taskDisplayArea + "]"); in calculate()
362 appendLog("display-area=" + taskDisplayArea); in calculate()
363 outParams.mPreferredTaskDisplayArea = taskDisplayArea; in calculate()
378 if (currentParams.mPreferredTaskDisplayArea != taskDisplayArea) { in calculate()
379 adjustBoundsToFitInDisplayArea(taskDisplayArea, layout, outParams.mBounds); in calculate()
383 adjustBoundsToAvoidConflictInDisplayArea(taskDisplayArea, outParams.mBounds); in calculate()
389 && source.getDisplayArea() == taskDisplayArea) { in calculate()
392 taskDisplayArea, outParams.mBounds); in calculate() local
[all …]
DDisplayAreaOrganizerController.java221 parentTda = display.getItemFromTaskDisplayAreas(taskDisplayArea -> in createTaskDisplayArea()
222 taskDisplayArea.mFeatureId == parentFeatureId in createTaskDisplayArea()
223 ? taskDisplayArea in createTaskDisplayArea()
263 final TaskDisplayArea taskDisplayArea = wc.asTaskDisplayArea(); in deleteTaskDisplayArea() local
264 if (!taskDisplayArea.mCreatedByOrganizer) { in deleteTaskDisplayArea()
267 + "TaskDisplayArea=" + taskDisplayArea); in deleteTaskDisplayArea()
270 mOrganizersByFeatureIds.remove(taskDisplayArea.mFeatureId).destroy(); in deleteTaskDisplayArea()
322 final TaskDisplayArea taskDisplayArea = new TaskDisplayArea(root.mDisplayContent, in createTaskDisplayArea() local
345 parent.addChild(taskDisplayArea, index); in createTaskDisplayArea()
347 return taskDisplayArea; in createTaskDisplayArea()
[all …]
DRootWindowContainer.java1392 forAllTaskDisplayAreas(taskDisplayArea -> { in startHomeOnEmptyDisplays()
1393 if (taskDisplayArea.topRunningActivity() == null) { in startHomeOnEmptyDisplays()
1394 int userId = mWmService.getUserAssignedToDisplay(taskDisplayArea.getDisplayId()); in startHomeOnEmptyDisplays()
1395 startHomeOnTaskDisplayArea(userId, reason, taskDisplayArea, in startHomeOnEmptyDisplays()
1415 return display.reduceOnAllTaskDisplayAreas((taskDisplayArea, result) -> in startHomeOnDisplay()
1416 result | startHomeOnTaskDisplayArea(userId, reason, taskDisplayArea, in startHomeOnDisplay()
1432 boolean startHomeOnTaskDisplayArea(int userId, String reason, TaskDisplayArea taskDisplayArea, in startHomeOnTaskDisplayArea() argument
1435 if (taskDisplayArea == null) { in startHomeOnTaskDisplayArea()
1437 taskDisplayArea = rootTask != null ? rootTask.getDisplayArea() in startHomeOnTaskDisplayArea()
1443 if (taskDisplayArea == getDefaultTaskDisplayArea() in startHomeOnTaskDisplayArea()
[all …]
DSafeActivityOptions.java297 final TaskDisplayArea taskDisplayArea = getLaunchTaskDisplayArea(options, supervisor); in checkPermissions() local
298 if (aInfo != null && taskDisplayArea != null in checkPermissions()
300 taskDisplayArea, aInfo)) { in checkPermissions()
303 + ", uid=" + callingUid + ") with launchTaskDisplayArea=" + taskDisplayArea; in checkPermissions()
419 TaskDisplayArea taskDisplayArea = daToken != null in getLaunchTaskDisplayArea() local
421 if (taskDisplayArea != null) { in getLaunchTaskDisplayArea()
422 return taskDisplayArea; in getLaunchTaskDisplayArea()
434 taskDisplayArea = dc.getItemFromTaskDisplayAreas(tda -> in getLaunchTaskDisplayArea()
438 return taskDisplayArea; in getLaunchTaskDisplayArea()
DResetTargetTaskHelper.java229 TaskDisplayArea taskDisplayArea = mTargetRootTask.getDisplayArea(); in processPendingReparentActivities() local
239 ? taskDisplayArea.getBottomMostTask() : mTargetRootTask.getBottomMostTask(); in processPendingReparentActivities()
250 targetTask = taskDisplayArea.getOrCreateRootTask(windowingMode, in processPendingReparentActivities()
DTaskFragment.java681 final TaskDisplayArea taskDisplayArea = getDisplayArea(); in isAttached() local
682 return taskDisplayArea != null && !taskDisplayArea.isRemoved(); in isAttached()
1353 final TaskDisplayArea taskDisplayArea = getDisplayArea(); in resumeTopActivity() local
1356 && taskDisplayArea.allResumedActivitiesComplete()) { in resumeTopActivity()
1358 taskDisplayArea.ensureActivitiesVisible(null /* starting */, true /* notifyClients */); in resumeTopActivity()
1367 if (taskDisplayArea.inMultiWindowMode() && taskDisplayArea.mDisplayContent != null) { in resumeTopActivity()
1368 final ActivityRecord focusedApp = taskDisplayArea.mDisplayContent.mFocusedApp; in resumeTopActivity()
1370 taskDisplayArea.mDisplayContent.setFocusedApp(next); in resumeTopActivity()
1407 final Task lastFocusedRootTask = taskDisplayArea.getLastFocusedRootTask(); in resumeTopActivity()
1415 boolean pausing = !skipPause && taskDisplayArea.pauseBackTasks(next); in resumeTopActivity()
[all …]
DTask.java741 final TaskDisplayArea taskDisplayArea = getDisplayArea(); in removeIfPossible() local
742 if (taskDisplayArea != null) { in removeIfPossible()
743 taskDisplayArea.onLeafTaskRemoved(mTaskId); in removeIfPossible()
1291 final TaskDisplayArea taskDisplayArea = getDisplayArea(); in updateTaskMovement() local
1292 if (taskDisplayArea != null && isLeafTask()) { in updateTaskMovement()
1293 taskDisplayArea.onLeafTaskMoved(this, toTop, toBottom); in updateTaskMovement()
2080 final TaskDisplayArea taskDisplayArea = getDisplayArea(); in onConfigurationChanged() local
2081 if (taskDisplayArea == null) { in onConfigurationChanged()
2086 taskDisplayArea.onRootTaskWindowingModeChanged(this); in onConfigurationChanged()
2104 taskDisplayArea.positionChildAt(POSITION_TOP, this, false /* includingParents */); in onConfigurationChanged()
[all …]
DActivityStartController.java165 TaskDisplayArea taskDisplayArea) { in startHomeActivity() argument
174 final int displayId = taskDisplayArea.getDisplayId(); in startHomeActivity()
176 options.setLaunchTaskDisplayArea(taskDisplayArea.mRemoteToken in startHomeActivity()
185 rootHomeTask = taskDisplayArea.getOrCreateRootHomeTask(ON_TOP); in startHomeActivity()
DRecentsAnimation.java360 final TaskDisplayArea taskDisplayArea = targetActivity.getDisplayArea(); in finishAnimation() local
361 taskDisplayArea.moveRootTaskBehindRootTask(targetRootTask, in finishAnimation()
DDisplayAreaPolicyBuilder.java827 mDefaultTaskDisplayArea = mRoot.getItemFromTaskDisplayAreas(taskDisplayArea -> in Result()
828 taskDisplayArea.mFeatureId == FEATURE_DEFAULT_TASK_CONTAINER in Result()
829 ? taskDisplayArea in Result()
DActivityTaskSupervisor.java1195 TaskDisplayArea taskDisplayArea, ActivityInfo aInfo) { in isCallerAllowedToLaunchOnTaskDisplayArea() argument
1197 taskDisplayArea != null ? taskDisplayArea.getDisplayId() : DEFAULT_DISPLAY, aInfo); in isCallerAllowedToLaunchOnTaskDisplayArea()
1587 private void moveHomeRootTaskToFrontIfNeeded(int flags, TaskDisplayArea taskDisplayArea, in moveHomeRootTaskToFrontIfNeeded() argument
1589 final Task focusedRootTask = taskDisplayArea.getFocusedRootTask(); in moveHomeRootTaskToFrontIfNeeded()
1591 if ((taskDisplayArea.getWindowingMode() == WINDOWING_MODE_FULLSCREEN in moveHomeRootTaskToFrontIfNeeded()
1597 taskDisplayArea.moveHomeRootTaskToFront(reason); in moveHomeRootTaskToFrontIfNeeded()
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DTaskDisplayAreaWrapper.java32 private TaskDisplayAreaWrapper(TaskDisplayArea taskDisplayArea) { in TaskDisplayAreaWrapper() argument
33 mTaskDisplayArea = taskDisplayArea; in TaskDisplayAreaWrapper()
37 public static TaskDisplayAreaWrapper create(@Nullable TaskDisplayArea taskDisplayArea) { in create() argument
38 if (taskDisplayArea == null) return null; in create()
39 return new TaskDisplayAreaWrapper(taskDisplayArea); in create()
/frameworks/base/core/java/android/window/
DDisplayAreaOrganizer.java235 public void deleteTaskDisplayArea(@NonNull WindowContainerToken taskDisplayArea) { in deleteTaskDisplayArea() argument
237 getController().deleteTaskDisplayArea(taskDisplayArea); in deleteTaskDisplayArea()
DIDisplayAreaOrganizerController.aidl68 void deleteTaskDisplayArea(in WindowContainerToken taskDisplayArea); in deleteTaskDisplayArea() argument

12