Loading services/core/java/com/android/server/am/AppTaskImpl.java +7 −3 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.server.am; package com.android.server.am; import static com.android.server.am.ActivityStackSupervisor.MATCH_TASK_IN_STACKS_OR_RECENT_TASKS; import static com.android.server.am.ActivityStackSupervisor.REMOVE_FROM_RECENTS; import static com.android.server.am.ActivityStackSupervisor.REMOVE_FROM_RECENTS; import android.app.ActivityManager; import android.app.ActivityManager; Loading Loading @@ -76,7 +77,8 @@ class AppTaskImpl extends IAppTask.Stub { synchronized (mService) { synchronized (mService) { long origId = Binder.clearCallingIdentity(); long origId = Binder.clearCallingIdentity(); try { try { TaskRecord tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId); TaskRecord tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId, MATCH_TASK_IN_STACKS_OR_RECENT_TASKS); 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 Loading @@ -110,7 +112,8 @@ class AppTaskImpl extends IAppTask.Stub { TaskRecord tr; TaskRecord tr; IApplicationThread appThread; IApplicationThread appThread; synchronized (mService) { synchronized (mService) { tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId); tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId, MATCH_TASK_IN_STACKS_OR_RECENT_TASKS); 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 @@ -131,7 +134,8 @@ class AppTaskImpl extends IAppTask.Stub { synchronized (mService) { synchronized (mService) { long origId = Binder.clearCallingIdentity(); long origId = Binder.clearCallingIdentity(); try { try { TaskRecord tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId); TaskRecord tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId, MATCH_TASK_IN_STACKS_OR_RECENT_TASKS); 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 Loading
services/core/java/com/android/server/am/AppTaskImpl.java +7 −3 Original line number Original line Diff line number Diff line Loading @@ -16,6 +16,7 @@ package com.android.server.am; package com.android.server.am; import static com.android.server.am.ActivityStackSupervisor.MATCH_TASK_IN_STACKS_OR_RECENT_TASKS; import static com.android.server.am.ActivityStackSupervisor.REMOVE_FROM_RECENTS; import static com.android.server.am.ActivityStackSupervisor.REMOVE_FROM_RECENTS; import android.app.ActivityManager; import android.app.ActivityManager; Loading Loading @@ -76,7 +77,8 @@ class AppTaskImpl extends IAppTask.Stub { synchronized (mService) { synchronized (mService) { long origId = Binder.clearCallingIdentity(); long origId = Binder.clearCallingIdentity(); try { try { TaskRecord tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId); TaskRecord tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId, MATCH_TASK_IN_STACKS_OR_RECENT_TASKS); 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 Loading @@ -110,7 +112,8 @@ class AppTaskImpl extends IAppTask.Stub { TaskRecord tr; TaskRecord tr; IApplicationThread appThread; IApplicationThread appThread; synchronized (mService) { synchronized (mService) { tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId); tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId, MATCH_TASK_IN_STACKS_OR_RECENT_TASKS); 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 @@ -131,7 +134,8 @@ class AppTaskImpl extends IAppTask.Stub { synchronized (mService) { synchronized (mService) { long origId = Binder.clearCallingIdentity(); long origId = Binder.clearCallingIdentity(); try { try { TaskRecord tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId); TaskRecord tr = mService.mStackSupervisor.anyTaskForIdLocked(mTaskId, MATCH_TASK_IN_STACKS_OR_RECENT_TASKS); 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