replicant-frameworks_native/libs/ui
Jeff Brown 6a817e22e4 Add keycodes and meta-key modifiers to support external keyboards.
Added new key maps for external keyboards.  These maps are intended to
be shared across devices by inheriting the "keyboards.mk" product
makefile as part of the device's product definition.

One of the trickier changes here was to unwind some code in
MetaKeyKeyListener that assumed that only the low 8 bits of the meta key
state were actually used.  The new code abandons bitshifts in favor
of simple conditionals that are probably easier to read anyways.
The special meta key state constants used by MetaKeyKeyListener
are now (@hide) defined in KeyEvent now so as to make it clearer that they
share the same code space even if those codes are not valid for KeyEvents.

The EventHub now takes care of detecting the appropriate key layout
map and key character map when the device is added and sets system
properties accordingly.  This avoids having duplicate code in
KeyCharacterMap to probe for the appropriate key character map
although the current probing mechanism has been preserved for legacy
reasons just in case.

Added support for tracking caps lock, num lock and scroll lock and
turning their corresponding LEDs on and off as needed.

The key character map format will need to be updated to correctly support
PC style external keyboard semantics related to modifier keys.
That will come in a later change so caps lock doesn't actually do
anything right now except turn the shiny LEDs on and off...

Added a list of symbolic key names to KeyEvent and improved the toString()
output for debug diagnosis.  Having this list in a central place in the
framework also allows us to remove it from Monkey so there is one less
thing to maintain when we add new keycodes.

Bug: 2912307
Change-Id: If8c25e8d50a7c29bbf5d663c94284f5f86de5da4
2010-10-15 16:00:07 -07:00
..
tests Add support for secure views. 2010-09-08 11:50:55 -07:00
Android.mk Add logging of various important graphics events 2010-09-13 23:16:58 -07:00
EGLUtils.cpp added EGLUtils::strerror 2009-08-07 16:37:21 -07:00
EventHub.cpp Add keycodes and meta-key modifiers to support external keyboards. 2010-10-15 16:00:07 -07:00
EventRecurrence.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
FramebufferNativeWindow.cpp Add logging of various important graphics events 2010-09-13 23:16:58 -07:00
GraphicBuffer.cpp Move binder magic from the Surface class to GraphicBuffer. 2010-10-10 13:09:46 -07:00
GraphicBufferAllocator.cpp when a zero dimension buffer is allocated, turn the allocation into 2010-04-15 15:23:25 -07:00
GraphicBufferMapper.cpp fix [2168531] have software-only gralloc buffer side-step the HAL 2009-10-06 17:00:25 -07:00
GraphicLog.cpp Fix sim-eng build on Hardy 2010-09-16 16:28:13 -07:00
Input.cpp Add support for secure views. 2010-09-08 11:50:55 -07:00
InputDispatcher.cpp am 4b255a23: am 03aa28fb: Merge "Improve the input policy handling a bit." into gingerbread 2010-10-13 17:02:48 -07:00
InputManager.cpp Input dispatcher ANR handling enhancements. 2010-09-12 16:52:03 -07:00
InputReader.cpp Add keycodes and meta-key modifiers to support external keyboards. 2010-10-15 16:00:07 -07:00
InputTransport.cpp Ensure input dispatcher and native looper handles EINTR. 2010-09-16 17:04:52 -07:00
IOverlay.cpp some work to try to reduce the code size of some native libraries 2009-05-26 16:12:20 -07:00
KeyCharacterMap.cpp Add keycodes and meta-key modifiers to support external keyboards. 2010-10-15 16:00:07 -07:00
KeyLayoutMap.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
KeyLayoutMap.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
NOTICE auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
Overlay.cpp Adding resizeInput and setAttributes for overlay 2009-07-29 17:53:38 -07:00
PixelFormat.cpp remove unused pixel format 2010-08-19 13:11:42 -07:00
Rect.cpp Add ANativeWindow API for directly drawing to the surface bits. 2010-07-09 16:58:19 -07:00
Region.cpp Remove a dependency of Region (libui) on Parcel (libbinder). 2010-02-17 20:26:47 -08:00