summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Xu <pengxu@google.com>2017-08-29 20:36:09 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-08-29 20:36:09 +0000
commit0b2872c78458e142ee7fc441243afa7903178c27 (patch)
treefe2dc19ae4871654080785006e485b8236c7eda3
parentc85724298ea41159b488525f943d8796f9281454 (diff)
parent443a4acbf7d1dffca1db3494af39407cec4e3231 (diff)
downloadlibhardware-0b2872c78458e142ee7fc441243afa7903178c27.tar.gz
Merge "Sensor: HAL guideline clarification upon activation request"
-rw-r--r--include/hardware/sensors.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/include/hardware/sensors.h b/include/hardware/sensors.h
index dde997fd..d058d3b6 100644
--- a/include/hardware/sensors.h
+++ b/include/hardware/sensors.h
@@ -578,10 +578,11 @@ typedef struct sensors_poll_device_1 {
* sensor_handle is the handle of the sensor to change.
* enabled set to 1 to enable, or 0 to disable the sensor.
*
- * After sensor de-activation, existing sensor events that have not
- * been picked up by poll() should be abandoned immediately so that
- * subsequent activation will not get stale sensor events (events
- * that is generated prior to the latter activation).
+ * Before sensor activation, existing sensor events that have not
+ * been picked up by poll() should be abandoned so that application
+ * upon new activation request will not get stale events.
+ * (events that are generated during latter activation or during
+ * data injection mode after sensor deactivation)
*
* Return 0 on success, negative errno code otherwise.
*/