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

Commit 5bd549f1 authored by Hui Yu's avatar Hui Yu Committed by android-build-merger
Browse files

Merge "Fix the missing longwake finish event problem." into qt-dev am: eb5532ea am: f832f61e

am: 9b15a842

Change-Id: I37fe407275142e361decb0bf129e9ac8ef3ab850
parents 09ccbb4c 9b15a842
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -3607,8 +3607,8 @@ public class BatteryStatsImpl extends BatteryStats {
    public void createFakeHistoryEvents(long numEvents) {
        for(long i = 0; i < numEvents; i++) {
            noteWifiOnLocked();
            noteWifiOffLocked();
            noteLongPartialWakelockStart("name1", "historyName1", 1000);
            noteLongPartialWakelockFinish("name1", "historyName1", 1000);
        }
    }
@@ -3691,9 +3691,10 @@ public class BatteryStatsImpl extends BatteryStats {
            mHistoryBufferLastPos = -1;
            final long elapsedRealtime = mClocks.elapsedRealtime();
            final long uptime = mClocks.uptimeMillis();
            HistoryItem newItem = new HistoryItem();
            newItem.setTo(cur);
            startRecordingHistory(elapsedRealtime, uptime, false);
            addHistoryBufferLocked(elapsedRealtimeMs, HistoryItem.CMD_UPDATE, cur);
            addHistoryBufferLocked(elapsedRealtimeMs, HistoryItem.CMD_UPDATE, newItem);
            return;
        }