Lines Matching defs:taskId

4154     public final int startActivityFromRecents(int taskId, Bundle options) {
4161 return startActivityFromRecentsInner(taskId, options);
4164 final int startActivityFromRecentsInner(int taskId, Bundle options) {
4171 task = mStackSupervisor.anyTaskForIdLocked(taskId);
4173 throw new IllegalArgumentException("Task " + taskId + " not found.");
4176 moveTaskToFrontLocked(task.taskId, 0, null);
4340 res = removeTaskByIdLocked(tr.taskId, false);
5176 removeTaskByIdLocked(tr.taskId, false);
8351 rti.id = tr.getTopActivity() == null ? INVALID_TASK_ID : tr.taskId;
8352 rti.persistentId = tr.taskId;
8591 return task.taskId;
8617 public void setTaskResizeable(int taskId, boolean resizeable) {
8619 TaskRecord task = mStackSupervisor.anyTaskForIdLocked(taskId, false);
8621 Slog.w(TAG, "setTaskResizeable: taskId=" + taskId + " not found");
8633 public void resizeTask(int taskId, Rect bounds) {
8639 TaskRecord task = mStackSupervisor.anyTaskForIdLocked(taskId);
8641 Slog.w(TAG, "resizeTask: taskId=" + taskId + " not found");
8714 if (tr.taskId != otherTask.taskId && otherTask.inRecents) {
8753 removeTaskByIdLocked(tr.taskId, true);
8771 removeTaskByIdLocked(tr.taskId, false);
8779 * @param taskId Identifier of the task to be removed.
8783 private boolean removeTaskByIdLocked(int taskId, boolean killProcess) {
8784 TaskRecord tr = mStackSupervisor.anyTaskForIdLocked(taskId, false);
8793 Slog.w(TAG, "Request to remove task ignored for non-existent task " + taskId);
8798 public boolean removeTask(int taskId) {
8804 return removeTaskByIdLocked(taskId, true);
8815 public void moveTaskToFront(int taskId, int flags, Bundle options) {
8818 if (DEBUG_STACK) Slog.d(TAG_STACK, "moveTaskToFront: moving taskId=" + taskId);
8820 moveTaskToFrontLocked(taskId, flags, options);
8824 void moveTaskToFrontLocked(int taskId, int flags, Bundle options) {
8832 final TaskRecord task = mStackSupervisor.anyTaskForIdLocked(taskId);
8834 Slog.d(TAG, "Could not find task for id: "+ taskId);
8868 int taskId = ActivityRecord.getTaskForActivityLocked(token, !nonRoot);
8869 final TaskRecord task = mStackSupervisor.anyTaskForIdLocked(taskId);
8875 return ActivityRecord.getStackLocked(token).moveTaskToBackLocked(taskId);
8959 public void moveTaskToStack(int taskId, int stackId, boolean toTop) {
8963 Slog.e(TAG, "moveTaskToStack: Attempt to move task " + taskId + " to home stack",
8969 if (DEBUG_STACK) Slog.d(TAG_STACK, "moveTaskToStack: moving task=" + taskId
8971 mStackSupervisor.moveTaskToStackLocked(taskId, stackId, toTop);
9021 public boolean isInHomeStack(int taskId) {
9027 TaskRecord tr = mStackSupervisor.anyTaskForIdLocked(taskId, false);
9111 public void startLockTaskMode(int taskId) {
9113 final TaskRecord task = mStackSupervisor.anyTaskForIdLocked(taskId);
13970 pw.print(" id="); pw.println(lastTask.taskId);
20653 public AppTaskImpl(int taskId, int callingUid) {
20654 mTaskId = taskId;