/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | DisplayAreaTest.java | 159 final Predicate<TaskDisplayArea> callback0 = tda -> false; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny() 160 final Consumer<TaskDisplayArea> callback1 = tda -> { }; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny() 161 final BiFunction<TaskDisplayArea, Integer, Integer> callback2 = (tda, result) -> result; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny() 162 final Function<TaskDisplayArea, TaskDisplayArea> callback3 = tda -> null; in testForAllTaskDisplayAreas_onlyTraversesDisplayAreaOfTypeAny() 243 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder() 244 actualOrder.add(tda); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder() 251 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder() 252 actualOrder.add(tda); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder() 259 root.forAllTaskDisplayAreas(tda -> { in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder() 260 actualOrder.add(tda); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder() [all …]
|
D | DisplayAreaOrganizerTest.java | 151 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 …]
|
D | DisplayAreaPolicyBuilderTest.java | 738 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 …]
|
D | ActivityTaskManagerServiceTests.java | 439 final TaskDisplayArea tda = task.getDisplayArea(); in testSupportsMultiWindow_nonResizable() local 457 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp; in testSupportsMultiWindow_nonResizable() 463 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_nonResizable() 484 final TaskDisplayArea tda = task.getDisplayArea(); in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport() local 502 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp; in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport() 508 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_activityMinWidthHeight_largerThanSupport() 531 final TaskDisplayArea tda = task.getDisplayArea(); in testSupportsMultiWindow_landscape_checkActivityMinWidth() local 532 tda.getConfiguration().smallestScreenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_landscape_checkActivityMinWidth() 533 tda.getConfiguration().screenWidthDp = mAtm.mLargeScreenSmallestScreenWidthDp - 1; in testSupportsMultiWindow_landscape_checkActivityMinWidth() 534 tda.getConfiguration().orientation = ORIENTATION_LANDSCAPE; in testSupportsMultiWindow_landscape_checkActivityMinWidth() [all …]
|
D | TransitionTests.java | 237 final DisplayArea tda = showTask.getDisplayArea(); in testCreateInfo_DisplayArea() local 244 changes.put(tda, new Transition.ChangeInfo(false /* vis */, true /* exChg */)); in testCreateInfo_DisplayArea() 247 fillChangeMap(changes, tda); in testCreateInfo_DisplayArea() 264 assertNotNull(info.getChange(tda.mRemoteToken.toWindowContainerToken())); in testCreateInfo_DisplayArea() 271 assertNotNull(info.getChange(tda.mRemoteToken.toWindowContainerToken())); in testCreateInfo_DisplayArea() 274 participants.add(tda); in testCreateInfo_DisplayArea()
|
D | WindowTestsBase.java | 586 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in getTaskIndexOf() local 587 final int subIndex = getTaskIndexOf(tda, task); in getTaskIndexOf() 591 index += tda.getRootTaskCount(); in getTaskIndexOf()
|
D | RecentTasksTest.java | 1231 final TaskDisplayArea tda = task.getDisplayArea(); in testCreateRecentTaskInfo_detachedTask() local 1258 doReturn(false).when(tda).supportsNonResizableMultiWindow(); in testCreateRecentTaskInfo_detachedTask() 1268 doReturn(true).when(tda).supportsNonResizableMultiWindow(); in testCreateRecentTaskInfo_detachedTask()
|
D | ActivityRecordTests.java | 691 final TaskDisplayArea tda = mDisplayContent.getDefaultTaskDisplayArea(); in respectRequestedOrientationForNonResizableInSplitWindows() local 692 spyOn(tda); in respectRequestedOrientationForNonResizableInSplitWindows() 693 doReturn(true).when(tda).supportsNonResizableMultiWindow(); in respectRequestedOrientationForNonResizableInSplitWindows()
|
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/ |
D | ActivityOptionsWrapper.java | 61 TaskDisplayArea tda = (TaskDisplayArea) WindowContainer.fromBinder(daToken.asBinder()); in getLaunchTaskDisplayArea() 62 return TaskDisplayAreaWrapper.create(tda); in getLaunchTaskDisplayArea()
|
D | LaunchParamsWrapper.java | 74 public void setPreferredTaskDisplayArea(TaskDisplayAreaWrapper tda) { in setPreferredTaskDisplayArea() argument 75 mLaunchParams.mPreferredTaskDisplayArea = tda.getTaskDisplayArea(); in setPreferredTaskDisplayArea()
|
D | CarLaunchParamsModifier.java | 195 TaskDisplayArea tda = display.getItemFromTaskDisplayAreas( in findTaskDisplayArea() local 197 return TaskDisplayAreaWrapper.create(tda); in findTaskDisplayArea()
|
/frameworks/opt/car/services/updatableServices/src/com/android/server/wm/ |
D | CarLaunchParamsModifierUpdatableImpl.java | 430 TaskDisplayAreaWrapper tda = mBuiltin.findTaskDisplayArea(displayId, featureId); in setPersistentActivity() local 431 if (tda == null) { in setPersistentActivity() 436 mPersistentActivities.put(activity, tda); in setPersistentActivity()
|
/frameworks/base/services/core/java/com/android/server/wm/ |
D | DisplayAreaPolicyBuilder.java | 420 final TaskDisplayArea tda = WindowContainer.fromBinder(tdaToken.asBinder()) in apply() local 422 if (tda == null) { in apply() 427 if (tda.getDisplayId() != mDisplayId) { in apply() 430 + tda.getDisplayId()); in apply() 432 return tda; in apply()
|
D | DisplayAreaOrganizerController.java | 243 final TaskDisplayArea tda = parentRoot != null in createTaskDisplayArea() local 246 final DisplayAreaAppearedInfo tdaInfo = organizeDisplayArea(organizer, tda, in createTaskDisplayArea()
|
D | TaskDisplayArea.java | 535 final TaskDisplayArea tda = child.asTaskDisplayArea(); 536 if (tda != null) { 538 return tda.getPriority(tda.getTopChild());
|
D | Task.java | 1757 boolean supportsFreeformInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsFreeformInDisplayArea() argument 1759 && supportsMultiWindowInDisplayArea(tda); in supportsFreeformInDisplayArea() 3400 void fillTaskInfo(TaskInfo info, boolean stripExtras, @Nullable TaskDisplayArea tda) { 3408 info.displayAreaFeatureId = tda != null ? tda.mFeatureId : FEATURE_UNDEFINED; 3424 info.supportsMultiWindow = supportsMultiWindowInDisplayArea(tda); 6570 private void validateRootTask(TaskDisplayArea tda) { 6583 Task rootTask = tda.getRootTask(WINDOWING_MODE_UNDEFINED, mActivityType); 6586 + mActivityType + " already on display=" + tda 6606 if (mWindowingMode == WINDOWING_MODE_PINNED && tda.getRootPinnedTask() != null) { 6608 tda.getRootPinnedTask().dismissPip(); [all …]
|
D | RecentTasks.java | 1911 final TaskDisplayArea tda = tr.isAttached() in createRecentTaskInfo() local 1914 tr.fillTaskInfo(rti, stripExtras, tda); in createRecentTaskInfo() 1929 childTask.fillTaskInfo(cti, true /* stripExtras */, tda); in createRecentTaskInfo()
|
D | TaskFragment.java | 2039 boolean supportsMultiWindowInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsMultiWindowInDisplayArea() argument 2043 if (tda == null) { in supportsMultiWindowInDisplayArea() 2050 if (!task.isResizeable() && !tda.supportsNonResizableMultiWindow()) { in supportsMultiWindowInDisplayArea() 2056 return tda.supportsActivityMinWidthHeightMultiWindow(mMinWidth, mMinHeight, in supportsMultiWindowInDisplayArea()
|
D | ActivityRecord.java | 3108 boolean supportsFreeformInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsFreeformInDisplayArea() argument 3110 && supportsMultiWindowInDisplayArea(tda); in supportsFreeformInDisplayArea() 3121 boolean supportsMultiWindowInDisplayArea(@Nullable TaskDisplayArea tda) { in supportsMultiWindowInDisplayArea() argument 3128 if (tda == null) { in supportsMultiWindowInDisplayArea() 3132 if (!isResizeable() && !tda.supportsNonResizableMultiWindow()) { in supportsMultiWindowInDisplayArea() 3139 || tda.supportsActivityMinWidthHeightMultiWindow(windowLayout.minWidth, in supportsMultiWindowInDisplayArea()
|