Add onConferenceSupportedChanged callback, carrier config.

Used to inform listeners when a connection can or cannot be part of a
conference.  Used to inform the conference controller so that it can
recalculate the conferencable connections.

Adding carrier config for carrier requirement.

Bug: 29059073
Change-Id: Iab028fd44d87c8dc2bbbe8bba7ba9ccdc223fe51
This commit is contained in:
Tyler Gunn
2016-06-24 07:30:10 -07:00
parent 6ad70eaa60
commit 7d633d3337
5 changed files with 31 additions and 2 deletions

View File

@@ -586,6 +586,8 @@ public abstract class Connection extends Conferenceable {
public void onExtrasChanged(Connection c, Bundle extras) {}
public void onExtrasRemoved(Connection c, List<String> keys) {}
public void onConnectionEvent(Connection c, String event, Bundle extras) {}
/** @hide */
public void onConferenceSupportedChanged(Connection c, boolean isConferenceSupported) {}
}
/**
@@ -2354,6 +2356,19 @@ public abstract class Connection extends Conferenceable {
}
}
/**
* Notifies listeners when a change has occurred to the Connection which impacts its ability to
* be a part of a conference call.
* @param isConferenceSupported {@code true} if the connection supports being part of a
* conference call, {@code false} otherwise.
* @hide
*/
protected void notifyConferenceSupportedChanged(boolean isConferenceSupported) {
for (Listener l : mListeners) {
l.onConferenceSupportedChanged(this, isConferenceSupported);
}
}
/**
* Sends an event associated with this {@code Connection}, with associated event extras.
*