Lines Matching refs:task

568      * waiting to receive all of the thumbnails for a task.
719 * in. Incremented each time a new task is created.
2664 final void addRecentTaskLocked(TaskRecord task) {
2666 // Quick case: check if the top-most recent task is the same.
2667 if (N > 0 && mRecentTasks.get(0) == task) {
2670 // Remove any existing entries that are the same kind of task.
2673 if (task.userId == tr.userId
2674 && ((task.affinity != null && task.affinity.equals(tr.affinity))
2675 || (task.intent != null && task.intent.filterEquals(tr.intent)))) {
2679 if (task.intent == null) {
2680 // If the new recent task we are adding is not fully
2681 // specified, then replace it with the existing recent task.
2682 task = tr;
2689 mRecentTasks.add(0, task);
3881 && (samePackage || r.task == lastTask)
3899 lastTask = r.task;
5655 // Initialize state for next task if needed.
5658 && top.task == r.task)) {
5660 curTask = r.task;
5664 // Add 'r' into the current task.
5672 + ": task=" + r.task);
5674 // If the next one is a different task, generate a new
5676 if (next == null || next.task != curTask) {
5873 Slog.w(TAG, "Now component for base intent of task: " + tr);
5902 Slog.i(TAG, "Killing " + pr.toShortString() + ": remove task");
5904 pr.processName, pr.setAdj, "remove task");
5908 pr.waitingToKill = "remove task";
5923 mRecentTasks.remove(r.task);
5924 cleanUpRemovedTaskLocked(r.task, flags);
5939 // Caller is just removing a recent task that is
5945 Slog.w(TAG, "removeTask: task " + taskId
5961 TaskRecord startTask = ((ActivityRecord)mMainStack.mHistory.get(startIndex)).task;
5967 if (r.task != jt) {
5968 jt = r.task;
5980 if (r.task != jt) {
5984 jt = r.task;
5989 if (affinity.equals(((ActivityRecord)mMainStack.mHistory.get(N-1)).task.affinity)) {
5999 public void moveTaskToFront(int task, int flags, Bundle options) {
6011 TaskRecord tr = taskForIdLocked(task);
6018 // we'll just move the home task to the top first.
6026 if (hr.task.taskId == task) {
6032 // we'll just move the home task to the top first.
6035 mMainStack.moveTaskToFrontLocked(hr.task, null, options);
6046 public void moveTaskToBack(int task) {
6052 && mMainStack.mResumedActivity.task.taskId == task) {
6059 mMainStack.moveTaskToBackLocked(task, null);
6065 * Moves an activity, and all of the other activities within the same task, to the bottom
6066 * of the history stack. The activity's order within the task is unchanged.
6070 * of a task; if true it will work for any activity in a task.
6086 public void moveTaskBackwards(int task) {
6096 moveTaskBackwardsLocked(task);
6101 private final void moveTaskBackwardsLocked(int task) {
6117 if (!onlyRoot || lastTask != r.task) {
6118 return r.task.taskId;
6122 lastTask = r.task;
6142 TaskRecord task = null;
6164 task = r.task;
6195 task != null ? task.taskId : -1, thumbnail, description);
9689 if (lastTask != r.task) {
9690 lastTask = r.task;
9939 if (lastTask != r.task) {
9940 lastTask = r.task;
12438 return srec != null && srec.task.affinity != null &&
12439 srec.task.affinity.equals(destAffinity);
12461 TaskRecord tr = srec.task;
12464 if (tr != r.task) {
12465 // Couldn't find parent in the same task; stop at the one above this.
12466 // (Root of current task; in-app "home" behavior)