summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTyler Gunn <tgunn@google.com>2015-01-29 11:47:24 -0800
committerTyler Gunn <tgunn@google.com>2015-01-29 11:47:24 -0800
commit8a2b1199a6db0c6f2493e96e25ec1d89e3f62769 (patch)
tree4f634a0e7cf8932c874d7e8376b9a61ceaa938d6
parentfeabeb624361c234279a03c6dcdb6a53ee48eddc (diff)
downloadframeworks_base-8a2b1199a6db0c6f2493e96e25ec1d89e3f62769.zip
frameworks_base-8a2b1199a6db0c6f2493e96e25ec1d89e3f62769.tar.gz
frameworks_base-8a2b1199a6db0c6f2493e96e25ec1d89e3f62769.tar.bz2
Fixing conference merge where only one party is added to conference.
- Adding "onConferenceStarted" listener for Connections. - This is necessary so that an ImsCall can report the fact that it has went from being a single party call to a multiparty call. This was not previously necessary since the multiparty bit change would be detected when one of the connections being merged changed state. Since we now must defer the establishment of the conference until all connections have been merged, we need a means of detecting when the call becomes multiparty. Bug: 18960042 Change-Id: I3ba138cb546e3efdf89b29d6676d00257a5e00cd
-rw-r--r--api/system-current.txt1
-rw-r--r--telecomm/java/android/telecom/Connection.java10
2 files changed, 11 insertions, 0 deletions
diff --git a/api/system-current.txt b/api/system-current.txt
index 56edc72..d84b1dc 100644
--- a/api/system-current.txt
+++ b/api/system-current.txt
@@ -30037,6 +30037,7 @@ package android.telecom {
method public final int getState();
method public final android.telecom.StatusHints getStatusHints();
method public final boolean isRingbackRequested();
+ method protected void notifyConferenceStarted();
method public void onAbort();
method public void onAnswer();
method public void onAudioStateChanged(android.telecom.AudioState);
diff --git a/telecomm/java/android/telecom/Connection.java b/telecomm/java/android/telecom/Connection.java
index a180f44..03fec01 100644
--- a/telecomm/java/android/telecom/Connection.java
+++ b/telecomm/java/android/telecom/Connection.java
@@ -260,6 +260,7 @@ public abstract class Connection implements IConferenceable {
/** @hide */
public void onConferenceParticipantsChanged(Connection c,
List<ConferenceParticipant> participants) {}
+ public void onConferenceStarted() {}
}
/** @hide */
@@ -1422,4 +1423,13 @@ public abstract class Connection implements IConferenceable {
l.onConferenceParticipantsChanged(this, conferenceParticipants);
}
}
+
+ /**
+ * Notifies listeners that a conference call has been started.
+ */
+ protected void notifyConferenceStarted() {
+ for (Listener l : mListeners) {
+ l.onConferenceStarted();
+ }
+ }
}