replicant-frameworks_native/services/sensorservice
Mathias Agopian f001c92436 Add support for virtual sensors.
Rework sensorservice to allow "virtual sensors", that is
sensors that report a synthetized value based on real sensors.

the main change to sensorservice is around managing which real
sensor need to be activated and which rate to use.

The logic for all this has been moved into SensorDevice, which
essentially wraps the sensor HAL but adds two features to it:
- it keeps track of which sensors need to be activated
- it keeps track of what rate needs to be used

For this purpose an "identity" is associated with each real sensor
activation, so we can track them.

On start-up we check for gravity, linear-acceleration and
rotation-vector sensors, if they're not present in the HAL, we
synthetize them in sensor-service.

Change-Id: I841db2c1b37ef127ed571efa21732ecc5adf1800
2012-06-27 17:07:54 -07:00
..
tests improve sensorservice dumpsys and increase the max sensor rate to 1 ms (1000Hz) 2012-06-27 17:07:54 -07:00
Android.mk Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
GravitySensor.cpp Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
GravitySensor.h Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
LinearAccelerationSensor.cpp Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
LinearAccelerationSensor.h Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
RotationVectorSensor.cpp Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
RotationVectorSensor.h Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
SecondOrderLowPassFilter.cpp Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
SecondOrderLowPassFilter.h Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
SensorDevice.cpp Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
SensorDevice.h Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
SensorInterface.cpp Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
SensorInterface.h Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
SensorService.cpp Add support for virtual sensors. 2012-06-27 17:07:54 -07:00
SensorService.h Add support for virtual sensors. 2012-06-27 17:07:54 -07:00