Home
last modified time | relevance | path

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

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayAreaTest.java155 final Function<TaskDisplayArea, Boolean> callback0 = tda -> false; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny()
156 final Consumer<TaskDisplayArea> callback1 = tda -> { }; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny()
157 final BiFunction<TaskDisplayArea, Integer, Integer> callback2 = (tda, result) -> result; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny()
158 final Function<TaskDisplayArea, TaskDisplayArea> callback3 = tda -> null; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny()
239 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
240 actualOrder.add(tda); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
247 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
248 actualOrder.add(tda); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
255 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
256 actualOrder.add(tda); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
[all …]
DDisplayAreaOrganizerTest.java151 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in testCreateTaskDisplayArea_topBelowRoot() local
153 assertThat(tda.getName()).isEqualTo(newTdaName); in testCreateTaskDisplayArea_topBelowRoot()
154 assertThat(tda.mFeatureId).isEqualTo(tdaInfo.getDisplayAreaInfo().featureId); in testCreateTaskDisplayArea_topBelowRoot()
155 assertThat(tda.mCreatedByOrganizer).isTrue(); in testCreateTaskDisplayArea_topBelowRoot()
156 assertThat(tda.mOrganizer).isEqualTo(organizer); in testCreateTaskDisplayArea_topBelowRoot()
175 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea() local
177 assertThat(tda.getName()).isEqualTo(newTdaName); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
178 assertThat(tda.mFeatureId).isEqualTo(tdaInfo.getDisplayAreaInfo().featureId); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
179 assertThat(tda.mCreatedByOrganizer).isTrue(); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
180 assertThat(tda.mOrganizer).isEqualTo(organizer); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
[all …]
DActivityTaskManagerServiceTests.java336 final TaskDisplayArea tda = task.getDisplayArea(); in testSupportsMultiWindow_nonResizable() local
354 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp; in testSupportsMultiWindow_nonResizable()
360 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_nonResizable()
381 final TaskDisplayArea tda = task.getDisplayArea(); in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport() local
399 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp; in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport()
405 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport()
428 final TaskDisplayArea tda = task.getDisplayArea(); in testSupportsMultiWindow_landscape_checkActivityMinWidth() local
429 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_landscape_checkActivityMinWidth()
430 tda.getConfiguration().screenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_landscape_checkActivityMinWidth()
431 tda.getConfiguration().orientation = ORIENTATION_LANDSCAPE; in testSupportsMultiWindow_landscape_checkActivityMinWidth()
[all …]
DTransitionTests.java181 final DisplayArea tda = showTask.getDisplayArea(); in testCreateInfo_DisplayArea() local
188 changes.put(tda, new Transition.ChangeInfo(false /* vis */, true /* exChg */)); in testCreateInfo_DisplayArea()
191 fillChangeMap(changes, tda); in testCreateInfo_DisplayArea()
207 assertNotNull(info.getChange(tda.mRemoteToken.toWindowContainerToken())); in testCreateInfo_DisplayArea()
215 assertNotNull(info.getChange(tda.mRemoteToken.toWindowContainerToken())); in testCreateInfo_DisplayArea()
218 participants.add(tda); in testCreateInfo_DisplayArea()
DWindowTestsBase.java462 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in getTaskIndexOf() local
463 final int subIndex = getTaskIndexOf(tda, task); in getTaskIndexOf()
467 index += tda.getRootTaskCount(); in getTaskIndexOf()
DRecentTasksTest.java1149 final TaskDisplayArea tda = task.getDisplayArea(); in testCreateRecentTaskInfo_detachedTask() local
1169 doReturn(false).when(tda).supportsNonResizableMultiWindow(); in testCreateRecentTaskInfo_detachedTask()
1179 doReturn(true).when(tda).supportsNonResizableMultiWindow(); in testCreateRecentTaskInfo_detachedTask()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayAreaOrganizerController.java234 final TaskDisplayArea tda = parentRoot != null in createTaskDisplayArea() local
237 final DisplayAreaAppearedInfo tdaInfo = organizeDisplayArea(organizer, tda, in createTaskDisplayArea()
DTask.java1963 boolean supportsSplitScreenWindowingModeInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsSplitScreenWindowingModeInDisplayArea() argument
1966 && (topTask == null || topTask.supportsSplitScreenWindowingModeInner(tda)); in supportsSplitScreenWindowingModeInDisplayArea()
1969 private boolean supportsSplitScreenWindowingModeInner(@Nullable TaskDisplayArea tda) { in supportsSplitScreenWindowingModeInner() argument
1972 && supportsMultiWindowInDisplayArea(tda); in supportsSplitScreenWindowingModeInner()
1983 boolean supportsFreeformInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsFreeformInDisplayArea() argument
1985 && supportsMultiWindowInDisplayArea(tda); in supportsFreeformInDisplayArea()
1996 boolean supportsMultiWindowInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsMultiWindowInDisplayArea() argument
2000 if (tda == null) { in supportsMultiWindowInDisplayArea()
2006 if (!isResizeable() && !tda.supportsNonResizableMultiWindow()) { in supportsMultiWindowInDisplayArea()
2011 return tda.supportsActivityMinWidthHeightMultiWindow(mMinWidth, mMinHeight); in supportsMultiWindowInDisplayArea()
[all …]
DTaskDisplayArea.java577 final TaskDisplayArea tda = child.asTaskDisplayArea();
578 if (tda != null) {
580 return tda.getPriority(tda.getTopChild());
DRecentTasks.java1893 final TaskDisplayArea tda = tr.isAttached() in createRecentTaskInfo() local
1896 tr.fillTaskInfo(rti, stripExtras, tda); in createRecentTaskInfo()
1908 childTask.fillTaskInfo(cti, true /* stripExtras */, tda); in createRecentTaskInfo()
DActivityRecord.java2596 boolean supportsSplitScreenWindowingModeInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsSplitScreenWindowingModeInDisplayArea() argument
2599 && supportsMultiWindowInDisplayArea(tda); in supportsSplitScreenWindowingModeInDisplayArea()
2610 boolean supportsFreeformInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsFreeformInDisplayArea() argument
2612 && supportsMultiWindowInDisplayArea(tda); in supportsFreeformInDisplayArea()
2623 boolean supportsMultiWindowInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsMultiWindowInDisplayArea() argument
2630 if (tda == null) { in supportsMultiWindowInDisplayArea()
2634 if (!isResizeable() && !tda.supportsNonResizableMultiWindow()) { in supportsMultiWindowInDisplayArea()
2641 || tda.supportsActivityMinWidthHeightMultiWindow(windowLayout.minWidth, in supportsMultiWindowInDisplayArea()