Home | History | Annotate | Download | only in telecom

Lines Matching refs:Connection

24 import android.telecom.Connection.VideoProvider;
38 * Represents a conference call which can contain any number of {@link Connection} objects.
43 * Used to indicate that the conference connection time is not specified. If not specified,
52 public void onConnectionAdded(Conference conference, Connection connection) {}
53 public void onConnectionRemoved(Conference conference, Connection connection) {}
55 Conference conference, List<Connection> conferenceableConnections) {}
62 public void onVideoProviderChanged(Conference c, Connection.VideoProvider videoProvider) {}
69 private final List<Connection> mChildConnections = new CopyOnWriteArrayList<>();
70 private final List<Connection> mUnmodifiableChildConnections =
72 private final List<Connection> mConferenceableConnections = new ArrayList<>();
73 private final List<Connection> mUnmodifiableConferenceableConnections =
79 private int mState = Connection.STATE_NEW;
91 private final Connection.Listener mConnectionDeathListener = new Connection.Listener() {
93 public void onDestroyed(Connection c) {
141 * @return A list of {@code Connection} objects which represent the children of the conference.
143 public final List<Connection> getConnections() {
148 * Gets the state of the conference call. See {@link Connection} for valid values.
158 * {@link Connection} for valid values.
168 * {@link Connection} for valid values.
189 * Whether the capabilities of this {@code Connection} supports the specified capability.
262 * Notifies the {@link Conference} when the Conference and all it's {@link Connection}s should
268 * Notifies the {@link Conference} when the specified {@link Connection} should be separated
271 * @param connection The connection to separate.
273 public void onSeparate(Connection connection) {}
276 * Notifies the {@link Conference} when the specified {@link Connection} should merged with the
279 * @param connection The {@code Connection} to merge.
281 public void onMerge(Connection connection) {}
295 * conference contains the capability {@link Connection#CAPABILITY_MERGE_CONFERENCE}.
301 * conference contains the capability {@link Connection#CAPABILITY_SWAP_CONFERENCE}.
337 * Notifies the {@link Conference} that a {@link Connection} has been added to it.
339 * @param connection The newly added connection.
341 public void onConnectionAdded(Connection connection) {}
347 setState(Connection.STATE_HOLDING);
354 setState(Connection.STATE_DIALING);
361 setState(Connection.STATE_ACTIVE);
372 setState(Connection.STATE_DISCONNECTED);
379 * @return The {@link DisconnectCause} for this connection.
387 * {@link Connection} for valid values.
403 * {@link Connection} for valid values.
418 * Adds the specified connection as a child of this conference.
420 * @param connection The connection to add.
421 * @return True if the connection was successfully added.
423 public final boolean addConnection(Connection connection) {
424 Log.d(this, "Connection=%s, connection=", connection);
425 if (connection != null && !mChildConnections.contains(connection)) {
426 if (connection.setConference(this)) {
427 mChildConnections.add(connection);
428 onConnectionAdded(connection);
430 l.onConnectionAdded(this, connection);
439 * Removes the specified connection as a child of this conference.
441 * @param connection The connection to remove.
443 public final void removeConnection(Connection connection) {
444 Log.d(this, "removing %s from %s", connection, mChildConnections);
445 if (connection != null && mChildConnections.remove(connection)) {
446 connection.resetConference();
448 l.onConnectionRemoved(this, connection);
454 * Sets the connections with which this connection can be conferenced.
456 * @param conferenceableConnections The set of connections this connection can conference with.
458 public final void setConferenceableConnections(List<Connection> conferenceableConnections) {
460 for (Connection c : conferenceableConnections) {
480 public final void setVideoState(Connection c, int videoState) {
481 Log.d(this, "setVideoState Conference: %s Connection: %s VideoState: %s",
489 * Sets the video connection provider.
493 public final void setVideoProvider(Connection c, Connection.VideoProvider videoProvider) {
494 Log.d(this, "setVideoProvider Conference: %s Connection: %s VideoState: %s",
508 * Returns the connections with which this connection can be conferenced.
510 public final List<Connection> getConferenceableConnections() {
520 for (Connection connection : mChildConnections) {
521 Log.d(this, "removing connection %s", connection);
522 removeConnection(connection);
526 if (mState != Connection.STATE_DISCONNECTED) {
562 * Retrieves the primary connection associated with the conference. The primary connection is
563 * the connection from which the conference will retrieve its current state.
565 * @return The primary connection.
569 public Connection getPrimaryConnection() {
587 * Sets the connection start time of the {@code Conference}. Should be specified in wall-clock
590 * @param connectionTimeMillis The connection time, in milliseconds.
600 * When setting the connection elapsed time, you should always set the connection time via
603 * @param connectionElapsedTime The connection time, as measured by
622 * Retrieves the connection start time of the {@code Conference}, if specified. A value of
633 * Retrieves the connection start time of the {@link Conference}, if specified. A value of
661 if (newState != Connection.STATE_ACTIVE &&
662 newState != Connection.STATE_HOLDING &&
663 newState != Connection.STATE_DISCONNECTED) {
665 Connection.stateToString(newState));
679 for (Connection c : mConferenceableConnections) {
689 Connection.stateToString(mState),
876 * @return The extras associated with this connection.