OSDN Git Service

[sensorservice] Init batterystats service when needed
authorPeng Xu <pengxu@google.com>
Wed, 30 Nov 2016 01:54:50 +0000 (17:54 -0800)
committerPeng Xu <pengxu@google.com>
Wed, 30 Nov 2016 02:03:07 +0000 (18:03 -0800)
commit0a031596e12ce0f081b9ee116f48f4f4635d516e
treee7667142373d80661f73eda62cedf637a7f71353
parentbcef87601edb251faebc7587ef8d5104e722e5ab
[sensorservice] Init batterystats service when needed

This avoid race condition at parallel services start up that
may results in sensor power usage not being properly recorded.

Test: check all sensors, they still work
Bug: 33199244

Change-Id: I48946667db54fc72d9be6c13b981b44d1bab88c2
services/sensorservice/BatteryService.cpp
services/sensorservice/BatteryService.h