summaryrefslogtreecommitdiff
path: root/core/java/android/os/BatteryStatsInternal.java
Commit message (Collapse)AuthorAgeFilesLines
* Move BatteryStatsInternal to services.jarChristopher Tate2019-10-311-44/+0
| | | | | | | Bug: 140833849 Test: boot & run normally Test: m checkbuild Change-Id: Ifb3e4a69073380e09348572fdd7b0e5386e00525
* Log deferred jobs metrics to batterystatsAmith Yamasani2018-02-181-1/+10
| | | | | | | | | | | | Log the deferred jobs event count, number of deferred jobs, time since last job execution and break those down into different time-since buckets in case the average becomes too noisy. Bug: 70297451 Test: dumpsys batterystats --checkin Change-Id: Iafad6137989246f203a623ce1511140d4eac35b0
* Adds pulling for network bytes for statsd.David Chen2017-11-021-0/+35
Adds atoms to collect network bytes transmitted and received via wifi and mobile data. We need to get the list of correct ifaces from BatteryStats since NetworkStatsService only tracks the mobile ifaces. We split the atoms so that we can also capture metrics sliced on foreground and background since they are available from the kernel. Also adds an atom for the Kernel Wakelocks. Test: Manually tested with adb shell cmd stats pull-source after modifying the StatsPullerManager.cpp Change-Id: I9467afad799c6d97560e868f8625fefae5c2b5e1