replicant-frameworks_native/services/sensorservice
Mathias Agopian 787ac1b388 improve sensor battery usage tracking
until now we were tracking when a sensors was
physically enabled or disabled and we were reporting
that to the BattaryService.

this wasn incorrect because we could have several different
apps enabling the same sensor, so the accounting by the
battery service would be incorrect in that case (depending
on the order in which these apps disabled said sensor).

BatteryService tracks sensors per uid, however SensorService
does this per binder connection, so we could have several
binder connections for the same uid, to solve this we keep
a list of sensor/uid -> count, which is the bulk of this
change.

Bug: 6661604
Change-Id: I561c198c42ba1736a8671bdacda4c76d72b9dd6f
2012-09-18 23:33:36 -07:00
..
tests improve sensorservice_test output 2012-06-27 17:07:55 -07:00
Android.mk improve sensor battery usage tracking 2012-09-18 23:33:36 -07:00
BatteryService.cpp improve sensor battery usage tracking 2012-09-18 23:33:36 -07:00
BatteryService.h improve sensor battery usage tracking 2012-09-18 23:33:36 -07:00
CorrectedGyroSensor.cpp use quaternions instead of MRPs 2012-06-27 17:07:55 -07:00
CorrectedGyroSensor.h
Fusion.cpp improve sensor fusion 2012-06-28 18:21:43 -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 use quaternions instead of MRPs 2012-06-27 17:07:55 -07:00
GravitySensor.h use quaternions instead of MRPs 2012-06-27 17:07:55 -07:00
LinearAccelerationSensor.cpp
LinearAccelerationSensor.h
mat.h Fix occasional fusion divergence by detecting it and resetting the fusion. 2012-06-27 17:07:55 -07:00
OrientationSensor.cpp use quaternions instead of MRPs 2012-06-27 17:07:55 -07:00
OrientationSensor.h
quat.h use quaternions instead of MRPs 2012-06-27 17:07:55 -07:00
RotationVectorSensor.cpp use quaternions instead of MRPs 2012-06-27 17:07:55 -07:00
RotationVectorSensor.h use quaternions instead of MRPs 2012-06-27 17:07:55 -07:00
SensorDevice.cpp improve sensor battery usage tracking 2012-09-18 23:33:36 -07:00
SensorDevice.h improve sensorservice dumpsys 2012-06-27 17:07:55 -07:00
SensorFusion.cpp Rename (IF_)LOGD(_IF) to (IF_)ALOGD(_IF) DO NOT MERGE 2012-06-27 17:07:56 -07:00
SensorFusion.h use quaternions instead of MRPs 2012-06-27 17:07:55 -07:00
SensorInterface.cpp Rename (IF_)LOGI(_IF) to (IF_)ALOGI(_IF) DO NOT MERGE 2012-06-27 17:07:56 -07:00
SensorInterface.h
SensorService.cpp improve sensor battery usage tracking 2012-09-18 23:33:36 -07:00
SensorService.h track UID with connections 2012-09-18 23:33:36 -07:00
traits.h
vec.h More error checks to avoid div by zero. 2012-06-27 17:07:55 -07:00