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

Commit 92fc2656 authored by Neil Fuller's avatar Neil Fuller
Browse files

DO NOT MERGE Remove OldNitzStateMachine impl

Remove OldNitzStateMachine / OldTimeServiceHelper in preparation for
backporting master changes.

Bug: 144757081
Test: treehugger
Merged-in: I81ad0c324dab64913b943a20b3e9e30e344b0c92
Change-Id: I53a45f16bebf5eb78091b7759bb50332e7a6dafe
parent ed7a0e8d
Loading
Loading
Loading
Loading
+6 −17
Original line number Diff line number Diff line
@@ -360,7 +360,6 @@ public final class MccTable {
    private static void setTimezoneFromMccIfNeeded(Context context, int mcc) {
        // Switch to use the time service helper associated with the NitzStateMachine impl
        // being used. This logic will be removed once the old implementation is removed.
        if (TelephonyComponentFactory.USE_NEW_NITZ_STATE_MACHINE) {
        if (!NewTimeServiceHelper.isTimeZoneSettingInitializedStatic()) {
            String zoneId = defaultTimeZoneForMcc(mcc);
            if (zoneId != null && zoneId.length() > 0) {
@@ -369,16 +368,6 @@ public final class MccTable {
                Slog.d(LOG_TAG, "timezone set to " + zoneId);
            }
        }
        } else {
            if (!OldTimeServiceHelper.isTimeZoneSettingInitializedStatic()) {
                String zoneId = defaultTimeZoneForMcc(mcc);
                if (zoneId != null && zoneId.length() > 0) {
                    // Set time zone based on MCC
                    OldTimeServiceHelper.setDeviceTimeZoneStatic(context, zoneId);
                    Slog.d(LOG_TAG, "timezone set to " + zoneId);
                }
            }
        }
    }

    /**
+0 −534

File deleted.

Preview size limit exceeded, changes collapsed.

+0 −193

File deleted.

Preview size limit exceeded, changes collapsed.

+1 −9
Original line number Diff line number Diff line
@@ -292,19 +292,11 @@ public class TelephonyComponentFactory {
        return new EmergencyNumberTracker(phone, ci);
    }

    /**
     * Sets the NitzStateMachine implementation to use during implementation. This boolean
     * should be removed once the new implementation is stable.
     */
    static final boolean USE_NEW_NITZ_STATE_MACHINE = true;

    /**
     * Returns a new {@link NitzStateMachine} instance.
     */
    public NitzStateMachine makeNitzStateMachine(GsmCdmaPhone phone) {
        return USE_NEW_NITZ_STATE_MACHINE
                ? new NewNitzStateMachine(phone)
                : new OldNitzStateMachine(phone);
        return new NewNitzStateMachine(phone);
    }

    public SimActivationTracker makeSimActivationTracker(Phone phone) {
+0 −1110

File deleted.

Preview size limit exceeded, changes collapsed.