Loading packages/SystemUI/src/com/android/systemui/statusbar/policy/MobileSignalController.java +7 −5 Original line number Diff line number Diff line Loading @@ -345,7 +345,7 @@ public class MobileSignalController extends SignalController< if (isCarrierNetworkChangeActive()) { return false; } if (isCdma()) { if (isCdma() && mServiceState != null) { final int iconMode = mServiceState.getCdmaEriIconMode(); return mServiceState.getCdmaEriIconIndex() != EriInfo.ROAMING_INDICATOR_OFF && (iconMode == EriInfo.ROAMING_ICON_MODE_NORMAL Loading Loading @@ -520,11 +520,13 @@ public class MobileSignalController extends SignalController< + " dataState=" + state.getDataRegState()); } mServiceState = state; if (state != null) { mDataNetType = state.getDataNetworkType(); if (mDataNetType == TelephonyManager.NETWORK_TYPE_LTE && mServiceState != null && mServiceState.isUsingCarrierAggregation()) { mDataNetType = TelephonyManager.NETWORK_TYPE_LTE_CA; } } updateTelephony(); } Loading packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/NetworkControllerSignalTest.java +8 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,14 @@ public class NetworkControllerSignalTest extends NetworkControllerBaseTest { } } @Test public void testRoamingNoService_DoesNotCrash() { setupDefaultSignal(); setCdma(); mServiceState = null; updateServiceState(); } @Test @Ignore("Flaky") public void testQsSignalStrength() { Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/policy/MobileSignalController.java +7 −5 Original line number Diff line number Diff line Loading @@ -345,7 +345,7 @@ public class MobileSignalController extends SignalController< if (isCarrierNetworkChangeActive()) { return false; } if (isCdma()) { if (isCdma() && mServiceState != null) { final int iconMode = mServiceState.getCdmaEriIconMode(); return mServiceState.getCdmaEriIconIndex() != EriInfo.ROAMING_INDICATOR_OFF && (iconMode == EriInfo.ROAMING_ICON_MODE_NORMAL Loading Loading @@ -520,11 +520,13 @@ public class MobileSignalController extends SignalController< + " dataState=" + state.getDataRegState()); } mServiceState = state; if (state != null) { mDataNetType = state.getDataNetworkType(); if (mDataNetType == TelephonyManager.NETWORK_TYPE_LTE && mServiceState != null && mServiceState.isUsingCarrierAggregation()) { mDataNetType = TelephonyManager.NETWORK_TYPE_LTE_CA; } } updateTelephony(); } Loading
packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/NetworkControllerSignalTest.java +8 −0 Original line number Diff line number Diff line Loading @@ -201,6 +201,14 @@ public class NetworkControllerSignalTest extends NetworkControllerBaseTest { } } @Test public void testRoamingNoService_DoesNotCrash() { setupDefaultSignal(); setCdma(); mServiceState = null; updateServiceState(); } @Test @Ignore("Flaky") public void testQsSignalStrength() { Loading