OSDN Git Service

Correctly blame ANR on process using another process token
authorWale Ogunwale <ogunwale@google.com>
Wed, 29 Mar 2017 19:58:24 +0000 (12:58 -0700)
committerWale Ogunwale <ogunwale@google.com>
Wed, 29 Mar 2017 20:11:03 +0000 (20:11 +0000)
commit7402ddf9b45efc9616676205534ce7b4fc3a13e6
tree5bdca187b53da30cb3a5cedd456287e90b268b9d
parentc463bed8dbfbb5bbac791299e8997282685e64d2
Correctly blame ANR on process using another process token

Activities can give their window tokens to other process to add
windows with. E.g. -1 screen on launcher. We were in correctly
blaming the process that gave out its token when an ANR occurs
because we were looking at the process associated with the activity.
This CL fixes that.

Test: manual
Change-Id: I08fca00d12ab89dc27eb104115fd375bb4e8ec66
Fixes: 36730136
services/core/java/com/android/server/am/ActivityRecord.java
services/core/java/com/android/server/wm/AppWindowContainerController.java
services/core/java/com/android/server/wm/AppWindowContainerListener.java
services/core/java/com/android/server/wm/InputMonitor.java