From ab4650c4563cd46e65ac37f924fee8febfd759c6 Mon Sep 17 00:00:00 2001 From: Tyler Gunn Date: Thu, 6 Nov 2014 20:06:23 -0800 Subject: [PATCH] Conference event package performance improvement. - Instead of sending each participant to the telephony conference controller, all participants are sent at once. This way the conference only needs to be recalculated once. Bug: 18057361 Change-Id: I86205fc7f1d2648bb180fc7eaf3ad611955952f9 --- telecomm/java/android/telecom/Connection.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java index 4135ec3595c29..61b471c080327 100644 --- a/telecomm/java/android/telecom/Connection.java +++ b/telecomm/java/android/telecom/Connection.java @@ -83,8 +83,8 @@ public abstract class Connection { Connection c, List conferenceableConnections) {} public void onConferenceChanged(Connection c, Conference conference) {} /** @hide */ - public void onConferenceParticipantChanged(Connection c, ConferenceParticipant participant) - {} + public void onConferenceParticipantsChanged(Connection c, + List participants) {} } /** @hide */ @@ -1124,14 +1124,15 @@ public abstract class Connection { } /** - * Notifies listeners of a change to a conference participant. + * Notifies listeners of a change to conference participant(s). * - * @param conferenceParticipant The participant. + * @param conferenceParticipants The participants. * @hide */ - protected final void updateConferenceParticipant(ConferenceParticipant conferenceParticipant) { + protected final void updateConferenceParticipants( + List conferenceParticipants) { for (Listener l : mListeners) { - l.onConferenceParticipantChanged(this, conferenceParticipant); + l.onConferenceParticipantsChanged(this, conferenceParticipants); } } }