Home | History | Annotate | Download | only in cts

Lines Matching defs:connection

27 import android.telecom.Connection;
70 assertConnectionState(mConnection, Connection.STATE_ACTIVE);
71 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_ACTIVE);
72 assertConnectionState(mRemoteConnection, Connection.STATE_ACTIVE);
76 assertConnectionState(mConnection, Connection.STATE_HOLDING);
77 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_HOLDING);
78 assertConnectionState(mRemoteConnection, Connection.STATE_HOLDING);
82 assertConnectionState(mConnection, Connection.STATE_ACTIVE);
83 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_ACTIVE);
84 assertConnectionState(mRemoteConnection, Connection.STATE_ACTIVE);
88 assertConnectionState(mConnection, Connection.STATE_DISCONNECTED);
89 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_DISCONNECTED);
90 assertConnectionState(mRemoteConnection, Connection.STATE_DISCONNECTED);
103 assertConnectionState(mConnection, Connection.STATE_RINGING);
104 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_RINGING);
105 assertConnectionState(mRemoteConnection, Connection.STATE_RINGING);
109 assertConnectionState(mConnection, Connection.STATE_ACTIVE);
110 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_ACTIVE);
111 assertConnectionState(mRemoteConnection, Connection.STATE_ACTIVE);
124 assertConnectionState(mConnection, Connection.STATE_RINGING);
125 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_RINGING);
126 assertConnectionState(mRemoteConnection, Connection.STATE_RINGING);
130 assertConnectionState(mConnection, Connection.STATE_DISCONNECTED);
131 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_DISCONNECTED);
132 assertConnectionState(mRemoteConnection, Connection.STATE_DISCONNECTED);
174 public void onStateChanged(RemoteConnection connection, int state) {
175 super.onStateChanged(connection, state);
176 callbackInvoker.invoke(connection, state);
183 assertEquals(Connection.STATE_ACTIVE, callbackInvoker.getArgs(0)[1]);
200 public void onRingbackRequested(RemoteConnection connection, boolean ringback) {
201 super.onRingbackRequested(connection, ringback);
202 callbackInvoker.invoke(connection, ringback);
227 RemoteConnection connection,
229 super.onConnectionCapabilitiesChanged(connection, connectionCapabilities);
230 callbackInvoker.invoke(connection, connectionCapabilities);
234 int capabilities = mRemoteConnection.getConnectionCapabilities() | Connection.CAPABILITY_MUTE;
256 RemoteConnection connection,
258 super.onConnectionPropertiesChanged(connection, connectionProperties);
259 callbackInvoker.invoke(connection, connectionProperties);
264 | Connection.PROPERTY_IS_EXTERNAL_CALL;
285 public void onPostDialWait(RemoteConnection connection,
287 super.onPostDialWait(connection, remainingPostDialSequence);
288 callbackInvoker.invoke(connection, remainingPostDialSequence);
313 public void onPostDialChar(RemoteConnection connection, char nextChar) {
314 super.onPostDialChar(connection, nextChar);
315 callbackInvoker.invoke(connection, nextChar);
320 ((Connection) mRemoteConnection).setNextPostDialChar(postDialChar);
340 public void onVoipAudioChanged(RemoteConnection connection, boolean isVoip) {
341 super.onVoipAudioChanged(connection, isVoip);
342 callbackInvoker.invoke(connection, isVoip);
366 public void onStatusHintsChanged(RemoteConnection connection, StatusHints statusHints) {
367 super.onStatusHintsChanged(connection, statusHints);
368 callbackInvoker.invoke(connection, statusHints);
393 public void onAddressChanged(RemoteConnection connection, Uri address,
395 super.onAddressChanged(connection, address, presentation);
396 callbackInvoker.invoke(connection, address, presentation);
423 RemoteConnection connection, String callerDisplayName, int presentation) {
424 super.onCallerDisplayNameChanged(connection, callerDisplayName, presentation);
425 callbackInvoker.invoke(connection, callerDisplayName, presentation);
451 public void onVideoStateChanged(RemoteConnection connection, int videoState) {
452 super.onVideoStateChanged(connection, videoState);
453 callbackInvoker.invoke(connection, videoState);
478 RemoteConnection connection,
480 super.onConferenceableConnectionsChanged(connection, conferenceableConnections);
481 callbackInvoker.invoke(connection, conferenceableConnections);
494 ArrayList<Connection> confList = new ArrayList<>();
518 RemoteConnection connection, VideoProvider videoProvider) {
519 super.onVideoProviderChanged(connection, videoProvider);
520 callbackInvoker.invoke(connection, videoProvider);
545 public void onExtrasChanged(RemoteConnection connection, Bundle extras) {
546 super.onExtrasChanged(connection, extras);
547 callbackInvoker.invoke(connection, extras);
563 * {@link Connection#sendConnectionEvent(String, Bundle)} notification.
578 public void onConnectionEvent(RemoteConnection connection, String event,
580 super.onConnectionEvent(connection, event, extras);
581 callbackInvoker.invoke(connection, event, extras);
587 mRemoteConnection.sendConnectionEvent(Connection.EVENT_CALL_PULL_FAILED, extras);
590 assertEquals(Connection.EVENT_CALL_PULL_FAILED, callbackInvoker.getArgs(0)[1]);
609 RemoteConnection connection,
611 super.onDisconnected(connection, disconnectCause);
612 callbackInvoker.invoke(connection, disconnectCause);
626 * {@link Connection#onPullExternalCall()}.
654 public void onDestroyed(RemoteConnection connection) {
655 super.onDestroyed(connection);
656 callbackInvoker.invoke(connection);
731 mockVideoProvider.handleCallSessionEvent(Connection.VideoProvider.SESSION_EVENT_RX_PAUSE);
734 assertEquals(Connection.VideoProvider.SESSION_EVENT_RX_PAUSE, callbackInvoker.getArgs(0)[1]);
990 Connection.VideoProvider.SESSION_MODIFY_REQUEST_SUCCESS,
1017 assertEquals(Connection.VideoProvider.SESSION_MODIFY_REQUEST_SUCCESS,
1179 Connection connection) {
1180 assertEquals(connection.getAddress(), remoteConnection.getAddress());
1181 assertEquals(connection.getAddressPresentation(),
1183 assertEquals(connection.getCallerDisplayName(), remoteConnection.getCallerDisplayName());
1184 assertEquals(connection.getCallerDisplayNamePresentation(),
1186 assertEquals(connection.getConnectionCapabilities(),
1188 assertEquals(connection.getConnectionProperties(),
1190 assertEquals(connection.getDisconnectCause(), remoteConnection.getDisconnectCause());
1191 assertTrue(areBundlesEqual(connection.getExtras(), remoteConnection.getExtras()));
1192 assertEquals(connection.getStatusHints(), remoteConnection.getStatusHints());
1202 public Connection onCreateOutgoingConnection(
1205 MockConnection connection = (MockConnection)super.onCreateOutgoingConnection(
1214 connection.setRemoteConnection(remoteConnection);
1215 return connection;
1220 fail("Error in setting up the connection services");
1224 * Retrieve the connection from both the connection services and see if the plumbing via
1236 public Connection onCreateIncomingConnection(
1239 MockConnection connection = (MockConnection)super.onCreateIncomingConnection(
1248 connection.setRemoteConnection(remoteConnection);
1249 return connection;
1254 fail("Error in setting up the connection services");
1258 * Retrieve the connection from both the connection services and see if the plumbing via
1295 RemoteConnection connection, VideoProvider videoProvider) {
1296 callbackInvoker.invoke(connection, videoProvider);
1323 RemoteConnection connection, VideoProvider videoProvider) {
1324 callbackInvoker.invoke(connection, videoProvider);