android_system_core/include
Jeff Brown 48da31b735 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
2013-07-30 13:56:55 -07:00
..
android Remove libjnigraphics. moved to frameworks/base/native 2010-02-04 15:32:07 -08:00
corkscrew Add flush_my_map_info_list() and fix a bug in the Mac load_map_info_list(). 2013-05-14 19:49:30 -07:00
ctest auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00
cutils Move liblog headers to system/core/include/log 2013-07-24 12:32:39 -07:00
diskconfig diskconfig: Add missing include for loff_t 2012-07-23 16:11:59 -07:00
ion Add explicit sync call to ion library 2012-09-20 09:46:19 -07:00
log Move liblog headers to system/core/include/log 2013-07-24 12:32:39 -07:00
mincrypt mincrypt: support SHA-256 hash algorithm 2013-04-10 14:33:31 -07:00
netutils Support 4 dns servers, up from 2 2013-01-10 11:36:09 -08:00
pixelflinger pixelflinger: Fix function naming typo: gglBitBlti 2010-08-10 02:56:47 +08:00
private am 9e9ed1b4: am 131ee07b: Merge "Add a new group for MediaDrm engine plugins" into jb-mr2-dev 2013-04-24 21:56:49 -07:00
sync sync: factor sw_sync functionality out of header 2013-03-05 15:53:24 -08:00
system get rid of HAL pixelformats 5551 and 4444 2013-07-26 14:50:26 -07:00
sysutils libsysutils: Increase command buffersize and command args 2012-11-12 14:40:21 +01:00
usbhost libusbhost: permits client polling on inotify wd 2012-12-10 11:12:35 +01:00
utils Add keycodes and meta-key modifiers to support external keyboards. 2013-07-30 13:56:55 -07:00
zipfile auto import from //depot/cupcake/@135843 2009-03-03 19:32:55 -08:00