From a6018b9bf4308f10ee15a510da0fffcfd57c1f7a Mon Sep 17 00:00:00 2001 From: Santos Cordon Date: Tue, 16 Feb 2016 14:23:12 -0800 Subject: [PATCH] Add APIs to support CDMA add-call limitations. Bug: 22850789 Change-Id: I63de958c6c788a7da5696416e59d2f43cbe633cc --- api/current.txt | 1 + api/system-current.txt | 1 + api/test-current.txt | 1 + telecomm/java/android/telecom/ConnectionService.java | 10 ++++++++++ telecomm/java/android/telecom/DisconnectCause.java | 2 +- 5 files changed, 14 insertions(+), 1 deletion(-) diff --git a/api/current.txt b/api/current.txt index 617aac02c35a8..67e23fdc12a88 100644 --- a/api/current.txt +++ b/api/current.txt @@ -36048,6 +36048,7 @@ package android.telecom { method public final void conferenceRemoteConnections(android.telecom.RemoteConnection, android.telecom.RemoteConnection); method public final android.telecom.RemoteConnection createRemoteIncomingConnection(android.telecom.PhoneAccountHandle, android.telecom.ConnectionRequest); method public final android.telecom.RemoteConnection createRemoteOutgoingConnection(android.telecom.PhoneAccountHandle, android.telecom.ConnectionRequest); + method public final java.util.Collection getAllConferences(); method public final java.util.Collection getAllConnections(); method public final android.os.IBinder onBind(android.content.Intent); method public void onConference(android.telecom.Connection, android.telecom.Connection); diff --git a/api/system-current.txt b/api/system-current.txt index ec422c0269506..92967f287dc14 100644 --- a/api/system-current.txt +++ b/api/system-current.txt @@ -38651,6 +38651,7 @@ package android.telecom { method public final void conferenceRemoteConnections(android.telecom.RemoteConnection, android.telecom.RemoteConnection); method public final android.telecom.RemoteConnection createRemoteIncomingConnection(android.telecom.PhoneAccountHandle, android.telecom.ConnectionRequest); method public final android.telecom.RemoteConnection createRemoteOutgoingConnection(android.telecom.PhoneAccountHandle, android.telecom.ConnectionRequest); + method public final java.util.Collection getAllConferences(); method public final java.util.Collection getAllConnections(); method public final android.os.IBinder onBind(android.content.Intent); method public void onConference(android.telecom.Connection, android.telecom.Connection); diff --git a/api/test-current.txt b/api/test-current.txt index d202108f53263..30b71774cede1 100644 --- a/api/test-current.txt +++ b/api/test-current.txt @@ -36063,6 +36063,7 @@ package android.telecom { method public final void conferenceRemoteConnections(android.telecom.RemoteConnection, android.telecom.RemoteConnection); method public final android.telecom.RemoteConnection createRemoteIncomingConnection(android.telecom.PhoneAccountHandle, android.telecom.ConnectionRequest); method public final android.telecom.RemoteConnection createRemoteOutgoingConnection(android.telecom.PhoneAccountHandle, android.telecom.ConnectionRequest); + method public final java.util.Collection getAllConferences(); method public final java.util.Collection getAllConnections(); method public final android.os.IBinder onBind(android.content.Intent); method public void onConference(android.telecom.Connection, android.telecom.Connection); diff --git a/telecomm/java/android/telecom/ConnectionService.java b/telecomm/java/android/telecom/ConnectionService.java index b4a7ce0f56b13..461a5d708282e 100644 --- a/telecomm/java/android/telecom/ConnectionService.java +++ b/telecomm/java/android/telecom/ConnectionService.java @@ -1044,6 +1044,16 @@ public abstract class ConnectionService extends Service { return mConnectionById.values(); } + /** + * Returns all the active {@code Conference}s for which this {@code ConnectionService} + * has taken responsibility. + * + * @return A collection of {@code Conference}s created by this {@code ConnectionService}. + */ + public final Collection getAllConferences() { + return mConferenceById.values(); + } + /** * Create a {@code Connection} given an incoming request. This is used to attach to existing * incoming calls. diff --git a/telecomm/java/android/telecom/DisconnectCause.java b/telecomm/java/android/telecom/DisconnectCause.java index 3a7faf645a8cb..2eef7eeb6bd80 100644 --- a/telecomm/java/android/telecom/DisconnectCause.java +++ b/telecomm/java/android/telecom/DisconnectCause.java @@ -92,8 +92,8 @@ public final class DisconnectCause implements Parcelable { /** * Creates a new DisconnectCause. * - * @param label The localized label to show to the user to explain the disconnect. * @param code The code for the disconnect cause. + * @param label The localized label to show to the user to explain the disconnect. * @param description The localized description to show to the user to explain the disconnect. * @param reason The reason for the disconnect. */