OSDN Git Service

Improve handling of built-in keyboard.
authorJeff Brown <jeffbrown@google.com>
Tue, 1 May 2012 22:54:03 +0000 (15:54 -0700)
committerJeff Brown <jeffbrown@google.com>
Tue, 1 May 2012 23:34:20 +0000 (16:34 -0700)
commitdaa3753a04699724d2cfe824ac1f5a266d643a05
treeddc33d395dd0f3d01a95775397356983fb28a076
parent32c8113510b2774f865e8ac763976b90d9db2706
Improve handling of built-in keyboard.

The window manager policy made some incorrect assumptions about the
meaning of the Configuration.keyboard field.  We need to be more
careful about distinguishing between built-in and external keyboards.

Most of this change is to move the determination of the parts of
the Configuration related to input devices into the WindowManagerService
leveraging new features of the InputManagerService to good effect.

Then we plumb through the flag that indicates whether a device
is internal or external so that we can be more particular about
how the lid switch effects changes to the Configuration.

Bug: 6424373
Change-Id: I36a1c22ade35e578955465a25940a33f227b9763
14 files changed:
core/java/android/view/InputDevice.java
core/java/android/view/WindowManagerPolicy.java
core/jni/android_view_InputDevice.cpp
include/androidfw/Input.h
include/androidfw/InputDevice.h
libs/androidfw/InputDevice.cpp
policy/src/com/android/internal/policy/impl/PhoneWindowManager.java
services/input/InputReader.cpp
services/input/InputReader.h
services/input/tests/InputReader_test.cpp
services/java/com/android/server/PowerManagerService.java
services/java/com/android/server/input/InputManagerService.java
services/java/com/android/server/wm/WindowManagerService.java
services/jni/com_android_server_input_InputManagerService.cpp