Loading src/java/com/android/internal/telephony/ServiceStateTracker.java +14 −2 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ import android.telephony.NetworkRegistrationInfo; import android.telephony.PhysicalChannelConfig; import android.telephony.Rlog; import android.telephony.ServiceState; import android.telephony.ServiceState.RilRadioTechnology; import android.telephony.SignalStrength; import android.telephony.SubscriptionInfo; import android.telephony.SubscriptionManager; Loading Loading @@ -1812,7 +1813,7 @@ public class ServiceStateTracker extends Handler { * data roaming status. If TSB58 roaming indicator is not in the * carrier-specified list of ERIs for home system then set roaming. */ final int dataRat = mNewSS.getRilDataRadioTechnology(); final int dataRat = getRilDataRadioTechnologyForWwan(mNewSS); if (ServiceState.isCdma(dataRat)) { final boolean isVoiceInService = (mNewSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE); Loading Loading @@ -5161,7 +5162,7 @@ public class ServiceStateTracker extends Handler { } final boolean isDataInService = (currentServiceState.getDataRegState() == ServiceState.STATE_IN_SERVICE); final int dataRegType = currentServiceState.getRilDataRadioTechnology(); final int dataRegType = getRilDataRadioTechnologyForWwan(currentServiceState); if (isDataInService) { if (!currentServiceState.getDataRoaming()) { currentServiceState.setDataRoamingType(ServiceState.ROAMING_TYPE_NOT_ROAMING); Loading Loading @@ -5478,4 +5479,15 @@ public class ServiceStateTracker extends Handler { } return operatorName; } @RilRadioTechnology private static int getRilDataRadioTechnologyForWwan(ServiceState ss) { NetworkRegistrationInfo regInfo = ss.getNetworkRegistrationInfo( NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); int networkType = TelephonyManager.NETWORK_TYPE_UNKNOWN; if (regInfo != null) { networkType = regInfo.getAccessNetworkTechnology(); } return ServiceState.networkTypeToRilRadioTechnology(networkType); } } Loading
src/java/com/android/internal/telephony/ServiceStateTracker.java +14 −2 Original line number Diff line number Diff line Loading @@ -70,6 +70,7 @@ import android.telephony.NetworkRegistrationInfo; import android.telephony.PhysicalChannelConfig; import android.telephony.Rlog; import android.telephony.ServiceState; import android.telephony.ServiceState.RilRadioTechnology; import android.telephony.SignalStrength; import android.telephony.SubscriptionInfo; import android.telephony.SubscriptionManager; Loading Loading @@ -1812,7 +1813,7 @@ public class ServiceStateTracker extends Handler { * data roaming status. If TSB58 roaming indicator is not in the * carrier-specified list of ERIs for home system then set roaming. */ final int dataRat = mNewSS.getRilDataRadioTechnology(); final int dataRat = getRilDataRadioTechnologyForWwan(mNewSS); if (ServiceState.isCdma(dataRat)) { final boolean isVoiceInService = (mNewSS.getVoiceRegState() == ServiceState.STATE_IN_SERVICE); Loading Loading @@ -5161,7 +5162,7 @@ public class ServiceStateTracker extends Handler { } final boolean isDataInService = (currentServiceState.getDataRegState() == ServiceState.STATE_IN_SERVICE); final int dataRegType = currentServiceState.getRilDataRadioTechnology(); final int dataRegType = getRilDataRadioTechnologyForWwan(currentServiceState); if (isDataInService) { if (!currentServiceState.getDataRoaming()) { currentServiceState.setDataRoamingType(ServiceState.ROAMING_TYPE_NOT_ROAMING); Loading Loading @@ -5478,4 +5479,15 @@ public class ServiceStateTracker extends Handler { } return operatorName; } @RilRadioTechnology private static int getRilDataRadioTechnologyForWwan(ServiceState ss) { NetworkRegistrationInfo regInfo = ss.getNetworkRegistrationInfo( NetworkRegistrationInfo.DOMAIN_PS, AccessNetworkConstants.TRANSPORT_TYPE_WWAN); int networkType = TelephonyManager.NETWORK_TYPE_UNKNOWN; if (regInfo != null) { networkType = regInfo.getAccessNetworkTechnology(); } return ServiceState.networkTypeToRilRadioTechnology(networkType); } }