From 3fdf2a84c082729fb3581738d48885fe6914c475 Mon Sep 17 00:00:00 2001 From: Sailesh Nepal Date: Wed, 5 Nov 2014 21:30:43 -0800 Subject: [PATCH] Make APIs to get system phone accounts public This is used by Wi-Fi calling to handoff and incoming call to a cellular call. For example, when doing an handoff we can look through the outgoing phone accounts and find the one that the user has verified with their google account. We can then handoff to that phone account. Bug: 17686424 Change-Id: I06d42aa8f4a36d11e5293ed6f7c62b796226f5c1 --- api/current.txt | 2 ++ telecomm/java/android/telecom/TelecomManager.java | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/api/current.txt b/api/current.txt index a8c2ddc0e0c4e..3888c1ff5a061 100644 --- a/api/current.txt +++ b/api/current.txt @@ -28402,8 +28402,10 @@ package android.telecom { method public void clearAccounts(); method public android.net.Uri getAdnUriForPhoneAccount(android.telecom.PhoneAccountHandle); method public android.telecom.PhoneAccountHandle getConnectionManager(); + method public android.telecom.PhoneAccountHandle getDefaultOutgoingPhoneAccount(java.lang.String); method public android.telecom.PhoneAccount getPhoneAccount(android.telecom.PhoneAccountHandle); method public java.util.List getPhoneAccountsForPackage(); + method public java.util.List getPhoneAccountsSupportingScheme(java.lang.String); method public boolean handleMmi(java.lang.String); method public boolean handleMmi(android.telecom.PhoneAccountHandle, java.lang.String); method public boolean hasMultipleCallCapableAccounts(); diff --git a/telecomm/java/android/telecom/TelecomManager.java b/telecomm/java/android/telecom/TelecomManager.java index d98a255f9079a..ecf6005aefb99 100644 --- a/telecomm/java/android/telecom/TelecomManager.java +++ b/telecomm/java/android/telecom/TelecomManager.java @@ -338,8 +338,6 @@ public class TelecomManager { * @param uriScheme The URI scheme. * @return The {@link PhoneAccountHandle} corresponding to the user-chosen default for outgoing * phone calls for a specified URI scheme. - * - * @hide */ public PhoneAccountHandle getDefaultOutgoingPhoneAccount(String uriScheme) { try { @@ -459,8 +457,6 @@ public class TelecomManager { * * @param uriScheme The URI scheme. * @return A list of {@code PhoneAccountHandle} objects supporting the URI scheme. - * - * @hide */ public List getPhoneAccountsSupportingScheme(String uriScheme) { try {