Implement EnergyConsumer type to ids map for targeted querying
The EnergyConsumer type to id map is built at boot, based on the EnergyConsumer info query. Using the map, BatteryExernalStatsWorker can selectively choose which EnergyConsumers to query based on EnergyConsumer type. Also, collect the EnergyConsumerResults asynchronously with a CompletableFuture. Fixes: 180029015 Bug: 180079165 Test: atest FrameworksServicesTests:BatteryExternalStatsWorkerTest Change-Id: I8d87c1da9170897065f866e7e1e14f72e0c73543
Loading
Please register or sign in to comment