Loading services/core/java/com/android/server/am/ActivityManagerService.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -4118,7 +4118,7 @@ public final class ActivityManagerService extends ActivityManagerNative final Intent intent; final Intent intent; final int userId; final int userId; synchronized (this) { synchronized (this) { task = mRecentTasks.taskForIdLocked(taskId); task = mStackSupervisor.anyTaskForIdLocked(taskId); if (task == null) { if (task == null) { throw new IllegalArgumentException("Task " + taskId + " not found."); throw new IllegalArgumentException("Task " + taskId + " not found."); } } Loading Loading @@ -8805,7 +8805,7 @@ public final class ActivityManagerService extends ActivityManagerNative final long origId = Binder.clearCallingIdentity(); final long origId = Binder.clearCallingIdentity(); try { try { int taskId = ActivityRecord.getTaskForActivityLocked(token, !nonRoot); int taskId = ActivityRecord.getTaskForActivityLocked(token, !nonRoot); final TaskRecord task = mRecentTasks.taskForIdLocked(taskId); final TaskRecord task = mStackSupervisor.anyTaskForIdLocked(taskId); if (task != null) { if (task != null) { if (mStackSupervisor.isLockedTask(task)) { if (mStackSupervisor.isLockedTask(task)) { mStackSupervisor.showLockTaskToast(); mStackSupervisor.showLockTaskToast(); Loading Loading @@ -20573,7 +20573,7 @@ public final class ActivityManagerService extends ActivityManagerNative synchronized (ActivityManagerService.this) { synchronized (ActivityManagerService.this) { long origId = Binder.clearCallingIdentity(); long origId = Binder.clearCallingIdentity(); try { try { TaskRecord tr = mRecentTasks.taskForIdLocked(mTaskId); TaskRecord tr = mStackSupervisor.anyTaskForIdLocked(mTaskId); if (tr == null) { if (tr == null) { throw new IllegalArgumentException("Unable to find task ID " + mTaskId); throw new IllegalArgumentException("Unable to find task ID " + mTaskId); } } Loading @@ -20600,7 +20600,7 @@ public final class ActivityManagerService extends ActivityManagerNative TaskRecord tr; TaskRecord tr; IApplicationThread appThread; IApplicationThread appThread; synchronized (ActivityManagerService.this) { synchronized (ActivityManagerService.this) { tr = mRecentTasks.taskForIdLocked(mTaskId); tr = mStackSupervisor.anyTaskForIdLocked(mTaskId); if (tr == null) { if (tr == null) { throw new IllegalArgumentException("Unable to find task ID " + mTaskId); throw new IllegalArgumentException("Unable to find task ID " + mTaskId); } } Loading @@ -20621,7 +20621,7 @@ public final class ActivityManagerService extends ActivityManagerNative synchronized (ActivityManagerService.this) { synchronized (ActivityManagerService.this) { long origId = Binder.clearCallingIdentity(); long origId = Binder.clearCallingIdentity(); try { try { TaskRecord tr = mRecentTasks.taskForIdLocked(mTaskId); TaskRecord tr = mStackSupervisor.anyTaskForIdLocked(mTaskId); if (tr == null) { if (tr == null) { throw new IllegalArgumentException("Unable to find task ID " + mTaskId); throw new IllegalArgumentException("Unable to find task ID " + mTaskId); } } Loading
services/core/java/com/android/server/am/ActivityManagerService.java +5 −5 Original line number Original line Diff line number Diff line Loading @@ -4118,7 +4118,7 @@ public final class ActivityManagerService extends ActivityManagerNative final Intent intent; final Intent intent; final int userId; final int userId; synchronized (this) { synchronized (this) { task = mRecentTasks.taskForIdLocked(taskId); task = mStackSupervisor.anyTaskForIdLocked(taskId); if (task == null) { if (task == null) { throw new IllegalArgumentException("Task " + taskId + " not found."); throw new IllegalArgumentException("Task " + taskId + " not found."); } } Loading Loading @@ -8805,7 +8805,7 @@ public final class ActivityManagerService extends ActivityManagerNative final long origId = Binder.clearCallingIdentity(); final long origId = Binder.clearCallingIdentity(); try { try { int taskId = ActivityRecord.getTaskForActivityLocked(token, !nonRoot); int taskId = ActivityRecord.getTaskForActivityLocked(token, !nonRoot); final TaskRecord task = mRecentTasks.taskForIdLocked(taskId); final TaskRecord task = mStackSupervisor.anyTaskForIdLocked(taskId); if (task != null) { if (task != null) { if (mStackSupervisor.isLockedTask(task)) { if (mStackSupervisor.isLockedTask(task)) { mStackSupervisor.showLockTaskToast(); mStackSupervisor.showLockTaskToast(); Loading Loading @@ -20573,7 +20573,7 @@ public final class ActivityManagerService extends ActivityManagerNative synchronized (ActivityManagerService.this) { synchronized (ActivityManagerService.this) { long origId = Binder.clearCallingIdentity(); long origId = Binder.clearCallingIdentity(); try { try { TaskRecord tr = mRecentTasks.taskForIdLocked(mTaskId); TaskRecord tr = mStackSupervisor.anyTaskForIdLocked(mTaskId); if (tr == null) { if (tr == null) { throw new IllegalArgumentException("Unable to find task ID " + mTaskId); throw new IllegalArgumentException("Unable to find task ID " + mTaskId); } } Loading @@ -20600,7 +20600,7 @@ public final class ActivityManagerService extends ActivityManagerNative TaskRecord tr; TaskRecord tr; IApplicationThread appThread; IApplicationThread appThread; synchronized (ActivityManagerService.this) { synchronized (ActivityManagerService.this) { tr = mRecentTasks.taskForIdLocked(mTaskId); tr = mStackSupervisor.anyTaskForIdLocked(mTaskId); if (tr == null) { if (tr == null) { throw new IllegalArgumentException("Unable to find task ID " + mTaskId); throw new IllegalArgumentException("Unable to find task ID " + mTaskId); } } Loading @@ -20621,7 +20621,7 @@ public final class ActivityManagerService extends ActivityManagerNative synchronized (ActivityManagerService.this) { synchronized (ActivityManagerService.this) { long origId = Binder.clearCallingIdentity(); long origId = Binder.clearCallingIdentity(); try { try { TaskRecord tr = mRecentTasks.taskForIdLocked(mTaskId); TaskRecord tr = mStackSupervisor.anyTaskForIdLocked(mTaskId); if (tr == null) { if (tr == null) { throw new IllegalArgumentException("Unable to find task ID " + mTaskId); throw new IllegalArgumentException("Unable to find task ID " + mTaskId); } }