Home
last modified time | relevance | path

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

123456

/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotCache.java58 @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 …]
DTaskSnapshotPersister.java114 void persistSnapshot(int taskId, int userId, TaskSnapshot snapshot) { in persistSnapshot() argument
116 mPersistedTaskIdsSinceLastRemoveObsolete.add(taskId); in persistSnapshot()
117 sendToQueueLocked(new StoreWriteQueueItem(taskId, userId, snapshot)); in persistSnapshot()
127 void onTaskRemovedFromRecents(int taskId, int userId) { in onTaskRemovedFromRecents() argument
129 mPersistedTaskIdsSinceLastRemoveObsolete.remove(taskId); in onTaskRemovedFromRecents()
130 sendToQueueLocked(new DeleteWriteQueueItem(taskId, userId)); in onTaskRemovedFromRecents()
202 File getProtoFile(int taskId, int userId) { in getProtoFile() argument
203 return new File(getDirectory(userId), taskId + PROTO_EXTENSION); in getProtoFile()
206 File getBitmapFile(int taskId, int userId) { in getBitmapFile() argument
212 return new File(getDirectory(userId), taskId + BITMAP_EXTENSION); in getBitmapFile()
[all …]
DTaskChangeNotificationController.java321 r.getTaskRecord().taskId, r.getStackId(), r.packageName); in notifyActivityPinned()
374 void notifyActivityForcedResizable(int taskId, int reason, String packageName) { in notifyActivityForcedResizable() argument
376 final Message msg = mHandler.obtainMessage(NOTIFY_FORCED_RESIZABLE_MSG, taskId, reason, in notifyActivityForcedResizable()
400 void notifyTaskCreated(int taskId, ComponentName componentName) { in notifyTaskCreated() argument
402 taskId, 0 /* unused */, componentName); in notifyTaskCreated()
407 void notifyTaskRemoved(int taskId) { in notifyTaskRemoved() argument
409 taskId, 0 /* unused */); in notifyTaskRemoved()
428 void notifyActivityRequestedOrientationChanged(int taskId, int orientation) { in notifyActivityRequestedOrientationChanged() argument
430 NOTIFY_ACTIVITY_REQUESTED_ORIENTATION_CHANGED_LISTENERS, taskId, orientation); in notifyActivityRequestedOrientationChanged()
450 void notifyTaskProfileLocked(int taskId, int userId) { in notifyTaskProfileLocked() argument
[all …]
DTaskPersister.java125 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 …]
DTaskSnapshotLoader.java66 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/
DTaskStackListener.java40 public void onActivityPinned(String packageName, int userId, int taskId, int stackId) in onActivityPinned() argument
66 public void onActivityForcedResizable(String packageName, int taskId, int reason) in onActivityForcedResizable() argument
97 public void onTaskCreated(int taskId, ComponentName componentName) throws RemoteException { in onTaskCreated() argument
102 public void onTaskRemoved(int taskId) throws RemoteException { in onTaskRemoved() argument
108 onTaskMovedToFront(taskInfo.taskId); in onTaskMovedToFront()
116 public void onTaskMovedToFront(int taskId) throws RemoteException { in onTaskMovedToFront() argument
122 onTaskRemovalStarted(taskInfo.taskId); in onTaskRemovalStarted()
129 public void onTaskRemovalStarted(int taskId) throws RemoteException { in onTaskRemovalStarted() argument
135 onTaskDescriptionChanged(taskInfo.taskId, taskInfo.taskDescription); in onTaskDescriptionChanged()
142 public void onTaskDescriptionChanged(int taskId, ActivityManager.TaskDescription td) in onTaskDescriptionChanged() argument
[all …]
DITaskStackListener.aidl33 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
179 void onTaskDisplayChanged(int taskId, int newDisplayId); in onTaskDisplayChanged() argument
DActivityTaskManager.java168 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()
DTaskInfo.java52 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()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DTaskStackChangeListener.java38 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
67 public void onTaskProfileLocked(int taskId, int userId) { } in onTaskProfileLocked() argument
68 public void onTaskCreated(int taskId, ComponentName componentName) { } in onTaskCreated() argument
69 public void onTaskRemoved(int taskId) { } in onTaskRemoved() argument
70 public void onTaskMovedToFront(int taskId) { } in onTaskMovedToFront() argument
73 onTaskMovedToFront(taskInfo.taskId); in onTaskMovedToFront()
76 public void onActivityRequestedOrientationChanged(int taskId, int requestedOrientation) { } in onActivityRequestedOrientationChanged() argument
87 public void onTaskDisplayChanged(int taskId, int newDisplayId) { } in onTaskDisplayChanged() argument
DTaskStackChangeListeners.java100 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 …]
DActivityManagerWrapper.java145 public @NonNull ThumbnailData getTaskThumbnail(int taskId, boolean reducedResolution) { in getTaskThumbnail() argument
148 snapshot = ActivityTaskManager.getService().getTaskSnapshot(taskId, reducedResolution); in getTaskThumbnail()
337 public boolean startActivityFromRecents(int taskId, ActivityOptions options) { in startActivityFromRecents() argument
340 ActivityTaskManager.getService().startActivityFromRecents(taskId, optsBundle); in startActivityFromRecents()
350 public boolean setTaskWindowingModeSplitScreenPrimary(int taskId, int createMode, in setTaskWindowingModeSplitScreenPrimary() argument
353 return ActivityTaskManager.getService().setTaskWindowingModeSplitScreenPrimary(taskId, in setTaskWindowingModeSplitScreenPrimary()
400 public void removeTask(final int taskId) {
405 ActivityTaskManager.getService().removeTask(taskId);
407 Log.w(TAG, "Failed to remove task=" + taskId, e);
432 public void cancelWindowTransition(int taskId) {
[all …]
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskStackChangedListenerTest.java112 public void onTaskCreated(int taskId, ComponentName componentName) in testTaskDescriptionChanged()
114 mTaskId = taskId; in testTaskDescriptionChanged()
117 public void onTaskDescriptionChanged(int taskId, TaskDescription td) in testTaskDescriptionChanged()
119 if (mTaskId == taskId && !TextUtils.isEmpty(td.getLabel())) { in testTaskDescriptionChanged()
120 params[0] = taskId; in testTaskDescriptionChanged()
127 int taskId; in testTaskDescriptionChanged() local
129 taskId = startTestActivity(ActivityTaskDescriptionChange.class).getTaskId(); in testTaskDescriptionChanged()
132 assertEquals(taskId, params[0]); in testTaskDescriptionChanged()
143 public void onActivityRequestedOrientationChanged(int taskId, in testActivityRequestedOrientationChanged()
145 params[0] = taskId; in testActivityRequestedOrientationChanged()
[all …]
/frameworks/base/core/java/android/view/
DAppTransitionAnimationSpec.java18 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()
DRemoteAnimationTarget.java85 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/
DForcedResizableInfoActivityController.java57 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/
DWorkLockActivityController.java55 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/
DActivityPinnedEvent.java26 public final int taskId; field in ActivityPinnedEvent
28 public ActivityPinnedEvent(int taskId) { in ActivityPinnedEvent() argument
29 this.taskId = taskId; in ActivityPinnedEvent()
DScreenPinningRequestEvent.java29 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/
DActivityPresentationInfo.java27 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/
DTaskSnapshotChangedEvent.java27 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/
DActivityManagerTest.java69 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/
DSelectionsRequest.java44 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/
DWorkLockActivityControllerTest.java118 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)
/frameworks/base/core/java/android/service/voice/
DIVoiceInteractionSession.aidl34 void handleAssist(int taskId, in IBinder activityId, in Bundle assistData, in handleAssist() argument
37 void taskStarted(in Intent intent, int taskId); in taskStarted() argument
38 void taskFinished(in Intent intent, int taskId); in taskFinished() argument

123456