Loading core/java/com/android/internal/os/BatteryStatsImpl.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -4754,11 +4754,11 @@ public class BatteryStatsImpl extends BatteryStats { final long uptime = mClocks.uptimeMillis(); final long uptime = mClocks.uptimeMillis(); boolean updateHistory = false; boolean updateHistory = false; if (isScreenDoze(state)) { if (isScreenDoze(state) && !isScreenDoze(oldState)) { mHistoryCur.states |= HistoryItem.STATE_SCREEN_DOZE_FLAG; mHistoryCur.states |= HistoryItem.STATE_SCREEN_DOZE_FLAG; mScreenDozeTimer.startRunningLocked(elapsedRealtime); mScreenDozeTimer.startRunningLocked(elapsedRealtime); updateHistory = true; updateHistory = true; } else if (isScreenDoze(oldState)) { } else if (isScreenDoze(oldState) && !isScreenDoze(state)) { mHistoryCur.states &= ~HistoryItem.STATE_SCREEN_DOZE_FLAG; mHistoryCur.states &= ~HistoryItem.STATE_SCREEN_DOZE_FLAG; mScreenDozeTimer.stopRunningLocked(elapsedRealtime); mScreenDozeTimer.stopRunningLocked(elapsedRealtime); updateHistory = true; updateHistory = true; Loading Loading
core/java/com/android/internal/os/BatteryStatsImpl.java +2 −2 Original line number Original line Diff line number Diff line Loading @@ -4754,11 +4754,11 @@ public class BatteryStatsImpl extends BatteryStats { final long uptime = mClocks.uptimeMillis(); final long uptime = mClocks.uptimeMillis(); boolean updateHistory = false; boolean updateHistory = false; if (isScreenDoze(state)) { if (isScreenDoze(state) && !isScreenDoze(oldState)) { mHistoryCur.states |= HistoryItem.STATE_SCREEN_DOZE_FLAG; mHistoryCur.states |= HistoryItem.STATE_SCREEN_DOZE_FLAG; mScreenDozeTimer.startRunningLocked(elapsedRealtime); mScreenDozeTimer.startRunningLocked(elapsedRealtime); updateHistory = true; updateHistory = true; } else if (isScreenDoze(oldState)) { } else if (isScreenDoze(oldState) && !isScreenDoze(state)) { mHistoryCur.states &= ~HistoryItem.STATE_SCREEN_DOZE_FLAG; mHistoryCur.states &= ~HistoryItem.STATE_SCREEN_DOZE_FLAG; mScreenDozeTimer.stopRunningLocked(elapsedRealtime); mScreenDozeTimer.stopRunningLocked(elapsedRealtime); updateHistory = true; updateHistory = true; Loading