Home
last modified time | relevance | path

Searched refs:createTask (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/data/repository/
DActivityTaskManagerTasksRepositoryTest.kt25 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
48 val newForegroundTask = createTask(taskId = 1) in launchRecentTask_taskIsMovedToForeground()
49 val backgroundTask = createTask(taskId = 2) in launchRecentTask_taskIsMovedToForeground()
59 fakeActivityTaskManager.addRunningTasks(createTask(taskId = 1), createTask(taskId = 2)) in findRunningTaskFromWindowContainerToken_noMatch_returnsNull()
72 val expectedTask = createTask(taskId = 1, token = expectedToken) in findRunningTaskFromWindowContainerToken_matchingToken_returnsTaskInfo()
75 createTask(taskId = 2), in findRunningTaskFromWindowContainerToken_matchingToken_returnsTaskInfo()
94 fakeActivityTaskManager.moveTaskToForeground(createTask(taskId = 1)) in foregroundTask_returnsStreamOfTasksMovedToFront()
97 fakeActivityTaskManager.moveTaskToForeground(createTask(taskId = 2)) in foregroundTask_returnsStreamOfTasksMovedToFront()
100 fakeActivityTaskManager.moveTaskToForeground(createTask(taskId = 3)) in foregroundTask_returnsStreamOfTasksMovedToFront()
108 fakeActivityTaskManager.moveTaskToForeground(createTask(taskId = 1)) in foregroundTask_lastValueIsCached()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/ui/viewmodel/
DTaskSwitcherNotificationViewModelTest.kt25 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
63 val backgroundTask = createTask(taskId = 0) in uiState_notProjecting_foregroundTaskChanged_emitsNotShowing()
64 val foregroundTask = createTask(taskId = 1) in uiState_notProjecting_foregroundTaskChanged_emitsNotShowing()
87 val backgroundTask = createTask(taskId = 0) in uiState_projectingEntireScreen_foregroundTaskChanged_emitsNotShowing()
88 val foregroundTask = createTask(taskId = 1) in uiState_projectingEntireScreen_foregroundTaskChanged_emitsNotShowing()
101 val projectedTask = createTask(taskId = 1) in uiState_projectingTask_foregroundTaskChanged_different_emitsShowing()
102 val foregroundTask = createTask(taskId = 2) in uiState_projectingTask_foregroundTaskChanged_different_emitsShowing()
118 val projectedTask = createTask(taskId = 1) in uiState_taskChanged_beforeDelayLimit_stillEmitsShowing()
119 val foregroundTask = createTask(taskId = 2) in uiState_taskChanged_beforeDelayLimit_stillEmitsShowing()
136 val projectedTask = createTask(taskId = 1) in uiState_taskChanged_afterDelayLimit_emitsNotShowing()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/domain/interactor/
DTaskSwitchInteractorTest.kt25 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
51 val backgroundTask = createTask(taskId = 0) in taskSwitchChanges_notProjecting_foregroundTaskChange_emitsNotProjectingTask()
52 val foregroundTask = createTask(taskId = 1) in taskSwitchChanges_notProjecting_foregroundTaskChange_emitsNotProjectingTask()
65 val backgroundTask = createTask(taskId = 0) in taskSwitchChanges_projectingScreen_foregroundTaskChange_emitsNotProjectingTask()
66 val foregroundTask = createTask(taskId = 1) in taskSwitchChanges_projectingScreen_foregroundTaskChange_emitsNotProjectingTask()
81 val projectedTask = createTask(taskId = 0) in taskSwitchChanges_projectingTask_foregroundTaskDifferent_emitsTaskChanged()
82 val foregroundTask = createTask(taskId = 1) in taskSwitchChanges_projectingTask_foregroundTaskDifferent_emitsTaskChanged()
103 val projectedTask = createTask(taskId = 0) in taskSwitchChanges_projectingTask_foregroundTaskDifferent_thenSwitched_emitsUnchanged()
104 val foregroundTask = createTask(taskId = 1) in taskSwitchChanges_projectingTask_foregroundTaskDifferent_thenSwitched_emitsUnchanged()
120 val projectedTask = createTask(taskId = 0) in taskSwitchChanges_projectingTask_foregroundTaskDifferent_thenWentBack_emitsUnchanged()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/windowdecor/
DDesktopModeWindowDecorViewModelTests.kt189 val task = createTask(windowingMode = WINDOWING_MODE_FREEFORM) in testDeleteCaptionOnChangeTransitionWhenNecessary()
215 val task = createTask( in testCreateCaptionOnChangeTransitionWhenNecessary()
253 val task = createTask(windowingMode = WINDOWING_MODE_FREEFORM) in testCreateAndDisposeEventReceiver()
267 val task = createTask(displayId = DEFAULT_DISPLAY, windowingMode = WINDOWING_MODE_FREEFORM) in testEventReceiversOnMultipleDisplays()
268 val secondTask = createTask( in testEventReceiversOnMultipleDisplays()
272 val thirdTask = createTask( in testEventReceiversOnMultipleDisplays()
293 val task = createTask( in testBackEventHasRightDisplayId()
326 val task = createTask(windowingMode = WINDOWING_MODE_FULLSCREEN, focused = true) in testCaptionIsNotCreatedWhenKeyguardIsVisible()
348 val task = createTask(windowingMode = WINDOWING_MODE_FULLSCREEN, focused = true).apply { in testDecorationIsNotCreatedForTopTranslucentActivities()
360 val task = createTask(windowingMode = WINDOWING_MODE_FULLSCREEN, focused = true) in testDecorationIsNotCreatedForSystemUIActivities()
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskDisplayAreaTests.java81 final Task rootTask = createTask( in getLaunchRootTask_checksLaunchAdjacentFlagRoot()
84 final Task adjacentRootTask = createTask( in getLaunchRootTask_checksLaunchAdjacentFlagRoot()
111 final Task adjacentRootTask = createTask( in getLaunchRootTask_checksFocusedRootTask()
128 final Task rootTask = createTask( in getLaunchRootTask_fromLaunchAdjacentFlagRoot_checksAdjacentRoot()
131 final Task adjacentRootTask = createTask( in getLaunchRootTask_fromLaunchAdjacentFlagRoot_checksAdjacentRoot()
147 final Task rootTask = createTask( in getOrCreateLaunchRootRespectsResolvedWindowingMode()
154 final Task candidateRootTask = createTask( in getOrCreateLaunchRootRespectsResolvedWindowingMode()
168 final Task rootTask = createTask( in getOrCreateLaunchRootUsesActivityOptionsWindowingMode()
175 final Task candidateRootTask = createTask( in getOrCreateLaunchRootUsesActivityOptionsWindowingMode()
190 final Task rootTask = createTask(mDisplayContent); in testActivityWithZBoost_taskDisplayAreaDoesNotMoveUp()
[all …]
DWindowOrganizerTests.java139 Task createTask(Task rootTask, boolean fakeDraw) { in createTask() method in WindowOrganizerTests
148 Task createTask(Task rootTask) { in createTask() method in WindowOrganizerTests
150 return createTask(rootTask, true); in createTask()
154 return createTask(mDisplayContent); in createRootTask()
161 final Task task = createTask(rootTask); in testAppearVanish()
177 final Task task = createTask(rootTask, false); in testAppearWaitsForVisibility()
200 final Task task = createTask(rootTask, false /* hasBeenVisible */); in testNoVanishedIfNoAppear()
216 final Task task = createTask(rootTask, false /* fakeDraw */); in testTaskNoDraw()
235 final Task task = createTask(rootTask); in testClearOrganizer()
254 final Task task = createTask(rootTask); in testRemoveWithOrganizerRemovesTask()
[all …]
DTaskFragmentOrganizerControllerTest.java484 final Task task = createTask(mDisplayContent); in testOnActivityReparentedToTask_activityNotInOrganizerProcess_useTemporaryToken()
704 final Task task = createTask(mDisplayContent); in testApplyTransaction_enforceTaskFragmentOrganized_startActivityInTaskFragment()
727 final Task task = createTask(mDisplayContent); in testApplyTransaction_enforceTaskFragmentOrganized_reparentActivityInTaskFragment()
749 final Task task = createTask(mDisplayContent); in testApplyTransaction_enforceTaskFragmentOrganized_setAdjacentTaskFragments()
796 final Task task = createTask(mDisplayContent); in testApplyTransaction_enforceTaskFragmentOrganized_clearAdjacentTaskFragments()
828 final Task task = createTask(mDisplayContent); in testApplyTransaction_enforceTaskFragmentOrganized_requestFocusOnTaskFragment()
849 final Task task = createTask(mDisplayContent); in testApplyTransaction_enforceTaskFragmentOrganized_addTaskFragmentOperation()
874 final Task task = createTask(mDisplayContent); in testAddTaskFragmentOperation()
940 final Task task = createTask(mDisplayContent); in testApplyTransaction_createTaskFragment_withPairedPrimaryFragmentToken()
974 final Task task = createTask(mDisplayContent); in testApplyTransaction_createTaskFragment_overrideBounds()
[all …]
DAppTransitionControllerTest.java368 final Task task = createTask(mDisplayContent); in testExitAnimationDone_beforeAppTransition()
527 final Task parentTask = createTask(mDisplayContent); in testGetAnimationTargets_taskContainsMultipleTasks()
553 final Task singleTopRoot = createTask(mDisplayContent); in testGetAnimationTargets_splitScreenOpening()
584 final Task parentTask = createTask(mDisplayContent); in testGetAnimationTargets_openingClosingTaskFragment()
613 final Task task1 = createTask(mDisplayContent); in testGetAnimationTargets_openingTheOnlyTaskFragmentInTask()
642 final Task task1 = createTask(mDisplayContent); in testGetAnimationTargets_closingTheOnlyTaskFragmentInTask()
675 final Task task2 = createTask(mDisplayContent); in testGetAnimationTargets_embeddedTask()
702 final Task task = createTask(mDisplayContent); in testGetAnimationTargets_activityInEmbeddedTask()
845 final Task task = createTask(mDisplayContent); in testOverrideTaskFragmentAdapter_overrideWithEmbeddedActivity()
866 final Task task = createTask(mDisplayContent); in testOverrideTaskFragmentAdapter_noOverrideWithOnlyTaskFragmentFillingTask()
[all …]
DTransitionTests.java158 final Task newTask = createTask(mDisplayContent); in testCreateInfo_NewTask()
159 final Task oldTask = createTask(mDisplayContent); in testCreateInfo_NewTask()
216 final Task theTask = createTask(mDisplayContent); in testCreateInfo_Activity()
246 final Task newTask = createTask(mDisplayContent); in testCreateInfo_NestedTasks()
249 final Task oldTask = createTask(mDisplayContent); in testCreateInfo_NestedTasks()
301 final Task showTask = createTask(mDisplayContent); in testCreateInfo_DisplayArea()
303 final Task showTask2 = createTask(mDisplayContent); in testCreateInfo_DisplayArea()
355 final Task openTask = createTask(mDisplayContent); in testCreateInfo_existenceChange()
358 final Task closeTask = createTask(mDisplayContent); in testCreateInfo_existenceChange()
389 tasks[i] = createTask(mDisplayContent, in testCreateInfo_ordering()
[all …]
DRunningTasksTest.java78 createTask(stack, ".Task" + i, i, data); in testTaskInfo_expectNoExtrasByDefault()
103 createTask(stack, ".Task" + i, i, data); in testTaskInfo_expectExtrasWithKeepExtraFlag()
130 final Task task = createTask(stack, ".Task" + i, i, null); in testGetTasksSortByFocusAndVisibility()
171 private Task createTask(Task stack, String className, int taskId, Bundle extras) { in createTask() method in RunningTasksTest
197 final Task task = createTask(stack, ".Task" + i, i, null); in testMultipleDisplays()
DActivitySnapshotControllerTests.java77 final Task task = createTask(mDisplayContent); in testOpenActivityTransition()
109 final Task task = createTask(mDisplayContent); in testCloseActivityTransition()
145 final Task closeTask = createTask(mDisplayContent); in testTaskTransition()
156 final Task openTask = createTask(mDisplayContent); in testTaskTransition()
183 final Task testTask = createTask(mDisplayContent); in testMultipleActivitiesLoadSnapshot()
DTaskFragmentTest.java148 final Task task = createTask(mDisplayContent, WINDOWING_MODE_MULTI_WINDOW, in testShouldStartChangeTransition_relativePositionChange()
180 final Task task = createTask(mDisplayContent, WINDOWING_MODE_MULTI_WINDOW, in testStartChangeTransition_resetSurface()
320 final Task bottomTask = createTask(mDisplayContent); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment()
322 final Task topTask = createTask(mDisplayContent); in testMoveTaskToFront_supportsEnterPipOnTaskSwitchForAdjacentTaskFragment()
348 final Task task = createTask(mDisplayContent); in testEmbeddedTaskFragmentEnterPip_singleActivity_resetOrganizerOverrideConfig()
392 final Task task = createTask(mDisplayContent); in testEmbeddedTaskFragmentEnterPip_multiActivities_notifyOrganizer()
423 final Task task = createTask(mDisplayContent); in testEmbeddedActivityExitPip_notifyOrganizer()
489 final Task rootTask = createTask(mDisplayContent, WINDOWING_MODE_MULTI_WINDOW, in testActivityHasOverlayOverUntrustedModeEmbedded()
695 final Task task = createTask(mDisplayContent); in testIgnoreRequestedOrientationForActivityEmbeddingSplit()
756 final Task task = createTask(mDisplayContent); in testIsVisibleWithAdjacent_reportOrientationUnspecified()
[all …]
DWindowContainerTransactionTests.java57 final Task rootTask = createTask(mDisplayContent); in testRemoveTask()
90 final Task task = createTask(mDisplayContent); in testDesktopMode_tasksAreBroughtToFront()
120 final Task task = createTask(mDisplayContent); in testDesktopMode_moveTaskToDesktop()
198 private Task createTask(int taskId) {
DTaskTests.java134 final Task rootTask = createTask(mDisplayContent); in testRemoveContainer()
156 final Task rootTask = createTask(mDisplayContent); in testRemoveContainer_multipleNestedTasks()
177 final Task rootTask = createTask(mDisplayContent); in testRemoveContainer_deferRemoval()
198 final Task taskController1 = createTask(mDisplayContent); in testReparent()
200 final Task taskController2 = createTask(mDisplayContent); in testReparent()
249 final Task rootTask1 = createTask(mDisplayContent); in testReparent_BetweenDisplays()
255 final Task rootTask2 = createTask(dc); in testReparent_BetweenDisplays()
268 final Task rootTask1 = createTask(mDisplayContent); in testBounds()
280 final Task task1 = createTask(mDisplayContent); in testIsInTask()
281 final Task task2 = createTask(mDisplayContent); in testIsInTask()
[all …]
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
DDragToDesktopTransitionHandlerTest.kt73 val task = createTask() in startDragToDesktop_animateDragWhenReady()
124 val task = createTask() in startDragToDesktop_aborted_finishDropped()
141 val task = createTask() in startDragToDesktop_aborted_cancelDropped()
158 val task = createTask() in startDragToDesktop_anotherTransitionInProgress_startDropped()
223 val task = createTask() in cancelDragToDesktop_startWasNotReady_animateCancel()
265 val task = createTask() in startDrag()
300 val task = createTask() in performEarlyCancel()
322 private fun createTask( in createTask() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/mediaprojection/ui/view/
DEndMediaProjectionDialogHelperTest.kt29 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
80 createTask(taskId = 1, baseIntent = baseIntent) in getDialogMessage_singleTask_cannotFindPackage_isGenericMessage()
105 createTask(taskId = 1, baseIntent = baseIntent) in getDialogMessage_singleTask_findsPackage_isSpecificMessageWithAppLabel()
138 val task = createTask(taskId = 1, baseIntent = baseIntent) in getDialogMessage_withTask_cannotFindPackage_isGenericMessage()
158 val task = createTask(taskId = 1, baseIntent = baseIntent) in getDialogMessage_withTask_findsPackage_isSpecificMessageWithAppLabel()
182 createTask(taskId = 1, baseIntent = baseIntent) in getDialogMessage_appLabelHasSpecialCharacters_isEscaped()
/frameworks/base/services/tests/voiceinteractiontests/src/com/android/server/soundtrigger_middleware/
DUptimeTimerTest.java37 timer.createTask(() -> taskRan.set(true), 100); in testBasic()
50 UptimeTimer.Task task = timer.createTask(() -> taskRan.set(true), 100); in testCancel()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/data/repository/
DMediaProjectionManagerRepositoryTest.kt29 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
56 val task = createTask(taskId = 1) in switchProjectedTask_stateIsUpdatedWithNewTask()
145 val task = createTask(taskId = 1, token = token) in mediaProjectionState_sessionSet_taskWithToken_matchingRunningTask_emitsSingleTask()
163 val task = createTask(taskId = 1, token = token) in mediaProjectionState_singleTask_hasHostPackage()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/sharetoapp/ui/viewmodel/
DShareToAppChipViewModelTest.kt30 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
100 createTask(taskId = 1), in chip_singleTaskState_otherDevicesPackage_isHidden()
125 createTask(taskId = 1), in chip_singleTaskState_normalPackage_isShown()
165 createTask(taskId = 1), in chip_timeResetsOnEachNewShare()
198 createTask(taskId = 1), in chip_singleTask_clickListenerShowsShareDialog()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/casttootherdevice/ui/viewmodel/
DCastToOtherDeviceChipViewModelTest.kt30 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
100 createTask(taskId = 1), in chip_singleTaskState_otherDevicesPackage_isShown()
127 MediaProjectionState.Projecting.SingleTask(NORMAL_PACKAGE, createTask(taskId = 1)) in chip_singleTaskState_normalPackage_isHidden()
162 createTask(taskId = 1), in chip_timeResetsOnEachNewShare()
196 createTask(taskId = 1), in chip_singleTask_clickListenerShowsCastDialog()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/screenrecord/ui/view/
DEndScreenRecordingDialogDelegateTest.kt30 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
92 val task = createTask(taskId = 1, baseIntent = baseIntent) in message_hasRecordedTask()
107 createAndSetDelegate(recordedTask = createTask(taskId = 1)) in negativeButton()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/sharetoapp/ui/view/
DEndShareToAppDialogDelegateTest.kt31 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
95 createTask(taskId = 1, baseIntent = baseIntent) in message_singleTask()
155 MediaProjectionState.Projecting.SingleTask(HOST_PACKAGE, createTask(taskId = 1))
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/casttootherdevice/ui/view/
DEndCastToOtherDeviceDialogDelegateTest.kt31 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
96 createTask(taskId = 1, baseIntent = baseIntent) in message_singleTask()
159 MediaProjectionState.Projecting.SingleTask(HOST_PACKAGE, createTask(taskId = 1))
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/chips/mediaprojection/domain/interactor/
DMediaProjectionChipInteractorTest.kt32 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
75 createTask(taskId = 1) in projection_singleTaskState_otherDevicesPackage_isCastToOtherDeviceType()
104 MediaProjectionState.Projecting.SingleTask(NORMAL_PACKAGE, createTask(taskId = 1)) in projection_singleTaskState_normalPackage_isShareToAppChipType()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/ui/
DTaskSwitcherNotificationCoordinatorTest.kt25 …port com.android.systemui.mediaprojection.taskswitcher.FakeActivityTaskManager.Companion.createTask
165 val projectedTask = createTask(taskId = 1) in switchTask()
166 val foregroundTask = createTask(taskId = 2) in switchTask()

12