replicant-frameworks_native/include/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
..
egl fix [2835280] Add support for cancelling buffers to ANativeWindow 2010-10-04 20:10:11 -07:00
android_native_buffer.h Tweaks for forward-compatibility 2011-06-18 09:42:04 -07:00
DisplayInfo.h
EGLNativeSurface.h
EGLUtils.h
EventHub.h Fix getSwitchState according to device capabilities. 2011-07-29 15:28:02 +02:00
FramebufferNativeWindow.h am a15e4886: Merge "Framebuffer: Support variable number of framebuffers in the UI" 2010-11-17 17:29:48 -08:00
GraphicBuffer.h Tweaks for forward-compatibility 2011-06-18 09:42:04 -07:00
GraphicBufferAllocator.h [3171580] don't automatically log GraphicBuffer allocation failures 2010-12-03 17:33:09 -08:00
GraphicBufferMapper.h
GraphicLog.h fix a typo where the eventtags code were wrong 2010-09-15 12:46:59 -07:00
Input.h Fix getSwitchState. 2011-01-19 20:35:47 -08:00
InputDispatcher.h Drop all dispatcher state when dispatcher is disabled. 2010-10-27 18:43:51 -07:00
InputManager.h Input dispatcher ANR handling enhancements. 2010-09-12 16:52:03 -07:00
InputReader.h Filter virtual keys after touches. (DO NOT MERGE) 2011-01-11 20:56:04 -08:00
InputTransport.h Replace epoll() with poll() and rename PollLoop to Looper. 2010-09-14 01:59:45 -07:00
IOverlay.h
KeyCharacterMap.h
KeycodeLabels.h Support haptic feedback for virtual keys defined in key layout. 2010-10-01 15:08:56 -07:00
Overlay.h
PixelFormat.h fix a bug I introduced recently where YUV formats would crash the system 2010-02-16 20:43:39 -08:00
Point.h
PowerManager.h Input dispatcher ANR handling enhancements. 2010-09-12 16:52:03 -07:00
Rect.h Add ANativeWindow API for directly drawing to the surface bits. 2010-07-09 16:58:19 -07:00
Region.h Remove a dependency of Region (libui) on Parcel (libbinder). 2010-02-17 20:26:47 -08:00