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
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
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
GraphicLog.cpp
Input.cpp
InputDispatcher.cpp Merge "Implement support for ALT and SHIFT modifiers" 2011-04-29 09:59:55 -07:00
InputManager.cpp
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
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