Loading src/java/com/android/internal/telephony/GsmCdmaPhone.java +1 −3 Original line number Diff line number Diff line Loading @@ -2346,9 +2346,7 @@ public class GsmCdmaPhone extends Phone { // Load the ERI based on carrier config. Carrier might have their specific ERI. prepareEri(); if (!isPhoneTypeGsm()) { mSST.pollState(); } break; Loading tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java +6 −1 Original line number Diff line number Diff line Loading @@ -149,14 +149,19 @@ public class GsmCdmaPhoneTest extends TelephonyTest { @Test @SmallTest public void testHandleActionCarrierConfigChanged() { Intent intent = new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED); mContext.sendBroadcast(intent); waitForMs(50); verify(mSST, times(1)).pollState(); // set voice radio tech in RIL to 1xRTT. ACTION_CARRIER_CONFIG_CHANGED should trigger a // query and change phone type mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT); assertTrue(mPhoneUT.isPhoneTypeGsm()); Intent intent = new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED); mContext.sendBroadcast(intent); waitForMs(50); assertTrue(mPhoneUT.isPhoneTypeCdmaLte()); verify(mSST, times(2)).pollState(); } @Test Loading Loading
src/java/com/android/internal/telephony/GsmCdmaPhone.java +1 −3 Original line number Diff line number Diff line Loading @@ -2346,9 +2346,7 @@ public class GsmCdmaPhone extends Phone { // Load the ERI based on carrier config. Carrier might have their specific ERI. prepareEri(); if (!isPhoneTypeGsm()) { mSST.pollState(); } break; Loading
tests/telephonytests/src/com/android/internal/telephony/GsmCdmaPhoneTest.java +6 −1 Original line number Diff line number Diff line Loading @@ -149,14 +149,19 @@ public class GsmCdmaPhoneTest extends TelephonyTest { @Test @SmallTest public void testHandleActionCarrierConfigChanged() { Intent intent = new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED); mContext.sendBroadcast(intent); waitForMs(50); verify(mSST, times(1)).pollState(); // set voice radio tech in RIL to 1xRTT. ACTION_CARRIER_CONFIG_CHANGED should trigger a // query and change phone type mSimulatedCommands.setVoiceRadioTech(ServiceState.RIL_RADIO_TECHNOLOGY_1xRTT); assertTrue(mPhoneUT.isPhoneTypeGsm()); Intent intent = new Intent(CarrierConfigManager.ACTION_CARRIER_CONFIG_CHANGED); mContext.sendBroadcast(intent); waitForMs(50); assertTrue(mPhoneUT.isPhoneTypeCdmaLte()); verify(mSST, times(2)).pollState(); } @Test Loading