Lines Matching defs:connection

297         final TelephonyConnection connection =
300 if (connection == null) {
306 connection.setAddress(handle, PhoneConstants.PRESENTATION_ALLOWED);
307 connection.setInitializing();
308 connection.setVideoState(request.getVideoState());
318 if (connection.getState() == Connection.STATE_DISCONNECTED) {
319 // If the connection has already been disconnected, do nothing.
321 connection.setInitialized();
322 placeOutgoingConnection(connection, phone, request);
325 connection.setDisconnected(
329 connection.destroy();
335 placeOutgoingConnection(connection, phone, request);
338 return connection;
377 Log.i(this, "onCreateIncomingConnection, original connection already registered");
381 Connection connection =
385 if (connection == null) {
388 return connection;
424 // Handle the case where an unknown connection has an IMS external call ID specified; we can
435 com.android.internal.telephony.Connection connection =
438 if (connection != null) {
439 allConnections.add(connection);
477 Log.i(this, "onCreateUnknownConnection, did not find previously unknown connection.");
481 TelephonyConnection connection =
487 if (connection == null) {
490 connection.updateState();
491 return connection;
506 TelephonyConnection connection, Phone phone, ConnectionRequest request) {
507 String number = connection.getAddress().getSchemeSpecificPart();
519 connection.setDisconnected(DisconnectCauseUtil.toTelecomDisconnectCause(
526 // On GSM phones, null connection means that we dialed an MMI code
536 connection.setDisconnected(DisconnectCauseUtil.toTelecomDisconnectCause(
539 connection.setOriginalConnection(originalConnection);
560 // Listen to Telephony specific callbacks from the connection
576 for (Connection connection : getAllConnections()) {
577 if (connection instanceof TelephonyConnection) {
578 TelephonyConnection telephonyConnection = (TelephonyConnection) connection;
666 * Determines if the connection should allow mute.
669 * @return {@code True} if the connection should allow mute.
684 public void removeConnection(Connection connection) {
685 super.removeConnection(connection);
686 if (connection instanceof TelephonyConnection) {
687 TelephonyConnection telephonyConnection = (TelephonyConnection) connection;
693 * When a {@link TelephonyConnection} has its underlying original connection configured,
696 * @param connection The connection to be added to the controller
698 public void addConnectionToConferenceController(TelephonyConnection connection) {
699 // TODO: Do we need to handle the case of the original connection changing
700 // and triggering this callback multiple times for the same connection?
701 // If that is the case, we might want to remove this connection from all
703 if (connection.isImsConnection()) {
704 Log.d(this, "Adding IMS connection to conference controller: " + connection);
705 mImsConferenceController.add(connection);
707 int phoneType = connection.getCall().getPhone().getPhoneType();
709 Log.d(this, "Adding GSM connection to conference controller: " + connection);
710 mTelephonyConferenceController.add(connection);
712 connection instanceof CdmaConnection) {
713 Log.d(this, "Adding CDMA connection to conference controller: " + connection);
714 mCdmaConferenceController.add((CdmaConnection)connection);
716 Log.d(this, "Removing connection from IMS conference controller: " + connection);
717 mImsConferenceController.remove(connection);
722 * Create a new CDMA connection. CDMA connections have additional limitations when creating