summaryrefslogtreecommitdiff
path: root/tools/aapt2/java/JavaClassGenerator_test.cpp
diff options
context:
space:
mode:
authorAdam Bookatz <bookatz@google.com>2021-03-11 13:00:14 -0800
committerAdam Bookatz <bookatz@google.com>2021-03-16 18:00:19 -0700
commit4127267e49dd1665cea5b0bfd02741aa9ed7da24 (patch)
treef19b325b56b7a4fd7cabb76aa38d6ff7a91bf196 /tools/aapt2/java/JavaClassGenerator_test.cpp
parentcdb0369d2a5ed9d2b0ba5c33d4c9dc5a50175832 (diff)
BatteryStats measured energy for Wifi & Bluetooth
Measured energy data for Wifi is received, processed, attributed to uids, and delivered. Same for Bluetooth. Since Wifi power analysis is done via two methods (ControllerActivity data or packet data), depending on what is available on the device, the measured energy method also takes into account these two methods for attribution purposes. For Bluetooth, the only raw data is ControllerActivity data, so it is simpler. In both cases, if that data already contains energy data from the ControllerActivity, but the device also has measured energy data, then the controller energy data is used for normalization but is otherwise replaced by the measured energy data. In other words, the measured energy data is treated preferentially. Also fixes a minor bug in BSI.initMeasuredEnergyStatsLocked() which had a stray early return line. Test: atest BatteryStatsTests Bug: 174818228 Change-Id: Id4728fcd5e6f226664e578a4c19c4aaa5246ff4b
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions