diff options
author | Yorke Lee <yorkelee@google.com> | 2015-04-14 15:16:59 -0700 |
---|---|---|
committer | Yorke Lee <yorkelee@google.com> | 2015-04-14 15:16:59 -0700 |
commit | 0604427a25db171492870d1f3f86f8117987e855 (patch) | |
tree | 94e4f6f3bbb027f79b618e4267f4226d67c98de5 /telecomm/java/android/telecom | |
parent | fff30439cafb737eb54de807caab4fb61432f2cc (diff) | |
download | frameworks_base-0604427a25db171492870d1f3f86f8117987e855.zip frameworks_base-0604427a25db171492870d1f3f86f8117987e855.tar.gz frameworks_base-0604427a25db171492870d1f3f86f8117987e855.tar.bz2 |
Changes for TelecomManager API review
* clearAccounts -> clearPhoneAccounts
* handleMMi(PhoneAccountHandle, String) -> handleMMi(String, PhoneAccountHandle)
* hasMultipleCallCapableAccounts -> removed
Bug: 20160799
Change-Id: Ifcd26474f04b71aa725299b6016004151b76bc31
Diffstat (limited to 'telecomm/java/android/telecom')
-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 ab7864b..642a386 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -532,19 +532,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. @@ -683,6 +670,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()) { @@ -1017,10 +1013,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 { |