/frameworks/base/services/core/java/com/android/server/wm/ |
D | TaskSnapshotCache.java | 58 @Nullable TaskSnapshot getSnapshot(int taskId, int userId, boolean restoreFromDisk, in getSnapshot() argument 63 final CacheEntry entry = mRunningCache.get(taskId); in getSnapshot() 73 return tryRestoreFromDisk(taskId, userId, reducedResolution); in getSnapshot() 79 private TaskSnapshot tryRestoreFromDisk(int taskId, int userId, boolean reducedResolution) { in tryRestoreFromDisk() argument 80 final TaskSnapshot snapshot = mLoader.loadTask(taskId, userId, reducedResolution); in tryRestoreFromDisk() 91 final Integer taskId = mAppTaskMap.get(wtoken); in onAppRemoved() local 92 if (taskId != null) { in onAppRemoved() 93 removeRunningEntry(taskId); in onAppRemoved() 101 final Integer taskId = mAppTaskMap.get(wtoken); in onAppDied() local 102 if (taskId != null) { in onAppDied() [all …]
|
D | TaskSnapshotPersister.java | 118 void persistSnapshot(int taskId, int userId, TaskSnapshot snapshot) { in persistSnapshot() argument 120 mPersistedTaskIdsSinceLastRemoveObsolete.add(taskId); in persistSnapshot() 121 sendToQueueLocked(new StoreWriteQueueItem(taskId, userId, snapshot)); in persistSnapshot() 131 void onTaskRemovedFromRecents(int taskId, int userId) { in onTaskRemovedFromRecents() argument 133 mPersistedTaskIdsSinceLastRemoveObsolete.remove(taskId); in onTaskRemovedFromRecents() 134 sendToQueueLocked(new DeleteWriteQueueItem(taskId, userId)); in onTaskRemovedFromRecents() 206 File getProtoFile(int taskId, int userId) { in getProtoFile() argument 207 return new File(getDirectory(userId), taskId + PROTO_EXTENSION); in getProtoFile() 210 File getBitmapFile(int taskId, int userId) { in getBitmapFile() argument 216 return new File(getDirectory(userId), taskId + BITMAP_EXTENSION); in getBitmapFile() [all …]
|
D | TaskPersister.java | 125 return file.getName().startsWith(Integer.toString(task.taskId)); in removeThumbnails() 259 private TaskRecord taskIdToTask(int taskId, ArrayList<TaskRecord> tasks) { in taskIdToTask() argument 260 if (taskId < 0) { in taskIdToTask() 265 if (task.taskId == taskId) { in taskIdToTask() 269 Slog.e(TAG, "Restore affiliation error looking for taskId=" + taskId); in taskIdToTask() 296 final int taskId = Integer.parseInt(taskFile.getName().substring( in restoreTasksForUserLocked() local 299 if (preaddedTasks.get(taskId, false)) { in restoreTasksForUserLocked() 300 Slog.w(TAG, "Task #" + taskId + in restoreTasksForUserLocked() 332 final int taskId = task.taskId; in restoreTasksForUserLocked() local 333 if (mService.mRootActivityContainer.anyTaskForId(taskId, in restoreTasksForUserLocked() [all …]
|
D | TaskChangeNotificationController.java | 337 r.getTaskRecord().taskId, r.getStackId(), r.packageName); in notifyActivityPinned() 390 void notifyActivityForcedResizable(int taskId, int reason, String packageName) { in notifyActivityForcedResizable() argument 392 final Message msg = mHandler.obtainMessage(NOTIFY_FORCED_RESIZABLE_MSG, taskId, reason, in notifyActivityForcedResizable() 416 void notifyTaskCreated(int taskId, ComponentName componentName) { in notifyTaskCreated() argument 418 taskId, 0 /* unused */, componentName); in notifyTaskCreated() 423 void notifyTaskRemoved(int taskId) { in notifyTaskRemoved() argument 425 taskId, 0 /* unused */); in notifyTaskRemoved() 444 void notifyActivityRequestedOrientationChanged(int taskId, int orientation) { in notifyActivityRequestedOrientationChanged() argument 446 NOTIFY_ACTIVITY_REQUESTED_ORIENTATION_CHANGED_LISTENERS, taskId, orientation); in notifyActivityRequestedOrientationChanged() 466 void notifyTaskProfileLocked(int taskId, int userId) { in notifyTaskProfileLocked() argument [all …]
|
D | TaskSnapshotLoader.java | 66 TaskSnapshot loadTask(int taskId, int userId, boolean reducedResolution) { in loadTask() argument 67 final File protoFile = mPersister.getProtoFile(taskId, userId); in loadTask() 69 ? mPersister.getReducedResolutionBitmapFile(taskId, userId) in loadTask() 70 : mPersister.getBitmapFile(taskId, userId); in loadTask() 101 Slog.w(TAG, "Unable to load task snapshot data for taskId=" + taskId); in loadTask()
|
/frameworks/base/core/java/android/app/ |
D | TaskStackListener.java | 45 public void onActivityPinned(String packageName, int userId, int taskId, int stackId) in onActivityPinned() argument 71 public void onActivityForcedResizable(String packageName, int taskId, int reason) in onActivityForcedResizable() argument 102 public void onTaskCreated(int taskId, ComponentName componentName) throws RemoteException { in onTaskCreated() argument 107 public void onTaskRemoved(int taskId) throws RemoteException { in onTaskRemoved() argument 113 onTaskMovedToFront(taskInfo.taskId); in onTaskMovedToFront() 121 public void onTaskMovedToFront(int taskId) throws RemoteException { in onTaskMovedToFront() argument 127 onTaskRemovalStarted(taskInfo.taskId); in onTaskRemovalStarted() 134 public void onTaskRemovalStarted(int taskId) throws RemoteException { in onTaskRemovalStarted() argument 140 onTaskDescriptionChanged(taskInfo.taskId, taskInfo.taskDescription); in onTaskDescriptionChanged() 147 public void onTaskDescriptionChanged(int taskId, ActivityManager.TaskDescription td) in onTaskDescriptionChanged() argument [all …]
|
D | ITaskStackListener.aidl | 33 void onActivityPinned(String packageName, int userId, int taskId, int stackId); in onActivityPinned() argument 66 void onActivityForcedResizable(String packageName, int taskId, int reason); in onActivityForcedResizable() argument 99 void onTaskCreated(int taskId, in ComponentName componentName); in onTaskCreated() argument 106 void onTaskRemoved(int taskId); in onTaskRemoved() argument 130 void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation); in onActivityRequestedOrientationChanged() argument 146 void onTaskProfileLocked(int taskId, int userId); in onTaskProfileLocked() argument 151 void onTaskSnapshotChanged(int taskId, in ActivityManager.TaskSnapshot snapshot); in onTaskSnapshotChanged() argument 194 void onTaskDisplayChanged(int taskId, int newDisplayId); in onTaskDisplayChanged() argument
|
D | ActivityTaskManager.java | 168 public void setTaskWindowingMode(int taskId, int windowingMode, boolean toTop) in setTaskWindowingMode() argument 171 getService().setTaskWindowingMode(taskId, windowingMode, toTop); in setTaskWindowingMode() 194 public void setTaskWindowingModeSplitScreenPrimary(int taskId, int createMode, boolean toTop, in setTaskWindowingModeSplitScreenPrimary() argument 197 getService().setTaskWindowingModeSplitScreenPrimary(taskId, createMode, toTop, animate, in setTaskWindowingModeSplitScreenPrimary() 323 public void startSystemLockTaskMode(int taskId) { in startSystemLockTaskMode() argument 325 getService().startSystemLockTaskMode(taskId); in startSystemLockTaskMode() 350 public void moveTaskToStack(int taskId, int stackId, boolean toTop) { in moveTaskToStack() argument 352 getService().moveTaskToStack(taskId, stackId, toTop); in moveTaskToStack() 380 public void resizeTask(int taskId, Rect bounds) { in resizeTask() argument 382 getService().resizeTask(taskId, bounds, RESIZE_MODE_SYSTEM); in resizeTask()
|
D | TaskInfo.java | 52 public int taskId; field in TaskInfo 156 return ActivityManager.getService().getTaskSnapshot(taskId, reducedResolution); in getTaskSnapshot() 158 Log.e(TAG, "Failed to get task snapshot, taskId=" + taskId, e); in getTaskSnapshot() 169 taskId = source.readInt(); in readFromParcel() 197 dest.writeInt(taskId); in writeToParcel() 228 return "TaskInfo{userId=" + userId + " stackId=" + stackId + " taskId=" + taskId in toString()
|
D | IActivityTaskManager.aidl | 118 int startActivityFromRecents(int taskId, in Bundle options); in startActivityFromRecents() argument 144 void setFocusedTask(int taskId); in setFocusedTask() argument 145 boolean removeTask(int taskId); in removeTask() argument 170 ActivityManager.TaskDescription getTaskDescription(int taskId); in getTaskDescription() argument 180 Rect getTaskBounds(int taskId); in getTaskBounds() argument 191 void startSystemLockTaskMode(int taskId); in startSystemLockTaskMode() argument 220 void setTaskResizeable(int taskId, int resizeableMode); in setTaskResizeable() argument 222 void resizeTask(int taskId, in Rect bounds, int resizeMode); in resizeTask() argument 233 void setTaskWindowingMode(int taskId, int windowingMode, boolean toTop); in setTaskWindowingMode() argument 234 void moveTaskToStack(int taskId, int stackId, boolean toTop); in moveTaskToStack() argument [all …]
|
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | TaskStackChangeListener.java | 38 public void onTaskSnapshotChanged(int taskId, ThumbnailData snapshot) { } in onTaskSnapshotChanged() argument 39 public void onActivityPinned(String packageName, int userId, int taskId, int stackId) { } in onActivityPinned() argument 44 public void onActivityForcedResizable(String packageName, int taskId, int reason) { } in onActivityForcedResizable() argument 82 public void onTaskProfileLocked(int taskId, int userId) { } in onTaskProfileLocked() argument 83 public void onTaskCreated(int taskId, ComponentName componentName) { } in onTaskCreated() argument 84 public void onTaskRemoved(int taskId) { } in onTaskRemoved() argument 85 public void onTaskMovedToFront(int taskId) { } in onTaskMovedToFront() argument 88 onTaskMovedToFront(taskInfo.taskId); in onTaskMovedToFront() 91 public void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation) { } in onActivityRequestedOrientationChanged() argument 102 public void onTaskDisplayChanged(int taskId, int newDisplayId) { } in onTaskDisplayChanged() argument
|
D | TaskStackChangeListeners.java | 100 public void onActivityPinned(String packageName, int userId, int taskId, int stackId) in onActivityPinned() argument 104 new PinnedActivityInfo(packageName, userId, taskId, stackId)).sendToTarget(); in onActivityPinned() 134 public void onActivityForcedResizable(String packageName, int taskId, int reason) in onActivityForcedResizable() argument 136 mHandler.obtainMessage(H.ON_ACTIVITY_FORCED_RESIZABLE, taskId, reason, packageName) in onActivityForcedResizable() 161 public void onTaskProfileLocked(int taskId, int userId) throws RemoteException { in onTaskProfileLocked() argument 162 mHandler.obtainMessage(H.ON_TASK_PROFILE_LOCKED, taskId, userId).sendToTarget(); in onTaskProfileLocked() 166 public void onTaskSnapshotChanged(int taskId, TaskSnapshot snapshot) throws RemoteException { in onTaskSnapshotChanged() argument 167 mHandler.obtainMessage(H.ON_TASK_SNAPSHOT_CHANGED, taskId, 0, snapshot).sendToTarget(); in onTaskSnapshotChanged() 171 public void onTaskCreated(int taskId, ComponentName componentName) throws RemoteException { in onTaskCreated() argument 172 mHandler.obtainMessage(H.ON_TASK_CREATED, taskId, 0, componentName).sendToTarget(); in onTaskCreated() [all …]
|
D | ActivityManagerWrapper.java | 147 public @NonNull ThumbnailData getTaskThumbnail(int taskId, boolean reducedResolution) { in getTaskThumbnail() argument 150 snapshot = ActivityTaskManager.getService().getTaskSnapshot(taskId, reducedResolution); in getTaskThumbnail() 334 public boolean startActivityFromRecents(int taskId, ActivityOptions options) { in startActivityFromRecents() argument 337 ActivityTaskManager.getService().startActivityFromRecents(taskId, optsBundle); in startActivityFromRecents() 347 public boolean setTaskWindowingModeSplitScreenPrimary(int taskId, int createMode, in setTaskWindowingModeSplitScreenPrimary() argument 350 return ActivityTaskManager.getService().setTaskWindowingModeSplitScreenPrimary(taskId, in setTaskWindowingModeSplitScreenPrimary() 397 public void removeTask(final int taskId) { 402 ActivityTaskManager.getService().removeTask(taskId); 404 Log.w(TAG, "Failed to remove task=" + taskId, e); 429 public void cancelWindowTransition(int taskId) { [all …]
|
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/ |
D | TaskStackChangedListenerTest.java | 118 public void onTaskCreated(int taskId, ComponentName componentName) in testTaskDescriptionChanged() 120 mTaskId = taskId; in testTaskDescriptionChanged() 123 public void onTaskDescriptionChanged(int taskId, TaskDescription td) in testTaskDescriptionChanged() 125 if (mTaskId == taskId && !TextUtils.isEmpty(td.getLabel())) { in testTaskDescriptionChanged() 126 params[0] = taskId; in testTaskDescriptionChanged() 133 int taskId; in testTaskDescriptionChanged() local 135 taskId = startTestActivity(ActivityTaskDescriptionChange.class).getTaskId(); in testTaskDescriptionChanged() 138 assertEquals(taskId, params[0]); in testTaskDescriptionChanged() 149 public void onActivityRequestedOrientationChanged(int taskId, in testActivityRequestedOrientationChanged() 151 params[0] = taskId; in testActivityRequestedOrientationChanged() [all …]
|
/frameworks/base/core/java/android/view/ |
D | AppTransitionAnimationSpec.java | 18 public final int taskId; field in AppTransitionAnimationSpec 23 public AppTransitionAnimationSpec(int taskId, GraphicBuffer 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()
|
D | RemoteAnimationTarget.java | 85 public final int taskId; field in RemoteAnimationTarget 166 public RemoteAnimationTarget(int taskId, int mode, SurfaceControl leash, boolean isTranslucent, in RemoteAnimationTarget() argument 171 this.taskId = taskId; in RemoteAnimationTarget() 186 taskId = in.readInt(); in RemoteAnimationTarget() 208 dest.writeInt(taskId); in writeToParcel() 225 pw.print(" taskId="); pw.print(taskId); in dump() 239 proto.write(TASK_ID, taskId); in writeToProto()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/stackdivider/ |
D | ForcedResizableInfoActivityController.java | 57 int taskId; field in ForcedResizableInfoActivityController.PendingTaskRecord 64 PendingTaskRecord(int taskId, int reason) { in PendingTaskRecord() argument 65 this.taskId = taskId; in PendingTaskRecord() 75 public void onActivityForcedResizable(String packageName, int taskId, in ForcedResizableInfoActivityController() 77 activityForcedResizable(packageName, taskId, reason); in ForcedResizableInfoActivityController() 114 private void activityForcedResizable(String packageName, int taskId, int reason) { in activityForcedResizable() argument 118 mPendingTasks.add(new PendingTaskRecord(taskId, reason)); in activityForcedResizable() 138 options.setLaunchTaskId(pendingRecord.taskId); in showPending()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/ |
D | WorkLockActivityController.java | 55 private void startWorkChallengeInTask(int taskId, int userId) { in startWorkChallengeInTask() argument 58 taskDescription = mIatm.getTaskDescription(taskId); in startWorkChallengeInTask() 60 Log.w(TAG, "Failed to get description for task=" + taskId); in startWorkChallengeInTask() 70 options.setLaunchTaskId(taskId); in startWorkChallengeInTask() 80 mIatm.removeTask(taskId); in startWorkChallengeInTask() 82 Log.w(TAG, "Failed to get description for task=" + taskId); in startWorkChallengeInTask() 114 public void onTaskProfileLocked(int taskId, int userId) { 115 startWorkChallengeInTask(taskId, userId);
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/events/component/ |
D | ActivityPinnedEvent.java | 26 public final int taskId; field in ActivityPinnedEvent 28 public ActivityPinnedEvent(int taskId) { in ActivityPinnedEvent() argument 29 this.taskId = taskId; in ActivityPinnedEvent()
|
D | ScreenPinningRequestEvent.java | 29 public final int taskId; field in ScreenPinningRequestEvent 31 public ScreenPinningRequestEvent(Context context, int taskId) { in ScreenPinningRequestEvent() argument 33 this.taskId = taskId; in ScreenPinningRequestEvent()
|
/frameworks/base/core/java/android/content/pm/ |
D | ActivityPresentationInfo.java | 27 public final int taskId; field in ActivityPresentationInfo 33 public ActivityPresentationInfo(int taskId, int displayId, in ActivityPresentationInfo() argument 35 this.taskId = taskId; in ActivityPresentationInfo()
|
/frameworks/base/packages/SystemUI/legacy/recents/src/com/android/systemui/recents/events/ui/ |
D | TaskSnapshotChangedEvent.java | 27 public final int taskId; field in TaskSnapshotChangedEvent 30 public TaskSnapshotChangedEvent(int taskId, ThumbnailData thumbnailData) { in TaskSnapshotChangedEvent() argument 31 this.taskId = taskId; in TaskSnapshotChangedEvent()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/am/ |
D | ActivityManagerTest.java | 69 int taskId = recentTask.taskId; in testTaskIdsForUser() local 70 assertEquals("The task id " + taskId + " should not belong to user " + userId, in testTaskIdsForUser() 71 taskId / UserHandle.PER_USER_RANGE, userId); in testTaskIdsForUser()
|
/frameworks/base/core/java/android/app/contentsuggestions/ |
D | SelectionsRequest.java | 44 private SelectionsRequest(int taskId, @Nullable Point interestPoint, @Nullable Bundle extras) { in SelectionsRequest() argument 45 mTaskId = taskId; in SelectionsRequest() 114 public Builder(int taskId) { in Builder() argument 115 mTaskId = taskId; in Builder()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/ |
D | WorkLockActivityControllerTest.java | 118 private void setActivityStartCode(int taskId, boolean taskOverlay, int code) throws Exception { in setActivityStartCode() argument 129 argThat(hasOptions(taskId, taskOverlay)), in setActivityStartCode() 133 private void verifyStartActivity(int taskId, boolean taskOverlay) throws Exception { in verifyStartActivity() argument 144 argThat(hasOptions(taskId, taskOverlay)), in verifyStartActivity() 158 private static ArgumentMatcher<Bundle> hasOptions(final int taskId, final boolean overlay) { 163 return (options.getLaunchTaskId() == taskId)
|