diff options
author | Yorke Lee <yorkelee@google.com> | 2015-04-15 16:30:41 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-04-15 16:30:46 +0000 |
commit | 114b78bf1a2ca2185755fa4f783c47e46d57e39f (patch) | |
tree | a2c5851fec948597f2d12ad17ad4ae97b3f828b9 | |
parent | f7a61483bc2a763145b0f1b6e6809c44cdc97187 (diff) | |
parent | 0604427a25db171492870d1f3f86f8117987e855 (diff) | |
download | frameworks_base-114b78bf1a2ca2185755fa4f783c47e46d57e39f.zip frameworks_base-114b78bf1a2ca2185755fa4f783c47e46d57e39f.tar.gz frameworks_base-114b78bf1a2ca2185755fa4f783c47e46d57e39f.tar.bz2 |
Merge "Changes for TelecomManager API review"
-rw-r--r-- | api/current.txt | 1 | ||||
-rw-r--r-- | api/system-current.txt | 6 | ||||
-rw-r--r-- | telecomm/java/android/telecom/TelecomManager.java | 26 |
3 files changed, 14 insertions, 19 deletions
diff --git a/api/current.txt b/api/current.txt index 9b47519..2e0a2a9 100644 --- a/api/current.txt +++ b/api/current.txt @@ -29795,6 +29795,7 @@ package android.telecom { method public java.util.List<android.telecom.PhoneAccountHandle> getCallCapablePhoneAccounts(); method public android.telecom.PhoneAccount getPhoneAccount(android.telecom.PhoneAccountHandle); method public boolean handleMmi(java.lang.String); + method public boolean handleMmi(java.lang.String, android.telecom.PhoneAccountHandle); method public boolean isInCall(); method public void showInCallScreen(boolean); field public static final java.lang.String ACTION_SHOW_CALL_ACCESSIBILITY_SETTINGS = "android.telecom.action.SHOW_CALL_ACCESSIBILITY_SETTINGS"; diff --git a/api/system-current.txt b/api/system-current.txt index 3fd3517..cb400a1 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -32311,7 +32311,8 @@ package android.telecom { method public void addNewIncomingCall(android.telecom.PhoneAccountHandle, android.os.Bundle); method public void addNewUnknownCall(android.telecom.PhoneAccountHandle, android.os.Bundle); method public void cancelMissedCallsNotification(); - method public void clearAccounts(); + method public deprecated void clearAccounts(); + method public void clearPhoneAccounts(); method public boolean endCall(); method public android.net.Uri getAdnUriForPhoneAccount(android.telecom.PhoneAccountHandle); method public java.util.List<android.telecom.PhoneAccountHandle> getAllPhoneAccountHandles(); @@ -32328,8 +32329,7 @@ package android.telecom { method public java.util.List<android.telecom.PhoneAccountHandle> getPhoneAccountsSupportingScheme(java.lang.String); method public java.util.List<android.telecom.PhoneAccountHandle> getRegisteredConnectionManagers(); method public boolean handleMmi(java.lang.String); - method public boolean handleMmi(android.telecom.PhoneAccountHandle, java.lang.String); - method public boolean hasMultipleCallCapableAccounts(); + method public boolean handleMmi(java.lang.String, android.telecom.PhoneAccountHandle); method public boolean hasVoiceMailNumber(android.telecom.PhoneAccountHandle); method public boolean isInCall(); method public boolean isRinging(); 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 { |