commit | a5c1b20fe4ef440b90fe5eb4604ff0ce32f1cebf | [log] [tgz] |
---|---|---|
author | Michael Wachenschwanz <mwachens@google.com> | Fri Jan 29 00:56:31 2021 -0800 |
committer | Michael Wachenschwanz <mwachens@google.com> | Mon Feb 01 17:55:12 2021 -0800 |
tree | bbcd19bc32aa627c21fb7b45717d7e2db3fa5591 | |
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