Lines Matching defs:RemoteConnection

47 public final class RemoteConnection {
50 * Callback base class for {@link RemoteConnection}.
54 * Invoked when the state of this {@code RemoteConnection} has changed. See
57 * @param connection The {@code RemoteConnection} invoking this method.
58 * @param state The new state of the {@code RemoteConnection}.
60 public void onStateChanged(RemoteConnection connection, int state) {}
63 * Invoked when this {@code RemoteConnection} is disconnected.
65 * @param connection The {@code RemoteConnection} invoking this method.
70 RemoteConnection connection,
74 * Invoked when this {@code RemoteConnection} is requesting ringback. See
77 * @param connection The {@code RemoteConnection} invoking this method.
78 * @param ringback Whether the {@code RemoteConnection} is requesting ringback.
80 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {}
83 * Indicates that the call capabilities of this {@code RemoteConnection} have changed.
86 * @param connection The {@code RemoteConnection} invoking this method.
87 * @param connectionCapabilities The new capabilities of the {@code RemoteConnection}.
90 RemoteConnection connection,
94 * Indicates that the call properties of this {@code RemoteConnection} have changed.
97 * @param connection The {@code RemoteConnection} invoking this method.
98 * @param connectionProperties The new properties of the {@code RemoteConnection}.
101 RemoteConnection connection,
108 * {@link RemoteConnection#postDialContinue(boolean)} when the user makes the choice.
110 * @param connection The {@code RemoteConnection} invoking this method.
113 public void onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) {}
119 * @param connection The {@code RemoteConnection} invoking this method.
122 public void onPostDialChar(RemoteConnection connection, char nextChar) {}
125 * Indicates that the VOIP audio status of this {@code RemoteConnection} has changed.
128 * @param connection The {@code RemoteConnection} invoking this method.
129 * @param isVoip Whether the new audio state of the {@code RemoteConnection} is VOIP.
131 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {}
134 * Indicates that the status hints of this {@code RemoteConnection} have changed. See
137 * @param connection The {@code RemoteConnection} invoking this method.
138 * @param statusHints The new status hints of the {@code RemoteConnection}.
140 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {}
143 * Indicates that the address (e.g., phone number) of this {@code RemoteConnection} has
146 * @param connection The {@code RemoteConnection} invoking this method.
147 * @param address The new address of the {@code RemoteConnection}.
151 public void onAddressChanged(RemoteConnection connection, Uri address, int presentation) {}
154 * Indicates that the caller display name of this {@code RemoteConnection} has changed.
157 * @param connection The {@code RemoteConnection} invoking this method.
158 * @param callerDisplayName The new caller display name of the {@code RemoteConnection}.
163 RemoteConnection connection, String callerDisplayName, int presentation) {}
166 * Indicates that the video state of this {@code RemoteConnection} has changed.
169 * @param connection The {@code RemoteConnection} invoking this method.
170 * @param videoState The new video state of the {@code RemoteConnection}.
172 public void onVideoStateChanged(RemoteConnection connection, int videoState) {}
175 * Indicates that this {@code RemoteConnection} has been destroyed. No further requests
176 * should be made to the {@code RemoteConnection}, and references to it should be cleared.
178 * @param connection The {@code RemoteConnection} invoking this method.
180 public void onDestroyed(RemoteConnection connection) {}
183 * Indicates that the {@code RemoteConnection}s with which this {@code RemoteConnection}
186 * @param connection The {@code RemoteConnection} invoking this method.
187 * @param conferenceableConnections The {@code RemoteConnection}s with which this
188 * {@code RemoteConnection} may be asked to create a conference.
191 RemoteConnection connection,
192 List<RemoteConnection> conferenceableConnections) {}
195 * Indicates that the {@code VideoProvider} associated with this {@code RemoteConnection}
198 * @param connection The {@code RemoteConnection} invoking this method.
200 * {@code RemoteConnection}.
203 RemoteConnection connection, VideoProvider videoProvider) {}
206 * Indicates that the {@code RemoteConference} that this {@code RemoteConnection} is a part
209 * @param connection The {@code RemoteConnection} invoking this method.
210 * @param conference The {@code RemoteConference} of which this {@code RemoteConnection} is
214 RemoteConnection connection,
218 * Handles changes to the {@code RemoteConnection} extras.
220 * @param connection The {@code RemoteConnection} invoking this method.
223 public void onExtrasChanged(RemoteConnection connection, @Nullable Bundle extras) {}
226 * Handles a connection event propagated to this {@link RemoteConnection}.
230 * @param connection The {@code RemoteConnection} invoking this method.
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.
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) {}
264 * Indicates that the remote user on this {@link RemoteConnection} has requested an upgrade
267 * @param connection The {@code RemoteConnection} invoking this method.
269 public void onRemoteRttRequest(RemoteConnection connection) {}
273 * {@link RemoteConnection.VideoProvider} associated with a {@link RemoteConnection}. Used to
275 * {@link RemoteConnection}.
282 * Callback class used by the {@link RemoteConnection.VideoProvider} to relay events from
288 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
290 * @param videoProvider The {@link RemoteConnection.VideoProvider} invoking this method.
301 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
303 * @param videoProvider The {@link RemoteConnection.VideoProvider} invoking this method.
320 * associated with a {@link RemoteConnection}.
322 * @param videoProvider The {@link RemoteConnection.VideoProvider} invoking this method.
331 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
333 * @param videoProvider The {@link RemoteConnection.VideoProvider} invoking this method.
344 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
346 * @param videoProvider The {@link RemoteConnection.VideoProvider} invoking this method.
355 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
357 * @param videoProvider The {@link RemoteConnection.VideoProvider} invoking this method.
370 * {@link Connection.VideoProvider} associated with a {@link RemoteConnection}.
372 * @param videoProvider The {@link RemoteConnection.VideoProvider} invoking this method.
491 * {@link RemoteConnection.VideoProvider}.
506 * currently capturing for the {@link RemoteConnection.VideoProvider}.
520 * the {@link RemoteConnection.VideoProvider}.
533 * Sets the device orientation, in degrees, for the {@link RemoteConnection.VideoProvider}.
547 * Sets camera zoom ratio for the {@link RemoteConnection.VideoProvider}.
561 * {@link RemoteConnection.VideoProvider}.
576 * properties for the {@link RemoteConnection.VideoProvider}.
590 * {@link RemoteConnection.VideoProvider}.
603 * {@link RemoteConnection} for the {@link RemoteConnection.VideoProvider}.
616 * is paused, for the {@link RemoteConnection.VideoProvider}.
637 private final List<RemoteConnection> mConferenceableConnections = new ArrayList<>();
638 private final List<RemoteConnection> mUnmodifiableconferenceableConnections =
661 RemoteConnection(
674 RemoteConnection(String callId, IConnectionService connectionService,
687 mVideoProvider = new RemoteConnection.VideoProvider(videoProvider, callingPackage,
710 * Create a RemoteConnection which is used for failed connections. Note that using it for any
712 * accordingly (moving on to another RemoteConnection, for example)
717 RemoteConnection(DisconnectCause disconnectCause) {
725 * Adds a callback to this {@code RemoteConnection}.
734 * Adds a callback to this {@code RemoteConnection}.
747 * Removes a callback from this {@code RemoteConnection}.
763 * Obtains the state of this {@code RemoteConnection}.
772 * Obtains the reason why this {@code RemoteConnection} may have been disconnected.
774 * @return For a {@link Connection#STATE_DISCONNECTED} {@code RemoteConnection}, the
783 * Obtains the capabilities of this {@code RemoteConnection}.
785 * @return A bitmask of the capabilities of the {@code RemoteConnection}, as defined in
793 * Obtains the properties of this {@code RemoteConnection}.
795 * @return A bitmask of the properties of the {@code RemoteConnection}, as defined in the
803 * Determines if the audio mode of this {@code RemoteConnection} is VOIP.
805 * @return {@code true} if the {@code RemoteConnection}'s current audio mode is VOIP.
812 * Obtains status hints pertaining to this {@code RemoteConnection}.
814 * @return The current {@link StatusHints} of this {@code RemoteConnection},
822 * Obtains the address of this {@code RemoteConnection}.
824 * @return The address (e.g., phone number) to which the {@code RemoteConnection}
832 * Obtains the presentation requirements for the address of this {@code RemoteConnection}.
842 * Obtains the display name for this {@code RemoteConnection}'s caller.
851 * Obtains the presentation requirements for this {@code RemoteConnection}'s
862 * Obtains the video state of this {@code RemoteConnection}.
864 * @return The video state of the {@code RemoteConnection}. See {@link VideoProfile}.
871 * Obtains the video provider of this {@code RemoteConnection}.
872 * @return The video provider associated with this {@code RemoteConnection}.
879 * Obtain the extras associated with this {@code RemoteConnection}.
888 * Determines whether this {@code RemoteConnection} is requesting ringback.
890 * @return Whether the {@code RemoteConnection} is requesting that the framework play a
898 * Instructs this {@code RemoteConnection} to abort.
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.
948 * Instructs this {@code RemoteConnection} to go on hold.
972 * Instructs this {@code RemoteConnection} to disconnect.
984 * Instructs this {@code RemoteConnection} to play a dual-tone multi-frequency signaling
1002 * Instructs this {@code RemoteConnection} to stop any dual-tone multi-frequency signaling
1018 * Instructs this {@code RemoteConnection} to continue playing a post-dial DTMF string.
1026 * {@code RemoteConnection} will temporarily pause playing the tones for a pre-defined period
1030 * {@code RemoteConnection} will pause playing the tones and notify callbacks via
1031 * {@link Callback#onPostDialWait(RemoteConnection, String)}. At this point, the in-call app
1049 * Instructs this {@link RemoteConnection} to pull itself to the local device.
1063 * Set the audio state of this {@code RemoteConnection}.
1065 * @param state The audio state of this {@code RemoteConnection}.
1076 * Set the audio state of this {@code RemoteConnection}.
1078 * @param state The audio state of this {@code RemoteConnection}.
1091 * Notifies this {@link RemoteConnection} that the user has requested an RTT session.
1107 * Notifies this {@link RemoteConnection} that it should terminate any existing RTT
1121 * Notifies this {@link RemoteConnection} of a response to a previous remotely-initiated RTT
1146 * Obtain the {@code RemoteConnection}s with which this {@code RemoteConnection} may be
1149 * @return The {@code RemoteConnection}s with which this {@code RemoteConnection} may be
1152 public List<RemoteConnection> getConferenceableConnections() {
1157 * Obtain the {@code RemoteConference} that this {@code RemoteConnection} may be a part
1183 final RemoteConnection connection = this;
1204 final RemoteConnection connection = this;
1223 final RemoteConnection connection = this;
1241 final RemoteConnection connection = this;
1258 final RemoteConnection connection = this;
1281 final RemoteConnection connection = this;
1301 final RemoteConnection connection = this;
1317 final RemoteConnection connection = this;
1334 final RemoteConnection connection = this;
1351 final RemoteConnection connection = this;
1366 final RemoteConnection connection = this;
1381 final RemoteConnection connection = this;
1397 final RemoteConnection connection = this;
1413 final RemoteConnection connection = this;
1426 void setConferenceableConnections(final List<RemoteConnection> conferenceableConnections) {
1430 final RemoteConnection connection = this;
1447 final RemoteConnection connection = this;
1486 final RemoteConnection connection = this;
1500 final RemoteConnection connection = this;
1514 final RemoteConnection connection = this;
1524 final RemoteConnection connection = this;
1534 final RemoteConnection connection = this;
1544 final RemoteConnection connection = this;
1553 * Create a RemoteConnection represents a failure, and which will be in
1557 * @return a failed {@link RemoteConnection}
1561 public static RemoteConnection failure(DisconnectCause disconnectCause) {
1562 return new RemoteConnection(disconnectCause);