replicant-frameworks_native/include/utils
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
..
ashmem.h
Asset.h Support streaming of compressed assets > 1 megabyte 2010-07-28 15:33:28 -07:00
AssetDir.h
AssetManager.h More native work. 2010-08-11 00:29:59 -07:00
Atomic.h
BackupHelpers.h
BitSet.h Add suuport for splitting touch events across windows. 2010-09-26 22:20:12 -07:00
BufferedTextOutput.h
ByteOrder.h
CallStack.h
Debug.h
Endian.h
Errors.h
FileMap.h
Flattenable.h
KeyedVector.h
List.h
Log.h
Looper.h Switch Looper back to using poll() instead of epoll(). 2010-10-07 13:26:39 -07:00
misc.h
ObbFile.h OBB: use PBKDF2 for key generation. 2010-10-13 18:25:33 -07:00
Pool.h Native input dispatch rewrite work in progress. 2010-06-13 17:42:16 -07:00
RefBase.h Fix a bug in sp<> and wp<> which could cause memory corruptions 2010-06-24 21:49:02 -07:00
ResourceTypes.h More native work. 2010-08-11 00:29:59 -07:00
SharedBuffer.h auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
Singleton.h Purge Skia objects from GL caches as needed. 2010-09-08 18:04:33 -07:00
SortedVector.h
StopWatch.h Native input dispatch rewrite work in progress. 2010-06-13 17:42:16 -07:00
StreamingZipInflater.h Support streaming of compressed assets > 1 megabyte 2010-07-28 15:33:28 -07:00
String8.h Add keycodes and meta-key modifiers to support external keyboards. 2010-10-15 16:00:07 -07:00
String16.h
StringArray.h
SystemClock.h
TextOutput.h
threads.h added RWLock C++ wrapper 2010-05-19 15:12:59 -07:00
Timers.h
TypeHelpers.h
Vector.h Even more native input dispatch work in progress. 2010-06-17 13:27:16 -07:00
VectorImpl.h Even more native input dispatch work in progress. 2010-06-17 13:27:16 -07:00
ZipFileCRO.h ZipUtilsRO rewrite based on Dalvik Zip rewrite 2010-05-12 05:07:48 -07:00
ZipFileRO.h Use pread() in ZipFileRO for Linux 2010-10-04 15:17:19 -07:00
ZipUtils.h