From 8c066f7cc38a32ea6bd8138eb23eaeefcadd3b8a Mon Sep 17 00:00:00 2001 From: Nancy Chen Date: Wed, 3 Dec 2014 15:18:08 -0800 Subject: Use TelecomManager to call TelephonyManager#getVoicemailNumber (1/2) Since we don't want the phone app to call TelephonyManager methods directly, create a method in TelecomManager to mimic the behavior. The reason we don't return the voicemail number directly is because once TelecomManager becomes public, we don't want any old app to be able to get the SIM's voicemail number. Bug: 18233678 Change-Id: I620af409788aea7b58169b72a563baeed8115080 --- telecomm/java/com/android/internal/telecom/ITelecomService.aidl | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'telecomm/java/com') diff --git a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl index cbd9d69..f8d7539 100644 --- a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl +++ b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl @@ -121,6 +121,11 @@ interface ITelecomService { boolean isVoiceMailNumber(in PhoneAccountHandle accountHandle, String number); /** + * @see TelecomServiceImpl#hasVoiceMailNumber + */ + boolean hasVoiceMailNumber(in PhoneAccountHandle accountHandle); + + /** * @see TelecomServiceImpl#getDefaultPhoneApp */ ComponentName getDefaultPhoneApp(); -- cgit v1.1