replicant-frameworks_native/libs/ui
Michaël Burtin 5aa3d79025 Fix getSwitchState according to device capabilities.
When querying switch state for a given device id, ensure that the device
exposes the given switch in its capabilities, report AKEY_STATE_UNKNOWN
otherwise.
This fix a bug in InputManager that reports an incorrect switch state
(down) when a device exposes at least one switch in its capabilites and
another switch is queried. For example, this can leads in always
reporting LID state open (SW_LID down) if only SW_HEADPHONE_INSERT is
exposed in capabilities.

Change-Id: I4e5265ec02af918c317673789e7948529842aa2d
Signed-off-by: Michaël Burtin <mburtin@gmail.com>
2011-07-29 15:28:02 +02:00
..
tests am 265cf2e7: Merge "Fix getSwitchState." 2011-01-22 21:32:58 -08:00
Android.mk Add logging of various important graphics events 2010-09-13 23:16:58 -07:00
EGLUtils.cpp Use EGL_NATIVE_VISUAL_ID to select EGLConfig 2011-01-16 17:57:20 -08:00
EventHub.cpp Fix getSwitchState according to device capabilities. 2011-07-29 15:28:02 +02:00
EventRecurrence.cpp auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
FramebufferNativeWindow.cpp am a15e4886: Merge "Framebuffer: Support variable number of framebuffers in the UI" 2010-11-17 17:29:48 -08:00
GraphicBuffer.cpp Tweaks for forward-compatibility 2011-06-18 09:42:04 -07:00
GraphicBufferAllocator.cpp revert the surface purgatory list and dependent changes. 2011-03-09 17:00:41 -08: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 Merge "Implement support for ALT and SHIFT modifiers" 2011-04-29 09:59:55 -07:00
InputManager.cpp Input dispatcher ANR handling enhancements. 2010-09-12 16:52:03 -07:00
InputReader.cpp modify the device to enable to get the state as slide-open/slide-close. 2011-03-31 11:53:15 +09: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 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08: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 frameworks/base: Destroy the overlay even if there is an error 2010-11-22 14:03:18 -08: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 fix [3148312] Region can access data out of bounds 2010-10-29 15:14:08 -07:00