From a2e92266b3f768f74ab7fcb42972a22d6c739b39 Mon Sep 17 00:00:00 2001 From: Dianne Hackborn Date: Tue, 2 Mar 2010 17:19:29 -0800 Subject: Maybe fix issue #2482201: Paired bluetooth device looks like a qwerty keyboard We now only consider a device to be a default keyboard if its name has "-keypad". A hack, but whatever. Also add some debug logging for the input state to help identify such issues in the future. --- services/java/com/android/server/WindowManagerService.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'services/java/com/android/server/WindowManagerService.java') diff --git a/services/java/com/android/server/WindowManagerService.java b/services/java/com/android/server/WindowManagerService.java index 67eba3d..8781263 100644 --- a/services/java/com/android/server/WindowManagerService.java +++ b/services/java/com/android/server/WindowManagerService.java @@ -10851,6 +10851,10 @@ public class WindowManagerService extends IWindowManager.Stub return; } + pw.println("Input State:"); + mQueue.dump(pw, " "); + pw.println(" "); + synchronized(mWindowMap) { pw.println("Current Window Manager state:"); for (int i=mWindows.size()-1; i>=0; i--) { @@ -11014,7 +11018,7 @@ public class WindowManagerService extends IWindowManager.Stub if (mDimAnimator != null) { mDimAnimator.printTo(pw); } else { - pw.print( " no DimAnimator "); + pw.println( " no DimAnimator "); } pw.print(" mInputMethodAnimLayerAdjustment="); pw.print(mInputMethodAnimLayerAdjustment); -- cgit v1.1