summaryrefslogtreecommitdiffstats
path: root/include/input
diff options
context:
space:
mode:
authorRoboErik <epastern@google.com>2013-12-19 11:54:29 -0800
committerRoboErik <epastern@google.com>2013-12-19 11:54:29 -0800
commitec2a15a26f7c50b23a4196d17f106b5efa68560d (patch)
tree2dee943367e6137a90be880757693db22e5cec59 /include/input
parentb281d8140461322d2a9808244ce9ce3d31b35b9d (diff)
downloadframeworks_native-ec2a15a26f7c50b23a4196d17f106b5efa68560d.zip
frameworks_native-ec2a15a26f7c50b23a4196d17f106b5efa68560d.tar.gz
frameworks_native-ec2a15a26f7c50b23a4196d17f106b5efa68560d.tar.bz2
b/12068020 add nonce to InputDeviceDescriptor
Adds a nonce field to allow generation of unique descriptors for input devices. Change-Id: I978b6c5e9edc9e0a6aa60f85cd8d4efc42ac2999
Diffstat (limited to 'include/input')
-rw-r--r--include/input/InputDevice.h5
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;
};
/*