b/12068020 add nonce to InputDeviceDescriptor

Adds a nonce field to allow generation of unique descriptors for
input devices.

Change-Id: I978b6c5e9edc9e0a6aa60f85cd8d4efc42ac2999
This commit is contained in:
RoboErik 2013-12-19 11:54:29 -08:00
parent b281d81404
commit ec2a15a26f

View File

@ -46,6 +46,11 @@ struct InputDeviceIdentifier {
// Ideally, the way this value is computed should not change between Android releases // Ideally, the way this value is computed should not change between Android releases
// because that would invalidate persistent settings that rely on it. // because that would invalidate persistent settings that rely on it.
String8 descriptor; 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;
}; };
/* /*