diff options
author | Mathias Agopian <mathias@google.com> | 2013-08-19 14:34:47 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-08-19 14:41:12 -0700 |
commit | 1599ec675579eaf8f8e7f79fc03648b9d838f475 (patch) | |
tree | df134d76abbe06e3b9dc12915522c3f238f865b2 /include/hardware/sensors.h | |
parent | 299e43c186a9c8a6611d8c5f61d158436948afe5 (diff) | |
download | hardware_libhardware-1599ec675579eaf8f8e7f79fc03648b9d838f475.zip hardware_libhardware-1599ec675579eaf8f8e7f79fc03648b9d838f475.tar.gz hardware_libhardware-1599ec675579eaf8f8e7f79fc03648b9d838f475.tar.bz2 |
Define a range for device specific sensors
Bug: 9551417
Change-Id: I5412d9c063743a0e99e8839a0758337c72a8725e
Diffstat (limited to 'include/hardware/sensors.h')
-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 6e7ac5d..4c13848 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 |