Please provide some insight on the below query. We are planning to optimize Sensor data poll mechanism to poll the data of only those sensors which are registered by that application. Is it okay to modify the mechanism written in SensorManager.java or is there any dependency on the current code writen?
Thanks, Sandhya On Jun 3, 2:56 pm, sandhya <[email protected]> wrote: > Hi, > > Per the current implementation in SensorManager, the SensorThread is > pollingdataper below code, > > final intsensor= sensors_data_poll(values, status, timestamp); > > it then checks thesensortype if it is registered and processes thedatafurther. > > For an application which has registered for only onesensor, still to > get that particularsensordata, 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 thesensortype to be returned by the HAL instead of > sendingsensorinformation 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

