summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator.cpp
diff options
context:
space:
mode:
authorMichael Wachenschwanz <mwachens@google.com>2021-02-16 18:39:27 -0800
committerMichael Wachenschwanz <mwachens@google.com>2021-03-03 16:20:39 -0800
commit95bd56660ef231026e63f9fa6f6e55a63bc1d2e6 (patch)
tree0c25c230f158847173820a3fb40bb19097ab86b4 /tools/aapt2/java/JavaClassGenerator.cpp
parent542c1fecf5677b677dd1727b1f07cc9f3343cf93 (diff)
Accumulate and attribute measured Cpu energy in BatteryStats
BatteryExternalStatsWorker will now include measured Cpu Cluster energy data (if available) when triggering a Cpu update in BatteryStatsImpl. Using the per cluster per uid duration read from the kernel, the measured energy can be attributed per cluster and then totaled to get the Cpu energy consumption of a uid since the last update. Fixes: 180079165 Test: manual ("adb shell dumpsys batterystats --measured-energy" on an unplugged PowerStatsHal2.0 enabled device) Change-Id: I0127bf61decdd5a9a5744e3352d5a3ff3a5fa2fe
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions