Home
last modified time | relevance | path

Searched refs:TaskDisplayArea (Results 1 – 25 of 62) sorted by relevance

123

/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DDisplayAreaPolicyTests.java67 final Pair<DisplayAreaPolicy, List<TaskDisplayArea>> result = in testGetDefaultTaskDisplayArea()
70 final TaskDisplayArea taskDisplayArea1 = result.second.get(0); in testGetDefaultTaskDisplayArea()
76 final Pair<DisplayAreaPolicy, List<TaskDisplayArea>> result = in testTaskDisplayArea_taskPositionChanged_updatesTaskDisplayAreaPosition()
79 final TaskDisplayArea taskDisplayArea1 = result.second.get(0); in testTaskDisplayArea_taskPositionChanged_updatesTaskDisplayAreaPosition()
80 final TaskDisplayArea taskDisplayArea2 = result.second.get(1); in testTaskDisplayArea_taskPositionChanged_updatesTaskDisplayAreaPosition()
130 final TaskDisplayArea taskDisplayArea1 = new TaskDisplayArea(displayContent, wms, "Tasks1", in testDisplayAreaGroup_taskPositionChanged_updatesDisplayAreaGroupPosition()
132 final TaskDisplayArea taskDisplayArea2 = new TaskDisplayArea(displayContent, wms, "Tasks2", in testDisplayAreaGroup_taskPositionChanged_updatesDisplayAreaGroupPosition()
134 final TaskDisplayArea taskDisplayArea3 = new TaskDisplayArea(displayContent, wms, "Tasks3", in testDisplayAreaGroup_taskPositionChanged_updatesDisplayAreaGroupPosition()
136 final TaskDisplayArea taskDisplayArea4 = new TaskDisplayArea(displayContent, wms, "Tasks4", in testDisplayAreaGroup_taskPositionChanged_updatesDisplayAreaGroupPosition()
138 final TaskDisplayArea taskDisplayArea5 = new TaskDisplayArea(displayContent, wms, "Tasks5", in testDisplayAreaGroup_taskPositionChanged_updatesDisplayAreaGroupPosition()
[all …]
DDisplayAreaTest.java147 final TaskDisplayArea taskDisplayArea = new TaskDisplayArea(null /* displayContent */, in testAsDisplayArea()
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()
220 final TaskDisplayArea tda1 = new TaskDisplayArea(null /* displayContent */, in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
222 final TaskDisplayArea tda2 = new TaskDisplayArea(null /* displayContent */, in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
224 final TaskDisplayArea tda3 = new TaskDisplayArea(null /* displayContent */, in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
242 List<TaskDisplayArea> actualOrder = new ArrayList<>(); in testForAllTaskDisplayAreas_appliesOnTaskDisplayAreaInOrder()
316 final TaskDisplayArea tda1 = new TaskDisplayArea(null /* displayContent */, in testForAllTaskDisplayAreas_returnsWhenCallbackReturnTrue()
[all …]
DTaskDisplayAreaTests.java85 final TaskDisplayArea taskDisplayArea = rootTask.getDisplayArea(); in getLaunchRootTask_checksLaunchAdjacentFlagRoot()
103 final TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in getLaunchRootTask_checksFocusedRootTask()
132 final TaskDisplayArea taskDisplayArea = rootTask.getDisplayArea(); in getLaunchRootTask_fromLaunchAdjacentFlagRoot_checksAdjacentRoot()
148 final TaskDisplayArea taskDisplayArea = rootTask.getDisplayArea(); in getOrCreateLaunchRootRespectsResolvedWindowingMode()
169 final TaskDisplayArea taskDisplayArea = rootTask.getDisplayArea(); in getOrCreateLaunchRootUsesActivityOptionsWindowingMode()
192 final TaskDisplayArea taskDisplayArea = activity.getDisplayArea(); in testActivityWithZBoost_taskDisplayAreaDoesNotMoveUp()
378 final TaskDisplayArea defaultTaskDisplayArea = in testGetOrientation_nonResizableHomeTaskWithHomeActivityPendingVisibilityChange()
410 final TaskDisplayArea firstTaskDisplayArea = mDisplayContent.getDefaultTaskDisplayArea(); in testIsLastFocused()
411 final TaskDisplayArea secondTaskDisplayArea = createTaskDisplayArea( in testIsLastFocused()
446 final TaskDisplayArea firstTaskDisplayArea = mDisplayContent.getDefaultTaskDisplayArea(); in testCanSpecifyOrientation()
[all …]
DDisplayAreaOrganizerTest.java146 assertThat(wc).isInstanceOf(TaskDisplayArea.class); in testCreateTaskDisplayArea_topBelowRoot()
151 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in testCreateTaskDisplayArea_topBelowRoot()
162 final TaskDisplayArea parentTda = mDisplayContent.getDefaultTaskDisplayArea(); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
170 assertThat(wc).isInstanceOf(TaskDisplayArea.class); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
175 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in testCreateTaskDisplayArea_topBelowAnotherTaskDisplayArea()
227 final TaskDisplayArea newTda = mDisplayContent.getItemFromDisplayAreas( in testDeleteTaskDisplayArea()
238 final TaskDisplayArea curTda = mDisplayContent.getItemFromDisplayAreas( in testDeleteTaskDisplayArea()
252 final TaskDisplayArea newTda = mDisplayContent.getItemFromDisplayAreas( in testUnregisterOrganizer_deleteNewCreatedTaskDisplayArea()
263 final TaskDisplayArea curTda = mDisplayContent.getItemFromDisplayAreas( in testUnregisterOrganizer_deleteNewCreatedTaskDisplayArea()
271 final TaskDisplayArea tda = mDisplayContent.getDefaultTaskDisplayArea(); in testDeleteTaskDisplayArea_invalidTaskDisplayArea()
DRootWindowContainerTests.java261 final TaskDisplayArea taskDisplayArea = fullscreenTask.getDisplayArea(); in testReplacingTaskInPinnedRootTask()
371 final TaskDisplayArea taskDisplayArea = fullscreenTask.getDisplayArea(); in testMultipleActivitiesInTaskFragmentEnterPip()
474 TaskDisplayArea defaultTaskDisplayArea = display.getDefaultTaskDisplayArea(); in verifySleepTokenBehavior()
516 final TaskDisplayArea defaultTaskDisplayArea = mRootWindowContainer in testRemovingRootTaskOnAppCrash()
539 final TaskDisplayArea defaultTaskDisplayArea = mRootWindowContainer in testRemovingRootTaskOnAppCrash_multipleDisplayAreas()
548 final TaskDisplayArea secondTaskDisplayArea = createTaskDisplayArea( in testRemovingRootTaskOnAppCrash_multipleDisplayAreas()
566 final TaskDisplayArea defaultTaskDisplayArea = mRootWindowContainer in testFocusability()
620 final TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testFindTaskToMoveToFrontWhenRecentsOnTop()
631 final TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testFindTaskToMoveToFrontWhenRecentsOnOtherDisplay()
658 final TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testResumeActivityWhenNonTopmostRootTaskIsTopFocused()
[all …]
DDisplayAreaPolicyBuilderTest.java97 private TaskDisplayArea mDefaultTaskDisplayArea;
98 private List<TaskDisplayArea> mTaskDisplayAreaList;
101 private TaskDisplayArea mTda1;
102 private TaskDisplayArea mTda2;
113 mDefaultTaskDisplayArea = new TaskDisplayArea(mDisplayContent, mWms, "Tasks", in setup()
119 mTda1 = new TaskDisplayArea(mDisplayContent, mWms, "tda1", FEATURE_VENDOR_FIRST + 3); in setup()
120 mTda2 = new TaskDisplayArea(mDisplayContent, mWms, "tda2", FEATURE_VENDOR_FIRST + 4); in setup()
303 new TaskDisplayArea(mDisplayContent, mWms, "testTda", in testBuilder_singleRoot_validateSettings()
385 new TaskDisplayArea(mDisplayContent, mWms, "testTda", in testBuilder_rootHasUniqueId()
406 final List<TaskDisplayArea> tdaList = Lists.newArrayList( in testBuilder_taskDisplayAreaHasUniqueId()
[all …]
DDisplayAreaGroupTest.java52 private TaskDisplayArea mTaskDisplayArea;
58 final TaskDisplayArea defaultTda = mDisplayContent.getDefaultTaskDisplayArea(); in setUp()
61 mTaskDisplayArea = new TaskDisplayArea( in setUp()
DRecentsAnimationTest.java91 TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testRecentsActivityVisiblility()
127 TaskDisplayArea defaultTaskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testPreloadRecentsActivity()
186 TaskDisplayArea defaultTaskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testRestartRecentsActivity()
215 TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testSetLaunchTaskBehindOfTargetActivity()
257 TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testCancelAnimationOnVisibleStackOrderChange()
298 TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultTaskDisplayArea(); in testKeepAnimationOnHiddenStackOrderChange()
334 TaskDisplayArea taskDisplayArea = mRootWindowContainer.getDefaultDisplay() in testMultipleUserHomeActivity_findUserHomeTask()
DDualDisplayAreaGroupPolicyTest.java85 private TaskDisplayArea mFirstTda;
86 private TaskDisplayArea mSecondTda;
532 TaskDisplayArea getTaskDisplayArea(int tdaFeatureId) { in getTaskDisplayArea()
534 assertThat(da).isInstanceOf(TaskDisplayArea.class); in getTaskDisplayArea()
535 return (TaskDisplayArea) da; in getTaskDisplayArea()
626 final TaskDisplayArea firstTaskDisplayArea = new TaskDisplayArea(content, wmService, in instantiate()
628 final List<TaskDisplayArea> firstTdaList = new ArrayList<>(); in instantiate()
642 final TaskDisplayArea secondTaskDisplayArea = new TaskDisplayArea(content, wmService, in instantiate()
644 final List<TaskDisplayArea> secondTdaList = new ArrayList<>(); in instantiate()
DWindowProcessControllerTests.java441 final TaskDisplayArea expectedDisplayArea = mock(TaskDisplayArea.class); in testTopActivityDisplayAreaMatchesTopMostActivity_singleActivity()
457 final TaskDisplayArea bottomDisplayArea = mock(TaskDisplayArea.class); in testTopActivityDisplayAreaMatchesTopMostActivity_multipleActivities()
459 final TaskDisplayArea topDisplayArea = mock(TaskDisplayArea.class); in testTopActivityDisplayAreaMatchesTopMostActivity_multipleActivities()
DDesktopModeLaunchParamsModifierTests.java110 TaskDisplayArea mockTaskDisplayArea = mock(TaskDisplayArea.class); in testUsesDisplayAreaAndWindowingModeFromSource()
DWindowTestsBase.java575 static int getTaskIndexOf(TaskDisplayArea taskDisplayArea, Task task) { in getTaskIndexOf()
586 final TaskDisplayArea tda = wc.asTaskDisplayArea(); in getTaskIndexOf()
599 static TaskDisplayArea createTaskDisplayArea(DisplayContent displayContent, in createTaskDisplayArea()
601 final TaskDisplayArea newTaskDisplayArea = new TaskDisplayArea( in createTaskDisplayArea()
603 final TaskDisplayArea defaultTaskDisplayArea = displayContent.getDefaultTaskDisplayArea(); in createTaskDisplayArea()
616 Task createTaskWithActivity(TaskDisplayArea taskDisplayArea, in createTaskWithActivity()
632 Task createTask(TaskDisplayArea taskDisplayArea, int windowingMode, int activityType) { in createTask()
638 Task createTask(TaskDisplayArea taskDisplayArea, int windowingMode, int activityType, in createTask()
1350 private TaskDisplayArea mTaskDisplayArea;
1384 TaskBuilder setTaskDisplayArea(TaskDisplayArea taskDisplayArea) { in setTaskDisplayArea()
[all …]
/frameworks/opt/car/services/builtInServices/src/com/android/server/wm/
DCarDisplayAreaPolicyProvider.java84 TaskDisplayArea backgroundTaskDisplayArea = new TaskDisplayArea(content, wmService, in instantiate()
89 TaskDisplayArea controlBarDisplayArea = new TaskDisplayArea(content, wmService, in instantiate()
94 TaskDisplayArea voicePlateTaskDisplayArea = new TaskDisplayArea(content, wmService, in instantiate()
99 List<TaskDisplayArea> backgroundTdaList = new ArrayList<>(); in instantiate()
124 TaskDisplayArea defaultAppTaskDisplayArea = new TaskDisplayArea(content, wmService, in instantiate()
126 List<TaskDisplayArea> firstTdaList = new ArrayList<>(); in instantiate()
DTaskDisplayAreaWrapper.java32 private final TaskDisplayArea mTaskDisplayArea;
34 private TaskDisplayAreaWrapper(TaskDisplayArea taskDisplayArea) { in TaskDisplayAreaWrapper()
40 public static TaskDisplayAreaWrapper create(@Nullable TaskDisplayArea taskDisplayArea) { in create()
47 public TaskDisplayArea getTaskDisplayArea() { in getTaskDisplayArea()
DCarLaunchParamsModifier.java162 TaskDisplayArea displayAreaForLaunchingRecord = controllerFromLaunchingRecord == null in getFallbackDisplayAreasForActivity()
171 TaskDisplayArea displayAreaForRecord = controllerFromProcess == null ? null in getFallbackDisplayAreasForActivity()
180 TaskDisplayArea displayAreaFromSourceProcess = controllerFromRequest == null ? null in getFallbackDisplayAreasForActivity()
195 TaskDisplayArea tda = display.getItemFromTaskDisplayAreas( in findTaskDisplayArea()
DActivityOptionsWrapper.java61 TaskDisplayArea tda = (TaskDisplayArea) WindowContainer.fromBinder(daToken.asBinder()); in getLaunchTaskDisplayArea()
/frameworks/base/services/core/java/com/android/server/wm/
DDisplayAreaOrganizerController.java223 final TaskDisplayArea parentTda; in createTaskDisplayArea()
243 final TaskDisplayArea tda = parentRoot != null in createTaskDisplayArea()
269 final TaskDisplayArea taskDisplayArea = wc.asTaskDisplayArea(); in deleteTaskDisplayArea()
326 private TaskDisplayArea createTaskDisplayArea(RootDisplayArea root, String name, in createTaskDisplayArea()
328 final TaskDisplayArea taskDisplayArea = new TaskDisplayArea(root.mDisplayContent, in createTaskDisplayArea()
359 private TaskDisplayArea createTaskDisplayArea(TaskDisplayArea parentTda, String name, in createTaskDisplayArea()
361 final TaskDisplayArea taskDisplayArea = new TaskDisplayArea(parentTda.mDisplayContent, in createTaskDisplayArea()
371 private void deleteTaskDisplayArea(TaskDisplayArea taskDisplayArea) { in deleteTaskDisplayArea()
DTaskLaunchParamsModifier.java89 private TaskDisplayArea mTmpDisplayArea;
130 final TaskDisplayArea suggestedDisplayArea = getPreferredLaunchTaskDisplayArea(task, in calculate()
315 TaskDisplayArea taskDisplayArea = suggestedDisplayArea; in calculate()
395 private TaskDisplayArea getPreferredLaunchTaskDisplayArea(@Nullable Task task, in getPreferredLaunchTaskDisplayArea()
398 TaskDisplayArea taskDisplayArea = null; in getPreferredLaunchTaskDisplayArea()
403 taskDisplayArea = (TaskDisplayArea) WindowContainer.fromBinder( in getPreferredLaunchTaskDisplayArea()
442 final TaskDisplayArea sourceDisplayArea = source.getDisplayArea(); in getPreferredLaunchTaskDisplayArea()
501 private TaskDisplayArea getFallbackDisplayAreaForActivity( in getFallbackDisplayAreaForActivity()
507 final TaskDisplayArea displayAreaForLaunchingRecord = controllerFromLaunchingRecord == null in getFallbackDisplayAreaForActivity()
515 final TaskDisplayArea displayAreaForRecord = controllerFromProcess == null ? null in getFallbackDisplayAreaForActivity()
[all …]
DDisplayAreaPolicy.java89 public abstract TaskDisplayArea getDefaultTaskDisplayArea(); in getDefaultTaskDisplayArea()
92 public abstract TaskDisplayArea getTaskDisplayArea(@Nullable Bundle options); in getTaskDisplayArea()
100 final TaskDisplayArea defaultTaskDisplayArea = new TaskDisplayArea(content, wmService, in instantiate()
102 final List<TaskDisplayArea> tdaList = new ArrayList<>(); in instantiate()
DDisplayAreaPolicyBuilder.java160 @Nullable private Function<Bundle, TaskDisplayArea> mSelectTaskDisplayAreaFunc;
193 Function<Bundle, TaskDisplayArea> selectTaskDisplayAreaFunc) { in setSelectTaskDisplayAreaFunc()
401 Function<Bundle, TaskDisplayArea> {
402 private final TaskDisplayArea mDefaultTaskDisplayArea;
405 DefaultSelectTaskDisplayAreaFunction(TaskDisplayArea defaultTaskDisplayArea) { in DefaultSelectTaskDisplayAreaFunction()
411 public TaskDisplayArea apply(@Nullable Bundle options) { in apply()
420 final TaskDisplayArea tda = WindowContainer.fromBinder(tdaToken.asBinder()) in apply()
447 private final ArrayList<TaskDisplayArea> mTaskDisplayAreas = new ArrayList<>();
465 HierarchyBuilder setTaskDisplayAreas(List<TaskDisplayArea> taskDisplayAreas) { in setTaskDisplayAreas()
791 private final Function<Bundle, TaskDisplayArea> mSelectTaskDisplayAreaFunc;
[all …]
DLaunchParamsUtil.java57 static void centerBounds(@NonNull TaskDisplayArea displayArea, int width, int height, in centerBounds()
72 @NonNull TaskDisplayArea displayArea, in getDefaultFreeformSize()
135 static void adjustBoundsToFitInDisplayArea(@NonNull TaskDisplayArea displayArea, in adjustBoundsToFitInDisplayArea()
DTaskDisplayArea.java73 final class TaskDisplayArea extends DisplayArea<WindowContainer> { class
177 TaskDisplayArea(DisplayContent displayContent, WindowManagerService service, String name, in TaskDisplayArea() method in TaskDisplayArea
183 TaskDisplayArea(DisplayContent displayContent, WindowManagerService service, String name, in TaskDisplayArea() method in TaskDisplayArea
189 TaskDisplayArea(DisplayContent displayContent, WindowManagerService service, String name, in TaskDisplayArea() method in TaskDisplayArea
471 boolean forAllTaskDisplayAreas(Predicate<TaskDisplayArea> callback,
484 void forAllTaskDisplayAreas(Consumer<TaskDisplayArea> callback, boolean traverseTopToBottom) {
496 <R> R reduceOnAllTaskDisplayAreas(BiFunction<TaskDisplayArea, R, R> accumulator,
511 <R> R getItemFromTaskDisplayAreas(Function<TaskDisplayArea, R> callback,
535 final TaskDisplayArea tda = child.asTaskDisplayArea();
685 final TaskDisplayArea childTda = child.asTaskDisplayArea();
[all …]
DRecentsAnimation.java34 import static com.android.server.wm.TaskDisplayArea.getRootTaskAbove;
50 import com.android.server.wm.TaskDisplayArea.OnRootTaskOrderChangedListener;
63 private final TaskDisplayArea mDefaultTaskDisplayArea;
356 final TaskDisplayArea taskDisplayArea = targetActivity.getDisplayArea(); in finishAnimation()
/frameworks/opt/car/services/updatableServices/tests/src/com/android/server/wm/
DCarLaunchParamsModifierUpdatableTest.java124 private TaskDisplayArea mDisplayArea0ForDriver;
128 private TaskDisplayArea mDisplayArea1Private;
132 private TaskDisplayArea mDisplayArea10ForPassenger;
136 private TaskDisplayArea mDisplayArea11ForPassenger;
140 private TaskDisplayArea mDisplayArea2Virtual;
141 private TaskDisplayArea mMapTaskDisplayArea;
160 private void mockDisplay(Display display, TaskDisplayArea defaultTaskDisplayArea, in mockDisplay()
216 mMapTaskDisplayArea = new TaskDisplayArea( in setUp()
219 Function<TaskDisplayArea, TaskDisplayArea> callback = invocation.getArgument(0); in setUp()
262 TaskDisplayArea requestedTaskDisplayArea = mBuiltin.getDefaultTaskDisplayAreaOnDisplay( in assertDisplayIsReassigned()
[all …]
/frameworks/opt/car/services/builtInServices/tests/src/com/android/server/wm/
DTaskDisplayAreaWrapperTest.java32 private TaskDisplayArea mTaskDisplayArea;

123