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

Commit cf7935ea authored by Benjamin Schwartz's avatar Benjamin Schwartz
Browse files

Increase size of BatteryStatsService stats buffer

BatteryStatsService stats buffer needs to be expanded to fit more power stats.

Bug: 117175936
Test: adb bugreport
Change-Id: I8c790cd4202258acc6602586a40916359be7681f
parent 33cc3500
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -108,7 +108,7 @@ public final class BatteryStatsService extends IBatteryStats.Stub
                    .replaceWith("?");
    private ByteBuffer mUtf8BufferStat = ByteBuffer.allocateDirect(MAX_LOW_POWER_STATS_SIZE);
    private CharBuffer mUtf16BufferStat = CharBuffer.allocate(MAX_LOW_POWER_STATS_SIZE);
    private static final int MAX_LOW_POWER_STATS_SIZE = 2048;
    private static final int MAX_LOW_POWER_STATS_SIZE = 4096;

    /**
     * Replaces the information in the given rpmStats with up-to-date information.