Merge "[sensor] Clarification of sensor HAL behavior at deactivation" am: 04302ea2fa
am: 4b59f97c82
am: 52946f658e
am: 4b36c5e462
Change-Id: I62618abbff602765669ce16660e3f00e071a3c4c
This commit is contained in:
commit
9dd99334af
1 changed files with 6 additions and 1 deletions
|
@ -1309,11 +1309,16 @@ typedef struct sensors_poll_device_1 {
|
||||||
struct {
|
struct {
|
||||||
struct hw_device_t common;
|
struct hw_device_t common;
|
||||||
|
|
||||||
/* Activate/de-activate one sensor. Return 0 on success, negative
|
/* Activate/de-activate one sensor.
|
||||||
*
|
*
|
||||||
* sensor_handle is the handle of the sensor to change.
|
* sensor_handle is the handle of the sensor to change.
|
||||||
* enabled set to 1 to enable, or 0 to disable the sensor.
|
* 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).
|
||||||
|
*
|
||||||
* Return 0 on success, negative errno code otherwise.
|
* Return 0 on success, negative errno code otherwise.
|
||||||
*/
|
*/
|
||||||
int (*activate)(struct sensors_poll_device_t *dev,
|
int (*activate)(struct sensors_poll_device_t *dev,
|
||||||
|
|
Loading…
Reference in a new issue