Loading telephony/java/android/telephony/TelephonyManager.java +6 −2 Original line number Diff line number Diff line Loading @@ -9980,7 +9980,8 @@ public class TelephonyManager { } /** * Sets the roaming mode for CDMA phone to the given mode {@code mode}. * Sets the roaming mode for CDMA phone to the given mode {@code mode}. If the phone is not * CDMA capable, this method does nothing. * * <p>If this object has been created with {@link #createForSubscriptionId}, applies to the * given subId. Otherwise, applies to {@link SubscriptionManager#getDefaultSubscriptionId()} Loading @@ -10003,6 +10004,7 @@ public class TelephonyManager { @SystemApi @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setCdmaRoamingMode(@CdmaRoamingMode int mode) { if (getPhoneType() != PHONE_TYPE_CDMA) return; try { ITelephony telephony = getITelephony(); if (telephony != null) { Loading Loading @@ -10083,7 +10085,8 @@ public class TelephonyManager { } /** * Sets the subscription mode for CDMA phone to the given mode {@code mode}. * Sets the subscription mode for CDMA phone to the given mode {@code mode}. If the phone is not * CDMA capable, this method does nothing. * * @param mode CDMA subscription mode. * @throws SecurityException if the caller does not have the permission. Loading @@ -10102,6 +10105,7 @@ public class TelephonyManager { @SystemApi @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setCdmaSubscriptionMode(@CdmaSubscription int mode) { if (getPhoneType() != PHONE_TYPE_CDMA) return; try { ITelephony telephony = getITelephony(); if (telephony != null) { Loading Loading
telephony/java/android/telephony/TelephonyManager.java +6 −2 Original line number Diff line number Diff line Loading @@ -9980,7 +9980,8 @@ public class TelephonyManager { } /** * Sets the roaming mode for CDMA phone to the given mode {@code mode}. * Sets the roaming mode for CDMA phone to the given mode {@code mode}. If the phone is not * CDMA capable, this method does nothing. * * <p>If this object has been created with {@link #createForSubscriptionId}, applies to the * given subId. Otherwise, applies to {@link SubscriptionManager#getDefaultSubscriptionId()} Loading @@ -10003,6 +10004,7 @@ public class TelephonyManager { @SystemApi @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setCdmaRoamingMode(@CdmaRoamingMode int mode) { if (getPhoneType() != PHONE_TYPE_CDMA) return; try { ITelephony telephony = getITelephony(); if (telephony != null) { Loading Loading @@ -10083,7 +10085,8 @@ public class TelephonyManager { } /** * Sets the subscription mode for CDMA phone to the given mode {@code mode}. * Sets the subscription mode for CDMA phone to the given mode {@code mode}. If the phone is not * CDMA capable, this method does nothing. * * @param mode CDMA subscription mode. * @throws SecurityException if the caller does not have the permission. Loading @@ -10102,6 +10105,7 @@ public class TelephonyManager { @SystemApi @RequiresPermission(android.Manifest.permission.MODIFY_PHONE_STATE) public void setCdmaSubscriptionMode(@CdmaSubscription int mode) { if (getPhoneType() != PHONE_TYPE_CDMA) return; try { ITelephony telephony = getITelephony(); if (telephony != null) { Loading