diff options
author | Michael Wachenschwanz <mwachens@google.com> | 2021-02-12 03:10:02 -0800 |
---|---|---|
committer | Michael Wachenschwanz <mwachens@google.com> | 2021-02-17 11:38:34 -0800 |
commit | 580d86680d7c50846e61ce07e0423943b296b56f (patch) | |
tree | 9c351a77d5752d727c1209479d7e1269df7a2a78 /rs/java/android/renderscript/ProgramFragmentFixedFunction.java | |
parent | 0726d59bc541c1fd09553f0adb31793e7c8e258c (diff) |
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
Diffstat (limited to 'rs/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions