Lines Matching refs:Connection
71 * @param connection The {@link RemoteConnection} being added.
73 public void onConnectionAdded(RemoteConference conference, RemoteConnection connection) {}
79 * @param connection The {@link RemoteConnection} being removed.
81 public void onConnectionRemoved(RemoteConference conference, RemoteConnection connection) {}
146 private int mState = Connection.STATE_NEW;
165 for (RemoteConnection connection : mChildConnections) {
166 connection.setConference(null);
182 if (newState != Connection.STATE_ACTIVE &&
183 newState != Connection.STATE_HOLDING &&
184 newState != Connection.STATE_DISCONNECTED) {
186 Connection.stateToString(newState));
207 void addConnection(final RemoteConnection connection) {
208 if (!mChildConnections.contains(connection)) {
209 mChildConnections.add(connection);
210 connection.setConference(this);
217 callback.onConnectionAdded(conference, connection);
225 void removeConnection(final RemoteConnection connection) {
226 if (mChildConnections.contains(connection)) {
227 mChildConnections.remove(connection);
228 connection.setConference(null);
235 callback.onConnectionRemoved(conference, connection);
297 if (mState != Connection.STATE_DISCONNECTED) {
299 setState(Connection.STATE_DISCONNECTED);
358 * Gets the state of the conference call. See {@link Connection} for valid values.
368 * {@link Connection} for valid values.
378 * {@link Connection} for valid values.
389 * @return The extras for this connection.
407 * {@link RemoteConnection} to become a standalone connection. This is a no-op if the
410 * @param connection The remote-connection to remove.
412 public void separate(RemoteConnection connection) {
413 if (mChildConnections.contains(connection)) {
415 mConnectionService.splitFromConference(connection.getId());
424 * {@link Connection#CAPABILITY_MERGE_CONFERENCE}, otherwise it is a no-op. The presence of said
441 * {@link Connection#CAPABILITY_SWAP_CONFERENCE}, otherwise it is a no-op. This is only used by
445 * active audio stream to a different child connection.
476 * {@link Connection#STATE_DISCONNECTED}. If the conference is not disconnected, this will