replicant-frameworks_native/libs
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
..
binder Fix for writing empty strings to Parcel::writeString8() 2010-12-22 12:57:31 +01:00
gui Fix typo which causes sensors to fail miserably 2010-09-16 21:41:13 -07:00
surfaceflinger_client fix [3361121] hang in glClear() - device unresponsive, OTA fails (DO NOT MERGE) 2011-01-25 14:19:13 -08:00
ui Fix getSwitchState according to device capabilities. 2011-07-29 15:28:02 +02:00
utils am 3cf03987: Merge "Continue idmap generation even if name lookup fails." 2011-07-21 13:09:05 -07:00