commit | fbca596721ea19daa2972639095898ce62100490 | [log] [tgz] |
---|---|---|
author | David Deephanphongs <dpanpong@google.com> | Mon Nov 14 14:50:45 2011 -0800 |
committer | David Deephanphongs <dpanpong@google.com> | Tue Nov 15 11:10:07 2011 -0800 |
tree | 6dec24bb8d7b40c7d6c5a38b07b5872ff8d77c23 | |
parent | 28a5ec9613a824d2ec15ce5e5cec77a6fcf444d5 [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: I1ef6251d73af916b51f408a41c5e4adf5bdc237a