diff options
author | RoboErik <epastern@google.com> | 2013-12-19 11:54:29 -0800 |
---|---|---|
committer | RoboErik <epastern@google.com> | 2014-03-12 12:51:54 -0700 |
commit | d9e113f0e0feac1a801f8339d2f907302bd432c5 (patch) | |
tree | 7d52fdfd0d42fb4ad55ba87d17cc496a7e10052b | |
parent | 9b04f860f23481d39c3b45379a324d3630966825 (diff) | |
download | frameworks_native-d9e113f0e0feac1a801f8339d2f907302bd432c5.zip frameworks_native-d9e113f0e0feac1a801f8339d2f907302bd432c5.tar.gz frameworks_native-d9e113f0e0feac1a801f8339d2f907302bd432c5.tar.bz2 |
b/12068020 add nonce to InputDeviceDescriptor. Do not merge
This is a cherry-pick of https://googleplex-android-review.git.corp.google.com/#/c/401795/
Adds a nonce field to allow generation of unique descriptors for
input devices.
Change-Id: Ie82bfb728bea95792b3b138dd3974f8b0aff63e0
-rw-r--r-- | include/input/InputDevice.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/input/InputDevice.h b/include/input/InputDevice.h index 1419b45..adf9fb9 100644 --- a/include/input/InputDevice.h +++ b/include/input/InputDevice.h @@ -46,6 +46,11 @@ struct InputDeviceIdentifier { // Ideally, the way this value is computed should not change between Android releases // because that would invalidate persistent settings that rely on it. String8 descriptor; + + // A value added to uniquely identify a device in the absence of a unique id. This + // is intended to be a minimum way to distinguish from other active devices and may + // reuse values that are not associated with an input anymore. + uint16_t nonce; }; /* |