Lines Matching defs:RemoteConnection
44 public final class RemoteConnection {
48 * Invoked when the state of this {@code RemoteConnection} has changed. See
51 * @param connection The {@code RemoteConnection} invoking this method.
52 * @param state The new state of the {@code RemoteConnection}.
54 public void onStateChanged(RemoteConnection connection, int state) {}
57 * Invoked when this {@code RemoteConnection} is disconnected.
59 * @param connection The {@code RemoteConnection} invoking this method.
64 RemoteConnection connection,
68 * Invoked when this {@code RemoteConnection} is requesting ringback. See
71 * @param connection The {@code RemoteConnection} invoking this method.
72 * @param ringback Whether the {@code RemoteConnection} is requesting ringback.
74 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {}
78 RemoteConnection connection,
82 * Indicates that the call capabilities of this {@code RemoteConnection} have changed.
85 * @param connection The {@code RemoteConnection} invoking this method.
86 * @param connectionCapabilities The new capabilities of the {@code RemoteConnection}.
89 RemoteConnection connection,
96 * {@link RemoteConnection#postDialContinue(boolean)} when the user makes the choice.
98 * @param connection The {@code RemoteConnection} invoking this method.
101 public void onPostDialWait(RemoteConnection connection, String remainingPostDialSequence) {}
107 * @param connection The {@code RemoteConnection} invoking this method.
110 public void onPostDialChar(RemoteConnection connection, char nextChar) {}
113 * Indicates that the VOIP audio status of this {@code RemoteConnection} has changed.
116 * @param connection The {@code RemoteConnection} invoking this method.
117 * @param isVoip Whether the new audio state of the {@code RemoteConnection} is VOIP.
119 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {}
122 * Indicates that the status hints of this {@code RemoteConnection} have changed. See
125 * @param connection The {@code RemoteConnection} invoking this method.
126 * @param statusHints The new status hints of the {@code RemoteConnection}.
128 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {}
131 * Indicates that the address (e.g., phone number) of this {@code RemoteConnection} has
134 * @param connection The {@code RemoteConnection} invoking this method.
135 * @param address The new address of the {@code RemoteConnection}.
139 public void onAddressChanged(RemoteConnection connection, Uri address, int presentation) {}
142 * Indicates that the caller display name of this {@code RemoteConnection} has changed.
145 * @param connection The {@code RemoteConnection} invoking this method.
146 * @param callerDisplayName The new caller display name of the {@code RemoteConnection}.
151 RemoteConnection connection, String callerDisplayName, int presentation) {}
154 * Indicates that the video state of this {@code RemoteConnection} has changed.
157 * @param connection The {@code RemoteConnection} invoking this method.
158 * @param videoState The new video state of the {@code RemoteConnection}.
161 public void onVideoStateChanged(RemoteConnection connection, int videoState) {}
164 * Indicates that this {@code RemoteConnection} has been destroyed. No further requests
165 * should be made to the {@code RemoteConnection}, and references to it should be cleared.
167 * @param connection The {@code RemoteConnection} invoking this method.
169 public void onDestroyed(RemoteConnection connection) {}
172 * Indicates that the {@code RemoteConnection}s with which this {@code RemoteConnection}
175 * @param connection The {@code RemoteConnection} invoking this method.
176 * @param conferenceableConnections The {@code RemoteConnection}s with which this
177 * {@code RemoteConnection} may be asked to create a conference.
180 RemoteConnection connection,
181 List<RemoteConnection> conferenceableConnections) {}
184 * Indicates that the {@code VideoProvider} associated with this {@code RemoteConnection}
187 * @param connection The {@code RemoteConnection} invoking this method.
189 * {@code RemoteConnection}.
193 RemoteConnection connection, VideoProvider videoProvider) {}
196 * Indicates that the {@code RemoteConference} that this {@code RemoteConnection} is a part
199 * @param connection The {@code RemoteConnection} invoking this method.
200 * @param conference The {@code RemoteConference} of which this {@code RemoteConnection} is
204 RemoteConnection connection,
396 private final List<RemoteConnection> mConferenceableConnections = new ArrayList<>();
397 private final List<RemoteConnection> mUnmodifiableconferenceableConnections =
418 RemoteConnection(
431 RemoteConnection(String callId, IConnectionService connectionService,
441 mVideoProvider = new RemoteConnection.VideoProvider(connection.getVideoProvider());
452 * Create a RemoteConnection which is used for failed connections. Note that using it for any
454 * accordingly (moving on to another RemoteConnection, for example)
459 RemoteConnection(DisconnectCause disconnectCause) {
467 * Adds a callback to this {@code RemoteConnection}.
476 * Removes a callback from this {@code RemoteConnection}.
487 * Obtains the state of this {@code RemoteConnection}.
496 * Obtains the reason why this {@code RemoteConnection} may have been disconnected.
498 * @return For a {@link Connection#STATE_DISCONNECTED} {@code RemoteConnection}, the
507 * Obtains the capabilities of this {@code RemoteConnection}.
509 * @return A bitmask of the capabilities of the {@code RemoteConnection}, as defined in
517 * Determines if the audio mode of this {@code RemoteConnection} is VOIP.
519 * @return {@code true} if the {@code RemoteConnection}'s current audio mode is VOIP.
526 * Obtains status hints pertaining to this {@code RemoteConnection}.
528 * @return The current {@link StatusHints} of this {@code RemoteConnection},
536 * Obtains the address of this {@code RemoteConnection}.
538 * @return The address (e.g., phone number) to which the {@code RemoteConnection}
546 * Obtains the presentation requirements for the address of this {@code RemoteConnection}.
556 * Obtains the display name for this {@code RemoteConnection}'s caller.
565 * Obtains the presentation requirements for this {@code RemoteConnection}'s
576 * Obtains the video state of this {@code RemoteConnection}.
578 * @return The video state of the {@code RemoteConnection}. See {@link VideoProfile.VideoState}.
586 * Obtains the video provider of this {@code RemoteConnection}.
588 * @return The video provider associated with this {@code RemoteConnection}.
596 * Determines whether this {@code RemoteConnection} is requesting ringback.
598 * @return Whether the {@code RemoteConnection} is requesting that the framework play a
606 * Instructs this {@code RemoteConnection} to abort.
618 * Instructs this {@link Connection#STATE_RINGING} {@code RemoteConnection} to answer.
630 * Instructs this {@link Connection#STATE_RINGING} {@code RemoteConnection} to answer.
644 * Instructs this {@link Connection#STATE_RINGING} {@code RemoteConnection} to reject.
656 * Instructs this {@code RemoteConnection} to go on hold.
680 * Instructs this {@code RemoteConnection} to disconnect.
692 * Instructs this {@code RemoteConnection} to play a dual-tone multi-frequency signaling
710 * Instructs this {@code RemoteConnection} to stop any dual-tone multi-frequency signaling
726 * Instructs this {@code RemoteConnection} to continue playing a post-dial DTMF string.
734 * {@code RemoteConnection} will temporarily pause playing the tones for a pre-defined period
738 * {@code RemoteConnection} will pause playing the tones and notify callbacks via
739 * {@link Callback#onPostDialWait(RemoteConnection, String)}. At this point, the in-call app
756 * Set the audio state of this {@code RemoteConnection}.
758 * @param state The audio state of this {@code RemoteConnection}.
770 * Obtain the {@code RemoteConnection}s with which this {@code RemoteConnection} may be
773 * @return The {@code RemoteConnection}s with which this {@code RemoteConnection} may be
776 public List<RemoteConnection> getConferenceableConnections() {
781 * Obtain the {@code RemoteConference} that this {@code RemoteConnection} may be a part
942 void setConferenceableConnections(List<RemoteConnection> conferenceableConnections) {
961 * Create a RemoteConnection represents a failure, and which will be in
965 * @return a failed {@link RemoteConnection}
969 public static RemoteConnection failure(DisconnectCause disconnectCause) {
970 return new RemoteConnection(disconnectCause);