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

Commit d85f1192 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
(cherry picked from commit 1e9ac7da)
Merged-In: I36d580436e3bbb8c47d453a80eb81686c57809b3
Change-Id: I36d580436e3bbb8c47d453a80eb81686c57809b3
parent 31f9f5a8
Loading
Loading
Loading
Loading
+23 −28
Original line number Diff line number Diff line
@@ -465,10 +465,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();
@@ -496,7 +492,6 @@ public class NitzStateMachine {
                        }
                    }
                }
                }
                saveNitzTime(adjustedCurrentTimeMillis);
            } finally {
                mWakeLock.release();