I'm developing a sensor HUB for Android M.
Please let me ask about Sensor HAL specifications for it.
I'd apprecate if someone can answer them.

I found the Injection mode in Android M's sensors.h (sensor hal version 
1.4).
In this file, Comments define specifications of this mode and 
sensors_poll_device_1_t::inject_sensor_data() method.

I have some questions about it.

* Which will sensors be injected sensor data by SensorService ?
    I know that the Injection mode will target all sensors which have 
"SENSOR_HAL_DATA_INJECTION_MODE" flag.
    But, it is not clear for me which sensors will be injected sensor data 
in this mode by SensorService.

    For example, Both accelerometer and step counter have this flag.
    In this case, will step counter be injected sensor data ?
    (I believe that I don't have to take care of this case...)

* Before entering the Injection mode, will SensorService deactivate all 
sensors ?
    Or, is it ok to deactivate automatically all sensors which have 
 "SENSOR_HAL_DATA_INJECTION_MODE" flag ?

* Should timestamp value in sensor_event_t which injected 
by inject_sensor_data() be used ?
    I think that it should be.
    Is it correct ?

Best Regard,
takio

-- 
-- 
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting

--- 
You received this message because you are subscribed to the Google Groups 
"android-porting" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to