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

Commit 10bdf3dd authored by Neil Fuller's avatar Neil Fuller
Browse files

Pull out NITZ-related logic into a separate class

This commit extracts several hundred lines of NITZ-related
logic from ServiceStateTracker into a separate class. No
behavior changes are intended: this is a pure refactoring
to move the logic into a separate, (ultimately) more
testable form. This is the first commit of several.

Bug: 63743683
Test: Build / Boot
Change-Id: Ic19ce01167892d7cfbd03d34fea37181bb43cc7c
parent 16583a98
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -359,7 +359,7 @@ public final class MccTable {
     * @param mcc Mobile Country Code of the SIM or SIM-like entity (build prop on CDMA)
     */
    private static void setTimezoneFromMccIfNeeded(Context context, int mcc) {
        String timezone = SystemProperties.get(ServiceStateTracker.TIMEZONE_PROPERTY);
        String timezone = SystemProperties.get(NitzStateMachine.TIMEZONE_PROPERTY);
        // timezone.equals("GMT") will be true and only true if the timezone was
        // set to a default value by the system server (when starting, system server.
        // sets the persist.sys.timezone to "GMT" if it's not set)."GMT" is not used by
+657 −0

File added.

Preview size limit exceeded, changes collapsed.

+67 −549

File changed.

Preview size limit exceeded, changes collapsed.