Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7fe38c48 authored by Jing Ji's avatar Jing Ji
Browse files

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
parent 33abaa26
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -58,6 +58,7 @@ public class BatteryUsageStatsStore {
            new BatteryUsageStatsQuery.Builder()
            new BatteryUsageStatsQuery.Builder()
                    .setMaxStatsAgeMs(0)
                    .setMaxStatsAgeMs(0)
                    .includePowerModels()
                    .includePowerModels()
                    .includeProcessStateData()
                    .build());
                    .build());
    private static final String BATTERY_USAGE_STATS_DIR = "battery-usage-stats";
    private static final String BATTERY_USAGE_STATS_DIR = "battery-usage-stats";
    private static final String SNAPSHOT_FILE_EXTENSION = ".bus";
    private static final String SNAPSHOT_FILE_EXTENSION = ".bus";