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

Commit 1e9ac7da authored by Neil Fuller's avatar Neil Fuller
Browse files

Remove throttling difference for GSM

Removing a difference between GSM and other
devices.

Throttling was added to CDMA in commit:
https://android.googlesource.com/platform/frameworks/base/+/aeff5fd8eb17bc0f611918d6482139c1921e7b60
(bug 2251845).

The bug justification was that CDMA was receiving NITZ
updates too regularly, which was impacting device
performance.

If GSM receives updates at a slower rate the throttling
should be a no-op so there’s no reason to have separate paths.

atest FrameworksTelephonyTests:NitzStateMachineTest \
FrameworksTelephonyTests:ServiceStateTrackerTest

Bug: 63743683
Test: build / test / see above
Change-Id: I36d580436e3bbb8c47d453a80eb81686c57809b3
parent fb690b90
Loading
Loading
Loading
Loading
+23 −28
Original line number Diff line number Diff line
@@ -459,10 +459,6 @@ public class NitzStateMachine {
                        Rlog.d(LOG_TAG, tmpLog);
                    }
                    mTimeLog.log(tmpLog);
                    if (mPhone.isPhoneTypeGsm()) {
                        setAndBroadcastNetworkSetTime(adjustedCurrentTimeMillis);
                        Rlog.i(LOG_TAG, "NITZ: after Setting time of day");
                    } else {
                    if (mTimeServiceHelper.isTimeDetectionEnabled()) {
                        // Update system time automatically
                        long gained = adjustedCurrentTimeMillis - System.currentTimeMillis();
@@ -490,7 +486,6 @@ public class NitzStateMachine {
                        }
                    }
                }
                }
                saveNitzTime(adjustedCurrentTimeMillis);
            } finally {
                mWakeLock.release();