Add low latency offbody detect sensor type
Adds new SENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT sensor type
Bug: 32492601
Test: no
Change-Id: If811d13d5b2708496b981ddfb1e887c677836103
diff --git a/sensors/1.0/types.hal b/sensors/1.0/types.hal
index ba4921c..460cef5 100644
--- a/sensors/1.0/types.hal
+++ b/sensors/1.0/types.hal
@@ -674,6 +674,29 @@
SENSOR_TYPE_ADDITIONAL_INFO = 33,
/*
+ * SENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT
+ * trigger-mode: on-change
+ * wake-up sensor: yes
+ *
+ * A sensor of this type is defined for devices that are supposed to be worn
+ * by the user in the normal use case (such as a watch, wristband, etc) and
+ * is not yet defined for other device.
+ *
+ * A sensor of this type triggers an event each time the wearable device
+ * is removed from the body and each time it's put back onto the body.
+ * It must be low-latency and be able to detect the on-body to off-body
+ * transition within one second (event delivery time included),
+ * and 3-second latency to determine the off-body to on-body transition
+ * (event delivery time included).
+ *
+ * There are only two valid event values for the sensor to return :
+ * 0.0 for off-body
+ * 1.0 for on-body
+ *
+ */
+ SENSOR_TYPE_LOW_LATENCY_OFFBODY_DETECT = 34,
+
+ /*
* Base for device manufacturers private sensor types.
* These sensor types can't be exposed in the SDK.
*/