OSDN Git Service

ConnectivityService: improve wakelock logging
authorHugo Benichi <hugobenichi@google.com>
Tue, 5 Sep 2017 04:25:07 +0000 (13:25 +0900)
committerHugo Benichi <hugobenichi@google.com>
Tue, 5 Sep 2017 12:34:03 +0000 (21:34 +0900)
commitc3318aa3dd1fe2a117248e2191d68643dee243f0
tree1e1d0360db0c45f64865181c493454f19133b903
parente6793f2795e9b7df5dc68e8ebb420ba228964f61
ConnectivityService: improve wakelock logging

This patch adds the following wakelock related counters to connectivity
service dumps included in bug reports:
 - total number of wakelok acquisitions and releases
 - total cumulative wakelock duration
 - longest time the lock was held

Bug: 65085354
Test: runtest frameworks-net, also manually dumped connectivity service
      and check new logging

Merged-In: I8f67750c2eea73abf3d44f7f6df484427a8ea3f9
Merged-In: I93c0eb7c8add966378647400e11e33765d952345
Merged-In: Iabe99993001e069b8a8077533bca1fa7fb2f59ba

(cherry picked from commit 26bcfa19d01758c86a8f43a5b39673cd5866d2f3)

Change-Id: I4d6bb43110916b440819813b478523546ac5570e
services/core/java/com/android/server/ConnectivityService.java