summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAdam Bookatz <bookatz@google.com>2021-01-29 16:14:53 -0800
committerAdam Bookatz <bookatz@google.com>2021-02-03 18:46:49 +0000
commitc7f41b68a5576fed3de71a52797c21cd1239d772 (patch)
treebdc8725ff442e9e18916a5170f5e2e80b9901e0f /tools/aapt2/java/JavaClassGenerator_test.cpp
parentd98aa4eaa165fc8754af35278f0af83dfa3c729e (diff)
Measured screen energy into BatteryStatsHelper
Use measured screen energy usage (where available) in battery reporting in BatteryStatsHelper, including total and per-app screen energy usage. Regardless of the data source (measured screen power usage vs. estimating from screen time), the blame on apps is 'smeared', meaning that it is apportioned (after-the-fact) based on each app's foreground usage. That does not change here. Also fixes a mistake in Uid.getScreenOnEnergy(). Future followups to do 1. Make getMeasuredOrEstimatedPower more universal (as more PowerCalculators follow suit) 2. Support for BatteryUsageStats 3. Deal with voltage properly 4. Toggle whether to report the measured energy on/off. Test: atest BatteryStatsHelperTest Bug: 174818228 Change-Id: I0eaa4bc594cb31b4a26b5488b08114cbf80e3884 Merged-In: I0eaa4bc594cb31b4a26b5488b08114cbf80e3884 (cherry picked from commit 30594e82d5c657cccec3b857e4310788287ea96c)
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions