Lines Matching refs:newTask
957 * Reparents this activity into {@param newTask} at the provided {@param position}. The caller
958 * should ensure that the {@param newTask} is not already the parent of this activity.
960 void reparent(TaskRecord newTask, int position, String reason) {
962 if (prevTask == newTask) {
963 throw new IllegalArgumentException(reason + ": task=" + newTask
970 if (prevTask != null && newTask != null && prevTask.getStack() != newTask.getStack()) {
971 throw new IllegalArgumentException(reason + ": task=" + newTask
972 + " is in a different stack (" + newTask.getStackId() + ") than the parent of"
977 mWindowContainerController.reparent(newTask.getWindowContainerController(), position);
982 newTask.addActivityAtIndex(position, this);
2156 void showStartingWindow(ActivityRecord prev, boolean newTask, boolean taskSwitch) {
2157 showStartingWindow(prev, newTask, taskSwitch, false /* fromRecents */);
2160 void showStartingWindow(ActivityRecord prev, boolean newTask, boolean taskSwitch,
2174 prev != null ? prev.appToken : null, newTask, taskSwitch, isProcessRunning(),