Go to file
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
cmds KeyStore: Update the parameters of generating master keys. 2010-10-01 01:42:55 +08:00
include Fix getSwitchState according to device capabilities. 2011-07-29 15:28:02 +02:00
libs Fix getSwitchState according to device capabilities. 2011-07-29 15:28:02 +02:00
opengl Merge from gingerbread 2011-03-29 13:54:43 -07:00
services/surfaceflinger am afffa8fa: fix RefBase so it retains binary-compatibility with gingerbread (DO NOT MERGE) 2011-06-15 14:13:04 -07:00
vpn Phase 2 of test cleanup: moving test files from AndroidTests closer to their sources. 2010-01-29 13:35:51 -08:00
MODULE_LICENSE_APACHE2 auto import from //depot/cupcake/@135843 2009-03-03 19:31:44 -08:00
NOTICE Fix omission in NOTICE file. 2011-01-18 15:25:32 -08:00