Lines Matching defs:connection

89     /** The CDMA conference connection object. */
92 void add(final CdmaConnection connection) {
93 if (!mCdmaConnections.isEmpty() && connection.isOutgoing()) {
94 // There already exists a connection, so this will probably result in a conference once
95 // it is added. For outgoing connections which are added while another connection
100 connection.forceAsDialing(true);
111 connection.forceAsDialing(false);
112 addInternal(connection);
119 // This is the first connection, or it is incoming, so let it flow through.
120 addInternal(connection);
124 private void addInternal(CdmaConnection connection) {
125 mCdmaConnections.add(connection);
126 connection.addConnectionListener(mConnectionListener);
130 private void remove(CdmaConnection connection) {
131 connection.removeConnectionListener(mConnectionListener);
132 mCdmaConnections.remove(connection);
138 for (CdmaConnection connection : mCdmaConnections) {
140 if (!connection.isCallWaiting() &&
141 connection.getState() != Connection.STATE_DISCONNECTED) {
142 conferenceConnections.add(connection);
153 // 1) Create a new conference connection if it doesn't exist.
166 // If the most recently added connection was an incoming call, enable
174 for (CdmaConnection connection : conferenceConnections) {
175 if (!existingChildConnections.contains(connection)) {
176 Log.i(this, "Adding connection to conference call: %s", connection);
177 mConference.addConnection(connection);
179 existingChildConnections.remove(connection);
185 Log.i(this, "Removing connection from conference call: %s", oldConnection);
188 // 4) Add the conference to the connection service if it is new.
194 // There are no more connection so if we still have a conference, lets remove it.
196 Log.i(this, "Destroying the CDMA conference connection.");