Loading api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -30342,6 +30342,7 @@ package android.telecom { method public android.telecom.PhoneAccountHandle getDefaultOutgoingPhoneAccount(java.lang.String); method public android.content.ComponentName getDefaultPhoneApp(); method public java.lang.String getLine1Number(android.telecom.PhoneAccountHandle); method public java.lang.String getVoiceMailNumber(android.telecom.PhoneAccountHandle); method public android.telecom.PhoneAccount getPhoneAccount(android.telecom.PhoneAccountHandle); method public java.util.List<android.telecom.PhoneAccountHandle> getPhoneAccountsForPackage(); method public java.util.List<android.telecom.PhoneAccountHandle> getPhoneAccountsSupportingScheme(java.lang.String); telecomm/java/android/telecom/TelecomManager.java +20 −0 Original line number Diff line number Diff line Loading @@ -761,6 +761,26 @@ public class TelecomManager { return false; } /** * Return the voicemail number for a given phone account. * * @param accountHandle The handle for the account to retrieve the voicemail number for. * @return A string representation if the voicemail number. * * @hide */ @SystemApi public String getVoiceMailNumber(PhoneAccountHandle accountHandle) { try { if (isServiceConnected()) { return getTelecomService().getVoiceMailNumber(accountHandle); } } catch (RemoteException e) { Log.e(TAG, "RemoteException calling ITelecomService#getVoiceMailNumber.", e); } return null; } /** * Return the line 1 phone number for given phone account. * Loading telecomm/java/com/android/internal/telecom/ITelecomService.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -130,6 +130,11 @@ interface ITelecomService { */ boolean hasVoiceMailNumber(in PhoneAccountHandle accountHandle); /** * @see TelecomServiceImpl#getVoiceMailNumber */ String getVoiceMailNumber(in PhoneAccountHandle accountHandle); /** * @see TelecomServiceImpl#getDefaultPhoneApp */ Loading Loading
api/system-current.txt +1 −0 Original line number Diff line number Diff line Loading @@ -30342,6 +30342,7 @@ package android.telecom { method public android.telecom.PhoneAccountHandle getDefaultOutgoingPhoneAccount(java.lang.String); method public android.content.ComponentName getDefaultPhoneApp(); method public java.lang.String getLine1Number(android.telecom.PhoneAccountHandle); method public java.lang.String getVoiceMailNumber(android.telecom.PhoneAccountHandle); method public android.telecom.PhoneAccount getPhoneAccount(android.telecom.PhoneAccountHandle); method public java.util.List<android.telecom.PhoneAccountHandle> getPhoneAccountsForPackage(); method public java.util.List<android.telecom.PhoneAccountHandle> getPhoneAccountsSupportingScheme(java.lang.String);
telecomm/java/android/telecom/TelecomManager.java +20 −0 Original line number Diff line number Diff line Loading @@ -761,6 +761,26 @@ public class TelecomManager { return false; } /** * Return the voicemail number for a given phone account. * * @param accountHandle The handle for the account to retrieve the voicemail number for. * @return A string representation if the voicemail number. * * @hide */ @SystemApi public String getVoiceMailNumber(PhoneAccountHandle accountHandle) { try { if (isServiceConnected()) { return getTelecomService().getVoiceMailNumber(accountHandle); } } catch (RemoteException e) { Log.e(TAG, "RemoteException calling ITelecomService#getVoiceMailNumber.", e); } return null; } /** * Return the line 1 phone number for given phone account. * Loading
telecomm/java/com/android/internal/telecom/ITelecomService.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -130,6 +130,11 @@ interface ITelecomService { */ boolean hasVoiceMailNumber(in PhoneAccountHandle accountHandle); /** * @see TelecomServiceImpl#getVoiceMailNumber */ String getVoiceMailNumber(in PhoneAccountHandle accountHandle); /** * @see TelecomServiceImpl#getDefaultPhoneApp */ Loading