From 1599ec675579eaf8f8e7f79fc03648b9d838f475 Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 19 Aug 2013 14:34:47 -0700 Subject: Define a range for device specific sensors Bug: 9551417 Change-Id: I5412d9c063743a0e99e8839a0758337c72a8725e --- include/hardware/sensors.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/hardware/sensors.h') 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 -- cgit v1.1