diff options
| author | Yorke Lee <yorkelee@google.com> | 2015-04-15 01:41:10 +0000 |
|---|---|---|
| committer | Android Partner Code Review <android-gerrit-partner@google.com> | 2015-04-15 01:41:10 +0000 |
| commit | de93575d86d57011493c820e24558bce586a41e1 (patch) | |
| tree | dfb522d463327f6fb36bf620efc50a4c201f5744 /telecomm | |
| parent | 1b057f559ebc992a9df0438871e137984dd5c082 (diff) | |
| parent | 0bce89050a86cd68fd7c32fdf152d96649c88a6a (diff) | |
| download | frameworks_base-de93575d86d57011493c820e24558bce586a41e1.zip frameworks_base-de93575d86d57011493c820e24558bce586a41e1.tar.gz frameworks_base-de93575d86d57011493c820e24558bce586a41e1.tar.bz2 | |
Merge "DO NOT MERGE Changes for TelecomManager API review" into m-wireless-dev
Diffstat (limited to 'telecomm')
| -rw-r--r-- | telecomm/java/android/telecom/TelecomManager.java | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index 8be3e66..7989bc8 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -521,19 +521,6 @@ public class TelecomManager { } /** - * Determine whether the device has more than one account registered that can make and receive - * phone calls. - * - * @return {@code true} if the device has more than one account registered and {@code false} - * otherwise. - * @hide - */ - @SystemApi - public boolean hasMultipleCallCapableAccounts() { - return getCallCapablePhoneAccounts().size() > 1; - } - - /** * Returns a list of all {@link PhoneAccount}s registered for the calling package. * * @return A list of {@code PhoneAccountHandle} objects. @@ -672,6 +659,15 @@ public class TelecomManager { * @hide */ @SystemApi + public void clearPhoneAccounts() { + clearAccounts(); + } + /** + * Remove all Accounts that belong to the calling package from the system. + * @deprecated Use {@link #clearPhoneAccounts()} instead. + * @hide + */ + @SystemApi public void clearAccounts() { try { if (isServiceConnected()) { @@ -1006,10 +1002,8 @@ public class TelecomManager { * @param accountHandle The handle for the account the MMI code should apply to. * @param dialString The digits to dial. * @return True if the digits were processed as an MMI code, false otherwise. - * @hide */ - @SystemApi - public boolean handleMmi(PhoneAccountHandle accountHandle, String dialString) { + public boolean handleMmi(String dialString, PhoneAccountHandle accountHandle) { ITelecomService service = getTelecomService(); if (service != null) { try { |
