Loading src/java/com/android/internal/telephony/cdma/CDMAPhone.java +6 −1 Original line number Diff line number Diff line Loading @@ -427,6 +427,7 @@ public class CDMAPhone extends PhoneBase { throw new CallStateException("Sending UUS information NOT supported in CDMA!"); } boolean isEmergency = PhoneNumberUtils.isEmergencyNumber(dialString); ImsPhone imsPhone = mImsPhone; boolean imsUseEnabled = isImsUseEnabled() Loading @@ -435,7 +436,7 @@ public class CDMAPhone extends PhoneBase { && (imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE); boolean useImsForEmergency = imsPhone != null && PhoneNumberUtils.isEmergencyNumber(dialString) && isEmergency && mContext.getResources().getBoolean( com.android.internal.R.bool.useImsAlwaysForEmergencyCall) && ImsManager.isNonTtyOrTtyOnVolteEnabled(mContext) Loading Loading @@ -470,6 +471,10 @@ public class CDMAPhone extends PhoneBase { } } if ((mSST != null) && (mSST.mSS.getState() == ServiceState.STATE_OUT_OF_SERVICE) && !isEmergency) { throw new CallStateException("cannot dial in current state"); } if (DBG) Rlog.d(LOG_TAG, "Trying (non-IMS) CS call"); return dialInternal(dialString, null, videoState, intentExtras); } Loading src/java/com/android/internal/telephony/gsm/GSMPhone.java +6 −1 Original line number Diff line number Diff line Loading @@ -802,6 +802,7 @@ public class GSMPhone extends PhoneBase { public Connection dial (String dialString, UUSInfo uusInfo, int videoState, Bundle intentExtras) throws CallStateException { boolean isEmergency = PhoneNumberUtils.isEmergencyNumber(dialString); ImsPhone imsPhone = mImsPhone; boolean imsUseEnabled = isImsUseEnabled() Loading @@ -810,7 +811,7 @@ public class GSMPhone extends PhoneBase { && (imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE); boolean useImsForEmergency = imsPhone != null && PhoneNumberUtils.isEmergencyNumber(dialString) && isEmergency && mContext.getResources().getBoolean( com.android.internal.R.bool.useImsAlwaysForEmergencyCall) && ImsManager.isNonTtyOrTtyOnVolteEnabled(mContext) Loading Loading @@ -845,6 +846,10 @@ public class GSMPhone extends PhoneBase { } } if ((mSST != null) && (mSST.mSS.getState() == ServiceState.STATE_OUT_OF_SERVICE) && !isEmergency) { throw new CallStateException("cannot dial in current state"); } if (LOCAL_DEBUG) Rlog.d(LOG_TAG, "Trying (non-IMS) CS call"); return dialInternal(dialString, null, VideoProfile.STATE_AUDIO_ONLY, intentExtras); } Loading Loading
src/java/com/android/internal/telephony/cdma/CDMAPhone.java +6 −1 Original line number Diff line number Diff line Loading @@ -427,6 +427,7 @@ public class CDMAPhone extends PhoneBase { throw new CallStateException("Sending UUS information NOT supported in CDMA!"); } boolean isEmergency = PhoneNumberUtils.isEmergencyNumber(dialString); ImsPhone imsPhone = mImsPhone; boolean imsUseEnabled = isImsUseEnabled() Loading @@ -435,7 +436,7 @@ public class CDMAPhone extends PhoneBase { && (imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE); boolean useImsForEmergency = imsPhone != null && PhoneNumberUtils.isEmergencyNumber(dialString) && isEmergency && mContext.getResources().getBoolean( com.android.internal.R.bool.useImsAlwaysForEmergencyCall) && ImsManager.isNonTtyOrTtyOnVolteEnabled(mContext) Loading Loading @@ -470,6 +471,10 @@ public class CDMAPhone extends PhoneBase { } } if ((mSST != null) && (mSST.mSS.getState() == ServiceState.STATE_OUT_OF_SERVICE) && !isEmergency) { throw new CallStateException("cannot dial in current state"); } if (DBG) Rlog.d(LOG_TAG, "Trying (non-IMS) CS call"); return dialInternal(dialString, null, videoState, intentExtras); } Loading
src/java/com/android/internal/telephony/gsm/GSMPhone.java +6 −1 Original line number Diff line number Diff line Loading @@ -802,6 +802,7 @@ public class GSMPhone extends PhoneBase { public Connection dial (String dialString, UUSInfo uusInfo, int videoState, Bundle intentExtras) throws CallStateException { boolean isEmergency = PhoneNumberUtils.isEmergencyNumber(dialString); ImsPhone imsPhone = mImsPhone; boolean imsUseEnabled = isImsUseEnabled() Loading @@ -810,7 +811,7 @@ public class GSMPhone extends PhoneBase { && (imsPhone.getServiceState().getState() == ServiceState.STATE_IN_SERVICE); boolean useImsForEmergency = imsPhone != null && PhoneNumberUtils.isEmergencyNumber(dialString) && isEmergency && mContext.getResources().getBoolean( com.android.internal.R.bool.useImsAlwaysForEmergencyCall) && ImsManager.isNonTtyOrTtyOnVolteEnabled(mContext) Loading Loading @@ -845,6 +846,10 @@ public class GSMPhone extends PhoneBase { } } if ((mSST != null) && (mSST.mSS.getState() == ServiceState.STATE_OUT_OF_SERVICE) && !isEmergency) { throw new CallStateException("cannot dial in current state"); } if (LOCAL_DEBUG) Rlog.d(LOG_TAG, "Trying (non-IMS) CS call"); return dialInternal(dialString, null, VideoProfile.STATE_AUDIO_ONLY, intentExtras); } Loading