/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/taskview/ |
D | RootTaskMediator.java | 65 private TaskRecord(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { in TaskRecord() argument 66 mTaskInfo = taskInfo; in TaskRecord() 136 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument 137 ShellTaskOrganizer.TaskListener.super.onTaskAppeared(taskInfo, leash); in onTaskAppeared() 140 if (mRootTask == null && !taskInfo.hasParentTask()) { in onTaskAppeared() 141 mRootTask = taskInfo; in onTaskAppeared() 146 wct.setLaunchRoot(taskInfo.token, in onTaskAppeared() 149 .reorder(taskInfo.token, true); in onTaskAppeared() 157 mTaskViewTaskShellPart.startRootTask(taskInfo, leash, wct); in onTaskAppeared() 163 mTaskViewTaskShellPart.onTaskAppeared(taskInfo, leash); in onTaskAppeared() [all …]
|
D | RemoteCarTaskViewServerImpl.java | 179 ActivityManager.RunningTaskInfo taskInfo = mTaskViewTaskController.getTaskInfo(); 180 if (taskInfo == null) { 191 wct.setHidden(taskInfo.token, /* hidden= */ false); 193 wct.reorder(taskInfo.token, /* onTop= */ true); 204 ActivityManager.RunningTaskInfo taskInfo = mTaskViewTaskController.getTaskInfo(); 205 if (taskInfo == null) { 214 wct.setHidden(taskInfo.token, !visibility); 225 ActivityManager.RunningTaskInfo taskInfo = mTaskViewTaskController.getTaskInfo(); 226 if (taskInfo == null) { 236 wct.reorder(taskInfo.token, onTop); [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/wm/taskview/ |
D | RootTaskMediatorTest.java | 63 ActivityManager.RunningTaskInfo taskInfo = in createTask() local 65 taskInfo.taskId = taskId; in createTask() 66 taskInfo.configuration.windowConfiguration.setWindowingMode( in createTask() 68 taskInfo.parentTaskId = INVALID_TASK_ID; in createTask() 69 taskInfo.token = mock(WindowContainerToken.class); in createTask() 70 taskInfo.isVisible = true; in createTask() 71 return taskInfo; in createTask() 95 ActivityManager.RunningTaskInfo taskInfo = createTask(/* taskId= */ 1); in onTaskAppeared_setsRootTask() local 96 mMediator.onTaskAppeared(taskInfo, null); in onTaskAppeared_setsRootTask() 98 assertThat(mMediator.getRootTask()).isEqualTo(taskInfo); in onTaskAppeared_setsRootTask() [all …]
|
/packages/services/Car/car-lib/src/android/car/app/ |
D | RootTaskStackManager.java | 34 void taskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { in taskAppeared() argument 37 mRootTask = taskInfo; in taskAppeared() 41 mChildrenTaskStack.put(taskInfo.taskId, taskInfo); in taskAppeared() 44 void taskInfoChanged(ActivityManager.RunningTaskInfo taskInfo) { in taskInfoChanged() argument 45 if (mRootTask == null || mRootTask.taskId == taskInfo.taskId) { in taskInfoChanged() 48 if (taskInfo.isVisible() && mChildrenTaskStack.containsKey(taskInfo.taskId)) { in taskInfoChanged() 51 mChildrenTaskStack.remove(taskInfo.taskId); in taskInfoChanged() 52 mChildrenTaskStack.put(taskInfo.taskId, taskInfo); in taskInfoChanged() 56 void taskVanished(ActivityManager.RunningTaskInfo taskInfo) { in taskVanished() argument 57 if (mRootTask == null || mRootTask.taskId == taskInfo.taskId) { in taskVanished() [all …]
|
D | RemoteCarDefaultRootTaskView.java | 60 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { 63 mRootTask = taskInfo; 82 if (taskInfo.taskDescription != null) { 85 taskInfo.taskDescription.getBackgroundColor()); 89 mRootTaskStackManager.taskAppeared(taskInfo, leash); 99 mCallback.onTaskAppeared(taskInfo); 107 public void onTaskInfoChanged(ActivityManager.RunningTaskInfo taskInfo) { 112 if (mRootTask.taskId == taskInfo.taskId && taskInfo.taskDescription != null) { 115 taskInfo.taskDescription.getBackgroundColor()); 117 mRootTaskStackManager.taskInfoChanged(taskInfo); [all …]
|
D | ControlledRemoteCarTaskView.java | 74 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { 77 mTaskInfo = taskInfo; 79 if (taskInfo.taskDescription != null) { 81 taskInfo.taskDescription.getBackgroundColor()); 83 ControlledRemoteCarTaskView.this.onTaskAppeared(taskInfo, leash); 90 public void onTaskInfoChanged(ActivityManager.RunningTaskInfo taskInfo) { 93 if (taskInfo.taskDescription != null) { 95 taskInfo.taskDescription.getBackgroundColor()); 97 ControlledRemoteCarTaskView.this.onTaskInfoChanged(taskInfo); 104 public void onTaskVanished(ActivityManager.RunningTaskInfo taskInfo) { [all …]
|
D | RemoteCarRootTaskView.java | 83 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { 86 mRootTask = taskInfo; 88 TaskInfoHelper.getToken(taskInfo)); 108 if (taskInfo.taskDescription != null) { 111 taskInfo.taskDescription.getBackgroundColor()); 115 mRootTaskStackManager.taskAppeared(taskInfo, leash); 120 public void onTaskInfoChanged(ActivityManager.RunningTaskInfo taskInfo) { 125 if (mRootTask.taskId == taskInfo.taskId && taskInfo.taskDescription != null) { 128 taskInfo.taskDescription.getBackgroundColor()); 130 mRootTaskStackManager.taskInfoChanged(taskInfo); [all …]
|
D | CarTaskViewClient.java | 68 public void onTaskAppeared(@NonNull ActivityManager.RunningTaskInfo taskInfo, in onTaskAppeared() argument 71 mICarTaskViewClient.onTaskAppeared(taskInfo, leash); in onTaskAppeared() 78 public void onTaskVanished(@NonNull ActivityManager.RunningTaskInfo taskInfo) { in onTaskVanished() argument 80 mICarTaskViewClient.onTaskVanished(taskInfo); in onTaskVanished() 87 public void onTaskInfoChanged(@NonNull ActivityManager.RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument 89 mICarTaskViewClient.onTaskInfoChanged(taskInfo); in onTaskInfoChanged()
|
D | CarActivityManager.java | 216 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo) { in onTaskAppeared() argument 217 onTaskAppearedInternal(taskInfo, null); in onTaskAppeared() 225 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, in onTaskAppeared() argument 227 onTaskAppearedInternal(taskInfo, leash); in onTaskAppeared() 231 ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppearedInternal() argument 234 mService.onTaskAppeared(mTaskMonitorToken, taskInfo, leash); in onTaskAppearedInternal() 245 public void onTaskVanished(ActivityManager.RunningTaskInfo taskInfo) { in onTaskVanished() argument 248 mService.onTaskVanished(mTaskMonitorToken, taskInfo); in onTaskVanished() 259 public void onTaskInfoChanged(ActivityManager.RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument 262 mService.onTaskInfoChanged(mTaskMonitorToken, taskInfo); in onTaskInfoChanged()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/homeactivities/ |
D | TaskCategoryManager.java | 101 static boolean isHomeIntent(TaskInfo taskInfo) { in isHomeIntent() argument 102 return taskInfo.baseIntent != null in isHomeIntent() 103 && taskInfo.baseIntent.getCategories() != null in isHomeIntent() 104 && taskInfo.baseIntent.getCategories().contains(Intent.CATEGORY_HOME); in isHomeIntent() 116 public static boolean isMediaApp(TaskInfo taskInfo) { in isMediaApp() argument 117 return taskInfo != null && taskInfo.baseIntent != null in isMediaApp() 118 && CarMediaIntents.ACTION_MEDIA_TEMPLATE.equals(taskInfo.baseIntent.getAction()); in isMediaApp() 188 boolean isBackgroundApp(TaskInfo taskInfo) { in isBackgroundApp() argument 189 return mBackgroundActivities.contains(taskInfo.baseActivity); in isBackgroundApp() 212 boolean isAppGridActivity(TaskInfo taskInfo) { in isAppGridActivity() argument [all …]
|
D | CarUiPortraitHomeScreen.java | 254 public void onTaskMovedToFront(ActivityManager.RunningTaskInfo taskInfo) 256 logIfDebuggable("On task moved to front, task = " + taskInfo.taskId + ", cmp = " 257 + taskInfo.baseActivity + ", isVisible=" + taskInfo.isVisible); 260 if (!TaskCategoryManager.isHomeIntent(taskInfo) 261 && !mTaskCategoryManager.isBackgroundApp(taskInfo)) { 263 cacheTask(taskInfo); 269 taskInfo.taskId, getVisibleActivity(taskInfo)); 270 handleTaskStackChange(taskInfo, reason); 299 public void onActivityRestartAttempt(ActivityManager.RunningTaskInfo taskInfo, 302 super.onActivityRestartAttempt(taskInfo, homeTaskVisible, clearedTask, wasVisible); [all …]
|
D | TaskInfoCache.java | 47 boolean cancelTask(ActivityManager.RunningTaskInfo taskInfo) { in cancelTask() argument 48 logIfDebuggable("Cancel task " + taskInfo); in cancelTask() 53 return mActivityTaskManager.removeTask(taskInfo.taskId); in cancelTask() 57 boolean cacheTask(ActivityManager.RunningTaskInfo taskInfo) { in cacheTask() argument 58 logIfDebuggable("Cache task " + taskInfo); in cacheTask() 59 return mCachedTaskQueue.add(taskInfo); in cacheTask()
|
/packages/apps/Car/Launcher/docklib-util/src/com/android/car/dockutil/events/ |
D | DockEventSenderHelper.java | 48 public void sendLaunchEvent(@NonNull ActivityManager.RunningTaskInfo taskInfo) { in sendLaunchEvent() argument 49 sendEventBroadcast(DockEvent.LAUNCH, taskInfo); in sendLaunchEvent() 55 public void sendPinEvent(@NonNull ActivityManager.RunningTaskInfo taskInfo) { in sendPinEvent() argument 56 sendEventBroadcast(DockEvent.PIN, taskInfo); in sendPinEvent() 69 public void sendUnpinEvent(@NonNull ActivityManager.RunningTaskInfo taskInfo) { in sendUnpinEvent() argument 70 sendEventBroadcast(DockEvent.UNPIN, taskInfo); in sendUnpinEvent() 83 @NonNull ActivityManager.RunningTaskInfo taskInfo) { in sendEventBroadcast() argument 84 if (getDisplayId(taskInfo) != Display.DEFAULT_DISPLAY) { in sendEventBroadcast() 87 ComponentName component = getComponentName(taskInfo); in sendEventBroadcast() 105 private ComponentName getComponentName(@NonNull ActivityManager.RunningTaskInfo taskInfo) { in getComponentName() argument [all …]
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/sideloaded/ |
D | SideLoadedAppListener.java | 59 RootTaskInfo taskInfo = getStackInfo(taskInfoList, taskId); in onTaskCreated() local 60 if (taskInfo == null) { in onTaskCreated() 65 if (!mSideLoadedAppDetector.isSafe(taskInfo)) { in onTaskCreated() 66 Display display = mDisplayManager.getDisplay(taskInfo.displayId); in onTaskCreated() 84 RootTaskInfo taskInfo = getTopVisibleStackInfo(taskInfoList); in onTaskStackChanged() local 85 if (taskInfo == null) { in onTaskStackChanged() 88 if (mSideLoadedAppDetector.isSafe(taskInfo)) { in onTaskStackChanged() 103 for (RootTaskInfo taskInfo : taskInfoList) { in getStackInfo() 104 if (taskInfo.childTaskIds == null) { in getStackInfo() 107 for (int taskTaskId : taskInfo.childTaskIds) { in getStackInfo() [all …]
|
/packages/services/Car/service/src/com/android/car/am/ |
D | CarActivityService.java | 138 void onActivityChangedInBackstack(TaskInfo taskInfo); in onActivityChangedInBackstack() argument 270 ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument 272 Slogf.d(TAG, "onTaskAppeared: %s, %s", token, TaskInfoHelper.toString(taskInfo)); in onTaskAppeared() 279 mTasks.put(taskInfo.taskId, taskInfo); in onTaskAppeared() 281 mTaskToSurfaceMap.put(taskInfo.taskId, leash); in onTaskAppeared() 284 if (TaskInfoHelper.isVisible(taskInfo)) { in onTaskAppeared() 285 mHandler.post(() -> notifyActivityCameOnTop(taskInfo)); in onTaskAppeared() 289 private void notifyActivityCameOnTop(TaskInfo taskInfo) { in notifyActivityCameOnTop() argument 292 mActivityListeners.get(i).onActivityCameOnTop(taskInfo); in notifyActivityCameOnTop() 297 private void notifyActivityChangedInBackStack(TaskInfo taskInfo) { in notifyActivityChangedInBackStack() argument [all …]
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/ |
D | CarFullscreenTaskMonitorListener.java | 96 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, in onTaskAppeared() argument 98 super.onTaskAppeared(taskInfo, leash); in onTaskAppeared() 110 carAM.onTaskAppeared(taskInfo, leash); in onTaskAppeared() 112 Slog.w(TAG, "CarActivityManager is null, skip onTaskAppeared: taskInfo=" + taskInfo); in onTaskAppeared() 117 public void onTaskInfoChanged(ActivityManager.RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument 118 super.onTaskInfoChanged(taskInfo); in onTaskInfoChanged() 130 carAM.onTaskInfoChanged(taskInfo); in onTaskInfoChanged() 132 Slog.w(TAG, "CarActivityManager is null, skip onTaskInfoChanged: taskInfo=" + taskInfo); in onTaskInfoChanged() 137 public void onTaskVanished(ActivityManager.RunningTaskInfo taskInfo) { in onTaskVanished() argument 138 super.onTaskVanished(taskInfo); in onTaskVanished() [all …]
|
/packages/apps/Car/SystemUI/tests/src/com/android/systemui/car/sideloaded/ |
D | SideLoadedAppDetectorTest.java | 82 RootTaskInfo taskInfo = new RootTaskInfo(); in isSafe_systemApp_returnsTrue() local 83 taskInfo.topActivity = new ComponentName(APP_PACKAGE_NAME, APP_CLASS_NAME); in isSafe_systemApp_returnsTrue() 92 assertThat(mSideLoadedAppDetector.isSafe(taskInfo)).isTrue(); in isSafe_systemApp_returnsTrue() 97 RootTaskInfo taskInfo = new RootTaskInfo(); in isSafe_updatedSystemApp_returnsTrue() local 98 taskInfo.topActivity = new ComponentName(APP_PACKAGE_NAME, APP_CLASS_NAME); in isSafe_updatedSystemApp_returnsTrue() 107 assertThat(mSideLoadedAppDetector.isSafe(taskInfo)).isTrue(); in isSafe_updatedSystemApp_returnsTrue() 116 RootTaskInfo taskInfo = new RootTaskInfo(); in isSafe_nonSystemApp_withSafeSource_returnsTrue() local 117 taskInfo.topActivity = new ComponentName(APP_PACKAGE_NAME, APP_CLASS_NAME); in isSafe_nonSystemApp_withSafeSource_returnsTrue() 126 assertThat(mSideLoadedAppDetector.isSafe(taskInfo)).isTrue(); in isSafe_nonSystemApp_withSafeSource_returnsTrue() 135 RootTaskInfo taskInfo = new RootTaskInfo(); in isSafe_nonSystemApp_withUnsafeSource_returnsFalse() local [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | RecentTasksList.java | 90 public void onRunningTaskAppeared(ActivityManager.RunningTaskInfo taskInfo) { in RecentTasksList() 92 RecentTasksList.this.onRunningTaskAppeared(taskInfo); in RecentTasksList() 97 public void onRunningTaskVanished(ActivityManager.RunningTaskInfo taskInfo) { in RecentTasksList() 99 RecentTasksList.this.onRunningTaskVanished(taskInfo); in RecentTasksList() 104 public void onRunningTaskChanged(ActivityManager.RunningTaskInfo taskInfo) { in RecentTasksList() 106 RecentTasksList.this.onRunningTaskChanged(taskInfo); in RecentTasksList() 111 public void onTaskMovedToFront(ActivityManager.RunningTaskInfo taskInfo) { in RecentTasksList() 113 topTaskTracker.onTaskMovedToFront(taskInfo); in RecentTasksList() 237 private void onRunningTaskAppeared(ActivityManager.RunningTaskInfo taskInfo) { in onRunningTaskAppeared() argument 240 if (taskInfo.taskId == existingTask.taskId) { in onRunningTaskAppeared() [all …]
|
D | TopTaskTracker.java | 107 public void onTaskMovedToFront(RunningTaskInfo taskInfo) { in onTaskMovedToFront() argument 109 && mOrderedTaskList.getFirst().taskId != taskInfo.taskId in onTaskMovedToFront() 111 Log.i(TAG, "onTaskMovedToFront: (moved taskInfo to front) taskId=" + taskInfo.taskId in onTaskMovedToFront() 112 + ", baseIntent=" + taskInfo.baseIntent); in onTaskMovedToFront() 114 mOrderedTaskList.removeIf(rto -> rto.taskId == taskInfo.taskId); in onTaskMovedToFront() 115 mOrderedTaskList.addFirst(taskInfo); in onTaskMovedToFront() 120 if (taskInfo.displayId != DEFAULT_DISPLAY) { in onTaskMovedToFront() 139 if (info.taskId != taskInfo.taskId in onTaskMovedToFront() 144 + taskInfo.taskId + ", baseIntent=" + taskInfo.baseIntent); in onTaskMovedToFront() 257 for (RunningTaskInfo taskInfo : mOrderedTaskList) { in dump() [all …]
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitSystemUI/src/com/android/systemui/car/displayarea/ |
D | CarFullscreenTaskListener.java | 43 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument 44 super.onTaskAppeared(taskInfo, leash); in onTaskAppeared() 47 listener.onTaskAppeared(taskInfo); in onTaskAppeared() 52 public void onTaskVanished(ActivityManager.RunningTaskInfo taskInfo) { in onTaskVanished() argument 53 super.onTaskVanished(taskInfo); in onTaskVanished() 55 listener.onTaskVanished(taskInfo); in onTaskVanished() 86 void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo); in onTaskAppeared() argument 91 void onTaskVanished(ActivityManager.RunningTaskInfo taskInfo); in onTaskVanished() argument
|
/packages/apps/Car/Launcher/docklib/src/com/android/car/docklib/task/ |
D | TaskUtils.kt | 26 fun getComponentName(taskInfo: ActivityManager.RunningTaskInfo): ComponentName? { in getComponentName() 27 if (taskInfo.baseActivity == null && taskInfo.baseIntent.component == null) { in getComponentName() 30 val component = if (taskInfo.baseActivity != null) { in getComponentName() 31 taskInfo.baseActivity in getComponentName() 33 taskInfo.baseIntent.component in getComponentName() 36 return if (isMediaComponent(component)) getMediaComponentName(taskInfo) else component in getComponentName()
|
D | DockTaskStackChangeListener.java | 42 public void onTaskMovedToFront(ActivityManager.RunningTaskInfo taskInfo) { in onTaskMovedToFront() argument 43 if (taskInfo.displayId != Display.DEFAULT_DISPLAY || taskInfo.userId != mCurrentUserId) { in onTaskMovedToFront() 45 Log.d(TAG, "New task on display " + taskInfo.displayId in onTaskMovedToFront() 46 + " and for user " + taskInfo.userId + " is not added to the dock"); in onTaskMovedToFront() 51 ComponentName component = TaskUtils.Companion.getComponentName(taskInfo); in onTaskMovedToFront()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/ |
D | CarActivityServiceTaskMonitorUnitTest.java | 163 public void onTaskAppeared(ActivityManager.RunningTaskInfo taskInfo, SurfaceControl leash) { in onTaskAppeared() argument 164 super.onTaskAppeared(taskInfo, leash); in onTaskAppeared() 165 mService.onTaskAppeared(mToken, taskInfo, leash); in onTaskAppeared() 169 public void onTaskInfoChanged(ActivityManager.RunningTaskInfo taskInfo) { in onTaskInfoChanged() argument 170 super.onTaskInfoChanged(taskInfo); in onTaskInfoChanged() 171 mService.onTaskInfoChanged(mToken, taskInfo); in onTaskInfoChanged() 175 public void onTaskVanished(ActivityManager.RunningTaskInfo taskInfo) { in onTaskVanished() argument 176 super.onTaskVanished(taskInfo); in onTaskVanished() 177 mService.onTaskVanished(mToken, taskInfo); in onTaskVanished() 322 TaskInfo taskInfo = mService.getTaskInfoForTopActivity(mActivityA); in testGetTaskInfoForTopActivity() local [all …]
|
/packages/services/Car/service/src/com/android/car/pm/ |
D | BlockingUiCommandListenerMediator.java | 111 public void finishBlockingUi(TaskInfo taskInfo, int lastKnownDisplayId) { in finishBlockingUi() argument 113 int displayId = getDisplayId(taskInfo, lastKnownDisplayId); in finishBlockingUi() 118 addFinishBlockingUiTransitionLogLocked(taskInfo, displayId); in finishBlockingUi() 137 private static int getDisplayId(TaskInfo taskInfo, int lastKnownDisplayId) { in getDisplayId() argument 138 int displayId = TaskInfoHelper.getDisplayId(taskInfo); in getDisplayId() 165 private void addFinishBlockingUiTransitionLogLocked(TaskInfo taskInfo, int displayId) { in addFinishBlockingUiTransitionLogLocked() argument 169 FinishLogs log = new FinishLogs(taskInfo.taskId, taskInfo.baseIntent, displayId, in addFinishBlockingUiTransitionLogLocked()
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/util/ |
D | SplitSelectStateControllerTest.kt | 631 var taskInfo = ActivityManager.RunningTaskInfo() in generateGroupTask() variable 632 taskInfo.taskId = getUniqueId() in generateGroupTask() 635 taskInfo.baseIntent = intent in generateGroupTask() 636 task1.key = Task.TaskKey(taskInfo) in generateGroupTask() 639 taskInfo = ActivityManager.RunningTaskInfo() in generateGroupTask() 640 taskInfo.taskId = getUniqueId() in generateGroupTask() 643 taskInfo.baseIntent = intent in generateGroupTask() 644 task2.key = Task.TaskKey(taskInfo) in generateGroupTask() 660 var taskInfo = ActivityManager.RunningTaskInfo() in generateGroupTask() variable 661 taskInfo.taskId = getUniqueId() in generateGroupTask() [all …]
|