Home | History | Annotate | Download | only in telecom

Lines Matching full:connection

42  * A connection provided to a {@link ConnectionService} by another {@code ConnectionService}
58 * @param connection The {@code RemoteConnection} invoking this method.
61 public void onStateChanged(RemoteConnection connection, int state) {}
66 * @param connection The {@code RemoteConnection} invoking this method.
68 * connection.
71 RemoteConnection connection,
78 * @param connection The {@code RemoteConnection} invoking this method.
81 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {}
87 * @param connection The {@code RemoteConnection} invoking this method.
91 RemoteConnection connection,
98 * @param connection The {@code RemoteConnection} invoking this method.
102 RemoteConnection connection,
106 * Invoked when the post-dial sequence in the outgoing {@code Connection} has reached a
111 * @param connection The {@code RemoteConnection} invoking this method.
114 public void onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) {}
117 * Invoked when the post-dial sequence in the outgoing {@code Connection} has processed
120 * @param connection The {@code RemoteConnection} invoking this method.
123 public void onPostDialChar(RemoteConnection connection, char nextChar) {}
129 * @param connection The {@code RemoteConnection} invoking this method.
132 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {}
138 * @param connection The {@code RemoteConnection} invoking this method.
141 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {}
147 * @param connection The {@code RemoteConnection} invoking this method.
152 public void onAddressChanged(RemoteConnection connection, Uri address, int presentation) {}
158 * @param connection The {@code RemoteConnection} invoking this method.
164 RemoteConnection connection, String callerDisplayName, int presentation) {}
170 * @param connection The {@code RemoteConnection} invoking this method.
173 public void onVideoStateChanged(RemoteConnection connection, int videoState) {}
179 * @param connection The {@code RemoteConnection} invoking this method.
181 public void onDestroyed(RemoteConnection connection) {}
187 * @param connection The {@code RemoteConnection} invoking this method.
192 RemoteConnection connection,
199 * @param connection The {@code RemoteConnection} invoking this method.
204 RemoteConnection connection, VideoProvider videoProvider) {}
210 * @param connection The {@code RemoteConnection} invoking this method.
215 RemoteConnection connection,
221 * @param connection The {@code RemoteConnection} invoking this method.
222 * @param extras The extras containing other information associated with the connection.
224 public void onExtrasChanged(RemoteConnection connection, @Nullable Bundle extras) {}
227 * Handles a connection event propagated to this {@link RemoteConnection}.
229 * Connection events originate from {@link Connection#sendConnectionEvent(String, Bundle)}.
231 * @param connection The {@code RemoteConnection} invoking this method.
232 * @param event The connection event.
235 public void onConnectionEvent(RemoteConnection connection, String event, Bundle extras) {}
239 * {@link RemoteConnection}. See {@link Connection#sendRttInitiationSuccess()}.
241 * @param connection The {@code RemoteConnection} invoking this method.
243 public void onRttInitiationSuccess(RemoteConnection connection) {}
247 * {@link RemoteConnection}. See {@link Connection#sendRttInitiationFailure()}.
249 * @param connection The {@code RemoteConnection} invoking this method.
250 * @param reason One of the reason codes defined in {@link Connection.RttModifyStatus},
252 * {@link Connection.RttModifyStatus#SESSION_MODIFY_REQUEST_SUCCESS}.
254 public void onRttInitiationFailure(RemoteConnection connection, int reason) {}
258 * {@link RemoteConnection}. See {@link Connection#sendRttSessionRemotelyTerminated()}
260 * @param connection The {@code RemoteConnection} invoking this method.
262 public void onRttSessionRemotelyTerminated(RemoteConnection connection) {}
266 * to an RTT session. See {@link Connection#sendRemoteRttRequest()}
268 * @param connection The {@code RemoteConnection} invoking this method.
270 public void onRemoteRttRequest(RemoteConnection connection) {}
278 * @see Connection.VideoProvider
284 * the {@link Connection.VideoProvider}.
289 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
294 * @see Connection.VideoProvider#receiveSessionModifyRequest(VideoProfile)
302 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
310 * @see Connection.VideoProvider#receiveSessionModifyResponse(int, VideoProfile,
320 * Reports a call session event received from the {@link Connection.VideoProvider}
326 * @see Connection.VideoProvider#handleCallSessionEvent(int)
332 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
338 * @see Connection.VideoProvider#changePeerDimensions(int, int)
345 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
350 Connection.VideoProvider#setCallDataUsage(long)
356 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
362 * @see Connection.VideoProvider#changeCameraCapabilities(
371 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
376 * @see Connection.VideoProvider#changeVideoQuality(int)
496 * @see Connection.VideoProvider#onSetCamera(String)
510 * @see Connection.VideoProvider#onSetPreviewSurface(Surface)
524 * @see Connection.VideoProvider#onSetDisplaySurface(Surface)
538 * @see Connection.VideoProvider#onSetDeviceOrientation(int)
551 * @see Connection.VideoProvider#onSetZoom(float)
566 * @see Connection.VideoProvider#onSendSessionModifyRequest(VideoProfile, VideoProfile)
580 * @see Connection.VideoProvider#onSendSessionModifyResponse(VideoProfile)
593 * @see Connection.VideoProvider#onRequestCameraCapabilities()
606 * @see Connection.VideoProvider#onRequestConnectionDataUsage()
619 * @see Connection.VideoProvider#onSetPauseImage(Uri)
642 private int mState = Connection.STATE_NEW;
669 mState = Connection.STATE_INITIALIZING;
676 ParcelableConnection connection, String callingPackage, int targetSdkVersion) {
680 mState = connection.getState();
681 mDisconnectCause = connection.getDisconnectCause();
682 mRingbackRequested = connection.isRingbackRequested();
683 mConnectionCapabilities = connection.getConnectionCapabilities();
684 mConnectionProperties = connection.getConnectionProperties();
685 mVideoState = connection.getVideoState();
686 IVideoProvider videoProvider = connection.getVideoProvider();
693 mIsVoipAudioMode = connection.getIsVoipAudioMode();
694 mStatusHints = connection.getStatusHints();
695 mAddress = connection.getHandle();
696 mAddressPresentation = connection.getHandlePresentation();
697 mCallerDisplayName = connection.getCallerDisplayName();
698 mCallerDisplayNamePresentation = connection.getCallerDisplayNamePresentation();
700 putExtras(connection.getExtras());
702 // Stash the original connection ID as it exists in the source ConnectionService.
704 // See comments on Connection.EXTRA_ORIGINAL_CONNECTION_ID for more information.
706 newExtras.putString(Connection.EXTRA_ORIGINAL_CONNECTION_ID, callId);
715 * @param disconnectCause The reason for the failed connection.
721 mState = Connection.STATE_DISCONNECTED;
775 * @return For a {@link Connection
787 * the {@code CAPABILITY_*} constants in class {@link Connection}.
797 * {@code PROPERTY_*} constants in class {@link Connection}.
882 * @return The extras for this connection.
911 * Instructs this {@link Connection#STATE_RINGING} {@code RemoteConnection} to answer.
923 * Instructs this {@link Connection#STATE_RINGING} {@code RemoteConnection} to answer.
937 * Instructs this {@link Connection#STATE_RINGING} {@code RemoteConnection} to reject.
961 * Instructs this {@link Connection#STATE_HOLDING} call to release from hold.
1024 * connection is made.
1097 public void startRtt(@NonNull Connection.RttTextStream rttTextStream) {
1123 * upgrade request sent via {@link Connection#sendRemoteRttRequest}.
1130 public void sendRttUpgradeResponse(@Nullable Connection.RttTextStream rttTextStream) {
1184 final RemoteConnection connection = this;
1189 callback.onStateChanged(connection, state);
1200 if (mState != Connection.STATE_DISCONNECTED) {
1201 mState = Connection.STATE_DISCONNECTED;
1205 final RemoteConnection connection = this;
1210 callback.onDisconnected(connection, disconnectCause);
1224 final RemoteConnection connection = this;
1229 callback.onRingbackRequested(connection, ringback);
1242 final RemoteConnection connection = this;
1247 callback.onConnectionCapabilitiesChanged(connection, connectionCapabilities);
1259 final RemoteConnection connection = this;
1264 connection, connectionProperties);
1276 if (mState != Connection.STATE_DISCONNECTED) {
1278 new DisconnectCause(DisconnectCause.ERROR, "Connection destroyed."));
1282 final RemoteConnection connection = this;
1287 callback.onDestroyed(connection);
1302 final RemoteConnection connection = this;
1307 callback.onPostDialWait(connection, remainingDigits);
1318 final RemoteConnection connection = this;
1323 callback.onPostDialChar(connection, nextChar);
1335 final RemoteConnection connection = this;
1340 callback.onVideoStateChanged(connection, videoState);
1352 final RemoteConnection connection = this;
1357 callback.onVideoProviderChanged(connection, videoProvider);
1367 final RemoteConnection connection = this;
1372 callback.onVoipAudioChanged(connection, isVoip);
1382 final RemoteConnection connection = this;
1387 callback.onStatusHintsChanged(connection, statusHints);
1398 final RemoteConnection connection = this;
1403 callback.onAddressChanged(connection, address, presentation);
1414 final RemoteConnection connection = this;
1420 connection, callerDisplayName, presentation);
1431 final RemoteConnection connection = this;
1437 connection, mUnmodifiableconferenceableConnections);
1448 final RemoteConnection connection = this;
1453 callback.onConferenceChanged(connection, conference);
1491 final RemoteConnection connection = this;
1496 callback.onExtrasChanged(connection, mExtras);
1505 final RemoteConnection connection = this;
1510 callback.onConnectionEvent(connection, event, extras);
1519 final RemoteConnection connection = this;
1522 () -> callback.onRttInitiationSuccess(connection));
1529 final RemoteConnection connection = this;
1532 () -> callback.onRttInitiationFailure(connection, reason));
1539 final RemoteConnection connection = this;
1542 () -> callback.onRttSessionRemotelyTerminated(connection));
1549 final RemoteConnection connection = this;
1552 () -> callback.onRemoteRttRequest(connection));
1559 * {@link Connection#STATE_DISCONNECTED}. Attempting to use it for anything will almost