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

Commit 48d302eb authored by Neil Fuller's avatar Neil Fuller
Browse files

Make time / time zone local logging clearer

Switch time- and time zone-related LocalLog usage to use UTC / elapsed
realtime clock timestamps, not the localized time. This makes it easier
to understand what happened when.

Test: treehugger only
Bug: 140712361
Change-Id: I1c96bd75713e5d2e9967415d0a13e5870fdbe27b
parent b88769db
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -89,8 +89,8 @@ public final class NitzStateMachineImpl implements NitzStateMachine {
    private boolean mNitzTimeZoneDetectionSuccessful = false;

    // Miscellaneous dependencies and helpers not related to detection state.
    private final LocalLog mTimeLog = new LocalLog(30);
    private final LocalLog mTimeZoneLog = new LocalLog(30);
    private final LocalLog mTimeLog = new LocalLog(30, false /* useLocalTimestamps */);
    private final LocalLog mTimeZoneLog = new LocalLog(30, false /* useLocalTimestamps */);
    private final Phone mPhone;
    private final DeviceState mDeviceState;
    private final TimeServiceHelper mTimeServiceHelper;
+2 −2
Original line number Diff line number Diff line
@@ -42,8 +42,8 @@ public final class NewTimeServiceHelperImpl implements NewTimeServiceHelper {
    private final TimeDetector mTimeDetector;
    private final TimeZoneDetector mTimeZoneDetector;

    private final LocalLog mTimeZoneLog = new LocalLog(30);
    private final LocalLog mTimeLog = new LocalLog(30);
    private final LocalLog mTimeZoneLog = new LocalLog(30, false /* mUseLocalTimestamps */);
    private final LocalLog mTimeLog = new LocalLog(30, false /* mUseLocalTimestamps */);

    /**
     * Records the last time zone suggestion made. Used to avoid sending duplicate suggestions to