Skip to content
Commit 580d8668 authored by Michael Wachenschwanz's avatar Michael Wachenschwanz
Browse files

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
parent 0726d59b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment