Home
last modified time | relevance | path

Searched refs:Connection (Results 1 – 25 of 34) sorted by relevance

12

/cts/tests/tests/telecom/src/android/telecom/cts/
DConnectionTest.java26 import android.telecom.Connection;
45 Connection connection = createConnection(lock); in testStateCallbacks()
48 assertEquals(Connection.STATE_NEW, connection.getState()); in testStateCallbacks()
52 assertEquals(Connection.STATE_INITIALIZING, connection.getState()); in testStateCallbacks()
56 assertEquals(Connection.STATE_NEW, connection.getState()); in testStateCallbacks()
60 assertEquals(Connection.STATE_RINGING, connection.getState()); in testStateCallbacks()
64 assertEquals(Connection.STATE_DIALING, connection.getState()); in testStateCallbacks()
68 assertEquals(Connection.STATE_ACTIVE, connection.getState()); in testStateCallbacks()
72 assertEquals(Connection.STATE_HOLDING, connection.getState()); in testStateCallbacks()
76 assertEquals(Connection.STATE_PULLING_CALL, connection.getState()); in testStateCallbacks()
[all …]
DMockConnectionService.java19 import android.telecom.Connection;
54 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection()
59 connection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORT_HOLD | in onCreateOutgoingConnection()
60 Connection.CAPABILITY_HOLD); in onCreateOutgoingConnection()
75 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
80 | Connection.CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION in onCreateIncomingConnection()
81 | Connection.CAPABILITY_SUPPORT_HOLD in onCreateIncomingConnection()
82 | Connection.CAPABILITY_HOLD); in onCreateIncomingConnection()
84 ((Connection) connection).setVideoState(request.getVideoState()); in onCreateIncomingConnection()
93 public void onConference(Connection connection1, Connection connection2) { in onConference()
[all …]
DRemoteConferenceTest.java25 import android.telecom.Connection;
51 public static final int CONF_CAPABILITIES = Connection.CAPABILITY_SEPARATE_FROM_CONFERENCE |
52 Connection.CAPABILITY_DISCONNECT_FROM_CONFERENCE | Connection.CAPABILITY_HOLD |
53 Connection.CAPABILITY_MERGE_CONFERENCE | Connection.CAPABILITY_SWAP_CONFERENCE;
84 assertConnectionState(mConnection1, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
85 assertConnectionState(mConnection2, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
86 assertConnectionState(mRemoteConnection1, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
87 assertConnectionState(mRemoteConnection2, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
88 assertConferenceState(mConference, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
89 assertConferenceState(mRemoteConference, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
[all …]
DCallDetailsTest.java28 import android.telecom.Connection;
56 Connection.CAPABILITY_HOLD | Connection.CAPABILITY_MUTE;
86 public Connection onCreateOutgoingConnection( in setUp()
89 Connection connection = super.onCreateOutgoingConnection( in setUp()
163 Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL); in testCallLocalVideoCapability()
166 mConnection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORTS_VT_LOCAL_RX); in testCallLocalVideoCapability()
169 mConnection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORTS_VT_LOCAL_TX); in testCallLocalVideoCapability()
173 Connection.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL); in testCallLocalVideoCapability()
176 mConnection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORTS_VT_REMOTE_RX); in testCallLocalVideoCapability()
179 mConnection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORTS_VT_REMOTE_TX); in testCallLocalVideoCapability()
[all …]
DWiredHeadsetTest.java21 import android.telecom.Connection;
48 assertConnectionState(connection, Connection.STATE_RINGING); in testIncomingCallShortPress_acceptsCall()
52 assertConnectionState(connection, Connection.STATE_ACTIVE); in testIncomingCallShortPress_acceptsCall()
65 assertConnectionState(connection, Connection.STATE_RINGING); in testIncomingCallLongPress_rejectsCall()
69 assertConnectionState(connection, Connection.STATE_DISCONNECTED); in testIncomingCallLongPress_rejectsCall()
110 assertConnectionState(connection, Connection.STATE_DISCONNECTED); in testInCallShortPress_hangupCall()
DMockConference.java21 import android.telecom.Connection;
55 for (Connection c : getConnections()) { in onDisconnect()
66 public void onSeparate(Connection connection) { in onSeparate()
80 for (Connection c : getConnections()) { in onMerge()
93 for (Connection c : getConnections()) { in onSwap()
105 for (Connection c : getConnections()) { in onHold()
117 for (Connection c : getConnections()) { in onUnhold()
DCtsConnectionService.java23 import android.telecom.Connection;
86 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection()
99 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
112 public void onConference(Connection connection1, Connection connection2) { in onConference()
136 PhoneAccountHandle phoneAccountHandle, Connection connection) { in addExistingConnectionToTelecom()
142 public static Collection<Connection> getAllConnectionsFromTelecom() { in getAllConnectionsFromTelecom()
DExternalCallTest.java20 import android.telecom.Connection;
34 public static final int CONNECTION_PROPERTIES = Connection.PROPERTY_IS_EXTERNAL_CALL;
35 public static final int CONNECTION_CAPABILITIES = Connection.CAPABILITY_CAN_PULL_CALL;
48 public Connection onCreateOutgoingConnection( in setUp()
51 Connection connection = super.onCreateOutgoingConnection( in setUp()
DCtsRemoteConnectionService.java23 import android.telecom.Connection;
91 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection()
105 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
119 public void onConference(Connection connection1, Connection connection2) { in onConference()
DExtendedInCallServiceTest.java29 import android.telecom.Connection;
199 assertEquals(Connection.STATE_HOLDING, connection.getState()); in testHoldAndUnholdCall()
203 assertEquals(Connection.STATE_ACTIVE, connection.getState()); in testHoldAndUnholdCall()
219 assertConnectionState(connection, Connection.STATE_RINGING); in testAnswerIncomingCallAudioOnly()
224 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAnswerIncomingCallAudioOnly()
238 assertConnectionState(connection, Connection.STATE_RINGING); in testAcceptRingingCall()
243 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAcceptRingingCall()
270 assertConnectionState(connection2, Connection.STATE_RINGING); in testAcceptRingingCallTwoCalls()
276 assertConnectionState(connection2, Connection.STATE_ACTIVE); in testAcceptRingingCallTwoCalls()
302 assertConnectionState(connection2, Connection.STATE_RINGING); in testAcceptRingingCallTwoCallsCarMode()
[all …]
DRemoteConnectionTest.java27 import android.telecom.Connection;
70 assertConnectionState(mConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
71 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
72 assertConnectionState(mRemoteConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
76 assertConnectionState(mConnection, Connection.STATE_HOLDING); in testRemoteConnectionOutgoingCall()
77 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_HOLDING); in testRemoteConnectionOutgoingCall()
78 assertConnectionState(mRemoteConnection, Connection.STATE_HOLDING); in testRemoteConnectionOutgoingCall()
82 assertConnectionState(mConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
83 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
84 assertConnectionState(mRemoteConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
[all …]
DConnectionServiceTest.java23 import android.telecom.Connection;
114 final Connection connection1 = verifyConnectionForOutgoingCall(); in testGetAllConnections()
116 Collection<Connection> connections = CtsConnectionService.getAllConnectionsFromTelecom(); in testGetAllConnections()
125 final Connection connection2 = new MockConnection(); in testGetAllConnections()
136 final Connection connection3 = verifyConnectionForIncomingCall(); in testGetAllConnections()
DConferenceTest.java24 import android.telecom.Connection;
49 public static final int CONF_CAPABILITIES = Connection.CAPABILITY_SEPARATE_FROM_CONFERENCE |
50 Connection.CAPABILITY_DISCONNECT_FROM_CONFERENCE | Connection.CAPABILITY_HOLD |
51 Connection.CAPABILITY_MERGE_CONFERENCE | Connection.CAPABILITY_SWAP_CONFERENCE;
87 assertConnectionState(mConferenceObject.getConnections().get(0), Connection.STATE_ACTIVE); in testConferenceCreate()
88 assertConnectionState(mConferenceObject.getConnections().get(1), Connection.STATE_ACTIVE); in testConferenceCreate()
89 assertConferenceState(mConferenceObject, Connection.STATE_ACTIVE); in testConferenceCreate()
166 ArrayList<Connection> connectionList = new ArrayList<>(); in testConferenceSetters()
173 Connection.CAPABILITY_MUTE; in testConferenceSetters()
239 properties |= Connection.PROPERTY_HAS_CDMA_VOICE_PRIVACY; in testConferenceProperties()
[all …]
DCtsSelfManagedConnectionService.java21 import android.telecom.Connection;
84 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerAccount, in onCreateOutgoingConnection()
91 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
123 private Connection createSelfManagedConnection(ConnectionRequest request, boolean isIncoming) { in createSelfManagedConnection()
126 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); in createSelfManagedConnection()
DIncomingCallTest.java21 import android.telecom.Connection;
51 final Connection connection3 = verifyConnectionForIncomingCall(); in testAddNewIncomingCall_CorrectPhoneAccountHandle()
52 Collection<Connection> connections = CtsConnectionService.getAllConnectionsFromTelecom(); in testAddNewIncomingCall_CorrectPhoneAccountHandle()
DVideoCallTest.java22 import android.telecom.Connection;
23 import android.telecom.Connection.VideoProvider;
389 Connection.VideoProvider.SESSION_EVENT_CAMERA_READY, in testReceiveCallSessionEvent()
394 Connection.VideoProvider.SESSION_EVENT_CAMERA_READY); in testReceiveCallSessionEvent()
399 Connection.VideoProvider.SESSION_EVENT_CAMERA_FAILURE, in testReceiveCallSessionEvent()
404 Connection.VideoProvider.SESSION_EVENT_CAMERA_FAILURE); in testReceiveCallSessionEvent()
409 Connection.VideoProvider.SESSION_EVENT_TX_START, in testReceiveCallSessionEvent()
414 Connection.VideoProvider.SESSION_EVENT_TX_START); in testReceiveCallSessionEvent()
419 Connection.VideoProvider.SESSION_EVENT_TX_STOP, in testReceiveCallSessionEvent()
424 Connection.VideoProvider.SESSION_EVENT_TX_STOP); in testReceiveCallSessionEvent()
[all …]
DNumberDialingTest.java22 import android.telecom.Connection;
48 public Connection onCreateOutgoingConnection( in testEndInPound()
DSelfManagedConnection.java20 import android.telecom.Connection;
29 public class SelfManagedConnection extends Connection {
DMockVideoProvider.java20 import android.telecom.Connection;
25 import android.telecom.Connection.VideoProvider;
96 super.receiveSessionModifyResponse(Connection.VideoProvider.SESSION_MODIFY_REQUEST_SUCCESS, in onSendSessionModifyRequest()
DMissedCallTest.java21 import android.telecom.Connection;
69 assertConnectionState(connection, Connection.STATE_RINGING); in testMissedCall_NotifyDialer()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DDummyConnectionService.java20 import android.telecom.Connection;
35 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection()
45 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
57 public void onConference(Connection connection1, Connection connection2) { in onConference()
68 public static class DummyConnection extends Connection {
119 private static void hangUpAsync(final Connection connection) { in hangUpAsync()
DCrossProfileWidgetPrimaryUserTest.java58 private Connection mConnection;
67 mConnection = new Connection(); in setUp()
142 private class Connection implements ServiceConnection { class in CrossProfileWidgetPrimaryUserTest
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
DCtsConnectionService.java21 import android.telecom.Connection;
106 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerAccount, in onCreateOutgoingConnection()
113 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
129 private Connection createManagedConnection(ConnectionRequest request, boolean isIncoming) { in createManagedConnection()
138 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); in createManagedConnection()
140 connection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORT_HOLD | in createManagedConnection()
141 Connection.CAPABILITY_HOLD); in createManagedConnection()
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/
DCallBlockingTest.java24 import android.telecom.Connection;
116 public static class DummyConnection extends Connection {
128 public Connection onCreateIncomingConnection( in onCreateIncomingConnection()
130 final Connection connection = new DummyConnection(); in onCreateIncomingConnection()
/cts/tests/tests/externalservice/src/android/externalservice/cts/
DExternalServiceTest.java42 private Connection mConnection = new Connection();
155 final Connection creatorConnection = new Connection(); in testBindExternalServiceWithRunningOwn()
250 Connection initialConn = new Connection(); in testBindExternalAboveClient()
262 Connection prioConn = new Connection(); in testBindExternalAboveClient()
327 private class Connection implements ServiceConnection { class in ExternalServiceTest

12