Searched refs:foregroundTask (Results 1 – 12 of 12) sorted by relevance
64 val foregroundTask = createTask(taskId = 1) in uiState_notProjecting_foregroundTaskChanged_emitsNotShowing() constant67 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() constant91 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() constant105 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 …]
52 val foregroundTask = createTask(taskId = 1) in taskSwitchChanges_notProjecting_foregroundTaskChange_emitsNotProjectingTask() constant55 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() constant69 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() constant85 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 …]
62 tasksRepository.foregroundTask.map { foregroundTask -> in <lambda>() method63 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>()
47 val currentForegroundTask by collectLastValue(repo.foregroundTask) in launchRecentTask_taskIsMovedToForeground()92 val foregroundTask by collectLastValue(repo.foregroundTask) in foregroundTask_returnsStreamOfTasksMovedToFront() constant95 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()
166 val foregroundTask = task.copy(isForegroundTask = true) in <lambda>() constant167 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>()
50 foregroundTask = taskSwitchChange.foregroundTask, in <lambda>()
166 val foregroundTask = createTask(taskId = 2) in switchTask() constant167 fakeActivityTaskManager.addRunningTasks(projectedTask, foregroundTask) in switchTask()172 fakeActivityTaskManager.moveTaskToForeground(foregroundTask) in switchTask()
28 val foregroundTask: RunningTaskInfo, constant in com.android.systemui.mediaprojection.taskswitcher.ui.model.TaskSwitcherNotificationUiState.Showing
30 val foregroundTask: RunningTaskInfo constant in com.android.systemui.mediaprojection.taskswitcher.domain.model.TaskSwitchState.TaskSwitched
42 val foregroundTask: Flow<RunningTaskInfo> constant
82 override val foregroundTask: Flow<RunningTaskInfo> = in <lambda>() constant in com.android.systemui.mediaprojection.taskswitcher.data.repository.ActivityTaskManagerTasksRepository
95 createActionPendingIntent(action = SWITCH_ACTION, task = uiState.foregroundTask) in <lambda>()