Include process state data in battery usage stats snapshots.

As the background current monitoring would need to access that.

Bug: 203105544
Test: FrameworksCoreTests:com.android.internal.os
Change-Id: Id5c04c4910054675d7f6e989f8eabf4321466e39
This commit is contained in:
Jing Ji
2022-01-19 01:42:20 -08:00
parent 33abaa26fe
commit 7fe38c4864

View File

@@ -58,6 +58,7 @@ public class BatteryUsageStatsStore {
new BatteryUsageStatsQuery.Builder()
.setMaxStatsAgeMs(0)
.includePowerModels()
.includeProcessStateData()
.build());
private static final String BATTERY_USAGE_STATS_DIR = "battery-usage-stats";
private static final String SNAPSHOT_FILE_EXTENSION = ".bus";