diff options
author | Mathias Agopian <mathias@google.com> | 2013-08-19 22:59:16 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-08-19 22:59:16 +0000 |
commit | 5ba249e34a3840881a03e545ffba77cde5bf28ba (patch) | |
tree | c24cf3a5a4c1b99f037a3bd48f5cceb77e2a976e | |
parent | a7ff78d4edb046cfc106e450ad0733775aa22e22 (diff) | |
parent | 1599ec675579eaf8f8e7f79fc03648b9d838f475 (diff) | |
download | libhardware-5ba249e34a3840881a03e545ffba77cde5bf28ba.tar.gz |
Merge "Define a range for device specific sensors" into klp-dev
-rw-r--r-- | include/hardware/sensors.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h index 6e7ac5d0..4c13848b 100644 --- a/include/hardware/sensors.h +++ b/include/hardware/sensors.h @@ -142,7 +142,18 @@ enum { * * Each sensor has a type which defines what this sensor measures and how * measures are reported. All types are defined below. + * + * Device manufacturers (OEMs) can define their own sensor types, for + * their private use by applications or services provided by them. Such + * sensor types are specific to an OEM and can't be exposed in the SDK. + * These types must start at SENSOR_TYPE_DEVICE_PRIVATE_BASE. + */ + +/* + * Base for device manufacturers private sensor types. + * These sensor types can't be exposed in the SDK. */ +#define SENSOR_TYPE_DEVICE_PRIVATE_BASE 0x10000 /* * Sensor fusion and virtual sensors |