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

Commit fafbd107 authored by YK Hung's avatar YK Hung Committed by Android (Google) Code Review
Browse files

Merge "Add accumulated() in BatteryUsageStats to tweak the latency." into main

parents 99d0b5a4 53337d63
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -44,7 +44,7 @@ public class BatteryUsageStatsLoader extends AsyncLoaderCompat<BatteryUsageStats
        }
        try {
            return mBatteryStatsManager.getBatteryUsageStats(
                    builder.includeProcessStateData().build());
                    builder.includeProcessStateData().accumulated().build());
        } catch (RuntimeException e) {
            Log.e(TAG, "loadInBackground() for getBatteryUsageStats()", e);
            // Use default BatteryUsageStats.
+1 −0
Original line number Diff line number Diff line
@@ -177,6 +177,7 @@ public final class DataProcessor {
                new BatteryUsageStatsQuery.Builder()
                        .includeBatteryHistory()
                        .includeProcessStateData()
                        .accumulated()
                        .build();
        final BatteryUsageStats batteryUsageStats =
                context.getSystemService(BatteryStatsManager.class)