replicant-frameworks_native/services/sensorservice
Ricardo Cerqueira c77679141d sensorservice: Fix init sequence for pre-1.1 API sensor HALs
The sensors API introduced a new flush() method that older binaries
won't have. For those, replace the firstFlush invocation with a
setDelay call since a lot of implementations interpreted that as
the initialization step.
We also don't want any kind of call to flush() to happen when it
isn't there, since it'll either hit a random OEM extension or
a memory address we really don't want to execute.

Change-Id: I26ce923fe385751fed7d1c483a53c074249f0620

sensorservice: Set the rate for pre-1.1 HALs _after_ activation

We want to be sure these are applied in the same sequence they
used to be...

Change-Id: Ied2ba08ed3c4bed3a80bac6ab5471fcea9ba2c09
2015-11-07 13:48:42 -08:00
..
tests SensorServiceTest: Fix build, warnings. 2015-05-02 21:03:44 -07:00
Android.mk move services executables sources in their respective src folder 2013-07-22 12:25:18 -07:00
BatteryService.cpp Cleanup Binder interface between sensorservice and BatteryStats 2013-09-25 09:28:41 -07:00
BatteryService.h Cleanup Binder interface between sensorservice and BatteryStats 2013-09-25 09:28:41 -07:00
CorrectedGyroSensor.cpp native frameworks: 64-bit compile issues 2014-03-12 13:12:44 -07:00
CorrectedGyroSensor.h 9-axis sensor fusion with Kalman filter 2012-06-27 17:07:54 -07:00
Fusion.cpp revert parts of dc5b63e40, which made gyro drift estimation unstable 2013-05-30 14:26:36 -07:00
Fusion.h Fix occasional fusion divergence by detecting it and resetting the fusion. 2012-06-27 17:07:55 -07:00
GravitySensor.cpp native frameworks: 64-bit compile issues 2014-03-12 13:12:44 -07:00
GravitySensor.h use quaternions instead of MRPs 2012-06-27 17:07:55 -07:00
LinearAccelerationSensor.cpp Fix for AOSP fusion sensors not handling multiple clients correctly. 2013-09-16 15:49:49 -07:00
LinearAccelerationSensor.h 9-axis sensor fusion with Kalman filter 2012-06-27 17:07:54 -07:00
main_sensorservice.cpp native frameworks: 64-bit compile issues 2014-03-12 13:12:44 -07:00
mat.h Fix occasional fusion divergence by detecting it and resetting the fusion. 2012-06-27 17:07:55 -07:00
OrientationSensor.cpp native frameworks: 64-bit compile issues 2014-03-12 13:12:44 -07:00
OrientationSensor.h 9-axis sensor fusion with Kalman filter 2012-06-27 17:07:54 -07:00
quat.h use quaternions instead of MRPs 2012-06-27 17:07:55 -07:00
RotationVectorSensor.cpp native frameworks: 64-bit compile issues 2014-03-12 13:12:44 -07:00
RotationVectorSensor.h use quaternions instead of MRPs 2012-06-27 17:07:55 -07:00
SensorDevice.cpp More information in sensor bugreports. 2015-06-18 14:24:05 -07:00
SensorDevice.h Add body sensors app op - framework native 2015-05-01 13:51:45 -07:00
SensorFusion.cpp am cdbf28b3: Merge "native frameworks: 64-bit compile issues" 2014-03-13 23:18:43 +00:00
SensorFusion.h Bug fix for SensorFusion data rate. 2014-03-06 19:07:18 +00:00
SensorInterface.cpp Surface maxDelay and isWakeUpSensor flag in Sensor.java. 2014-05-23 18:58:01 -07:00
SensorInterface.h native frameworks: 64-bit compile issues 2014-03-12 13:12:44 -07:00
SensorService.cpp sensorservice: Fix init sequence for pre-1.1 API sensor HALs 2015-11-07 13:48:42 -08:00
SensorService.h Enable sensor data injection mode through adb. 2015-06-30 14:59:58 -07:00
traits.h 9-axis sensor fusion with Kalman filter 2012-06-27 17:07:54 -07:00
vec.h More error checks to avoid div by zero. 2012-06-27 17:07:55 -07:00