replicant-frameworks_native/libs/ui
Jeff Brown cb203b228b Fix getSwitchState.
InputReader::getSwitchState always returns AKEY_STATE_UNKNOWN
because SwitchInputMapper::getSources() returns 0 which cannot
match any source mask including AINPUT_SOURCE_ANY.  As a result
initial lid switch detection is broken.

This change adds a new source constant AINPUT_SOURCE_SWITCH
that indicates that the source has switches.

Change-Id: I5321ecf0ce84f1c2b4535f6c163d3f4dcf9b7a9b
2011-01-19 20:35:47 -08:00
..
tests Fix getSwitchState. 2011-01-19 20:35:47 -08:00
Android.mk
EGLUtils.cpp
EventHub.cpp Add unit tests for native input and fix bugs identified. 2010-10-23 03:52:57 -07:00
EventRecurrence.cpp
FramebufferNativeWindow.cpp am a15e4886: Merge "Framebuffer: Support variable number of framebuffers in the UI" 2010-11-17 17:29:48 -08:00
GraphicBuffer.cpp
GraphicBufferAllocator.cpp
GraphicBufferMapper.cpp
GraphicLog.cpp Fix sim-eng build on Hardy 2010-09-16 16:28:13 -07:00
Input.cpp
InputDispatcher.cpp Fix a key repeating bug. (DO NOT MERGE) 2010-11-17 19:42:04 -08:00
InputManager.cpp
InputReader.cpp Fix getSwitchState. 2011-01-19 20:35:47 -08:00
InputTransport.cpp Ensure input dispatcher and native looper handles EINTR. 2010-09-16 17:04:52 -07:00
IOverlay.cpp
KeyCharacterMap.cpp
KeyLayoutMap.cpp
KeyLayoutMap.h
MODULE_LICENSE_APACHE2
NOTICE
Overlay.cpp frameworks/base: Destroy the overlay even if there is an error 2010-11-22 14:03:18 -08:00
PixelFormat.cpp
Rect.cpp
Region.cpp fix [3148312] Region can access data out of bounds 2010-10-29 15:14:08 -07:00