Home
last modified time | relevance | path

Searched refs:taskId (Results 1 – 25 of 297) sorted by relevance

12345678910>>...12

/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/
H A DMediaProjectionAppSelectorControllerTest.kt75 createRecentTask(taskId = 1),
76 createRecentTask(taskId = 2),
77 createRecentTask(taskId = 3),
97 createRecentTask(taskId = 1),
99 createRecentTask(taskId = 3),
100 createRecentTask(taskId = 4),
120 createRecentTask(taskId = 1),
122 createRecentTask(taskId = 3),
123 createRecentTask(taskId = 4),
189 taskId: Int,
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/appselector/data/
H A DShellRecentTaskListProviderTest.kt48 createSingleTask(taskId = 1),
49 createSingleTask(taskId = 2),
50 createSingleTask(taskId = 3),
57 createRecentTask(taskId = 1),
58 createRecentTask(taskId = 2),
59 createRecentTask(taskId = 3),
70 .containsExactly(createRecentTask(taskId = 1), createRecentTask(taskId = 2))
76 createSingleTask(taskId = 1),
78 createSingleTask(taskId = 4),
105 taskId = taskId,
[all …]
/aosp14/frameworks/base/services/core/java/com/android/server/app/
H A DGameServiceProviderInstanceImpl.java112 int taskId,
465 int taskId, in onTransientSystemBarsVisibilityChanged() argument
491 + taskId); in onTransientSystemBarsVisibilityChanged()
581 if (rootTaskInfo != null && rootTaskInfo.taskId == taskId) { in setGameSessionFocusedIfNecessary()
591 int taskId, in attachGameSessionLocked() argument
612 taskId, in attachGameSessionLocked()
620 mGameSessions.put(taskId, in attachGameSessionLocked()
635 int taskId, in destroyGameSessionDuringAttach() argument
748 mGameSessions.put(taskId, GameSessionRecord.awaitingGameSessionRequest(taskId, in recreateEndedGameSessionsLocked()
884 .setTaskId(taskId) in takeScreenshot()
[all …]
H A DGameTaskInfoProvider.java58 GameTaskInfo get(int taskId) { in get() argument
60 final GameTaskInfo cachedTaskInfo = mGameTaskInfoCache.get(taskId); in get()
66 final RunningTaskInfo runningTaskInfo = getRunningTaskInfo(taskId); in get()
71 return generateGameInfo(taskId, runningTaskInfo.baseActivity); in get()
74 GameTaskInfo get(int taskId, @NonNull ComponentName componentName) { in get() argument
79 Slog.w(TAG, "Found cached task info for taskId " + taskId in get()
88 return generateGameInfo(taskId, componentName); in get()
92 RunningTaskInfo getRunningTaskInfo(int taskId) { in getRunningTaskInfo() argument
106 if (taskInfo.taskId == taskId) { in getRunningTaskInfo()
115 final GameTaskInfo gameTaskInfo = new GameTaskInfo(taskId, in generateGameInfo()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/freeform/
H A DFreeformTaskListener.java78 if (mTasks.get(taskInfo.taskId) != null) { in onTaskAppeared()
82 taskInfo.taskId); in onTaskAppeared()
86 mTasks.put(taskInfo.taskId, state); in onTaskAppeared()
111 taskInfo.taskId); in onTaskVanished()
112 mTasks.remove(taskInfo.taskId); in onTaskVanished()
135 taskInfo.taskId); in onTaskInfoChanged()
156 taskInfo.taskId, taskInfo.isFocused); in onFocusTaskChanged()
166 b.setParent(findTaskSurface(taskId)); in attachChildSurfaceToTask()
172 t.reparent(sc, findTaskSurface(taskId)); in reparentChildSurfaceToTask()
176 if (!mTasks.contains(taskId)) { in findTaskSurface()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
H A DStageTaskListener.java77 void onChildTaskAppeared(int taskId); in onChildTaskAppeared() argument
120 boolean containsTask(int taskId) { in containsTask() argument
190 final int taskId = taskInfo.taskId; in onTaskAppeared() local
212 if (mRootTaskInfo.taskId == taskInfo.taskId) { in onTaskInfoChanged()
254 final int taskId = taskInfo.taskId; in onTaskVanished() local
255 if (mRootTaskInfo.taskId == taskId) { in onTaskVanished()
290 if (mRootTaskInfo.taskId == taskId) { in findTaskSurface()
299 boolean isRootTaskId(int taskId) { in isRootTaskId() argument
300 return mRootTaskInfo != null && mRootTaskInfo.taskId == taskId; in isRootTaskId()
345 if (!containsTask(taskId)) { in reorderChild()
[all …]
H A DSplitScreenController.java356 public boolean isTaskInSplitScreen(int taskId) { in isTaskInSplitScreen() argument
361 public @StageType int getStageOfTask(int taskId) { in getStageOfTask() argument
371 public boolean isTaskRootOrStageRoot(int taskId) { in isTaskRootOrStageRoot() argument
397 if (isTaskInSplitScreen(taskId)) { in moveToStage()
403 public boolean removeFromSideStage(int taskId) { in removeFromSideStage() argument
446 moveToStage(taskId, stagePosition, wct); in enterSplitScreen()
494 public void moveTaskToFullscreen(int taskId) { in moveTaskToFullscreen() argument
615 taskId = INVALID_TASK_ID; in startShortcutAndTaskWithLegacyTransition()
649 taskId = INVALID_TASK_ID; in startShortcutAndTask()
686 taskId = INVALID_TASK_ID; in startIntentAndTaskWithLegacyTransition()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/
H A DShellTaskOrganizer.java476 final int taskId = info.getTaskInfo().taskId; in onTaskAppeared() local
477 mTasks.put(taskId, info); in onTaskAppeared()
538 || mLastFocusedTaskInfo.taskId != taskInfo.taskId in onTaskInfoChanged()
569 final int taskId = taskInfo.taskId; in onTaskVanished() local
572 mTasks.remove(taskId); in onTaskVanished()
642 final int taskId = taskInfo.taskId; in notifyLocusVisibilityIfNeeded() local
678 info = mTasks.get(taskId); in onSizeCompatRestartButtonAppeared()
691 info = mTasks.get(taskId); in onSizeCompatRestartButtonClicked()
706 info = mTasks.get(taskId); in onCameraControlStateUpdated()
725 taskId); in reparentChildSurfaceToTask()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/desktopmode/
H A DDesktopModeTaskRepository.kt152 taskId,
182 fun isActiveTask(taskId: Int): Boolean {
184 data.activeTasks.contains(taskId)
244 taskId,
276 taskId
281 freeformTasksInZOrder.add(0, taskId)
287 fun removeFreeformTask(taskId: Int) {
291 taskId
293 freeformTasksInZOrder.remove(taskId)
311 fun removeTaskCorners(taskId: Int) {
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/startingsurface/
H A DStartingSurfaceDrawer.java135 removalInfo.taskId); in removeStartingWindow()
166 public void copySplashScreenView(int taskId) { in copySplashScreenView() argument
180 void onImeDrawnOnTask(int taskId) { in onImeDrawnOnTask() argument
181 onImeDrawnOnTask(mWindowRecords, taskId); in onImeDrawnOnTask()
187 records.getRecord(taskId); in onImeDrawnOnTask()
191 records.removeWindow(taskId); in onImeDrawnOnTask()
266 mTaskId = taskId; in SnapshotRecord()
334 final int taskId = removeInfo.taskId; in removeWindow() local
344 void removeWindow(int taskId) { in removeWindow() argument
345 mTmpRemovalInfo.taskId = taskId; in removeWindow()
[all …]
H A DSplashscreenWindowCreator.java147 final int taskId = taskInfo.taskId; in addSplashScreenStartingWindow() local
185 + "at taskId: " + taskId, e); in addSplashScreenStartingWindow()
279 + taskInfo.taskId, e); in estimateTaskBackgroundColor()
287 public void copySplashScreenView(int taskId) { in copySplashScreenView() argument
289 mStartingWindowRecordManager.getRecord(taskId); in copySplashScreenView()
306 taskId, parcelable != null); in copySplashScreenView()
316 public void onAppSplashScreenViewRemoved(int taskId) { in onAppSplashScreenViewRemoved() argument
327 mAnimatedSplashScreenSurfaceHosts.get(taskId); in onAppSplashScreenViewRemoved()
331 mAnimatedSplashScreenSurfaceHosts.remove(taskId); in onAppSplashScreenViewRemoved()
361 mStartingWindowRecordManager.removeWindow(taskId); in addWindow()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/recents/
H A DRecentTasksControllerTest.java175 new Rect(50, 50, 100, 100), t1.taskId, t2.taskId); in testAddSameSplitBoundsInfoSkipNotifyChange()
176 mRecentTasksController.addSplitPair(t1.taskId, t2.taskId, bounds1); in testAddSameSplitBoundsInfoSkipNotifyChange()
178 new Rect(50, 50, 100, 100), t1.taskId, t2.taskId); in testAddSameSplitBoundsInfoSkipNotifyChange()
179 mRecentTasksController.addSplitPair(t1.taskId, t2.taskId, bounds2); in testAddSameSplitBoundsInfoSkipNotifyChange()
212 mRecentTasksController.addSplitPair(t2.taskId, t4.taskId, pair1Bounds); in testGetRecentTasks_withPairs()
219 t2.taskId, t4.taskId, in testGetRecentTasks_withPairs()
220 t3.taskId, t5.taskId, in testGetRecentTasks_withPairs()
250 t2.taskId, t4.taskId, in testGetRecentTasks_ReturnsRecentTasksAsynchronously()
251 t3.taskId, t5.taskId, in testGetRecentTasks_ReturnsRecentTasksAsynchronously()
375 info.taskId = taskId; in makeTaskInfo()
[all …]
H A DGroupedRecentTaskInfoTest.kt54 assertThat(group.taskInfo1.taskId).isEqualTo(1)
62 assertThat(list[0].taskId).isEqualTo(1)
73 assertThat(group.taskInfo1.taskId).isEqualTo(1)
74 assertThat(group.taskInfo2?.taskId).isEqualTo(2)
82 assertThat(list[0].taskId).isEqualTo(1)
83 assertThat(list[1].taskId).isEqualTo(2)
95 assertThat(list[0].taskId).isEqualTo(1)
96 assertThat(list[1].taskId).isEqualTo(2)
97 assertThat(list[2].taskId).isEqualTo(3)
140 { it?.taskId }, "has taskId of"
[all …]
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/data/repository/
H A DActivityTaskManagerTasksRepositoryTest.kt53 fakeActivityTaskManager.addRunningTasks(createTask(taskId = 1), createTask(taskId = 2))
66 val expectedTask = createTask(taskId = 1, token = expectedToken)
69 createTask(taskId = 2),
88 fakeActivityTaskManager.moveTaskToForeground(createTask(taskId = 1))
89 assertThat(foregroundTask?.taskId).isEqualTo(1)
91 fakeActivityTaskManager.moveTaskToForeground(createTask(taskId = 2))
92 assertThat(foregroundTask?.taskId).isEqualTo(2)
94 fakeActivityTaskManager.moveTaskToForeground(createTask(taskId = 3))
95 assertThat(foregroundTask?.taskId).isEqualTo(3)
103 assertThat(foregroundTaskA?.taskId).isEqualTo(1)
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/desktopmode/
H A DDesktopModeTaskRepositoryTest.kt46 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1)
56 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1)
57 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1)
66 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1)
67 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 2)
76 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1)
77 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 2)
78 repo.addActiveTask(SECOND_DISPLAY, taskId = 3)
89 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1)
108 repo.addActiveTask(DEFAULT_DISPLAY, taskId = 1)
[all …]
H A DDesktopModeControllerTest.java258 DEFAULT_DISPLAY, freeformTask1.taskId, false /* visible */); in testShowDesktopApps_allAppsInvisible_bringsToFront()
263 DEFAULT_DISPLAY, freeformTask2.taskId, false /* visible */); in testShowDesktopApps_allAppsInvisible_bringsToFront()
291 mDesktopModeTaskRepository.addOrMoveFreeformTaskToTop(task1.taskId); in testShowDesktopApps_appsAlreadyVisible_bringsToFront()
297 mDesktopModeTaskRepository.addOrMoveFreeformTaskToTop(task2.taskId); in testShowDesktopApps_appsAlreadyVisible_bringsToFront()
322 mDesktopModeTaskRepository.addOrMoveFreeformTaskToTop(task1.taskId); in testShowDesktopApps_someAppsInvisible_reordersAll()
328 mDesktopModeTaskRepository.addOrMoveFreeformTaskToTop(task2.taskId); in testShowDesktopApps_someAppsInvisible_reordersAll()
381 mDesktopModeTaskRepository.addOrMoveFreeformTaskToTop(task1.taskId); in testGetVisibleTaskCount_twoTasks_bothVisible_returnsTwo()
387 mDesktopModeTaskRepository.addOrMoveFreeformTaskToTop(task2.taskId); in testGetVisibleTaskCount_twoTasks_bothVisible_returnsTwo()
398 mDesktopModeTaskRepository.addOrMoveFreeformTaskToTop(task1.taskId); in testGetVisibleTaskCount_twoTasks_oneVisible_returnsOne()
417 taskDefaultDisplay.taskId, in testGetVisibleTaskCount_twoTasksVisibleOnDifferentDisplays_returnsOne()
[all …]
/aosp14/frameworks/base/core/java/android/app/
H A DTaskStackListener.java53 public void onActivityPinned(String packageName, int userId, int taskId, int rootTaskId) in onActivityPinned() argument
70 public void onActivityForcedResizable(String packageName, int taskId, int reason) in onActivityForcedResizable() argument
106 public void onTaskRemoved(int taskId) throws RemoteException { in onTaskRemoved() argument
112 onTaskMovedToFront(taskInfo.taskId); in onTaskMovedToFront()
120 public void onTaskMovedToFront(int taskId) throws RemoteException { in onTaskMovedToFront() argument
126 onTaskRemovalStarted(taskInfo.taskId); in onTaskRemovalStarted()
133 public void onTaskRemovalStarted(int taskId) throws RemoteException { in onTaskRemovalStarted() argument
139 onTaskDescriptionChanged(taskInfo.taskId, taskInfo.taskDescription); in onTaskDescriptionChanged()
146 public void onTaskDescriptionChanged(int taskId, ActivityManager.TaskDescription td) in onTaskDescriptionChanged() argument
198 public void onTaskFocusChanged(int taskId, boolean focused) { in onTaskFocusChanged() argument
[all …]
H A DITaskStackListener.aidl34 void onActivityPinned(String packageName, int userId, int taskId, int stackId); in onActivityPinned() argument
60 void onActivityForcedResizable(String packageName, int taskId, int reason); in onActivityForcedResizable() argument
93 void onTaskCreated(int taskId, in ComponentName componentName); in onTaskCreated() argument
100 void onTaskRemoved(int taskId); in onTaskRemoved() argument
124 void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation); in onActivityRequestedOrientationChanged() argument
145 void onTaskSnapshotChanged(int taskId, in TaskSnapshot snapshot); in onTaskSnapshotChanged() argument
161 void onTaskDisplayChanged(int taskId, int newDisplayId); in onTaskDisplayChanged() argument
181 void onTaskFocusChanged(int taskId, boolean focused); in onTaskFocusChanged() argument
192 void onTaskRequestedOrientationChanged(int taskId, int requestedOrientation); in onTaskRequestedOrientationChanged() argument
/aosp14/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
H A DTaskStackChangeListener.java41 default boolean onTaskSnapshotChanged(int taskId, ThumbnailData snapshot) { in onTaskSnapshotChanged() argument
44 default void onActivityPinned(String packageName, int userId, int taskId, int stackId) { } in onActivityPinned() argument
48 default void onActivityForcedResizable(String packageName, int taskId, int reason) { } in onActivityForcedResizable() argument
72 default void onTaskCreated(int taskId, ComponentName componentName) { } in onTaskCreated() argument
73 default void onTaskRemoved(int taskId) { } in onTaskRemoved() argument
74 default void onTaskMovedToFront(int taskId) { } in onTaskMovedToFront() argument
77 onTaskMovedToFront(taskInfo.taskId); in onTaskMovedToFront()
89 default void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation) { } in onActivityRequestedOrientationChanged() argument
99 default void onTaskDisplayChanged(int taskId, int newDisplayId) { } in onTaskDisplayChanged() argument
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/common/
H A DTaskStackListenerCallback.java43 default void onTaskDisplayChanged(int taskId, int newDisplayId) { } in onTaskDisplayChanged() argument
45 default void onTaskCreated(int taskId, ComponentName componentName) { } in onTaskCreated() argument
47 default void onTaskRemoved(int taskId) { } in onTaskRemoved() argument
49 default void onTaskMovedToFront(int taskId) { } in onTaskMovedToFront() argument
52 onTaskMovedToFront(taskInfo.taskId); in onTaskMovedToFront()
61 default boolean onTaskSnapshotChanged(int taskId, TaskSnapshot snapshot) { in onTaskSnapshotChanged() argument
70 default void onActivityPinned(String packageName, int userId, int taskId, int stackId) { } in onActivityPinned() argument
74 default void onActivityForcedResizable(String packageName, int taskId, int reason) { } in onActivityForcedResizable() argument
90 default void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation) { } in onActivityRequestedOrientationChanged() argument
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/fullscreen/
H A DFullscreenTaskListener.java89 if (mTasks.get(taskInfo.taskId) != null) { in onTaskAppeared()
93 taskInfo.taskId); in onTaskAppeared()
98 mTasks.put(taskInfo.taskId, state); in onTaskAppeared()
130 final State state = mTasks.get(taskInfo.taskId); in onTaskInfoChanged()
162 taskInfo.taskId); in onTaskVanished()
163 mTasks.remove(taskInfo.taskId); in onTaskVanished()
182 b.setParent(findTaskSurface(taskId)); in attachChildSurfaceToTask()
188 t.reparent(sc, findTaskSurface(taskId)); in reparentChildSurfaceToTask()
191 private SurfaceControl findTaskSurface(int taskId) { in findTaskSurface() argument
192 if (!mTasks.contains(taskId)) { in findTaskSurface()
[all …]
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/taskview/
H A DTaskViewTaskController.java287 int taskId = mTaskInfo.taskId; in updateTaskVisibility() local
328 final int taskId = taskInfo.taskId; in onTaskAppeared() local
359 final int taskId = taskInfo.taskId; in onBackPressedOnTaskRoot() local
361 mListener.onBackPressedOnTaskRoot(taskId); in onBackPressedOnTaskRoot()
368 b.setParent(findTaskSurface(taskId)); in attachChildSurfaceToTask()
374 t.reparent(sc, findTaskSurface(taskId)); in reparentChildSurfaceToTask()
377 private SurfaceControl findTaskSurface(int taskId) { in findTaskSurface() argument
378 if (mTaskInfo == null || mTaskLeash == null || mTaskInfo.taskId != taskId) { in findTaskSurface()
526 final int taskId = taskInfo.taskId; in handleAndNotifyTaskRemoval() local
581 final int taskId = mTaskInfo.taskId; in prepareHideAnimation() local
[all …]
/aosp14/frameworks/base/core/java/android/view/
H A DAppTransitionAnimationSpec.java18 public final int taskId; field in AppTransitionAnimationSpec
23 public AppTransitionAnimationSpec(int taskId, HardwareBuffer buffer, Rect rect) { in AppTransitionAnimationSpec() argument
24 this.taskId = taskId; in AppTransitionAnimationSpec()
30 taskId = in.readInt(); in AppTransitionAnimationSpec()
42 dest.writeInt(taskId); in writeToParcel()
60 return "{taskId: " + taskId + ", buffer: " + buffer + ", rect: " + rect + "}"; in toString()
/aosp14/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskSnapshotPersister.java57 void persistSnapshot(int taskId, int userId, TaskSnapshot snapshot) { in persistSnapshot() argument
59 mPersistedTaskIdsSinceLastRemoveObsolete.add(taskId); in persistSnapshot()
60 super.persistSnapshot(taskId, userId, snapshot); in persistSnapshot()
70 void onTaskRemovedFromRecents(int taskId, int userId) { in onTaskRemovedFromRecents() argument
72 mPersistedTaskIdsSinceLastRemoveObsolete.remove(taskId); in onTaskRemovedFromRecents()
73 super.removeSnap(taskId, userId); in onTaskRemovedFromRecents()
120 final int taskId = getTaskId(file); in write() local
121 if (!mPersistentTaskIds.contains(taskId) in write()
122 && !newPersistedTaskIds.contains(taskId)) { in write()
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/compatui/
H A DCompatUIController.java79 void onSizeCompatRestartButtonAppeared(int taskId); in onSizeCompatRestartButtonAppeared() argument
81 void onSizeCompatRestartButtonClicked(int taskId); in onSizeCompatRestartButtonClicked() argument
252 removeLayouts(taskInfo.taskId); in onCompatInfoChanged()
353 mTopActivityTaskId = taskInfo.taskId; in updateActiveTaskInfo()
395 mActiveCompatLayouts.remove(taskInfo.taskId); in createOrUpdateCompatLayout()
402 mActiveCompatLayouts.remove(taskInfo.taskId); in createOrUpdateCompatLayout()
416 mActiveCompatLayouts.put(taskInfo.taskId, layout); in createOrUpdateCompatLayout()
650 private void removeLayouts(int taskId) { in removeLayouts() argument
654 mActiveCompatLayouts.remove(taskId); in removeLayouts()
667 mSetOfTaskIdsShowingRestartDialog.remove(taskId); in removeLayouts()
[all …]

12345678910>>...12