diff options
| -rw-r--r-- | telephony/java/android/telephony/TelephonyManager.java | 135 |
1 files changed, 0 insertions, 135 deletions
diff --git a/telephony/java/android/telephony/TelephonyManager.java b/telephony/java/android/telephony/TelephonyManager.java index 69b1d6333596..234ca918a144 100644 --- a/telephony/java/android/telephony/TelephonyManager.java +++ b/telephony/java/android/telephony/TelephonyManager.java @@ -2649,10 +2649,6 @@ public class TelephonyManager { return getCurrentPhoneType(); } - private int getPhoneTypeFromProperty() { - return getPhoneTypeFromProperty(getPhoneId()); - } - /** {@hide} */ @UnsupportedAppUsage private int getPhoneTypeFromProperty(int phoneId) { @@ -2662,10 +2658,6 @@ public class TelephonyManager { return getPhoneTypeFromNetworkType(phoneId); } - private int getPhoneTypeFromNetworkType() { - return getPhoneTypeFromNetworkType(getPhoneId()); - } - /** {@hide} */ private int getPhoneTypeFromNetworkType(int phoneId) { // When the system property CURRENT_ACTIVE_PHONE, has not been set, @@ -11564,16 +11556,6 @@ public class TelephonyManager { } /** - * Set TelephonyProperties.icc_operator_numeric for the default phone. - * - * @hide - */ - public void setSimOperatorNumeric(String numeric) { - int phoneId = getPhoneId(); - setSimOperatorNumericForPhone(phoneId, numeric); - } - - /** * Set TelephonyProperties.icc_operator_numeric for the given phone. * * @hide @@ -11588,16 +11570,6 @@ public class TelephonyManager { } /** - * Set TelephonyProperties.icc_operator_alpha for the default phone. - * - * @hide - */ - public void setSimOperatorName(String name) { - int phoneId = getPhoneId(); - setSimOperatorNameForPhone(phoneId, name); - } - - /** * Set TelephonyProperties.icc_operator_alpha for the given phone. * * @hide @@ -11850,17 +11822,6 @@ public class TelephonyManager { } /** - * Set baseband version for the default phone. - * - * @param version baseband version - * @hide - */ - public void setBasebandVersion(String version) { - int phoneId = getPhoneId(); - setBasebandVersionForPhone(phoneId, version); - } - - /** * Set baseband version by phone id. * * @param phoneId for which baseband version is set @@ -11898,18 +11859,6 @@ public class TelephonyManager { } /** - * Set phone type for the default phone. - * - * @param type phone type - * - * @hide - */ - public void setPhoneType(int type) { - int phoneId = getPhoneId(); - setPhoneType(phoneId, type); - } - - /** * Set phone type by phone id. * * @param phoneId for which phone type is set @@ -11927,19 +11876,6 @@ public class TelephonyManager { } /** - * Get OTASP number schema for the default phone. - * - * @param defaultValue default value - * @return OTA SP number schema - * - * @hide - */ - public String getOtaSpNumberSchema(String defaultValue) { - int phoneId = getPhoneId(); - return getOtaSpNumberSchemaForPhone(phoneId, defaultValue); - } - - /** * Get OTASP number schema by phone id. * * @param phoneId for which OTA SP number schema is get @@ -11959,19 +11895,6 @@ public class TelephonyManager { } /** - * Get SMS receive capable from system property for the default phone. - * - * @param defaultValue default value - * @return SMS receive capable - * - * @hide - */ - public boolean getSmsReceiveCapable(boolean defaultValue) { - int phoneId = getPhoneId(); - return getSmsReceiveCapableForPhone(phoneId, defaultValue); - } - - /** * Get SMS receive capable from system property by phone id. * * @param phoneId for which SMS receive capable is get @@ -11989,19 +11912,6 @@ public class TelephonyManager { } /** - * Get SMS send capable from system property for the default phone. - * - * @param defaultValue default value - * @return SMS send capable - * - * @hide - */ - public boolean getSmsSendCapable(boolean defaultValue) { - int phoneId = getPhoneId(); - return getSmsSendCapableForPhone(phoneId, defaultValue); - } - - /** * Get SMS send capable from system property by phone id. * * @param phoneId for which SMS send capable is get @@ -12065,16 +11975,6 @@ public class TelephonyManager { /** * Set the alphabetic name of current registered operator. - * @param name the alphabetic name of current registered operator. - * @hide - */ - public void setNetworkOperatorName(String name) { - int phoneId = getPhoneId(); - setNetworkOperatorNameForPhone(phoneId, name); - } - - /** - * Set the alphabetic name of current registered operator. * @param phoneId which phone you want to set * @param name the alphabetic name of current registered operator. * @hide @@ -12108,16 +12008,6 @@ public class TelephonyManager { /** * Set the numeric name (MCC+MNC) of current registered operator. - * @param operator the numeric name (MCC+MNC) of current registered operator - * @hide - */ - public void setNetworkOperatorNumeric(String numeric) { - int phoneId = getPhoneId(); - setNetworkOperatorNumericForPhone(phoneId, numeric); - } - - /** - * Set the numeric name (MCC+MNC) of current registered operator. * @param phoneId for which phone type is set * @param operator the numeric name (MCC+MNC) of current registered operator * @hide @@ -12133,16 +12023,6 @@ public class TelephonyManager { /** * Set roaming state of the current network, for GSM purposes. - * @param isRoaming is network in romaing state or not - * @hide - */ - public void setNetworkRoaming(boolean isRoaming) { - int phoneId = getPhoneId(); - setNetworkRoamingForPhone(phoneId, isRoaming); - } - - /** - * Set roaming state of the current network, for GSM purposes. * @param phoneId which phone you want to set * @param isRoaming is network in romaing state or not * @hide @@ -12321,21 +12201,6 @@ public class TelephonyManager { } /** - * TODO delete after SuW migrates to new API. - * @hide - */ - public String getLocaleFromDefaultSim() { - try { - final ITelephony telephony = getITelephony(); - if (telephony != null) { - return telephony.getSimLocaleForSubscriber(getSubId()); - } - } catch (RemoteException ex) { - } - return null; - } - - /** * Exception that may be supplied to the callback provided in {@link #requestModemActivityInfo}. * @hide */ |