OSDN Git Service

Move batterystats stats collection to its own thread
authorAdam Lesinski <adamlesinski@google.com>
Wed, 20 Apr 2016 00:33:33 +0000 (17:33 -0700)
committerAdam Lesinski <adamlesinski@google.com>
Wed, 20 Apr 2016 00:33:33 +0000 (17:33 -0700)
commit20b84dfa59190bfef04aac6dc8fb90c9bac5f21b
treee9642b2491bb494dd7b1aa26fac7467f1ee2c33c
parent6e08a629c4ed61c4cb1132576422189e03bda965
Move batterystats stats collection to its own thread

Too many other tasks run on common handlers, and the batterystats collection
may block waiting for a timeout of up to 2 seconds.

Bug:27857665
Change-Id: I5be1ddc374d69620f4f7d821eb29e8524294c9a4
services/core/java/com/android/server/am/BatteryStatsService.java