diff options
author | Michael Wachenschwanz <mwachens@google.com> | 2021-01-29 00:56:31 -0800 |
---|---|---|
committer | Michael Wachenschwanz <mwachens@google.com> | 2021-02-01 17:55:12 -0800 |
commit | a5c1b20fe4ef440b90fe5eb4604ff0ce32f1cebf (patch) | |
tree | bbcd19bc32aa627c21fb7b45717d7e2db3fa5591 /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | 71421804352b34dee8442a35f8cf259bbc2d0b6b (diff) |
Fix MeasureEnergyArray impl array size
getEnergyConsumptionData wrongly set the MeasuredEnergyArray size to the
received EnergyConsumerResult array. Instead the size should be equal to
the number of valid Subsystems added to the array.
Also add BatteryExternalStatsWorkerTest to FrameworkServicesTests
Fixes: 178747292
Test: atest FrameworksServicesTests:BatteryExternalStatsWorkerTest
Change-Id: I43793c7ddf9ff1b1badf478c0d9c3accb1a328d5
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions