Hi,

Per the current implementation in SensorManager, the SensorThread is
polling data per below code,

final int sensor = sensors_data_poll(values, status, timestamp);

it then checks the sensor type if it is registered and processes the
data further.

For an application which has registered for only one sensor, still to
get that particular sensor data, SensorThread has to execute for
atleast N-1 loop most of the time.

Can anybody provide the insight as to, why SensorThread is waiting to
check the sensor type to be returned by the HAL instead of sending
sensor information which is currently registered by that application.
Wouldn't that increase the performance?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to