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

Commit f7646579 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov Committed by Android (Google) Code Review
Browse files

Merge "Revert "Revert "Breaking history writing out of BatteryStatsImpl"""

parents 47e6647f fecb3aed
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -2325,11 +2325,6 @@ public abstract class BatteryStats {

    public abstract void finishIteratingHistoryLocked();

    /**
     * Return the base time offset for the battery history.
     */
    public abstract long getHistoryBaseTime();

    /**
     * Returns the number of times the device has been started.
     */
@@ -7615,8 +7610,6 @@ public abstract class BatteryStats {
                CHECKIN_VERSION, getParcelVersion(), getStartPlatformVersion(),
                getEndPlatformVersion());

        long now = getHistoryBaseTime() + SystemClock.elapsedRealtime();

        if ((flags & (DUMP_INCLUDE_HISTORY | DUMP_HISTORY_ONLY)) != 0) {
            if (startIteratingHistoryLocked()) {
                try {
Loading