summaryrefslogtreecommitdiffstats
path: root/telecomm
diff options
context:
space:
mode:
authorYorke Lee <yorkelee@google.com>2015-04-15 16:14:22 -0700
committerYorke Lee <yorkelee@google.com>2015-04-16 12:40:23 -0700
commit167c3a717f0538615a593f946031d0980943b93a (patch)
tree6d6236fa493700c967b67561d9edb154b14db85f /telecomm
parent4467b98724fd2e19353e665f3e77601bde08164d (diff)
downloadframeworks_base-167c3a717f0538615a593f946031d0980943b93a.zip
frameworks_base-167c3a717f0538615a593f946031d0980943b93a.tar.gz
frameworks_base-167c3a717f0538615a593f946031d0980943b93a.tar.bz2
DO NOT MERGE Change hasVoicemailNumber to getVoicemailNumber
Bug: 20223485 Change-Id: I293572bb6c32c5084fe684e7cfe7bd2bbfb5443b
Diffstat (limited to 'telecomm')
-rw-r--r--telecomm/java/android/telecom/TelecomManager.java13
-rw-r--r--telecomm/java/com/android/internal/telecom/ITelecomService.aidl4
2 files changed, 9 insertions, 8 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java
index c73f6c2..2ea84be 100644
--- a/telecomm/java/android/telecom/TelecomManager.java
+++ b/telecomm/java/android/telecom/TelecomManager.java
@@ -707,20 +707,21 @@ public class TelecomManager {
}
/**
- * Return whether a given phone account has a voicemail number configured.
+ * Return the voicemail number for a given phone account.
*
- * @param accountHandle The handle for the account to check for a voicemail number.
- * @return {@code true} If the given phone account has a voicemail number.
+ * @param accountHandle The handle for the phone account.
+ * @return The voicemail number for the phone account, and {@code null} if one has not been
+ * configured.
*/
- public boolean hasVoiceMailNumber(PhoneAccountHandle accountHandle) {
+ public String getVoiceMailNumber(PhoneAccountHandle accountHandle) {
try {
if (isServiceConnected()) {
- return getTelecomService().hasVoiceMailNumber(accountHandle);
+ return getTelecomService().getVoiceMailNumber(accountHandle);
}
} catch (RemoteException e) {
Log.e(TAG, "RemoteException calling ITelecomService#hasVoiceMailNumber.", e);
}
- return false;
+ return null;
}
/**
diff --git a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl
index d2030f2..35db97f 100644
--- a/telecomm/java/com/android/internal/telecom/ITelecomService.aidl
+++ b/telecomm/java/com/android/internal/telecom/ITelecomService.aidl
@@ -121,9 +121,9 @@ interface ITelecomService {
boolean isVoiceMailNumber(in PhoneAccountHandle accountHandle, String number);
/**
- * @see TelecomServiceImpl#hasVoiceMailNumber
+ * @see TelecomServiceImpl#getVoiceMailNumber
*/
- boolean hasVoiceMailNumber(in PhoneAccountHandle accountHandle);
+ String getVoiceMailNumber(in PhoneAccountHandle accountHandle);
/**
* @see TelecomServiceImpl#getLine1Number