diff options
author | Mathias Agopian <mathias@google.com> | 2010-03-01 14:37:50 -0800 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2010-03-01 18:31:16 -0800 |
commit | 69f22feb8540576d2a2e9d32f9c86ebbbf309409 (patch) | |
tree | 3b2b0225dd8adbf10a1135cf13cc212face5eca2 /include | |
parent | 42c79880b0c19dfbcd8589d89d35fcedb1a7c9da (diff) | |
download | frameworks_base-69f22feb8540576d2a2e9d32f9c86ebbbf309409.zip frameworks_base-69f22feb8540576d2a2e9d32f9c86ebbbf309409.tar.gz frameworks_base-69f22feb8540576d2a2e9d32f9c86ebbbf309409.tar.bz2 |
fix [2476230] sensor battery stats could get out of sync if an error occurs
Fixed a few problems with the SensorService:
- a race condition when talking to the BatteryStatService
- only report changes to BatteryStatService when there are no errors
(ie: when a change actually happens)
- tell the BatteryStatService when a sensor is deactivated because its
client died
- rewrite enableSensor() so it's readable
- implement dump() so dumpsys will display some infos about active sensors
- recompute the delay properly when sensors are added/removed
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions