Loading api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -36050,6 +36050,7 @@ package android.telephony { method public java.lang.String getSubscriberId(); method public java.lang.String getVoiceMailAlphaTag(); method public java.lang.String getVoiceMailNumber(); method public android.net.Uri getVoicemailRingtoneUri(android.telecom.PhoneAccountHandle); method public boolean hasCarrierPrivileges(); method public boolean hasIccCard(); method public boolean iccCloseLogicalChannel(int); Loading @@ -36062,6 +36063,7 @@ package android.telephony { method public boolean isSmsCapable(); method public boolean isTtyModeSupported(); method public boolean isVoiceCapable(); method public boolean isVoicemailVibrationEnabled(android.telecom.PhoneAccountHandle); method public boolean isWorldPhone(); method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -38351,6 +38351,7 @@ package android.telephony { method public java.lang.String getSubscriberId(); method public java.lang.String getVoiceMailAlphaTag(); method public java.lang.String getVoiceMailNumber(); method public android.net.Uri getVoicemailRingtoneUri(android.telecom.PhoneAccountHandle); method public boolean handlePinMmi(java.lang.String); method public boolean handlePinMmiForSubscriber(int, java.lang.String); method public boolean hasCarrierPrivileges(); Loading @@ -38372,6 +38373,7 @@ package android.telephony { method public boolean isTtyModeSupported(); method public boolean isVideoCallingEnabled(); method public boolean isVoiceCapable(); method public boolean isVoicemailVibrationEnabled(android.telecom.PhoneAccountHandle); method public boolean isWorldPhone(); method public void listen(android.telephony.PhoneStateListener, int); method public boolean needsOtaServiceProvisioning(); api/test-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -36064,6 +36064,7 @@ package android.telephony { method public java.lang.String getSubscriberId(); method public java.lang.String getVoiceMailAlphaTag(); method public java.lang.String getVoiceMailNumber(); method public android.net.Uri getVoicemailRingtoneUri(android.telecom.PhoneAccountHandle); method public boolean hasCarrierPrivileges(); method public boolean hasIccCard(); method public boolean iccCloseLogicalChannel(int); Loading @@ -36076,6 +36077,7 @@ package android.telephony { method public boolean isSmsCapable(); method public boolean isTtyModeSupported(); method public boolean isVoiceCapable(); method public boolean isVoicemailVibrationEnabled(android.telecom.PhoneAccountHandle); method public boolean isWorldPhone(); method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String); telephony/java/android/telephony/TelephonyManager.java +41 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.app.ActivityThread; import android.content.ContentResolver; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.provider.Settings; import android.provider.Settings.SettingNotFoundException; import android.os.Bundle; Loading @@ -31,6 +32,7 @@ import android.os.RemoteException; import android.os.ServiceManager; import android.os.SystemProperties; import android.telecom.PhoneAccount; import android.telecom.PhoneAccountHandle; import android.util.Log; import com.android.internal.telecom.ITelecomService; Loading Loading @@ -4865,4 +4867,43 @@ public class TelephonyManager { } return null; } /** * Returns the URI for the per-account voicemail ringtone set in Phone settings. * * @param accountHandle The handle for the {@link PhoneAccount} for which to retrieve the * voicemail ringtone. * @return The URI for the ringtone to play when receiving a voicemail from a specific * PhoneAccount. */ public Uri getVoicemailRingtoneUri(PhoneAccountHandle accountHandle) { try { ITelephony service = getITelephony(); if (service != null) { return service.getVoicemailRingtoneUri(accountHandle); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#getVoicemailRingtoneUri", e); } return null; } /** * Returns whether vibration is set for voicemail notification in Phone settings. * * @param accountHandle The handle for the {@link PhoneAccount} for which to retrieve the * voicemail vibration setting. * @return {@code true} if the vibration is set for this PhoneAccount, {@code false} otherwise. */ public boolean isVoicemailVibrationEnabled(PhoneAccountHandle accountHandle) { try { ITelephony service = getITelephony(); if (service != null) { return service.isVoicemailVibrationEnabled(accountHandle); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#isVoicemailVibrationEnabled", e); } return false; } } telephony/java/com/android/internal/telephony/ITelephony.aidl +22 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,9 @@ package com.android.internal.telephony; import android.content.Intent; import android.os.Bundle; import android.net.Uri; import android.telecom.PhoneAccount; import android.telecom.PhoneAccountHandle; import android.telephony.CellInfo; import android.telephony.IccOpenLogicalChannelResponse; import android.telephony.ModemActivityInfo; Loading Loading @@ -1014,4 +1016,23 @@ interface ITelephony { * @return Service state on specified subscription. */ ServiceState getServiceStateForSubscriber(int subId, String callingPackage); /** * Returns the URI for the per-account voicemail ringtone set in Phone settings. * * @param accountHandle The handle for the {@link PhoneAccount} for which to retrieve the * voicemail ringtone. * @return The URI for the ringtone to play when receiving a voicemail from a specific * PhoneAccount. */ Uri getVoicemailRingtoneUri(in PhoneAccountHandle accountHandle); /** * Returns whether vibration is set for voicemail notification in Phone settings. * * @param accountHandle The handle for the {@link PhoneAccount} for which to retrieve the * voicemail vibration setting. * @return {@code true} if the vibration is set for this PhoneAccount, {@code false} otherwise. */ boolean isVoicemailVibrationEnabled(in PhoneAccountHandle accountHandle); } Loading
api/current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -36050,6 +36050,7 @@ package android.telephony { method public java.lang.String getSubscriberId(); method public java.lang.String getVoiceMailAlphaTag(); method public java.lang.String getVoiceMailNumber(); method public android.net.Uri getVoicemailRingtoneUri(android.telecom.PhoneAccountHandle); method public boolean hasCarrierPrivileges(); method public boolean hasIccCard(); method public boolean iccCloseLogicalChannel(int); Loading @@ -36062,6 +36063,7 @@ package android.telephony { method public boolean isSmsCapable(); method public boolean isTtyModeSupported(); method public boolean isVoiceCapable(); method public boolean isVoicemailVibrationEnabled(android.telecom.PhoneAccountHandle); method public boolean isWorldPhone(); method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String);
api/system-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -38351,6 +38351,7 @@ package android.telephony { method public java.lang.String getSubscriberId(); method public java.lang.String getVoiceMailAlphaTag(); method public java.lang.String getVoiceMailNumber(); method public android.net.Uri getVoicemailRingtoneUri(android.telecom.PhoneAccountHandle); method public boolean handlePinMmi(java.lang.String); method public boolean handlePinMmiForSubscriber(int, java.lang.String); method public boolean hasCarrierPrivileges(); Loading @@ -38372,6 +38373,7 @@ package android.telephony { method public boolean isTtyModeSupported(); method public boolean isVideoCallingEnabled(); method public boolean isVoiceCapable(); method public boolean isVoicemailVibrationEnabled(android.telecom.PhoneAccountHandle); method public boolean isWorldPhone(); method public void listen(android.telephony.PhoneStateListener, int); method public boolean needsOtaServiceProvisioning();
api/test-current.txt +2 −0 Original line number Diff line number Diff line Loading @@ -36064,6 +36064,7 @@ package android.telephony { method public java.lang.String getSubscriberId(); method public java.lang.String getVoiceMailAlphaTag(); method public java.lang.String getVoiceMailNumber(); method public android.net.Uri getVoicemailRingtoneUri(android.telecom.PhoneAccountHandle); method public boolean hasCarrierPrivileges(); method public boolean hasIccCard(); method public boolean iccCloseLogicalChannel(int); Loading @@ -36076,6 +36077,7 @@ package android.telephony { method public boolean isSmsCapable(); method public boolean isTtyModeSupported(); method public boolean isVoiceCapable(); method public boolean isVoicemailVibrationEnabled(android.telecom.PhoneAccountHandle); method public boolean isWorldPhone(); method public void listen(android.telephony.PhoneStateListener, int); method public java.lang.String sendEnvelopeWithStatus(java.lang.String);
telephony/java/android/telephony/TelephonyManager.java +41 −0 Original line number Diff line number Diff line Loading @@ -24,6 +24,7 @@ import android.app.ActivityThread; import android.content.ContentResolver; import android.content.Context; import android.content.Intent; import android.net.Uri; import android.provider.Settings; import android.provider.Settings.SettingNotFoundException; import android.os.Bundle; Loading @@ -31,6 +32,7 @@ import android.os.RemoteException; import android.os.ServiceManager; import android.os.SystemProperties; import android.telecom.PhoneAccount; import android.telecom.PhoneAccountHandle; import android.util.Log; import com.android.internal.telecom.ITelecomService; Loading Loading @@ -4865,4 +4867,43 @@ public class TelephonyManager { } return null; } /** * Returns the URI for the per-account voicemail ringtone set in Phone settings. * * @param accountHandle The handle for the {@link PhoneAccount} for which to retrieve the * voicemail ringtone. * @return The URI for the ringtone to play when receiving a voicemail from a specific * PhoneAccount. */ public Uri getVoicemailRingtoneUri(PhoneAccountHandle accountHandle) { try { ITelephony service = getITelephony(); if (service != null) { return service.getVoicemailRingtoneUri(accountHandle); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#getVoicemailRingtoneUri", e); } return null; } /** * Returns whether vibration is set for voicemail notification in Phone settings. * * @param accountHandle The handle for the {@link PhoneAccount} for which to retrieve the * voicemail vibration setting. * @return {@code true} if the vibration is set for this PhoneAccount, {@code false} otherwise. */ public boolean isVoicemailVibrationEnabled(PhoneAccountHandle accountHandle) { try { ITelephony service = getITelephony(); if (service != null) { return service.isVoicemailVibrationEnabled(accountHandle); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelephony#isVoicemailVibrationEnabled", e); } return false; } }
telephony/java/com/android/internal/telephony/ITelephony.aidl +22 −1 Original line number Diff line number Diff line Loading @@ -18,7 +18,9 @@ package com.android.internal.telephony; import android.content.Intent; import android.os.Bundle; import android.net.Uri; import android.telecom.PhoneAccount; import android.telecom.PhoneAccountHandle; import android.telephony.CellInfo; import android.telephony.IccOpenLogicalChannelResponse; import android.telephony.ModemActivityInfo; Loading Loading @@ -1014,4 +1016,23 @@ interface ITelephony { * @return Service state on specified subscription. */ ServiceState getServiceStateForSubscriber(int subId, String callingPackage); /** * Returns the URI for the per-account voicemail ringtone set in Phone settings. * * @param accountHandle The handle for the {@link PhoneAccount} for which to retrieve the * voicemail ringtone. * @return The URI for the ringtone to play when receiving a voicemail from a specific * PhoneAccount. */ Uri getVoicemailRingtoneUri(in PhoneAccountHandle accountHandle); /** * Returns whether vibration is set for voicemail notification in Phone settings. * * @param accountHandle The handle for the {@link PhoneAccount} for which to retrieve the * voicemail vibration setting. * @return {@code true} if the vibration is set for this PhoneAccount, {@code false} otherwise. */ boolean isVoicemailVibrationEnabled(in PhoneAccountHandle accountHandle); }