Home
last modified time | relevance | path

Searched refs:tda (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayAreaTest.java160 final Predicate<TaskDisplayArea> callback0 = tda -> false; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny()
161 final Consumer<TaskDisplayArea> callback1 = tda -> { }; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny()
162 final BiFunction<TaskDisplayArea, Integer, Integer> callback2 = (tda, result) -> result; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny()
163 final Function<TaskDisplayArea, TaskDisplayArea> callback3 = tda -> null; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny()
244 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
245 actualOrder.add(tda); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
252 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
253 actualOrder.add(tda); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
260 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
261 actualOrder.add(tda); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
[all …]
DWindowContainerTransactionTests.java84 TaskDisplayArea tda = desktopOrganizer.mDefaultTDA; in testDesktopMode_tasksAreBroughtToFront() local
105 assertTrue(tda.mChildren in testDesktopMode_tasksAreBroughtToFront()
107 < tda.mChildren.indexOf(desktopOrganizer.mTasks.get(i + 1).getRootTask())); in testDesktopMode_tasksAreBroughtToFront()
114 TaskDisplayArea tda = desktopOrganizer.mDefaultTDA; in testDesktopMode_moveTaskToDesktop() local
139 assertTrue(tda.mChildren in testDesktopMode_moveTaskToDesktop()
141 < tda.mChildren.indexOf(desktopOrganizer.mTasks.get(i + 1).getRootTask())); in testDesktopMode_moveTaskToDesktop()
144 assertTrue(tda.mChildren in testDesktopMode_moveTaskToDesktop()
146 < tda.mChildren.indexOf(task)); in testDesktopMode_moveTaskToDesktop()
176 TaskDisplayArea tda = desktopOrganizer.mDefaultTDA; in testDesktopMode_moveTaskToFront() local
188 assertTrue(tda.mChildren.indexOf(desktopOrganizer.mTasks.get(0).getRootTask()) in testDesktopMode_moveTaskToFront()
[all …]
DDisplayAreaOrganizerTest.java144 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in testCreateTaskDisplayArea_topBelowRoot() local
146 assertThat(tda.getName()).isEqualTo(newTdaName); in testCreateTaskDisplayArea_topBelowRoot()
147 assertThat(tda.mFeatureId).isEqualTo(tdaInfo.getDisplayAreaInfo().featureId); in testCreateTaskDisplayArea_topBelowRoot()
148 assertThat(tda.mCreatedByOrganizer).isTrue(); in testCreateTaskDisplayArea_topBelowRoot()
149 assertThat(tda.mOrganizer).isEqualTo(organizer); in testCreateTaskDisplayArea_topBelowRoot()
168 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea() local
170 assertThat(tda.getName()).isEqualTo(newTdaName); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
171 assertThat(tda.mFeatureId).isEqualTo(tdaInfo.getDisplayAreaInfo().featureId); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
172 assertThat(tda.mCreatedByOrganizer).isTrue(); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
173 assertThat(tda.mOrganizer).isEqualTo(organizer); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
[all …]
DDisplayAreaPolicyBuilderTest.java738 final TaskDisplayArea tda = policy.getTaskDisplayArea(null /* options */); in testGetTaskDisplayArea_DefaultFunction_NullOptions_ReturnsDefaultTda() local
740 assertThat(tda).isEqualTo(mDefaultTaskDisplayArea); in testGetTaskDisplayArea_DefaultFunction_NullOptions_ReturnsDefaultTda()
741 assertThat(tda).isEqualTo(policy.getDefaultTaskDisplayArea()); in testGetTaskDisplayArea_DefaultFunction_NullOptions_ReturnsDefaultTda()
762 final TaskDisplayArea tda = policy.getTaskDisplayArea(new Bundle()); in testGetTaskDisplayArea_DefaultFunction_NotContainsLunchedTda_ReturnsDefaultTda() local
764 assertThat(tda).isEqualTo(mDefaultTaskDisplayArea); in testGetTaskDisplayArea_DefaultFunction_NotContainsLunchedTda_ReturnsDefaultTda()
765 assertThat(tda).isEqualTo(policy.getDefaultTaskDisplayArea()); in testGetTaskDisplayArea_DefaultFunction_NotContainsLunchedTda_ReturnsDefaultTda()
789 final TaskDisplayArea tda = policy.getTaskDisplayArea(options.toBundle()); in testGetTaskDisplayArea_DefaultFunction_InvalidTdaToken_ReturnsDefaultTda() local
791 assertThat(tda).isEqualTo(mDefaultTaskDisplayArea); in testGetTaskDisplayArea_DefaultFunction_InvalidTdaToken_ReturnsDefaultTda()
792 assertThat(tda).isEqualTo(policy.getDefaultTaskDisplayArea()); in testGetTaskDisplayArea_DefaultFunction_InvalidTdaToken_ReturnsDefaultTda()
821 final TaskDisplayArea tda = policy.getTaskDisplayArea(options.toBundle()); in testGetTaskDisplayArea_DefaultFunction_TdaOnDifferentDisplay_ThrowException() local
[all …]
DActivityTaskManagerServiceTests.java520 final TaskDisplayArea tda = task.getDisplayArea(); in testSupportsMultiWindow_nonResizable() local
538 tda.getConfiguration().smallestScreenWidthDp = in testSupportsMultiWindow_nonResizable()
545 tda.getConfiguration().smallestScreenWidthDp = in testSupportsMultiWindow_nonResizable()
569 final TaskDisplayArea tda = task.getDisplayArea(); in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport() local
571 if (tda.getConfiguration().smallestScreenWidthDp in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport()
592 tda.getConfiguration().smallestScreenWidthDp = in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport()
599 tda.getConfiguration().smallestScreenWidthDp = in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport()
623 final TaskDisplayArea tda = task.getDisplayArea(); in testSupportsMultiWindow_landscape_checkActivityMinWidth() local
624 tda.getConfiguration().smallestScreenWidthDp = in testSupportsMultiWindow_landscape_checkActivityMinWidth()
626 tda.getConfiguration().screenWidthDp = in testSupportsMultiWindow_landscape_checkActivityMinWidth()
[all …]
DDisplayAreaPolicyTests.java207 final TaskDisplayArea tda = w.asTaskDisplayArea(); in assertTaskDisplayAreaPresentAndCanHaveHome()
208 if (tda != null && tda.mFeatureId == featureId) { in assertTaskDisplayAreaPresentAndCanHaveHome()
209 matchedAreas.add(tda); in assertTaskDisplayAreaPresentAndCanHaveHome()
DTransitionTests.java304 final DisplayArea tda = showTask.getDisplayArea(); in testCreateInfo_DisplayArea() local
314 changes.put(tda, new Transition.ChangeInfo(tda, false /* vis */, true /* exChg */)); in testCreateInfo_DisplayArea()
318 fillChangeMap(changes, tda); in testCreateInfo_DisplayArea()
335 assertNotNull(info.getChange(tda.mRemoteToken.toWindowContainerToken())); in testCreateInfo_DisplayArea()
342 assertNotNull(info.getChange(tda.mRemoteToken.toWindowContainerToken())); in testCreateInfo_DisplayArea()
345 participants.add(tda); in testCreateInfo_DisplayArea()
DRecentTasksTest.java1331 final TaskDisplayArea tda = task.getDisplayArea(); in testCreateRecentTaskInfo_detachedTask() local
1358 doReturn(false).when(tda).supportsNonResizableMultiWindow(); in testCreateRecentTaskInfo_detachedTask()
1368 doReturn(true).when(tda).supportsNonResizableMultiWindow(); in testCreateRecentTaskInfo_detachedTask()
DWindowTestsBase.java717 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in getTaskIndexOf() local
718 final int subIndex = getTaskIndexOf(tda, task); in getTaskIndexOf()
722 index += tda.getRootTaskCount(); in getTaskIndexOf()
DActivityRecordTests.java699 final TaskDisplayArea tda = mDisplayContent.getDefaultTaskDisplayArea(); in respectRequestedOrientationForNonResizableInSplitWindows() local
700 spyOn(tda); in respectRequestedOrientationForNonResizableInSplitWindows()
701 doReturn(true).when(tda).supportsNonResizableMultiWindow(); in respectRequestedOrientationForNonResizableInSplitWindows()
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DLaunchParamsWrapper.java66 public void setPreferredTaskDisplayArea(TaskDisplayAreaWrapper tda) { in setPreferredTaskDisplayArea() argument
67 mLaunchParams.mPreferredTaskDisplayArea = tda.getTaskDisplayArea(); in setPreferredTaskDisplayArea()
DActivityOptionsWrapper.java69 TaskDisplayArea tda = (TaskDisplayArea) WindowContainer.fromBinder(daToken.asBinder()); in getLaunchTaskDisplayArea()
70 return TaskDisplayAreaWrapper.create(tda); in getLaunchTaskDisplayArea()
DCarLaunchParamsModifier.java204 TaskDisplayArea tda = display.getItemFromTaskDisplayAreas( in findTaskDisplayArea() local
206 return TaskDisplayAreaWrapper.create(tda); in findTaskDisplayArea()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayAreaPolicyBuilder.java439 final TaskDisplayArea tda = WindowContainer.fromBinder(tdaToken.asBinder()) in apply() local
441 if (tda == null) { in apply()
446 if (tda.getDisplayId() != mDisplayId) { in apply()
449 + tda.getDisplayId()); in apply()
451 return tda; in apply()
DSafeActivityOptions.java434 taskDisplayArea = dc.getItemFromTaskDisplayAreas(tda -> in getLaunchTaskDisplayArea()
435 tda.mFeatureId == launchTaskDisplayAreaFeatureId ? tda : null); in getLaunchTaskDisplayArea()
DDisplayAreaOrganizerController.java237 final TaskDisplayArea tda = parentRoot != null in createTaskDisplayArea() local
240 final DisplayAreaAppearedInfo tdaInfo = organizeDisplayArea(organizer, tda, in createTaskDisplayArea()
DTaskLaunchParamsModifier.java429 taskDisplayArea = dc.getItemFromTaskDisplayAreas(tda -> in getPreferredLaunchTaskDisplayArea()
430 tda.mFeatureId == launchTaskDisplayAreaFeatureId ? tda : null); in getPreferredLaunchTaskDisplayArea()
DTaskDisplayArea.java540 final TaskDisplayArea tda = child.asTaskDisplayArea();
541 if (tda != null) {
543 return tda.getPriority(tda.getTopChild());
DTask.java1816 boolean supportsFreeformInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsFreeformInDisplayArea() argument
1818 && supportsMultiWindowInDisplayArea(tda); in supportsFreeformInDisplayArea()
3388 void fillTaskInfo(TaskInfo info, boolean stripExtras, @Nullable TaskDisplayArea tda) {
3396 info.displayAreaFeatureId = tda != null ? tda.mFeatureId : FEATURE_UNDEFINED;
3412 info.supportsMultiWindow = supportsMultiWindowInDisplayArea(tda);
6688 private void validateRootTask(TaskDisplayArea tda) {
6696 if (!DisplayContent.alwaysCreateRootTask(tda.getWindowingMode(), mActivityType)
6701 Task rootTask = tda.getRootTask(WINDOWING_MODE_UNDEFINED, mActivityType);
6704 + mActivityType + " already on display=" + tda
6724 if (mWindowingMode == WINDOWING_MODE_PINNED && tda.getRootPinnedTask() != null) {
[all …]
DTaskFragment.java2216 boolean supportsMultiWindowInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsMultiWindowInDisplayArea() argument
2220 if (tda == null) { in supportsMultiWindowInDisplayArea()
2227 if (!task.isResizeable() && !tda.supportsNonResizableMultiWindow()) { in supportsMultiWindowInDisplayArea()
2233 return tda.supportsActivityMinWidthHeightMultiWindow(mMinWidth, mMinHeight, in supportsMultiWindowInDisplayArea()
DRecentTasks.java1989 final TaskDisplayArea tda = tr.isAttached() in createRecentTaskInfo() local
1992 tr.fillTaskInfo(rti, stripExtras, tda); in createRecentTaskInfo()
2007 childTask.fillTaskInfo(cti, true /* stripExtras */, tda); in createRecentTaskInfo()
DActivityRecord.java3361 boolean supportsFreeformInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsFreeformInDisplayArea() argument
3363 && supportsMultiWindowInDisplayArea(tda); in supportsFreeformInDisplayArea()
3374 boolean supportsMultiWindowInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsMultiWindowInDisplayArea() argument
3381 if (tda == null) { in supportsMultiWindowInDisplayArea()
3385 if (!isResizeable() && !tda.supportsNonResizableMultiWindow()) { in supportsMultiWindowInDisplayArea()
3392 || tda.supportsActivityMinWidthHeightMultiWindow(windowLayout.minWidth, in supportsMultiWindowInDisplayArea()
8397 final TaskDisplayArea tda = getTaskDisplayArea(); in shouldCreateCompatDisplayInsets() local
8398 if (inMultiWindowMode() || (tda != null && tda.inFreeformWindowingMode())) { in shouldCreateCompatDisplayInsets()
DActivityStarter.java1529 final TaskDisplayArea tda = mLaunchParams.hasPreferredTaskDisplayArea() in startActivityUnchecked() local
1533 tda.getDisplayId()); in startActivityUnchecked()
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/
DCarLaunchParamsModifierUpdatableImpl.java470 TaskDisplayAreaWrapper tda = mBuiltin.findTaskDisplayArea(displayId, featureId); in setPersistentActivity() local
471 if (tda == null) { in setPersistentActivity()
476 mPersistentActivities.put(activity, tda); in setPersistentActivity()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
DDesktopTasksControllerTest.kt207 val tda = DisplayAreaInfo(MockToken().token(), DEFAULT_DISPLAY, 0) in <lambda>() constant
208 tda.configuration.windowConfiguration.windowingMode = WINDOWING_MODE_FULLSCREEN in <lambda>()
209 whenever(rootTaskDisplayAreaOrganizer.getDisplayAreaInfo(DEFAULT_DISPLAY)).thenReturn(tda) in <lambda>()
620 val tda = rootTaskDisplayAreaOrganizer.getDisplayAreaInfo(DEFAULT_DISPLAY)!! in <lambda>() constant
621 tda.configuration.windowConfiguration.windowingMode = WINDOWING_MODE_FULLSCREEN in <lambda>()
630 val tda = rootTaskDisplayAreaOrganizer.getDisplayAreaInfo(DEFAULT_DISPLAY)!! in <lambda>() constant
631 tda.configuration.windowConfiguration.windowingMode = WINDOWING_MODE_FREEFORM in <lambda>()
796 val tda = rootTaskDisplayAreaOrganizer.getDisplayAreaInfo(DEFAULT_DISPLAY)!! in <lambda>() constant
797 tda.configuration.windowConfiguration.windowingMode = WINDOWING_MODE_FULLSCREEN in <lambda>()
807 val tda = rootTaskDisplayAreaOrganizer.getDisplayAreaInfo(DEFAULT_DISPLAY)!! in <lambda>() constant
[all …]

12