Loading services/core/java/com/android/server/wm/AnrController.java +12 −5 Original line number Diff line number Diff line Loading @@ -182,12 +182,19 @@ class AnrController { } windowState = target.getWindowState(); pid = target.getPid(); if (windowState != null) { // Blame the activity if the input token belongs to the window. If the target is // embedded, then we will blame the pid instead. activity = (windowState.mInputChannelToken == inputToken) ? windowState.mActivityRecord : null; Slog.i(TAG_WM, "ANR in " + target + ". Reason:" + timeoutRecord.mReason); aboveSystem = isWindowAboveSystem(windowState); } else { // Embedded windows without a host window state are assumed to be above // system layers activity = null; aboveSystem = true; } Slog.i(TAG_WM, "ANR in " + target + ". Reason:" + timeoutRecord.mReason); } if (activity != null) { activity.inputDispatchingTimedOut(timeoutRecord, pid); Loading Loading
services/core/java/com/android/server/wm/AnrController.java +12 −5 Original line number Diff line number Diff line Loading @@ -182,12 +182,19 @@ class AnrController { } windowState = target.getWindowState(); pid = target.getPid(); if (windowState != null) { // Blame the activity if the input token belongs to the window. If the target is // embedded, then we will blame the pid instead. activity = (windowState.mInputChannelToken == inputToken) ? windowState.mActivityRecord : null; Slog.i(TAG_WM, "ANR in " + target + ". Reason:" + timeoutRecord.mReason); aboveSystem = isWindowAboveSystem(windowState); } else { // Embedded windows without a host window state are assumed to be above // system layers activity = null; aboveSystem = true; } Slog.i(TAG_WM, "ANR in " + target + ". Reason:" + timeoutRecord.mReason); } if (activity != null) { activity.inputDispatchingTimedOut(timeoutRecord, pid); Loading