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
Android.mk
BatteryService.cpp
BatteryService.h
CorrectedGyroSensor.cpp
CorrectedGyroSensor.h
Fusion.cpp
Fusion.h
GravitySensor.cpp
GravitySensor.h
LinearAccelerationSensor.cpp
LinearAccelerationSensor.h
main_sensorservice.cpp
mat.h
OrientationSensor.cpp
OrientationSensor.h
quat.h
RotationVectorSensor.cpp
RotationVectorSensor.h
SensorDevice.cpp
SensorDevice.h
SensorFusion.cpp
SensorFusion.h
SensorInterface.cpp
SensorInterface.h
SensorService.cpp sensorservice: Fix init sequence for pre-1.1 API sensor HALs 2015-11-07 13:48:42 -08:00
SensorService.h
traits.h
vec.h