Loading telephony/java/android/telephony/TelephonyManager.java +0 −31 Original line number Diff line number Diff line Loading @@ -3283,37 +3283,6 @@ public class TelephonyManager { } } /** * Returns the complete voice mail number. Return null if it is unavailable. * * @hide */ @RequiresPermission(android.Manifest.permission.CALL_PRIVILEGED) public String getCompleteVoiceMailNumber() { return getCompleteVoiceMailNumber(getSubId()); } /** * Returns the complete voice mail number. Return null if it is unavailable. * * @param subId * @hide */ @RequiresPermission(android.Manifest.permission.CALL_PRIVILEGED) public String getCompleteVoiceMailNumber(int subId) { try { IPhoneSubInfo info = getSubscriberInfo(); if (info == null) return null; return info.getCompleteVoiceMailNumberForSubscriber(subId); } catch (RemoteException ex) { return null; } catch (NullPointerException ex) { // This could happen before phone restarts due to crashing return null; } } /** * Sets the voice mail number. * Loading telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl +0 −10 Original line number Diff line number Diff line Loading @@ -124,16 +124,6 @@ interface IPhoneSubInfo { */ String getVoiceMailNumberForSubscriber(int subId, String callingPackage); /** * Retrieves the complete voice mail number. */ String getCompleteVoiceMailNumber(); /** * Retrieves the complete voice mail number for particular subId */ String getCompleteVoiceMailNumberForSubscriber(int subId); /** * Retrieves the Carrier information used to encrypt IMSI and IMPI. */ Loading Loading
telephony/java/android/telephony/TelephonyManager.java +0 −31 Original line number Diff line number Diff line Loading @@ -3283,37 +3283,6 @@ public class TelephonyManager { } } /** * Returns the complete voice mail number. Return null if it is unavailable. * * @hide */ @RequiresPermission(android.Manifest.permission.CALL_PRIVILEGED) public String getCompleteVoiceMailNumber() { return getCompleteVoiceMailNumber(getSubId()); } /** * Returns the complete voice mail number. Return null if it is unavailable. * * @param subId * @hide */ @RequiresPermission(android.Manifest.permission.CALL_PRIVILEGED) public String getCompleteVoiceMailNumber(int subId) { try { IPhoneSubInfo info = getSubscriberInfo(); if (info == null) return null; return info.getCompleteVoiceMailNumberForSubscriber(subId); } catch (RemoteException ex) { return null; } catch (NullPointerException ex) { // This could happen before phone restarts due to crashing return null; } } /** * Sets the voice mail number. * Loading
telephony/java/com/android/internal/telephony/IPhoneSubInfo.aidl +0 −10 Original line number Diff line number Diff line Loading @@ -124,16 +124,6 @@ interface IPhoneSubInfo { */ String getVoiceMailNumberForSubscriber(int subId, String callingPackage); /** * Retrieves the complete voice mail number. */ String getCompleteVoiceMailNumber(); /** * Retrieves the complete voice mail number for particular subId */ String getCompleteVoiceMailNumberForSubscriber(int subId); /** * Retrieves the Carrier information used to encrypt IMSI and IMPI. */ Loading