commit | 57f6932f29bfed9d42743c1a99a47779184dc7c5 | [log] [tgz] |
---|---|---|
author | Hui Yu <huiyu@google.com> | Tue May 22 14:01:22 2018 -0700 |
committer | Hui Yu <huiyu@google.com> | Wed May 23 11:46:50 2018 -0700 |
tree | 3e328fbcffd874eb0ea20fa0bb21f423812d6880 | |
parent | fab8e71697c3ab47ad3e53864b22542a9a34fa2f [diff] |
Fix per app GPS power usage. After GPS power profile changed from a single value "gps.on" to a "gps.signalqualitybased" array, we use the time gps stays in each signal level to calculate the average gps power usage. Bug: 79379255 Test: adb shell dumpsys batterystats, looking for "gps=" in per app power usage section. Change-Id: I93d17d5bd25324cc9f36a7a5502b088a44184621