commit | 16c3e3f68a3a3f37be3ad033126b931cf30d971c | [log] [tgz] |
---|---|---|
author | David Deephanphongs <dpanpong@google.com> | Mon Nov 14 14:50:45 2011 -0800 |
committer | Jeff Brown <jeffbrown@android.com> | Thu Mar 22 13:25:16 2012 -0700 |
tree | 705baee3b225a6e46fe0bebfafef7a66ebf0cd61 | |
parent | 1f9e749914c7c636bd759da0209e68d5801407ac [diff] |
Modify getState to prefer AKEY_STATE_DOWN and AKEY_STATE_UP over AKEY_STATE_UNKNOWN. For the getState() routines that operate on multiple devices / mappers: Return AKEY_STATE_DOWN (or AKEY_STATE_VIRTUAL) if any of the devices/mappers have the key down. Otherwise, return AKEY_STATE_UP if at least one device/mapper returns AKEY_STATE_UP. Otherwise, return AKEY_STATE_UNKNOWN. Change-Id: I45a1f83d751c3c0cbfcc744dd3d6f0137ec8e01a