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

Commit a1b24dae authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix NPE in `dumpsys batterystats` when `streamlined_battery_stats` is disabled" into main

parents 147199e9 fdd04adc
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -592,6 +592,10 @@ public class CpuPowerStatsCollector extends PowerStatsCollector {
    public void dumpCpuPowerBracketsLocked(PrintWriter pw) {
        ensureInitialized();

        if (mLayout == null) {
            return;
        }

        pw.println("CPU power brackets; cluster/freq in MHz(avg current in mA):");
        for (int bracket = 0; bracket < mLayout.getCpuPowerBracketCount(); bracket++) {
            pw.print("    ");