/packages/services/Car/libs/car-wm-shell-lib/src/com/android/wm/shell/automotive/ |
D | AutoTaskRepository.java | 129 if (!mPendingTasks.contains(taskInfo.taskId)) { in onCarServiceConnectedLocked() 130 mPendingTasks.put(taskInfo.taskId, new Pair<>(taskInfo, null)); in onCarServiceConnectedLocked() 153 return mSurfaceControlMap.get(taskInfo.taskId); in getSurfaceControl() 156 SurfaceControl getSurfaceControl(int taskId) { in getSurfaceControl() argument 157 return mSurfaceControlMap.get(taskId); in getSurfaceControl() 166 ActivityManager.RunningTaskInfo getTaskInfo(int taskId) { in getTaskInfo() argument 167 if (mTaskStackWithoutRootTask.get(taskId) != null) { in getTaskInfo() 168 return mTaskStackWithoutRootTask.get(taskId); in getTaskInfo() 172 if (rootTaskStackInfo.getTaskInfo(taskId) != null) { in getTaskInfo() 173 return rootTaskStackInfo.getTaskInfo(taskId); in getTaskInfo() [all …]
|
D | AutoLayoutManager.java | 114 int taskId = rootTaskStack.getRootTaskInfo().taskId; in addOrUpdateInsets() local 118 taskId, index, type, frame); in addOrUpdateInsets() 121 ActivityManager.RunningTaskInfo taskInfo = mAutoTaskRepository.getTaskInfo(taskId); in addOrUpdateInsets() 124 Slogf.e(TAG, "Task doesn't exist. taskId: %d.", taskId); in addOrUpdateInsets() 129 taskId); in addOrUpdateInsets() 132 mTaskIdToInsetFrameProviderMap.put(taskId, insetsFrameProviders); in addOrUpdateInsets() 158 int taskId = rootTaskStack.getRootTaskInfo().taskId; in removeInsets() local 162 taskId, index, type); in removeInsets() 165 ActivityManager.RunningTaskInfo taskInfo = mAutoTaskRepository.getTaskInfo(taskId); in removeInsets() 168 Slogf.e(TAG, "Task doesn't exist. taskId: %d.", taskId); in removeInsets() [all …]
|
D | AutoTaskStackControllerImpl.kt | 167 RootTaskStack(taskInfo.taskId, taskInfo.displayId, leash, name, taskInfo) in <lambda>() 175 appTasksMap[taskInfo.taskId] = taskInfo in <lambda>() 190 if (taskInfo.taskId == previousRootTaskStackInfo.id) { in <lambda>() 200 appTasksMap[taskInfo.taskId] = taskInfo in <lambda>() 214 if (taskInfo.taskId == rootTask.id) { in <lambda>() 224 appTasksMap.remove(taskInfo.taskId) in <lambda>() 237 override fun attachChildSurfaceToTask(taskId: Int, b: SurfaceControl.Builder) { in <lambda>() 238 val parentLeash = findParentSurfaceControl(taskId) in <lambda>() 244 "Failed to attach child surface to task#$taskId: Parent surface not found." in <lambda>() 250 taskId: Int, in <lambda>() [all …]
|
D | AutoCaptionController.java | 309 Slogf.e(TAG, "Safe area is not provided for task %d", taskInfo.taskId); in attachCaptionBar() 314 Slogf.d(TAG, "Adding caption to task. TaskId: %d", taskInfo.taskId); in attachCaptionBar() 323 Slogf.e(TAG, "Caption view is not provided for task %d", taskInfo.taskId); in attachCaptionBar() 327 String captionBarName = String.format(CAPTION_BAR_NAME_FORMAT, taskInfo.taskId); in attachCaptionBar() 332 mTaskIdToCaptionBar.append(taskInfo.taskId, captionDecor); in attachCaptionBar() 342 AutoDecor captionDecor = mTaskIdToCaptionBar.get(taskInfo.taskId); in updateCaptionBarVisibility() 346 taskInfo.taskId, visibility); in updateCaptionBarVisibility() 349 String transactionName = String.format(TRANSACTION_NAME_FORMAT, taskInfo.taskId); in updateCaptionBarVisibility() 364 AutoDecor captionDecor = mTaskIdToCaptionBar.get(taskInfo.taskId); in removeCaptionBar() 365 mTaskIdToCaptionBar.remove(taskInfo.taskId); in removeCaptionBar() [all …]
|
/packages/apps/Car/Launcher/app/src/com/android/car/carlauncher/recents/ |
D | RecentTasksProvider.java | 83 public boolean onTaskSnapshotChanged(int taskId, ThumbnailData snapshot) { 84 if (!mRecentTaskIdToTaskMap.containsKey(taskId)) { 87 mRecentTaskIdToTaskMap.get(taskId).thumbnail = snapshot; 90 () -> mRecentsDataChangeListener.recentTaskThumbnailChange(taskId)); 97 if (!mRecentTaskIdToTaskMap.containsKey(taskInfo.taskId)) { 104 mRecentTaskIdToTaskMap.get(taskInfo.taskId).icon = icon; 107 () -> mRecentsDataChangeListener.recentTaskIconChange(taskInfo.taskId)); 217 public ComponentName getRecentTaskComponentName(int taskId) { in getRecentTaskComponentName() argument 218 return mRecentTaskIdToTaskMap.containsKey(taskId) in getRecentTaskComponentName() 219 ? mRecentTaskIdToTaskMap.get(taskId).getTopComponent() : null; in getRecentTaskComponentName() [all …]
|
D | RecentTasksProviderInterface.java | 49 ComponentName getRecentTaskComponentName(int taskId); in getRecentTaskComponentName() argument 55 Intent getRecentTaskBaseIntent(int taskId); in getRecentTaskBaseIntent() argument 61 Drawable getRecentTaskIcon(int taskId); in getRecentTaskIcon() argument 67 Bitmap getRecentTaskThumbnail(int taskId); in getRecentTaskThumbnail() argument 73 Rect getRecentTaskInsets(int taskId); in getRecentTaskInsets() argument 79 boolean openRecentTask(int taskId); in openRecentTask() argument 98 void removeTaskFromRecents(int taskId); in removeTaskFromRecents() argument 129 void recentTaskThumbnailChange(int taskId); in recentTaskThumbnailChange() argument 136 void recentTaskIconChange(int taskId); in recentTaskIconChange() argument
|
D | RecentTasksViewModel.java | 59 public void recentTaskThumbnailChange(int taskId) { 60 int index = mRecentTaskIds.indexOf(taskId); 64 mTaskIdToCroppedThumbnailMap.remove(taskId); 69 public void recentTaskIconChange(int taskId) { 70 int index = mRecentTaskIds.indexOf(taskId); 301 for (int taskId : recentTaskIds) { in mapAbsoluteTasksToShownTasks() 302 ComponentName topComponent = mDataStore.getRecentTaskComponentName(taskId); in mapAbsoluteTasksToShownTasks() 303 Intent baseIntent = mDataStore.getRecentTaskBaseIntent(taskId); in mapAbsoluteTasksToShownTasks() 313 mRecentTaskIds.add(taskId); in mapAbsoluteTasksToShownTasks() 344 private void removeTaskWithId(int taskId) { in removeTaskWithId() argument [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | TopTaskTracker.java | 125 public void onTaskRemoved(int taskId) { in onTaskRemoved() argument 130 mOrderedTaskList.removeIf(rto -> rto.taskId == taskId); in onTaskRemoved() 143 mOrderedTaskList.removeIf(rto -> rto.taskId == taskInfo.taskId); in handleTaskMovedToFront() 169 mOrderedTaskList.removeIf(rto -> rto.taskId == topTaskOnHomeDisplay.taskId); in handleTaskMovedToFront() 179 if (info.taskId != taskInfo.taskId in handleTaskMovedToFront() 180 && info.taskId != mMainStagePosition.taskId in handleTaskMovedToFront() 181 && info.taskId != mSideStagePosition.taskId) { in handleTaskMovedToFront() 228 if (mOrderedTaskList.get(i).taskId == taskInfo.taskId) { in onTaskChanged() 236 public void onTaskStageChanged(int taskId, @StageType int stage, boolean visible) { in onTaskStageChanged() argument 243 if (mMainStagePosition.taskId == taskId) { in onTaskStageChanged() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/recents/data/ |
D | TasksRepository.kt | 78 override fun getTaskDataById(taskId: Int) = tasks.map { it[taskId] } in <lambda>() 80 override fun getThumbnailById(taskId: Int) = in <lambda>() 81 getTaskDataById(taskId).map { it?.thumbnail }.distinctUntilChangedBy { it?.snapshotId } in <lambda>() 83 override fun getCurrentThumbnailById(taskId: Int) = tasks.value[taskId]?.thumbnail in <lambda>() 99 newlyVisibleTasks.forEach { taskId -> requestTaskData(taskId) } in <lambda>() method 102 private fun requestTaskData(taskId: Int) { in <lambda>() 103 val task = tasks.value[taskId] ?: return in <lambda>() 104 taskRequests[taskId] = in <lambda>() 108 Log.i(TAG, "requestTaskData: $taskId") in <lambda>() 120 tasksToRemove.forEach { taskId -> in <lambda>() method [all …]
|
/packages/services/Car/libs/car-wm-shell-lib/tests/unittest/src/com/android/wm/shell/automotive/ |
D | AutoTaskStackControllerImplTest.kt | 149 taskId: Int, in setupRootTask() 156 .setTaskId(taskId).setDisplayId(displayId).build() in setupRootTask() 175 taskId: Int, in setupChildTask() 183 .setTaskId(taskId) in setupChildTask() 243 val (taskInfo, taskListener) = setupRootTask(taskId = 12) in rootTaskInfoChanged_callsOnTaskStackInfoChanged() 262 val (taskInfo, taskListener) = setupRootTask(taskId = 12) in rootTaskVanished_callsOnTaskStackDestroyed() 275 val (taskInfo, taskListener) = setupRootTask(taskId = 12) in destroyTaskStack_clearsStateAndCallsOnTaskStackDestroyed() 288 assertThat(controller.taskStackStateMap[taskInfo.taskId]).isNull() in destroyTaskStack_clearsStateAndCallsOnTaskStackDestroyed() 295 val (taskInfo, taskListener) = setupRootTask(taskId = 14) in createRootTask_childTaskAppeared_callsOnTaskAppeared() 299 .setParentTaskId(taskInfo.taskId) in createRootTask_childTaskAppeared_callsOnTaskAppeared() [all …]
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/wm/taskview/ |
D | RootTaskMediator.java | 178 mTaskStack.put(taskInfo.taskId, new TaskRecord(taskInfo, leash)); in onTaskAppeared() 196 && mRootTask.taskId == taskInfo.taskId) { in onTaskInfoChanged() 207 if (taskInfo.isVisible && mTaskStack.containsKey(taskInfo.taskId)) { in onTaskInfoChanged() 210 TaskRecord task = mTaskStack.remove(taskInfo.taskId); in onTaskInfoChanged() 212 mTaskStack.put(taskInfo.taskId, task); in onTaskInfoChanged() 223 && mRootTask.taskId == taskInfo.taskId) { in onTaskVanished() 234 mTaskStack.remove(taskInfo.taskId); in onTaskVanished() 268 public void attachChildSurfaceToTask(int taskId, SurfaceControl.Builder b) { in attachChildSurfaceToTask() argument 270 && mRootTask.taskId == taskId) { in attachChildSurfaceToTask() 271 mTaskViewTaskShellPart.attachChildSurfaceToTask(taskId, b); in attachChildSurfaceToTask() [all …]
|
/packages/services/Car/car_product/distant_display/apps/CarDistantDisplaySystemUI/src/com/android/systemui/car/distantdisplay/common/ |
D | DistantDisplayForegroundTaskMap.java | 37 void put(int taskId, int displayId, Intent baseIntent, WindowContainerToken token) { in put() argument 38 mData.remove(taskId); in put() 39 mData.put(taskId, new TaskData(taskId, displayId, baseIntent, token)); in put() 50 TaskData get(int taskId) { in get() argument 51 return mData.get(taskId); in get() 54 void remove(int taskId) { in remove() argument 55 mData.remove(taskId); in remove() 68 TaskData(int taskId, int displayId, Intent baseIntent, WindowContainerToken token) { in TaskData() argument 69 mTaskId = taskId; in TaskData()
|
/packages/services/Car/car-lib/src/android/car/app/ |
D | RootTaskStackManager.java | 41 mChildrenTaskStack.put(taskInfo.taskId, taskInfo); in taskAppeared() 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() 57 if (mRootTask == null || mRootTask.taskId == taskInfo.taskId) { in taskVanished() 61 if (mChildrenTaskStack.containsKey(taskInfo.taskId)) { in taskVanished() 62 mChildrenTaskStack.remove(taskInfo.taskId); in taskVanished()
|
/packages/modules/OnDevicePersonalization/tests/frameworktests/src/android/federatedcompute/common/ |
D | ExampleConsumptionTest.java | 63 String taskId = "my_task"; in testBuilder_normalCaseWithoutResumptionToken() local 67 createExampleConsumption(taskId, selectionCriteria, exampleCount, null); in testBuilder_normalCaseWithoutResumptionToken() 68 assertThat(consumption.getTaskId()).isEqualTo(taskId); in testBuilder_normalCaseWithoutResumptionToken() 77 String taskId = "my_task"; in testBuilder_normalCaseWithResumptionToken() local 82 createExampleConsumption(taskId, selectionCriteria, exampleCount, resumptionToken); in testBuilder_normalCaseWithResumptionToken() 83 assertThat(consumption.getTaskId()).isEqualTo(taskId); in testBuilder_normalCaseWithResumptionToken() 93 String taskId = "my_task"; in testWriteToParcel() local 98 createExampleConsumption(taskId, selectionCriteria, exampleCount, resumptionToken); in testWriteToParcel() 107 assertThat(recoveredConsumption.getTaskId()).isEqualTo(taskId); in testWriteToParcel() 116 String taskId, in createExampleConsumption() argument [all …]
|
/packages/apps/Car/Launcher/app/tests/src/com/android/car/carlauncher/recents/ |
D | RecentTasksProviderTest.java | 243 int taskId = 500; in getRecentTaskIconAsync_sets_iconFromTaskDescription() local 248 mRecentTasksProvider.mRecentTaskIdToTaskMap.put(taskId, mTask); in getRecentTaskIconAsync_sets_iconFromTaskDescription() 253 public void recentTaskIconChange(int taskId) { in getRecentTaskIconAsync_sets_iconFromTaskDescription() 254 Drawable d = mRecentTasksProvider.getRecentTaskIcon(taskId); in getRecentTaskIconAsync_sets_iconFromTaskDescription() 261 mRecentTasksProvider.getRecentTaskIconAsync(taskId); in getRecentTaskIconAsync_sets_iconFromTaskDescription() 266 int taskId = 500; in getRecentTaskIconAsync_sets_iconFromPackageManager() local 274 mRecentTasksProvider.mRecentTaskIdToTaskMap.put(taskId, mTask); in getRecentTaskIconAsync_sets_iconFromPackageManager() 279 public void recentTaskIconChange(int taskId) { in getRecentTaskIconAsync_sets_iconFromPackageManager() 280 Drawable d = mRecentTasksProvider.getRecentTaskIcon(taskId); in getRecentTaskIconAsync_sets_iconFromPackageManager() 286 mRecentTasksProvider.getRecentTaskIconAsync(taskId); in getRecentTaskIconAsync_sets_iconFromPackageManager() [all …]
|
/packages/services/Car/service/src/com/android/car/am/ |
D | CarActivityService.java | 293 Trace.beginSection("CarActivityService-onTaskAppeared: " + taskInfo.taskId); in onTaskAppeared() 303 mTasks.put(taskInfo.taskId, taskInfo); in onTaskAppeared() 305 mTaskToSurfaceMap.put(taskInfo.taskId, leash); in onTaskAppeared() 315 Trace.beginSection("CarActivityService-notifyActivityCameOnTop: " + taskInfo.taskId); in notifyActivityCameOnTop() 325 Trace.beginSection("CarActivityService-notifyTaskVanished: " + taskInfo.taskId); in notifyTaskVanished() 354 "CarActivityService-onTaskVanished: " + taskInfo.taskId + "-byToken: " + token); in onTaskVanished() 364 mTasks.remove(taskInfo.taskId); in onTaskVanished() 365 mTaskToSurfaceMap.remove(taskInfo.taskId); in onTaskVanished() 378 "CarActivityService-onTaskInfoChanged: " + taskInfo.taskId + "-byToken: " + token); in onTaskInfoChanged() 386 TaskInfo oldTaskInfo = mTasks.remove(taskInfo.taskId); in onTaskInfoChanged() [all …]
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/icons/ |
D | DefaultTargetDataLoader.kt | 78 val taskId = nextTaskId.getAndIncrement() in <lambda>() constant 80 removeTask(taskId) in <lambda>() 83 .also { addTask(taskId, it) } in <lambda>() 93 val taskId = nextTaskId.getAndIncrement() in <lambda>() constant 100 removeTask(taskId) in <lambda>() 103 .also { addTask(taskId, it) } in <lambda>() 109 val taskId = nextTaskId.getAndIncrement() in <lambda>() constant 111 removeTask(taskId) in <lambda>() 114 .also { addTask(taskId, it) } in <lambda>()
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/training/ |
D | EligibilityDecider.java | 74 String taskId, in computeEligibility() argument 95 taskId, in computeEligibility() 104 taskId, in computeEligibility() 152 MinimumSeparationPolicy minSepPolicy, String populationName, String taskId, int jobId) { in isTaskEligibleUnderMinSeparationPolicy() argument 153 TaskHistory taskHistory = mTaskDao.getLatestTaskHistory(jobId, populationName, taskId); in isTaskEligibleUnderMinSeparationPolicy() 160 taskId, in isTaskEligibleUnderMinSeparationPolicy() 172 taskId, in isTaskEligibleUnderMinSeparationPolicy() 184 String taskId, in isTaskEligibleUnderDataAvailabilityPolicy() argument 208 taskId); in isTaskEligibleUnderDataAvailabilityPolicy() 220 taskId, in isTaskEligibleUnderDataAvailabilityPolicy() [all …]
|
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/quickstep/recents/data/ |
D | FakeTaskThumbnailDataSource.kt | 48 fun getNumberOfGetThumbnailCalls(taskId: Int): Int = getThumbnailCalls[taskId] ?: 0 in getNumberOfGetThumbnailCalls() 50 fun preventThumbnailLoad(taskId: Int) { in getNumberOfGetThumbnailCalls() 51 completionPrevented.add(taskId) in getNumberOfGetThumbnailCalls() 54 fun completeLoadingForTask(taskId: Int) { in completeLoadingForTask() 55 completionPrevented.remove(taskId) in completeLoadingForTask()
|
/packages/services/Car/car-builtin-lib/src/android/car/builtin/app/ |
D | ActivityManagerHelper.java | 151 int taskId = info.childTaskIds[i]; in stopAllTasksForUser() local 152 if (!am.removeTask(taskId)) { in stopAllTasksForUser() 153 Slogf.w(TAG, "could not remove task " + taskId); in stopAllTasksForUser() 189 public static void setFocusedTask(int taskId) { in setFocusedTask() argument 191 ActivityTaskManager.getService().setFocusedTask(taskId); in setFocusedTask() 200 public static boolean removeTask(int taskId) { in removeTask() argument 202 return getActivityManager().removeTask(taskId); in removeTask() 354 public static void moveRootTaskToDisplay(int taskId, int displayId) { in moveRootTaskToDisplay() argument 356 ActivityTaskManager.getService().moveRootTaskToDisplay(taskId, displayId); in moveRootTaskToDisplay() 358 Slogf.e(TAG, "Error moving task %d to display %d", e, taskId, displayId); in moveRootTaskToDisplay()
|
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/examplestore/ |
D | ExampleConsumptionRecorder.java | 58 String taskId, byte[] criteria, @Nullable String collectionUri) { in SingleQueryRecorder() argument 59 this.mTaskId = taskId; in SingleQueryRecorder() 93 String taskId, byte[] criteria) { in createRecorderForTracking() argument 94 SingleQueryRecorder recorder = new SingleQueryRecorder(taskId, criteria, null); in createRecorderForTracking() 101 String taskId, byte[] criteria, String collectionUri) { in createRecorderForTracking() argument 102 SingleQueryRecorder recorder = new SingleQueryRecorder(taskId, criteria, collectionUri); in createRecorderForTracking()
|
/packages/services/Car/car_product/car_ui_portrait/apps/CarUiPortraitLauncher/src/com/android/car/portraitlauncher/panel/ |
D | TaskViewPanelStateChangeReason.java | 53 private TaskViewPanelStateChangeReason(@Reason String reason, int taskId, in TaskViewPanelStateChangeReason() argument 56 mTaskId = taskId; in TaskViewPanelStateChangeReason() 65 public static TaskViewPanelStateChangeReason createReason(@Reason String reason, int taskId, in createReason() argument 67 return new TaskViewPanelStateChangeReason(reason, taskId, componentName, in createReason() 74 public static TaskViewPanelStateChangeReason createReason(@Reason String reason, int taskId) { in createReason() argument 75 return new TaskViewPanelStateChangeReason(reason, taskId, /* componentName= */ null, in createReason()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsTaskScheduler.java | 95 public void scheduleTask(int taskId) { in scheduleTask() argument 96 scheduleTask(taskId, null); in scheduleTask() 101 public void scheduleTask(int taskId, Object arg) { in scheduleTask() argument 113 mHandler.sendEmptyMessage(taskId); in scheduleTask() 115 mHandler.sendMessage(mHandler.obtainMessage(taskId, arg)); in scheduleTask() 124 public abstract void onPerformTask(int taskId, Object arg); in onPerformTask() argument
|
/packages/apps/Car/SystemUI/src/com/android/systemui/car/sideloaded/ |
D | SideLoadedAppListener.java | 55 public void onTaskCreated(int taskId, ComponentName componentName) throws RemoteException { in onTaskCreated() argument 56 super.onTaskCreated(taskId, componentName); in onTaskCreated() 59 RootTaskInfo taskInfo = getStackInfo(taskInfoList, taskId); in onTaskCreated() 61 Log.e(TAG, "Stack info was not available for taskId: " + taskId); in onTaskCreated() 99 private RootTaskInfo getStackInfo(List<RootTaskInfo> taskInfoList, int taskId) { in getStackInfo() argument 108 if (taskId == taskTaskId) { in getStackInfo()
|
/packages/services/Car/tests/CarLibUnitTest/src/android/car/remoteaccess/ |
D | CarRemoteAccessManagerUnitTest.java | 217 String taskId = "taskId_testing"; in testRemoteTaskRequested() local 218 prepareRemoteTaskRequested(remoteTaskClient, clientId, taskId, /* data= */ null); in testRemoteTaskRequested() 220 assertWithMessage("Task ID").that(remoteTaskClient.getTaskId()).isEqualTo(taskId); in testRemoteTaskRequested() 228 String taskId = "taskId_testing"; in testRemoteTaskRequested_withData() local 230 prepareRemoteTaskRequested(remoteTaskClient, clientId, taskId, data); in testRemoteTaskRequested_withData() 232 assertWithMessage("Task ID").that(remoteTaskClient.getTaskId()).isEqualTo(taskId); in testRemoteTaskRequested_withData() 246 String taskId = "taskId_testing"; in testRemoteTaskRequested_mismatchedClientId() local 251 internalCallback.onRemoteTaskRequested(misMatchedClientId, taskId, data, in testRemoteTaskRequested_mismatchedClientId() 262 String taskId = "taskId_testing"; in testReportRemoteTaskDone() local 263 prepareRemoteTaskRequested(remoteTaskClient, clientId, taskId, /* data= */ null); in testReportRemoteTaskDone() [all …]
|