Home | History | Annotate | Download | only in telecom

Lines Matching refs:connection

41  * A connection provided to a {@link ConnectionService} by another {@code ConnectionService}
57 * @param connection The {@code RemoteConnection} invoking this method.
60 public void onStateChanged(RemoteConnection connection, int state) {}
65 * @param connection The {@code RemoteConnection} invoking this method.
67 * connection.
70 RemoteConnection connection,
77 * @param connection The {@code RemoteConnection} invoking this method.
80 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {}
86 * @param connection The {@code RemoteConnection} invoking this method.
90 RemoteConnection connection,
97 * @param connection The {@code RemoteConnection} invoking this method.
101 RemoteConnection connection,
105 * Invoked when the post-dial sequence in the outgoing {@code Connection} has reached a
110 * @param connection The {@code RemoteConnection} invoking this method.
113 public void onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) {}
116 * Invoked when the post-dial sequence in the outgoing {@code Connection} has processed
119 * @param connection The {@code RemoteConnection} invoking this method.
122 public void onPostDialChar(RemoteConnection connection, char nextChar) {}
128 * @param connection The {@code RemoteConnection} invoking this method.
131 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {}
137 * @param connection The {@code RemoteConnection} invoking this method.
140 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {}
146 * @param connection The {@code RemoteConnection} invoking this method.
151 public void onAddressChanged(RemoteConnection connection, Uri address, int presentation) {}
157 * @param connection The {@code RemoteConnection} invoking this method.
163 RemoteConnection connection, String callerDisplayName, int presentation) {}
169 * @param connection The {@code RemoteConnection} invoking this method.
172 public void onVideoStateChanged(RemoteConnection connection, int videoState) {}
178 * @param connection The {@code RemoteConnection} invoking this method.
180 public void onDestroyed(RemoteConnection connection) {}
186 * @param connection The {@code RemoteConnection} invoking this method.
191 RemoteConnection connection,
198 * @param connection The {@code RemoteConnection} invoking this method.
203 RemoteConnection connection, VideoProvider videoProvider) {}
209 * @param connection The {@code RemoteConnection} invoking this method.
214 RemoteConnection connection,
220 * @param connection The {@code RemoteConnection} invoking this method.
221 * @param extras The extras containing other information associated with the connection.
223 public void onExtrasChanged(RemoteConnection connection, @Nullable Bundle extras) {}
226 * Handles a connection event propagated to this {@link RemoteConnection}.
228 * Connection events originate from {@link Connection#sendConnectionEvent(String, Bundle)}.
230 * @param connection The {@code RemoteConnection} invoking this method.
231 * @param event The connection event.
234 public void onConnectionEvent(RemoteConnection connection, String event, Bundle extras) {}
238 * {@link RemoteConnection}. See {@link Connection#sendRttInitiationSuccess()}.
240 * @param connection The {@code RemoteConnection} invoking this method.
242 public void onRttInitiationSuccess(RemoteConnection connection) {}
246 * {@link RemoteConnection}. See {@link Connection#sendRttInitiationFailure()}.
248 * @param connection The {@code RemoteConnection} invoking this method.
249 * @param reason One of the reason codes defined in {@link Connection.RttModifyStatus},
251 * {@link Connection.RttModifyStatus#SESSION_MODIFY_REQUEST_SUCCESS}.
253 public void onRttInitiationFailure(RemoteConnection connection, int reason) {}
257 * {@link RemoteConnection}. See {@link Connection#sendRttSessionRemotelyTerminated()}
259 * @param connection The {@code RemoteConnection} invoking this method.
261 public void onRttSessionRemotelyTerminated(RemoteConnection connection) {}
265 * to an RTT session. See {@link Connection#sendRemoteRttRequest()}
267 * @param connection The {@code RemoteConnection} invoking this method.
269 public void onRemoteRttRequest(RemoteConnection connection) {}
277 * @see Connection.VideoProvider
283 * the {@link Connection.VideoProvider}.
288 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
293 * @see Connection.VideoProvider#receiveSessionModifyRequest(VideoProfile)
301 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
309 * @see Connection.VideoProvider#receiveSessionModifyResponse(int, VideoProfile,
319 * Reports a call session event received from the {@link Connection.VideoProvider}
325 * @see Connection.VideoProvider#handleCallSessionEvent(int)
331 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
337 * @see Connection.VideoProvider#changePeerDimensions(int, int)
344 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
349 * @see Connection
355 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
361 * @see Connection.VideoProvider#changeCameraCapabilities(
370 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
375 * @see Connection.VideoProvider#changeVideoQuality(int)
495 * @see Connection.VideoProvider#onSetCamera(String)
509 * @see Connection.VideoProvider#onSetPreviewSurface(Surface)
523 * @see Connection.VideoProvider#onSetDisplaySurface(Surface)
537 * @see Connection.VideoProvider#onSetDeviceOrientation(int)
550 * @see Connection.VideoProvider#onSetZoom(float)
565 * @see Connection.VideoProvider#onSendSessionModifyRequest(VideoProfile, VideoProfile)
579 * @see Connection.VideoProvider#onSendSessionModifyResponse(VideoProfile)
592 * @see Connection.VideoProvider#onRequestCameraCapabilities()
605 * @see Connection.VideoProvider#onRequestConnectionDataUsage()
618 * @see Connection.VideoProvider#onSetPauseImage(Uri)
641 private int mState = Connection.STATE_NEW;
668 mState = Connection.STATE_INITIALIZING;
675 ParcelableConnection connection, String callingPackage, int targetSdkVersion) {
679 mState = connection.getState();
680 mDisconnectCause = connection.getDisconnectCause();
681 mRingbackRequested = connection.isRingbackRequested();
682 mConnectionCapabilities = connection.getConnectionCapabilities();
683 mConnectionProperties = connection.getConnectionProperties();
684 mVideoState = connection.getVideoState();
685 IVideoProvider videoProvider = connection.getVideoProvider();
692 mIsVoipAudioMode = connection.getIsVoipAudioMode();
693 mStatusHints = connection.getStatusHints();
694 mAddress = connection.getHandle();
695 mAddressPresentation = connection.getHandlePresentation();
696 mCallerDisplayName = connection.getCallerDisplayName();
697 mCallerDisplayNamePresentation = connection.getCallerDisplayNamePresentation();
699 putExtras(connection.getExtras());
701 // Stash the original connection ID as it exists in the source ConnectionService.
703 // See comments on Connection.EXTRA_ORIGINAL_CONNECTION_ID for more information.
705 newExtras.putString(Connection.EXTRA_ORIGINAL_CONNECTION_ID, callId);
714 * @param disconnectCause The reason for the failed connection.
720 mState = Connection.STATE_DISCONNECTED;
774 * @return For a {@link Connection
786 * the {@code CAPABILITY_*} constants in class {@link Connection}.
796 * {@code PROPERTY_*} constants in class {@link Connection}.
881 * @return The extras for this connection.
910 * Instructs this {@link Connection#STATE_RINGING} {@code RemoteConnection} to answer.
922 * Instructs this {@link Connection#STATE_RINGING} {@code RemoteConnection} to answer.
936 * Instructs this {@link Connection#STATE_RINGING} {@code RemoteConnection} to reject.
960 * Instructs this {@link Connection#STATE_HOLDING} call to release from hold.
1023 * connection is made.
1096 public void startRtt(@NonNull Connection.RttTextStream rttTextStream) {
1122 * upgrade request sent via {@link Connection#sendRemoteRttRequest}.
1129 public void sendRttUpgradeResponse(@Nullable Connection.RttTextStream rttTextStream) {
1183 final RemoteConnection connection = this;
1188 callback.onStateChanged(connection, state);
1199 if (mState != Connection.STATE_DISCONNECTED) {
1200 mState = Connection.STATE_DISCONNECTED;
1204 final RemoteConnection connection = this;
1209 callback.onDisconnected(connection, disconnectCause);
1223 final RemoteConnection connection = this;
1228 callback.onRingbackRequested(connection, ringback);
1241 final RemoteConnection connection = this;
1246 callback.onConnectionCapabilitiesChanged(connection, connectionCapabilities);
1258 final RemoteConnection connection = this;
1263 callback.onConnectionPropertiesChanged(connection, connectionProperties);
1275 if (mState != Connection.STATE_DISCONNECTED) {
1277 new DisconnectCause(DisconnectCause.ERROR, "Connection destroyed."));
1281 final RemoteConnection connection = this;
1286 callback.onDestroyed(connection);
1301 final RemoteConnection connection = this;
1306 callback.onPostDialWait(connection, remainingDigits);
1317 final RemoteConnection connection = this;
1322 callback.onPostDialChar(connection, nextChar);
1334 final RemoteConnection connection = this;
1339 callback.onVideoStateChanged(connection, videoState);
1351 final RemoteConnection connection = this;
1356 callback.onVideoProviderChanged(connection, videoProvider);
1366 final RemoteConnection connection = this;
1371 callback.onVoipAudioChanged(connection, isVoip);
1381 final RemoteConnection connection = this;
1386 callback.onStatusHintsChanged(connection, statusHints);
1397 final RemoteConnection connection = this;
1402 callback.onAddressChanged(connection, address, presentation);
1413 final RemoteConnection connection = this;
1419 connection, callerDisplayName, presentation);
1430 final RemoteConnection connection = this;
1436 connection, mUnmodifiableconferenceableConnections);
1447 final RemoteConnection connection = this;
1452 callback.onConferenceChanged(connection, conference);
1486 final RemoteConnection connection = this;
1491 callback.onExtrasChanged(connection, mExtras);
1500 final RemoteConnection connection = this;
1505 callback.onConnectionEvent(connection, event, extras);
1514 final RemoteConnection connection = this;
1517 () -> callback.onRttInitiationSuccess(connection));
1524 final RemoteConnection connection = this;
1527 () -> callback.onRttInitiationFailure(connection, reason));
1534 final RemoteConnection connection = this;
1537 () -> callback.onRttSessionRemotelyTerminated(connection));
1544 final RemoteConnection connection = this;
1547 () -> callback.onRemoteRttRequest(connection));
1554 * {@link Connection#STATE_DISCONNECTED}. Attempting to use it for anything will almost