From 8200b20fe6e68e68264efe133f21ac8df079a563 Mon Sep 17 00:00:00 2001 From: Ken Shirriff Date: Thu, 4 Feb 2010 13:34:37 -0800 Subject: [PATCH] Change key dispatch timeout logging. The mToken logging seems redundant and confusing. Clarify what sending to means. Clarify what dispatch state and current state mean. --- .../java/com/android/server/WindowManagerService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index 88aadbd665ce2..263e6dbd0c755 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -5465,7 +5465,6 @@ public class WindowManagerService extends IWindowManager.Stub curFocus = mCurrentFocus; // cache the paused state at ctor time as well if (theFocus == null || theFocus.mToken == null) { - Log.i(TAG, "focus " + theFocus + " mToken is null at event dispatch!"); focusPaused = false; } else { focusPaused = theFocus.mToken.paused; @@ -5651,10 +5650,11 @@ public class WindowManagerService extends IWindowManager.Stub synchronized (this) { Log.w(TAG, "Key dispatching timed out sending to " + (targetWin != null ? targetWin.mAttrs.getTitle() - : "")); + : ": no window ready for key dispatch")); // NOSHIP debugging - Log.w(TAG, "Dispatch state: " + mDispatchState); - Log.w(TAG, "Current state: " + new DispatchState(nextKey, targetWin)); + Log.w(TAG, "Previous dispatch state: " + mDispatchState); + Log.w(TAG, "Current dispatch state: " + + new DispatchState(nextKey, targetWin)); // END NOSHIP //dump(); if (targetWin != null) {