Home
last modified time | relevance | path

Searched refs:foregroundTask (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/ui/viewmodel/
DTaskSwitcherNotificationViewModelTest.kt64 val foregroundTask = createTask(taskId = 1) in uiState_notProjecting_foregroundTaskChanged_emitsNotShowing() constant
67 fakeActivityTaskManager.addRunningTasks(backgroundTask, foregroundTask) in uiState_notProjecting_foregroundTaskChanged_emitsNotShowing()
69 fakeActivityTaskManager.moveTaskToForeground(foregroundTask) in uiState_notProjecting_foregroundTaskChanged_emitsNotShowing()
88 val foregroundTask = createTask(taskId = 1) in uiState_projectingEntireScreen_foregroundTaskChanged_emitsNotShowing() constant
91 fakeActivityTaskManager.addRunningTasks(backgroundTask, foregroundTask) in uiState_projectingEntireScreen_foregroundTaskChanged_emitsNotShowing()
93 fakeActivityTaskManager.moveTaskToForeground(foregroundTask) in uiState_projectingEntireScreen_foregroundTaskChanged_emitsNotShowing()
102 val foregroundTask = createTask(taskId = 2) in uiState_projectingTask_foregroundTaskChanged_different_emitsShowing() constant
105 fakeActivityTaskManager.addRunningTasks(projectedTask, foregroundTask) in uiState_projectingTask_foregroundTaskChanged_different_emitsShowing()
109 fakeActivityTaskManager.moveTaskToForeground(foregroundTask) in uiState_projectingTask_foregroundTaskChanged_different_emitsShowing()
112 .isEqualTo(TaskSwitcherNotificationUiState.Showing(projectedTask, foregroundTask)) in uiState_projectingTask_foregroundTaskChanged_different_emitsShowing()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/domain/interactor/
DTaskSwitchInteractorTest.kt52 val foregroundTask = createTask(taskId = 1) in taskSwitchChanges_notProjecting_foregroundTaskChange_emitsNotProjectingTask() constant
55 fakeActivityTaskManager.addRunningTasks(backgroundTask, foregroundTask) in taskSwitchChanges_notProjecting_foregroundTaskChange_emitsNotProjectingTask()
57 fakeActivityTaskManager.moveTaskToForeground(foregroundTask) in taskSwitchChanges_notProjecting_foregroundTaskChange_emitsNotProjectingTask()
66 val foregroundTask = createTask(taskId = 1) in taskSwitchChanges_projectingScreen_foregroundTaskChange_emitsNotProjectingTask() constant
69 fakeActivityTaskManager.addRunningTasks(backgroundTask, foregroundTask) in taskSwitchChanges_projectingScreen_foregroundTaskChange_emitsNotProjectingTask()
73 fakeActivityTaskManager.moveTaskToForeground(foregroundTask) in taskSwitchChanges_projectingScreen_foregroundTaskChange_emitsNotProjectingTask()
82 val foregroundTask = createTask(taskId = 1) in taskSwitchChanges_projectingTask_foregroundTaskDifferent_emitsTaskChanged() constant
85 fakeActivityTaskManager.addRunningTasks(projectedTask, foregroundTask) in taskSwitchChanges_projectingTask_foregroundTaskDifferent_emitsTaskChanged()
89 fakeActivityTaskManager.moveTaskToForeground(foregroundTask) in taskSwitchChanges_projectingTask_foregroundTaskDifferent_emitsTaskChanged()
95 foregroundTask = foregroundTask in taskSwitchChanges_projectingTask_foregroundTaskDifferent_emitsTaskChanged()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/taskswitcher/domain/interactor/
DTaskSwitchInteractor.kt62 tasksRepository.foregroundTask.map { foregroundTask -> in <lambda>() method
63 if (hasForegroundTaskSwitched(projectedTask, foregroundTask)) { in <lambda>()
64 TaskSwitchState.TaskSwitched(projectedTask, foregroundTask) in <lambda>()
84 private fun hasForegroundTaskSwitched(projectedTask: TaskInfo, foregroundTask: TaskInfo) = in <lambda>()
85 projectedTask.taskId != foregroundTask.taskId && !foregroundTask.isLauncher in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/data/repository/
DActivityTaskManagerTasksRepositoryTest.kt47 val currentForegroundTask by collectLastValue(repo.foregroundTask) in launchRecentTask_taskIsMovedToForeground()
92 val foregroundTask by collectLastValue(repo.foregroundTask) in foregroundTask_returnsStreamOfTasksMovedToFront() constant
95 assertThat(foregroundTask?.taskId).isEqualTo(1) in foregroundTask_returnsStreamOfTasksMovedToFront()
98 assertThat(foregroundTask?.taskId).isEqualTo(2) in foregroundTask_returnsStreamOfTasksMovedToFront()
101 assertThat(foregroundTask?.taskId).isEqualTo(3) in foregroundTask_returnsStreamOfTasksMovedToFront()
107 val foregroundTaskA by collectLastValue(repo.foregroundTask) in foregroundTask_lastValueIsCached()
111 val foregroundTaskB by collectLastValue(repo.foregroundTask) in foregroundTask_lastValueIsCached()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/view/
DMediaProjectionRecentsViewControllerTest.kt166 val foregroundTask = task.copy(isForegroundTask = true) in <lambda>() constant
167 controller.onRecentAppClicked(foregroundTask, taskView) in <lambda>()
170 .that(getStartedTaskActivityOptions(foregroundTask.taskId).animationType) in <lambda>()
173 .that(getStartedTaskActivityOptions(foregroundTask.taskId).overrideTaskTransition) in <lambda>()
176 .that(getStartedTaskActivityOptions(foregroundTask.taskId).customExitResId) in <lambda>()
179 .that(getStartedTaskActivityOptions(foregroundTask.taskId).customEnterResId) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/taskswitcher/ui/viewmodel/
DTaskSwitcherNotificationViewModel.kt50 foregroundTask = taskSwitchChange.foregroundTask, in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/ui/
DTaskSwitcherNotificationCoordinatorTest.kt166 val foregroundTask = createTask(taskId = 2) in switchTask() constant
167 fakeActivityTaskManager.addRunningTasks(projectedTask, foregroundTask) in switchTask()
172 fakeActivityTaskManager.moveTaskToForeground(foregroundTask) in switchTask()
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/taskswitcher/ui/model/
DTaskSwitcherNotificationUiState.kt28 val foregroundTask: RunningTaskInfo, constant in com.android.systemui.mediaprojection.taskswitcher.ui.model.TaskSwitcherNotificationUiState.Showing
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/taskswitcher/domain/model/
DTaskSwitchState.kt30 val foregroundTask: RunningTaskInfo constant in com.android.systemui.mediaprojection.taskswitcher.domain.model.TaskSwitchState.TaskSwitched
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/taskswitcher/data/repository/
DTasksRepository.kt42 val foregroundTask: Flow<RunningTaskInfo> constant
DActivityTaskManagerTasksRepository.kt82 override val foregroundTask: Flow<RunningTaskInfo> = in <lambda>() constant in com.android.systemui.mediaprojection.taskswitcher.data.repository.ActivityTaskManagerTasksRepository
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/taskswitcher/ui/
DTaskSwitcherNotificationCoordinator.kt95 createActionPendingIntent(action = SWITCH_ACTION, task = uiState.foregroundTask) in <lambda>()