Home | History | Annotate | Download | only in telecom

Lines Matching defs:Connection

42  * Represents a phone call or connection to a remote endpoint that carries voice and/or video
45 * Implementations create a custom subclass of {@code Connection} and return it to the framework
50 * Implementations are then responsible for updating the state of the {@code Connection}, and
51 * must call {@link #destroy()} to signal to the framework that the {@code Connection} is no
54 public abstract class Connection extends Conferenceable {
57 * The connection is initializing. This is generally the first state for a {@code Connection}
63 * The connection is new and not connected.
68 * An incoming connection is in the ringing state. During this state, the user's ringer or
74 * An outgoing connection is in the dialing state. In this state the other party has not yet
80 * A connection is active. Both parties are connected to the call and can actively communicate.
85 * A connection is on hold.
90 * A connection has been disconnected. This is the final state once the user has been
96 * Connection can currently be put on hold or unheld. This is distinct from
97 * {@link #CAPABILITY_SUPPORT_HOLD} in that although a connection may support 'hold' most times,
104 /** Connection supports the hold feature. */
109 * add a {@link Conference} before the child {@link Connection}s are merged. This is how
110 * CDMA-based {@link Connection}s are implemented. For these unmerged {@link Conference}s, this
131 /** Connection supports responding via text option. */
134 /** Connection can be muted. */
138 * Connection supports conference management. This capability only applies to
139 * {@link Conference}s which can have {@link Connection}s as children.
176 * Connection is able to be separated from its parent {@code Conference}, if any.
181 * Connection is able to be individually disconnected when in a {@code Conference}.
194 * Connection is using high definition audio.
200 * Connection is using WIFI.
240 * connection to the IMS conference server.
244 * conference connection shown in the list of calls on a Bluetooth device, where if the
256 * Connection extra key used to store the last forwarded number associated with the current
257 * connection. Used to communicate to the user interface that the connection was forwarded via
264 * Connection extra key used to store a child number associated with the current connection.
265 * Used to communicate to the user interface that the connection was received via
272 * Connection extra key used to store the subject for an incoming call. The user interface can
294 * Whether the capabilities of this {@code Connection} supports the specified capability.
305 * Removes the specified capability from the set of capabilities of this {@code Connection}.
315 * Adds the specified capability to the set of capabilities of this {@code Connection}.
397 public void onStateChanged(Connection c, int state) {}
398 public void onAddressChanged(Connection c, Uri newAddress, int presentation) {}
400 Connection c, String callerDisplayName, int presentation) {}
401 public void onVideoStateChanged(Connection c, int videoState) {}
402 public void onDisconnected(Connection c, DisconnectCause disconnectCause) {}
403 public void onPostDialWait(Connection c, String remaining) {}
404 public void onPostDialChar(Connection c, char nextChar) {}
405 public void onRingbackRequested(Connection c, boolean ringback) {}
406 public void onDestroyed(Connection c) {}
407 public void onConnectionCapabilitiesChanged(Connection c, int capabilities) {}
409 Connection c, VideoProvider videoProvider) {}
410 public void onAudioModeIsVoipChanged(Connection c, boolean isVoip) {}
411 public void onStatusHintsChanged(Connection c, StatusHints statusHints) {}
413 Connection c, List<Conferenceable> conferenceables) {}
414 public void onConferenceChanged(Connection c, Conference conference) {}
416 public void onConferenceParticipantsChanged(Connection c,
419 public void onConferenceMergeFailed(Connection c) {}
420 public void onExtrasChanged(Connection c, Bundle extras) {}
424 * Provides a means of controlling the video session associated with a {@link Connection}.
427 * {@link ConnectionService} creates an instance sets it on the {@link Connection} using
428 * {@link Connection#setVideoProvider(VideoProvider)}. Any connection which supports video
821 * video component of the current {@link Connection}.
949 * video associated with the current {@link Connection} has changed.
1039 public void onDestroyed(Connection c) {
1085 * Create a new Connection.
1087 public Connection() {}
1090 * @return The address (e.g., phone number) to which this Connection is currently communicating.
1120 * @return The state of this Connection.
1127 * Returns the video state of the connection.
1133 * @return The video state of the connection.
1141 * @return The audio state of the connection, describing how its audio is currently
1142 * being routed by the system. This is {@code null} if this Connection
1157 * @return The audio state of the connection, describing how its audio is currently
1158 * being routed by the system. This is {@code null} if this Connection
1166 * @return The conference that this connection is a part of. Null if it is not part of any
1174 * Returns whether this connection is requesting that the system play a ringback tone
1182 connection's audio mode is VOIP.
1189 * Retrieves the connection start time of the {@code Connnection}, if specified. A value of
1202 * @return The status hints for this connection.
1209 * @return The extras associated with this connection.
1219 * @return This Connection.
1223 public final Connection addConnectionListener(Listener l) {
1232 * @return This Connection.
1236 public final Connection removeConnectionListener(Listener l) {
1244 * @return The {@link DisconnectCause} for this connection.
1251 * Inform this Connection that the state of its audio output has been changed externally.
1285 Log.wtf(Connection.class, "Unknown state %d", state);
1291 * Returns the connection's capabilities, as a bit mask of the {@code CAPABILITY_*} constants.
1332 * Set the video state for the connection.
1350 * Sets state to active (e.g., an ongoing connection where two or more parties can actively
1360 * Sets state to ringing (e.g., an inbound ringing connection).
1368 * Sets state to initializing (this Connection is not yet ready to be used).
1376 * Sets state to initialized (the Connection has been set up and is now ready to be used).
1384 * Sets state to dialing (e.g., dialing an outbound connection).
1400 * Sets the video connection provider.
1432 * Informs listeners that this {@code Connection} is in a post-dial wait state. This is done
1433 * when (a) the {@code Connection} is issuing a DTMF sequence; (b) it has encountered a "wait"
1449 * Informs listeners that this {@code Connection} has processed a character in the post-dial
1450 * started state. This is done when (a) the {@code Connection} is issuing a DTMF sequence;
1453 * @param nextChar The DTMF character that was just processed by the {@code Connection}.
1464 * that do not play a ringback tone themselves in the connection's audio stream.
1479 * Sets the connection's capabilities as a bit mask of the {@code CAPABILITY_*} constants.
1481 * @param connectionCapabilities The new connection capabilities.
1494 * Tears down the Connection object.
1503 * Requests that the framework use VOIP audio mode for this connection.
1516 * Sets the time at which a call became active on this Connection. This is set only
1517 * when a conference call becomes active on this connection.
1519 * @param connectionTimeMillis The connection time, in milliseconds.
1541 * Sets the connections with which this connection can be conferenced.
1543 * @param conferenceableConnections The set of connections this connection can conference with.
1545 public final void setConferenceableConnections(List<Connection> conferenceableConnections) {
1548 for (Connection c : conferenceableConnections) {
1561 * or conferences with which this connection can be conferenced.
1571 if (c instanceof Connection) {
1572 Connection connection = (Connection) c;
1573 connection.addConnectionListener(mConnectionDeathListener);
1585 * Returns the connections or conferences with which this connection can be conferenced.
1597 Log.e(this, new Exception(), "Trying to set ConnectionService on a connection " +
1609 Log.e(this, new Exception(), "Trying to remove ConnectionService from a Connection " +
1624 * Sets the conference that this connection is a part of. This will fail if the connection is
1645 * Resets the conference that this connection is a part of.
1657 * Set some extras that can be associated with this {@code Connection}. No assumptions should
1661 * @param extras The extras associated with this {@code Connection}.
1672 * Notifies this Connection that the {@link #getAudioState()} property has a new value.
1674 * @param state The new connection audio state.
1683 * Notifies this Connection that the {@link #getCallAudioState()} property has a new value.
1685 connection audio state.
1690 * Notifies this Connection of an internal state change. This method is called after the
1698 * Notifies this Connection of a request to play a DTMF tone.
1705 * Notifies this Connection of a request to stop any currently playing DTMF tones.
1710 * Notifies this Connection of a request to disconnect.
1715 * Notifies this Connection of a request to disconnect a participant of the conference managed
1716 * by the connection.
1724 * Notifies this Connection of a request to separate from its parent conference.
1729 * Notifies this Connection of a request to abort.
1734 * Notifies this Connection of a request to hold.
1739 * Notifies this Connection of a request to exit a hold state.
1744 * Notifies this Connection, which is in {@link #STATE_RINGING}, of
1747 * @param videoState The video state in which to answer the connection.
1752 * Notifies this Connection, which is in {@link #STATE_RINGING}, of
1760 * Notifies this Connection, which is in {@link #STATE_RINGING}, of
1766 * Notifies this Connection whether the user wishes to proceed with the post-dial DTMF codes.
1798 Log.d(this, "Connection already DISCONNECTED; cannot transition out of this state.");
1811 private static class FailureSignalingConnection extends Connection {
1820 throw new UnsupportedOperationException("Connection is immutable");
1826 * Return a {@code Connection} which represents a failed connection attempt. The returned
1827 * {@code Connection} will have a {@link android.telecom.DisconnectCause} and as specified,
1830 * The returned {@code Connection} can be assumed to {@link #destroy()} itself when appropriate,
1834 * @return A {@code Connection} which indicates failure.
1836 public static Connection createFailedConnection(DisconnectCause disconnectCause) {
1841 * Override to throw an {@link UnsupportedOperationException} if this {@code Connection} is
1850 * Return a {@code Connection} which represents a canceled connection attempt. The returned
1851 * {@code Connection} will have state {@link #STATE_DISCONNECTED}, and cannot be moved out of
1852 * that state. This connection should not be used for anything, and no other
1853 * {@code Connection}s should be attempted.
1857 * @return A {@code Connection} which indicates that the underlying connection should
1860 public static Connection createCanceledConnection() {
1878 if (c instanceof Connection) {
1879 Connection connection = (Connection) c;
1880 connection.removeConnectionListener(mConnectionDeathListener);