summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinod Krishnan <vinodkrishnan@google.com>2014-08-28 23:08:37 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-08-28 23:08:37 +0000
commit38014a7c819ae81bbc5f92b0f43ebd464faa4a97 (patch)
treef22a5b68f88e013c2ac8ef2793632fea9e5e8c1f
parent611a3b71431293a123a11af99ff731ab30067632 (diff)
parent74279e3c23bd62c70d53098be91db85df5a68ece (diff)
downloadlibhardware-38014a7c819ae81bbc5f92b0f43ebd464faa4a97.tar.gz
am 74279e3c: Adding information about the first activation
* commit '74279e3c23bd62c70d53098be91db85df5a68ece': Adding information about the first activation
-rw-r--r--include/hardware/sensors.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h
index 418c3480..cc080919 100644
--- a/include/hardware/sensors.h
+++ b/include/hardware/sensors.h
@@ -804,9 +804,11 @@ enum {
*
* Because this sensor is on-change, events must be generated when and only
* when heart_rate.bpm or heart_rate.status have changed since the last
- * event. The event should be generated no faster than every period_ns passed
- * to setDelay() or to batch(). See the definition of the on-change trigger
- * mode for more information.
+ * event. In particular, upon the first activation, unless the device is known
+ * to not be on the body, the status field of the first event must be set to
+ * SENSOR_STATUS_UNRELIABLE. The event should be generated no faster than every
+ * period_ns passed to setDelay() or to batch().
+ * See the definition of the on-change trigger mode for more information.
*
* sensor_t.requiredPermission must be set to SENSOR_PERMISSION_BODY_SENSORS.
*/