OSDN Git Service

BatteryStats: Acquire network stats without BatteryStatsImpl lock
authorAdam Lesinski <adamlesinski@google.com>
Fri, 26 May 2017 18:50:40 +0000 (11:50 -0700)
committerAdam Lesinski <adamlesinski@google.com>
Wed, 31 May 2017 18:55:52 +0000 (11:55 -0700)
commit14ae39acbc1387a46946de88e068e10baa76f831
tree487036ff537e622508f0e9028ccd9f32fb51f4b4
parentbacaffa497de1877657f9cb3f59a82e3955f0f75
BatteryStats: Acquire network stats without BatteryStatsImpl lock

Moves the network stats collection under a different lock to
prevent the main BatteryStatsImpl lock from being held while doing I/O.

Bug: 37645919
Bug: 38296815
Test: manual
Change-Id: I0d6b4a7b12b234939cb6eb3a32658b28f61dff4f
core/java/com/android/internal/os/BatteryStatsImpl.java
services/core/java/com/android/server/am/BatteryStatsService.java