OSDN Git Service

Look for recent tasks in live stacks.
authorWale Ogunwale <ogunwale@google.com>
Fri, 7 Aug 2015 00:16:02 +0000 (17:16 -0700)
committerWale Ogunwale <ogunwale@google.com>
Fri, 7 Aug 2015 00:26:01 +0000 (00:26 +0000)
commita0ef49c44f7d845e3465591ea977d0c9996c4e5e
tree45b8646ac4e8be84ab37f54a9671ec67f8a33a7c
parent8f26616d1a1765267d6a3ba09e7ac1bd6edeca67
Look for recent tasks in live stacks.

It is possible for a tasks not to have been saved to the
persisted recent list yet for various reasons. This causes
some external calls to fail when they are trying to do
an operation on a task with a given id. We now use the
stack supervisor look-up for a task id that checks
everywhere a task might be including live stack. It this
fails then the task truly doesn't exist.

Bug: 22924782
Change-Id: I57c3df41d0b4f3ee3c5ae9b7d01eeb2b352062b4
services/core/java/com/android/server/am/ActivityManagerService.java