Loading core/java/com/android/internal/os/BatteryStatsImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -4084,7 +4084,8 @@ public class BatteryStatsImpl extends BatteryStats { boolean ensureStartClockTime(final long currentTime) { final long ABOUT_ONE_YEAR = 365*24*60*60*1000L; if (currentTime > ABOUT_ONE_YEAR && mStartClockTime < (currentTime-ABOUT_ONE_YEAR)) { if ((currentTime > ABOUT_ONE_YEAR && mStartClockTime < (currentTime-ABOUT_ONE_YEAR)) || (mStartClockTime > currentTime)) { // If the start clock time has changed by more than a year, then presumably // the previous time was completely bogus. So we are going to figure out a // new time based on how much time has elapsed since we started counting. Loading Loading
core/java/com/android/internal/os/BatteryStatsImpl.java +2 −1 Original line number Diff line number Diff line Loading @@ -4084,7 +4084,8 @@ public class BatteryStatsImpl extends BatteryStats { boolean ensureStartClockTime(final long currentTime) { final long ABOUT_ONE_YEAR = 365*24*60*60*1000L; if (currentTime > ABOUT_ONE_YEAR && mStartClockTime < (currentTime-ABOUT_ONE_YEAR)) { if ((currentTime > ABOUT_ONE_YEAR && mStartClockTime < (currentTime-ABOUT_ONE_YEAR)) || (mStartClockTime > currentTime)) { // If the start clock time has changed by more than a year, then presumably // the previous time was completely bogus. So we are going to figure out a // new time based on how much time has elapsed since we started counting. Loading