Home
last modified time | relevance | path

Searched refs:createTaskInfo (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
DDesktopModeLoggerTransitionObserverTest.kt124 val change = createChange(TRANSIT_OPEN, createTaskInfo(1, WINDOWING_MODE_FULLSCREEN)) in transitOpen_notFreeformWindow_doesNotLogTaskAddedOrSessionEnter()
135 val change = createChange(TRANSIT_OPEN, createTaskInfo(1, WINDOWING_MODE_FREEFORM)) in transitOpen_logTaskAddedAndEnterReasonAppFreeformIntent()
150 val change = createChange(TRANSIT_TO_FRONT, createTaskInfo(1, WINDOWING_MODE_FREEFORM)) in transitEndDragToDesktop_logTaskAddedAndEnterReasonAppHandleDrag()
169 val change = createChange(TRANSIT_TO_FRONT, createTaskInfo(1, WINDOWING_MODE_FREEFORM)) in transitEnterDesktopByButtonTap_logTaskAddedAndEnterReasonButtonTap()
187 val change = createChange(TRANSIT_TO_FRONT, createTaskInfo(1, WINDOWING_MODE_FREEFORM)) in transitEnterDesktopFromAppFromOverview_logTaskAddedAndEnterReasonAppFromOverview()
205 val change = createChange(TRANSIT_TO_FRONT, createTaskInfo(1, WINDOWING_MODE_FREEFORM)) in transitEnterDesktopFromKeyboardShortcut_logTaskAddedAndEnterReasonKeyboardShortcut()
223 val change = createChange(TRANSIT_TO_FRONT, createTaskInfo(1, WINDOWING_MODE_FREEFORM)) in transitToFront_logTaskAddedAndEnterReasonOverview()
241 transitionObserver.addTaskInfosToCachedMap(createTaskInfo(1, WINDOWING_MODE_FREEFORM)) in transitToFront_previousTransitionExitToOverview_logTaskAddedAndEnterReasonOverview()
243 val previousChange = createChange(TRANSIT_TO_BACK, createTaskInfo(1, WINDOWING_MODE_FREEFORM)) in transitToFront_previousTransitionExitToOverview_logTaskAddedAndEnterReasonOverview()
259 val change = createChange(TRANSIT_TO_FRONT, createTaskInfo(1, WINDOWING_MODE_FREEFORM)) in transitToFront_previousTransitionExitToOverview_logTaskAddedAndEnterReasonOverview()
[all …]
DDesktopTasksControllerTest.kt648 val task = createTaskInfo(1) in <lambda>()
1866 private fun createTaskInfo(id: Int) = in createTaskInfo() method
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/
DShellTaskOrganizerTests.java171 RunningTaskInfo taskInfo = createTaskInfo(/* taskId= */ 1, WINDOWING_MODE_MULTI_WINDOW); in testTaskLeashReleasedAfterVanished()
196 RunningTaskInfo task1 = createTaskInfo(/* taskId= */ 1, WINDOWING_MODE_MULTI_WINDOW); in testRegisterWithExistingTasks()
197 RunningTaskInfo task2 = createTaskInfo(/* taskId= */ 2, WINDOWING_MODE_MULTI_WINDOW); in testRegisterWithExistingTasks()
216 RunningTaskInfo taskInfo = createTaskInfo(/* taskId= */ 1, WINDOWING_MODE_MULTI_WINDOW); in testAppearedVanished()
228 RunningTaskInfo taskInfo = createTaskInfo(/* taskId= */ 1, WINDOWING_MODE_MULTI_WINDOW); in testAddListenerExistingTasks()
238 RunningTaskInfo taskInfo1 = createTaskInfo(/* taskId= */ 1, WINDOWING_MODE_FULLSCREEN); in testAddListenerForMultipleTypes()
240 RunningTaskInfo taskInfo2 = createTaskInfo(/* taskId= */ 2, WINDOWING_MODE_MULTI_WINDOW); in testAddListenerForMultipleTypes()
255 RunningTaskInfo taskInfo1 = createTaskInfo(/* taskId= */ 1, WINDOWING_MODE_FULLSCREEN); in testRemoveListenerForMultipleTypes()
257 RunningTaskInfo taskInfo2 = createTaskInfo(/* taskId= */ 2, WINDOWING_MODE_MULTI_WINDOW); in testRemoveListenerForMultipleTypes()
275 RunningTaskInfo taskInfo = createTaskInfo(/* taskId= */ 1, WINDOWING_MODE_MULTI_WINDOW); in testWindowingModeChange()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/compatui/
DCompatUIControllerTest.java188 TaskInfo taskInfo = createTaskInfo(DISPLAY_ID, TASK_ID, /* hasSizeCompat= */ true, in testOnCompatInfoChanged()
203 taskInfo = createTaskInfo(DISPLAY_ID, TASK_ID, /* hasSizeCompat= */ true, in testOnCompatInfoChanged()
216 mController.onCompatInfoChanged(createTaskInfo(DISPLAY_ID, TASK_ID, in testOnCompatInfoChanged()
231 TaskInfo taskInfo = createTaskInfo(DISPLAY_ID, TASK_ID, /* hasSizeCompat= */ true, in testOnCompatInfoChanged_createLayoutReturnsFalse()
261 TaskInfo taskInfo = createTaskInfo(DISPLAY_ID, TASK_ID, /* hasSizeCompat= */ true, in testOnCompatInfoChanged_updateCompatInfoReturnsFalse()
310 mController.onCompatInfoChanged(createTaskInfo(DISPLAY_ID, TASK_ID, in testOnDisplayRemoved()
332 mController.onCompatInfoChanged(createTaskInfo(DISPLAY_ID, TASK_ID, in testOnDisplayConfigurationChanged()
351 mController.onCompatInfoChanged(createTaskInfo(DISPLAY_ID, TASK_ID, in testInsetsChanged()
377 mController.onCompatInfoChanged(createTaskInfo(DISPLAY_ID, TASK_ID, in testChangeLayoutsVisibilityOnImeShowHide()
388 TaskInfo taskInfo = createTaskInfo(DISPLAY_ID, TASK_ID, /* hasSizeCompat= */ true, in testChangeLayoutsVisibilityOnImeShowHide()
[all …]
DCompatUIWindowManagerTest.java108 mTaskInfo = createTaskInfo(/* hasSizeCompat= */ false, CAMERA_COMPAT_CONTROL_HIDDEN); in setUp()
233 TaskInfo taskInfo = createTaskInfo(/* hasSizeCompat= */ true, CAMERA_COMPAT_CONTROL_HIDDEN); in testUpdateCompatInfo()
253 taskInfo = createTaskInfo(/* hasSizeCompat= */ true, in testUpdateCompatInfo()
264 taskInfo = createTaskInfo(/* hasSizeCompat= */ true, in testUpdateCompatInfo()
275 taskInfo = createTaskInfo(/* hasSizeCompat= */ false, in testUpdateCompatInfo()
284 taskInfo = createTaskInfo(/* hasSizeCompat= */ true, in testUpdateCompatInfo()
293 taskInfo = createTaskInfo(/* hasSizeCompat= */ true, CAMERA_COMPAT_CONTROL_DISMISSED); in testUpdateCompatInfo()
301 taskInfo = createTaskInfo(/* hasSizeCompat= */ true, CAMERA_COMPAT_CONTROL_HIDDEN); in testUpdateCompatInfo()
310 taskInfo = createTaskInfo(/* hasSizeCompat= */ false, CAMERA_COMPAT_CONTROL_HIDDEN); in testUpdateCompatInfo()
326 TaskInfo taskInfo = createTaskInfo(/* hasSizeCompat= */ false, in testUpdateCompatInfoLayoutNotInflatedYet()
[all …]
DUserAspectRatioSettingsWindowManagerTest.java114 mTaskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in setUp()
199 TaskInfo taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUpdateCompatInfo()
220 taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUpdateCompatInfo()
228 taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUpdateCompatInfo()
237 taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUpdateCompatInfo()
254 TaskInfo taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUpdateCompatInfoLayoutNotInflatedYet()
262 taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUpdateCompatInfoLayoutNotInflatedYet()
271 TaskInfo taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testEligibleButtonHiddenIfLetterboxBoundsEqualToStableBounds()
296 TaskInfo taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testUserFullscreenOverrideEnabled_buttonAlwaysShown()
384 TaskInfo taskInfo = createTaskInfo(/* eligibleForUserAspectRatioButton= */ in testLayoutHasUserAspectRatioSettingsButton()
[all …]
DLetterboxEduWindowManagerTest.java299 createTaskInfo(/* eligible= */ true, USER_ID_1, new Rect(50, 25, 150, 75)), in testUpdateCompatInfo_updatesLayoutCorrectly()
309 assertFalse(windowManager.updateCompatInfo(createTaskInfo(/* eligible= */ false), in testUpdateCompatInfo_updatesLayoutCorrectly()
325 assertTrue(windowManager.updateCompatInfo(createTaskInfo(/* eligible= */ true), in testUpdateCompatInfo_notEligibleUntilUpdate_createsLayoutAfterUpdate()
338 assertTrue(windowManager.updateCompatInfo(createTaskInfo(/* eligible= */ true), in testUpdateCompatInfo_canShowFalse_doesNothing()
443 createTaskInfo(eligible, userId), mSyncTransactionQueue, mTaskListener, in createWindowManager()
468 private static TaskInfo createTaskInfo(boolean eligible) { in createTaskInfo() method in LetterboxEduWindowManagerTest
469 return createTaskInfo(eligible, USER_ID_1); in createTaskInfo()
472 private static TaskInfo createTaskInfo(boolean eligible, int userId) { in createTaskInfo() method in LetterboxEduWindowManagerTest
473 return createTaskInfo(eligible, userId, new Rect(0, 0, TASK_WIDTH, TASK_HEIGHT)); in createTaskInfo()
476 private static TaskInfo createTaskInfo(boolean eligible, int userId, Rect bounds) { in createTaskInfo() method in LetterboxEduWindowManagerTest
DUserAspectRatioSettingsLayoutTest.java92 mTaskInfo = createTaskInfo(/* hasSizeCompat= */ false, CAMERA_COMPAT_CONTROL_HIDDEN); in setUp()
146 private static TaskInfo createTaskInfo(boolean hasSizeCompat, in createTaskInfo() method in UserAspectRatioSettingsLayoutTest
DCompatUILayoutTest.java88 mTaskInfo = createTaskInfo(/* hasSizeCompat= */ false, CAMERA_COMPAT_CONTROL_HIDDEN); in setUp()
220 private static TaskInfo createTaskInfo(boolean hasSizeCompat, in createTaskInfo() method in CompatUILayoutTest
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/
DPipTaskOrganizerTest.java170 mPipTaskOrganizer.onTaskAppeared(createTaskInfo(mComponent1, in onTaskAppeared_updatesAspectRatio()
178 mPipTaskOrganizer.onTaskAppeared(createTaskInfo(mComponent1, createPipParams(null)), in onTaskAppeared_updatesLastPipComponentName()
189 createTaskInfo(mComponent1, createPipParams(null), minSize), in onTaskAppeared_updatesOverrideMinSize()
199 mPipTaskOrganizer.onTaskAppeared(createTaskInfo(mComponent1, in onTaskInfoChanged_notInPip_deferUpdatesAspectRatio()
203 mPipTaskOrganizer.onTaskInfoChanged(createTaskInfo(mComponent1, in onTaskInfoChanged_notInPip_deferUpdatesAspectRatio()
217 mPipTaskOrganizer.onTaskAppeared(createTaskInfo(mComponent1, in onTaskInfoChanged_inPip_updatesAspectRatioIfChanged()
221 mPipTaskOrganizer.onTaskInfoChanged(createTaskInfo(mComponent1, in onTaskInfoChanged_inPip_updatesAspectRatioIfChanged()
230 mPipTaskOrganizer.onTaskAppeared(createTaskInfo(mComponent1, in onTaskInfoChanged_inPip_updatesLastPipComponentName()
234 mPipTaskOrganizer.onTaskInfoChanged(createTaskInfo(mComponent2, in onTaskInfoChanged_inPip_updatesLastPipComponentName()
242 mPipTaskOrganizer.onTaskAppeared(createTaskInfo(mComponent1, in onTaskInfoChanged_inPip_updatesOverrideMinSize()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/
DBubblesTransitionObserverTest.java86 TransitionInfo info = createTransitionInfo(TRANSIT_OPEN, createTaskInfo(2)); in testOnTransitionReady_open_collapsesStack()
100 TransitionInfo info = createTransitionInfo(TRANSIT_TO_FRONT, createTaskInfo(2)); in testOnTransitionReady_toFront_collapsesStack()
131 createTaskInfo(INVALID_TASK_ID)); in testOnTransitionReady_noTaskId_skip()
146 TransitionInfo info = createTransitionInfo(TRANSIT_CHANGE, createTaskInfo(2)); in testOnTransitionReady_notOpening_skip()
149 info = createTransitionInfo(TRANSIT_CLOSE, createTaskInfo(3)); in testOnTransitionReady_notOpening_skip()
152 info = createTransitionInfo(TRANSIT_TO_BACK, createTaskInfo(4)); in testOnTransitionReady_notOpening_skip()
165 TransitionInfo info = createTransitionInfo(TRANSIT_OPEN, createTaskInfo(2)); in testOnTransitionReady_stackAnimating_skip()
179 TransitionInfo info = createTransitionInfo(TRANSIT_TO_FRONT, createTaskInfo(2)); in testOnTransitionReady_stackNotExpanded_skip()
193 TransitionInfo info = createTransitionInfo(TRANSIT_OPEN, createTaskInfo(2)); in testOnTransitionReady_noSelectedBubble_skip()
208 TransitionInfo info = createTransitionInfo(TRANSIT_TO_FRONT, createTaskInfo(1)); in testOnTransitionReady_openingMatchesExpanded_skip()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorationTests.java187 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(false /* visible */); in testMenusClosedWhenTaskIsInvisible()
201 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_noSysPropFlagsSet_windowShadowsAreEnabled()
213 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_noSysPropFlagsSet_roundedCornersAreEnabled()
233 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_appHeader_usesTaskDensity()
255 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_appHeader_usesSystemDensity()
272 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_freeformAndTransparentAppearance_allowsInputFallthrough()
290 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_freeformButOpaqueAppearance_disallowsInputFallthrough()
307 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_fullscreen_disallowsInputFallthrough()
323 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_freeform_inputChannelNeeded()
339 final ActivityManager.RunningTaskInfo taskInfo = createTaskInfo(/* visible= */ true); in updateRelayoutParams_fullscreen_inputChannelNotNeeded()
[all …]
DHandleMenuTest.kt119 createTaskInfo(WINDOWING_MODE_FULLSCREEN, SPLIT_POSITION_UNDEFINED) in testFullscreenMenuUsesSystemViewContainer()
130 createTaskInfo(WINDOWING_MODE_FREEFORM, SPLIT_POSITION_UNDEFINED) in testFreeformMenu_usesViewHostViewContainer()
140 createTaskInfo(WINDOWING_MODE_MULTI_WINDOW, SPLIT_POSITION_TOP_OR_LEFT) in testSplitLeftMenu_usesSystemViewContainer()
151 createTaskInfo(WINDOWING_MODE_MULTI_WINDOW, SPLIT_POSITION_BOTTOM_OR_RIGHT) in testSplitRightMenu_usesSystemViewContainer()
159 private fun createTaskInfo(windowingMode: Int, splitPosition: Int) { in createTaskInfo() method
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/recents/
DGroupedRecentTaskInfoTest.kt148 private fun createTaskInfo(id: Int) = ActivityManager.RecentTaskInfo().apply { in <lambda>() method
154 val task = createTaskInfo(id = 1) in singleTaskGroupInfo()
159 val task1 = createTaskInfo(id = 1) in splitTasksGroupInfo()
160 val task2 = createTaskInfo(id = 2) in splitTasksGroupInfo()
166 val task1 = createTaskInfo(id = 1) in freeformTasksGroupInfo()
167 val task2 = createTaskInfo(id = 2) in freeformTasksGroupInfo()
168 val task3 = createTaskInfo(id = 3) in freeformTasksGroupInfo()
DTaskStackTransitionObserverTest.kt102 createTaskInfo(1, WindowConfiguration.WINDOWING_MODE_FREEFORM) in taskCreated_freeformWindow_listenerNotified()
125 createTaskInfo(1, WindowConfiguration.WINDOWING_MODE_FULLSCREEN) in taskCreated_fullscreenWindow_listenerNotNotified()
148 createTaskInfo(1, WindowConfiguration.WINDOWING_MODE_FREEFORM) in taskCreated_freeformWindowOnTopOfFreeform_listenerNotified()
153 createTaskInfo(2, WindowConfiguration.WINDOWING_MODE_FREEFORM) in taskCreated_freeformWindowOnTopOfFreeform_listenerNotified()
195 fun createTaskInfo(taskId: Int, windowingMode: Int): ActivityManager.RunningTaskInfo { in createTaskInfo() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/system/
DRemoteTransitionTest.java74 createTaskInfo(1 /* taskId */, ACTIVITY_TYPE_STANDARD)) in testLegacyTargetExtract()
78 createTaskInfo(2 /* taskId */, ACTIVITY_TYPE_STANDARD)) in testLegacyTargetExtract()
119 createTaskInfo(1 /* taskId */, ACTIVITY_TYPE_STANDARD)).build();
122 change.setTaskInfo(createTaskInfo(1 /* taskId */, ACTIVITY_TYPE_HOME));
167 private static ActivityManager.RunningTaskInfo createTaskInfo(int taskId, int activityType) {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/data/
DShellRecentTaskListProviderTest.kt258 return GroupedRecentTaskInfo.forSingleTask(createTaskInfo(taskId, userId, isVisible)) in createRecentTask()
269 createTaskInfo(taskId1, userId1, isVisible), in createTaskPair()
270 createTaskInfo(taskId2, userId2, isVisible), in createTaskPair()
274 private fun createTaskInfo(taskId: Int, userId: Int, isVisible: Boolean = false) = in createTaskPair() method
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/splitscreen/
DSplitScreenControllerTests.java214 createTaskInfo(WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_STANDARD, startIntent); in startIntent_multiInstancesSupported_appendsMultipleTaskFag()
234 createTaskInfo(WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_STANDARD, startIntent); in startIntent_multiInstancesNotSupported_startTaskInBackgroundBeforeSplitActivated()
259 createTaskInfo(WINDOWING_MODE_MULTI_WINDOW, ACTIVITY_TYPE_STANDARD, startIntent); in startIntent_multiInstancesSupported_startTaskInBackgroundAfterSplitActivated()
282 createTaskInfo(WINDOWING_MODE_MULTI_WINDOW, ACTIVITY_TYPE_STANDARD, startIntent); in startIntent_multiInstancesNotSupported_switchesPositionAfterSplitActivated()
307 private ActivityManager.RunningTaskInfo createTaskInfo(int winMode, int actType, in createTaskInfo() method in SplitScreenControllerTests
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/draganddrop/
DDragAndDropPolicyTest.java165 mHomeTask = createTaskInfo(WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_HOME); in setUp()
166 mFullscreenAppTask = createTaskInfo(WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_STANDARD); in setUp()
168 createTaskInfo(WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_STANDARD); in setUp()
220 private ActivityManager.RunningTaskInfo createTaskInfo(int winMode, int actType) { in createTaskInfo() method in DragAndDropPolicyTest
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/transition/
DShellTransitionTests.java250 createTaskInfo(1, WINDOWING_MODE_MULTI_WINDOW, ACTIVITY_TYPE_STANDARD); in testNonDefaultHandler()
326 createTaskInfo(1, WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_HOME)).build(); in testTransitionFilterActivityType()
330 .addChange(TRANSIT_OPEN, createTaskInfo( in testTransitionFilterActivityType()
430 final RunningTaskInfo taskInf = createTaskInfo(1); in testTransitionFilterActivityComponent()
829 createTaskInfo(1, WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_STANDARD); in testShouldRotateSeamlessly()
831 createTaskInfo(1, WINDOWING_MODE_PINNED, ACTIVITY_TYPE_STANDARD); in testShouldRotateSeamlessly()
1136 createTaskInfo(1, WINDOWING_MODE_MULTI_WINDOW, ACTIVITY_TYPE_STANDARD); in testObserverLifecycle_mergingAfterQueueing()
1202 RunningTaskInfo task1 = createTaskInfo(1, WINDOWING_MODE_FULLSCREEN, ACTIVITY_TYPE_RECENTS); in testTransitSleep_squashesRecents()
1203 RunningTaskInfo task2 = createTaskInfo(2); in testTransitSleep_squashesRecents()
1748 private static RunningTaskInfo createTaskInfo(int taskId, int windowingMode, int activityType) { in createTaskInfo() method in ShellTransitionTests
[all …]