Lines Matching defs:conference

222         public void conference(String callId1, String callId2) {
384 conference(callId1, callId2);
445 public void onStateChanged(Conference conference, int oldState, int newState) {
446 String id = mIdByConference.get(conference);
461 public void onDisconnected(Conference conference, DisconnectCause disconnectCause) {
462 String id = mIdByConference.get(conference);
467 public void onConnectionAdded(Conference conference, Connection connection) {
471 public void onConnectionRemoved(Conference conference, Connection connection) {
476 Conference conference, List<Connection> conferenceableConnections) {
478 mIdByConference.get(conference),
483 public void onDestroyed(Conference conference) {
484 removeConference(conference);
489 Conference conference,
491 String id = mIdByConference.get(conference);
492 Log.d(this, "call capabilities: conference: %s",
499 Conference conference,
501 String id = mIdByConference.get(conference);
502 Log.d(this, "call capabilities: conference: %s",
523 public void onStatusHintsChanged(Conference conference, StatusHints statusHints) {
524 String id = mIdByConference.get(conference);
675 public void onConferenceChanged(Connection connection, Conference conference) {
679 if (conference != null) {
680 conferenceId = mIdByConference.get(conference);
885 private void conference(String callId1, String callId2) {
886 Log.d(this, "conference %s, %s", callId1, callId2);
888 // Attempt to get second connection or conference.
889 Connection connection2 = findConnectionForAction(callId2, "conference");
892 conference2 = findConferenceForAction(callId2, "conference");
894 Log.w(this, "Connection2 or Conference2 missing in conference request %s.",
900 // Attempt to get first connection or conference and perform merge.
901 Connection connection1 = findConnectionForAction(callId1, "conference");
906 "Connection1 or Conference1 missing in conference request %s.",
909 // Call 1 is a conference.
911 // Call 2 is a connection so merge via call 1 (conference).
914 // Call 2 is ALSO a conference; this should never happen.
915 Log.wtf(this, "There can only be one conference and an attempt was made to " +
923 // Call 2 is a conference, so merge via call 2.
937 Log.w(this, "Connection missing in conference request %s.", callId);
941 Conference conference = connection.getConference();
942 if (conference != null) {
943 conference.onSeparate(connection);
949 Conference conference = findConferenceForAction(callId, "mergeConference");
950 if (conference != null) {
951 conference.onMerge();
957 Conference conference = findConferenceForAction(callId, "swapConference");
958 if (conference != null) {
959 conference.onSwap();
1099 * {@link RemoteConnection}s should be merged into a conference call.
1101 * If the conference request is successful, the method {@link #onRemoteConferenceAdded} will
1104 * @param remoteConnection1 The first of the remote connections to conference.
1105 * @param remoteConnection2 The second of the remote connections to conference.
1114 * Adds a new conference call. When a conference call is created either as a result of an
1116 * an instance of {@link Conference} by invoking this method. A conference call provided by this
1117 * method will persist until {@link Conference#destroy} is invoked on the conference instance.
1119 * @param conference The new conference object.
1121 public final void addConference(Conference conference) {
1122 Log.d(this, "addConference: conference=%s", conference);
1124 String id = addConferenceInternal(conference);
1127 for (Connection connection : conference.getConnections()) {
1132 conference.setTelecomCallId(id);
1134 conference.getPhoneAccountHandle(),
1135 conference.getState(),
1136 conference.getConnectionCapabilities(),
1137 conference.getConnectionProperties(),
1139 conference.getVideoProvider() == null ?
1140 null : conference.getVideoProvider().getInterface(),
1141 conference.getVideoState(),
1142 conference.getConnectTimeMillis(),
1143 conference.getStatusHints(),
1144 conference.getExtras());
1147 mAdapter.setVideoProvider(id, conference.getVideoProvider());
1148 mAdapter.setVideoState(id, conference.getVideoState());
1151 for (Connection connection : conference.getConnections()) {
1235 * Trigger recalculate functinality for conference calls. This is used when a Telephony
1236 * Connection is part of a conference controller but is not yet added to Connection
1237 * Service and hence cannot be added to the conference call.
1292 * specified connections into a conference call. In response, the connection service should
1295 * @param connection1 A connection to merge into a conference call.
1296 * @param connection2 A connection to merge into a conference call.
1301 * Indicates that a remote conference has been created for existing {@link RemoteConnection}s.
1303 * representation of the conference call and send it to telecom using {@link #addConference}.
1308 * @param conference The remote conference call.
1310 public void onRemoteConferenceAdded(RemoteConference conference) {}
1321 public boolean containsConference(Conference conference) {
1322 return mIdByConference.containsKey(conference);
1391 private String addConferenceInternal(Conference conference) {
1393 if (conference.getExtras() != null && conference.getExtras()
1395 originalId = conference.getExtras().getString(Connection.EXTRA_ORIGINAL_CONNECTION_ID);
1397 conference.getTelecomCallId(),
1400 if (mIdByConference.containsKey(conference)) {
1401 Log.w(this, "Re-adding an existing conference: %s.", conference);
1402 } else if (conference != null) {
1407 mConferenceById.put(id, conference);
1408 mIdByConference.put(conference, id);
1409 conference.addListener(mConferenceListener);
1416 private void removeConference(Conference conference) {
1417 if (mIdByConference.containsKey(conference)) {
1418 conference.removeListener(mConferenceListener);
1420 String id = mIdByConference.get(conference);
1422 mIdByConference.remove(conference);
1446 Log.w(this, "%s - Cannot find conference %s", action, conferenceId);
1466 * @return List of string conference and call Ids.
1478 Conference conference = (Conference) c;
1479 if (mIdByConference.containsKey(conference)) {
1480 ids.add(mIdByConference.get(conference));
1503 for (Conference conference : mIdByConference.keySet()) {
1504 conference.onDisconnect();