Home | History | Annotate | Download | only in telephony

Lines Matching defs:connection

26 import android.telecom.Connection;
27 import android.telecom.Connection.VideoProvider;
56 * An IMS conference call consists of a conference host connection and potentially a list of
57 * conference participants. The conference host connection represents the radio connection to the
58 * IMS conference server. Since it is not a connection to any one individual, it is not represented
60 * connection via a conference event package. Conference participant connections do not represent
65 * connection and is responsible for managing the conference participant connections which represent
74 private final Connection.Listener mParticipantListener = new Connection.Listener() {
78 * @param connection The participant which was destroyed.
81 public void onDestroyed(Connection connection) {
83 (ConferenceParticipantConnection) connection;
91 * Listener used to respond to changes to the underlying radio connection for the conference
92 * host connection. Used to respond to SRVCC changes.
106 * Listener used to respond to changes to the connection to the IMS conference server.
108 private final android.telecom.Connection.Listener mConferenceHostListener =
109 new android.telecom.Connection.Listener() {
114 * @param c The host connection.
118 public void onStateChanged(android.telecom.Connection c, int state) {
123 * Disconnects the conference when its host connection disconnects.
125 * @param c The host connection.
126 * @param disconnectCause The host connection disconnect cause.
129 public void onDisconnected(android.telecom.Connection c, DisconnectCause disconnectCause) {
135 * connection.
137 * @param c The connection.
141 public void onConferenceParticipantsChanged(android.telecom.Connection c,
153 public void onVideoStateChanged(android.telecom.Connection c, int videoState) {
159 public void onVideoProviderChanged(android.telecom.Connection c,
160 Connection.VideoProvider videoProvider) {
161 Log.d(this, "onVideoProviderChanged: Connection: %s, VideoProvider: %s", c,
167 public void onConnectionCapabilitiesChanged(Connection c, int connectionCapabilities) {
168 Log.d(this, "onConnectionCapabilitiesChanged: Connection: %s," +
178 public void onConnectionPropertiesChanged(Connection c, int connectionProperties) {
179 Log.d(this, "onConnectionPropertiesChanged: Connection: %s," +
186 public void onStatusHintsChanged(Connection c, StatusHints statusHints) {
192 public void onExtrasChanged(Connection c, Bundle extras) {
198 public void onExtrasRemoved(Connection c, List<String> keys) {
205 * The telephony connection service; used to add new participant connections to Telecom.
210 * The connection to the conference server which is hosting the conference.
258 * @param telephonyConnectionService The connection service responsible for adding new
260 * @param conferenceHost The telephony connection hosting the conference.
271 // Specify the connection time of the conference to be the connection time of the original
272 // connection.
277 // Set the connectTime in the connection as well.
284 int capabilities = Connection.CAPABILITY_MUTE |
285 Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN;
287 capabilities |= Connection.CAPABILITY_SUPPORT_HOLD | Connection.CAPABILITY_HOLD;
309 Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL,
310 can(capabilities, Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL));
314 Connection.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL,
315 can(capabilities, Connection.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL));
317 Connection.CAPABILITY_CAN_UPGRADE_TO_VIDEO,
318 can(capabilities, Connection.CAPABILITY_CAN_UPGRADE_TO_VIDEO));
324 Connection.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL, false);
326 Connection.CAPABILITY_CAN_UPGRADE_TO_VIDEO, false);
330 Connection.CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO,
331 can(capabilities, Connection.CAPABILITY_CANNOT_DOWNGRADE_VIDEO_TO_AUDIO));
334 Connection.CAPABILITY_CAN_PAUSE_VIDEO,
349 Connection.PROPERTY_HIGH_DEF_AUDIO,
350 can(properties, Connection.PROPERTY_HIGH_DEF_AUDIO));
353 Connection.PROPERTY_WIFI,
354 can(properties, Connection.PROPERTY_WIFI));
357 Connection.PROPERTY_IS_EXTERNAL_CALL,
358 can(properties, Connection.PROPERTY_IS_EXTERNAL_CALL));
369 public android.telecom.Connection getPrimaryConnection() {
400 * Invoked when the Conference and all its {@link Connection}s should be disconnected.
402 * Hangs up the call via the conference host connection. When the host connection has been
427 * Invoked when the specified {@link android.telecom.Connection} should be separated from the
432 * @param connection The connection to separate.
435 public void onSeparate(android.telecom.Connection connection) {
440 * Invoked when the specified {@link android.telecom.Connection} should be merged into the
443 * @param connection The {@code Connection} to merge.
446 public void onMerge(android.telecom.Connection connection) {
507 * @param connection The newly added connection.
510 public void onConnectionAdded(android.telecom.Connection connection) {
518 removeCapability(Connection.CAPABILITY_HOLD);
520 addCapability(Connection.CAPABILITY_HOLD);
556 com.android.internal.telephony.Connection originalConnection =
568 * Note: We add and remove {@link Connection#CAPABILITY_CONFERENCE_HAS_NO_CHILDREN} to ensure
572 boolean couldManageConference = can(Connection.CAPABILITY_MANAGE_CONFERENCE);
581 capabilities |= Connection.CAPABILITY_MANAGE_CONFERENCE;
582 capabilities &= ~Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN;
584 capabilities &= ~Connection.CAPABILITY_MANAGE_CONFERENCE;
585 capabilities |= Connection.CAPABILITY_CONFERENCE_HAS_NO_CHILDREN;
593 * Sets the connection hosting the conference and registers for callbacks.
595 * @param conferenceHost The connection hosting the conference.
648 * @param parent The connection which was notified of the conference participant.
690 ConferenceParticipantConnection connection =
694 connection.updateState(participant.getState());
702 ConferenceParticipantConnection connection =
706 connection.updateState(newParticipant.getState());
741 * The new connection is added to the conference controller and connection service.
743 * @param parent The connection which was notified of the participant change (e.g. the
744 * parent connection).
750 // Create and add the new connection in holding state so that it does not become the
752 ConferenceParticipantConnection connection = new ConferenceParticipantConnection(
754 connection.addConnectionListener(mParticipantListener);
755 connection.setConnectTimeMillis(parent.getConnectTimeMillis());
757 Log.i(this, "createConferenceParticipantConnection: participant=%s, connection=%s",
758 participant, connection);
762 participant.getEndpoint()), connection);
766 connection, this);
767 addConnection(connection);
792 for (ConferenceParticipantConnection connection :
795 connection.removeConnectionListener(mParticipantListener);
798 connection.setDisconnected(new DisconnectCause(DisconnectCause.CANCELED));
799 mTelephonyConnectionService.removeConnection(connection);
800 connection.destroy();
811 * @param hostHandles The handle(s) of the connection hosting the conference.
869 * Handles a change in the original connection backing the conference host connection. This can
870 * happen if an SRVCC event occurs on the original IMS connection, requiring a fallback to
873 * If this happens, we will add the conference host connection to telecom and tear down the
882 com.android.internal.telephony.Connection originalConnection =
888 "handleOriginalConnectionChange : handover from IMS connection to " +
889 "new connection: %s", originalConnection);
911 // This is a newly created conference connection as a result of SRVCC
914 c.getConnectionProperties() | Connection.PROPERTY_IS_DOWNGRADED_CONFERENCE);
938 Log.v(this, "setState %s", Connection.stateToString(state));
941 case Connection.STATE_INITIALIZING:
942 case Connection.STATE_NEW:
943 case Connection.STATE_RINGING:
946 case Connection.STATE_DIALING:
949 case Connection.STATE_DISCONNECTED:
961 case Connection.STATE_ACTIVE:
964 case Connection.STATE_HOLDING:
976 return can(capabilities, Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL)
977 && can(capabilities, Connection.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL);
1014 sb.append(Connection.stateToString(getState()));