Home
last modified time | relevance | path

Searched refs:Connection (Results 1 – 25 of 44) 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 …]
DCallDetailsTest.java19 import static android.telecom.Connection.PROPERTY_HIGH_DEF_AUDIO;
20 import static android.telecom.Connection.PROPERTY_WIFI;
39 import android.telecom.Connection;
62 Connection.CAPABILITY_HOLD | Connection.CAPABILITY_MUTE;
96 public Connection onCreateOutgoingConnection( in setUp()
99 Connection connection = super.onCreateOutgoingConnection( in setUp()
178 Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL); in testCallLocalVideoCapability()
181 mConnection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORTS_VT_LOCAL_RX); in testCallLocalVideoCapability()
184 mConnection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORTS_VT_LOCAL_TX); in testCallLocalVideoCapability()
188 Connection.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL); in testCallLocalVideoCapability()
[all …]
DMockConnectionService.java24 import android.telecom.Connection;
80 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection()
85 connection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORT_HOLD | in onCreateOutgoingConnection()
86 Connection.CAPABILITY_HOLD in onCreateOutgoingConnection()
87 | Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL in onCreateOutgoingConnection()
88 | Connection.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL); in onCreateOutgoingConnection()
99 Connection.PROPERTY_IS_RTT); in onCreateOutgoingConnection()
112 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
117 | Connection.CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION in onCreateIncomingConnection()
118 | Connection.CAPABILITY_SUPPORT_HOLD in onCreateIncomingConnection()
[all …]
DRemoteConferenceTest.java25 import android.telecom.Connection;
52 public static final int CONF_CAPABILITIES = Connection.CAPABILITY_SEPARATE_FROM_CONFERENCE |
53 Connection.CAPABILITY_DISCONNECT_FROM_CONFERENCE | Connection.CAPABILITY_HOLD |
54 Connection.CAPABILITY_MERGE_CONFERENCE | Connection.CAPABILITY_SWAP_CONFERENCE;
80 assertConnectionState(mConnection1, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
81 assertConnectionState(mConnection2, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
82 assertConnectionState(mRemoteConnection1, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
83 assertConnectionState(mRemoteConnection2, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
84 assertConferenceState(mConference, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
85 assertConferenceState(mRemoteConference, Connection.STATE_ACTIVE); in testRemoteConferenceCreate()
[all …]
DBackgroundCallAudioTest.java19 import android.telecom.Connection;
93 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningAllow()
119 assertConnectionState(connection, Connection.STATE_ACTIVE); in testHoldAfterAudioProcessingFromCallScreening()
150 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningDisallow()
178 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningMissed()
204 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing()
219 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing()
243 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall()
257 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall()
266 assertConnectionState(connection, Connection.STATE_DISCONNECTED); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall()
[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()
DCtsSelfManagedConnectionService.java21 import android.telecom.Connection;
93 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerAccount, in onCreateOutgoingConnection()
100 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
119 public Connection onCreateIncomingHandoverConnection(PhoneAccountHandle fromPhoneAccountHandle, in onCreateIncomingHandoverConnection()
126 public Connection onCreateOutgoingHandoverConnection(PhoneAccountHandle fromPhoneAccountHandle, in onCreateOutgoingHandoverConnection()
163 private Connection createSelfManagedConnection(ConnectionRequest request, boolean isIncoming) { in createSelfManagedConnection()
166 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); in createSelfManagedConnection()
168 Connection.CAPABILITY_HOLD | Connection.CAPABILITY_SUPPORT_HOLD); in createSelfManagedConnection()
DEmergencyCallTests.java23 import android.telecom.Connection;
63 Connection eConnection = placeAndVerifyEmergencyCall(true /*supportsHold*/); in testOngoingEmergencyCallAndReceiveIncomingCall()
95 Connection eConnection = placeAndVerifyEmergencyCall(false /*supportsHold*/); in testIncomingRingingCallAndPlaceEmergencyCall()
100 assertConnectionState(incomingConnection, Connection.STATE_DISCONNECTED); in testIncomingRingingCallAndPlaceEmergencyCall()
122 Connection outgoingConnection = verifyConnectionForOutgoingCall(); in testActiveCallAndIncomingRingingCallAndPlaceEmergencyCall()
136 Connection eConnection = placeAndVerifyEmergencyCall(false /*supportsHold*/); in testActiveCallAndIncomingRingingCallAndPlaceEmergencyCall()
141 assertConnectionState(incomingConnection, Connection.STATE_DISCONNECTED); in testActiveCallAndIncomingRingingCallAndPlaceEmergencyCall()
DMockConference.java22 import android.telecom.Connection;
67 for (Connection c : getConnections()) { in onDisconnect()
80 for (Connection c : getConnections()) { in onReject()
92 public void onSeparate(Connection connection) { in onSeparate()
106 for (Connection c : getConnections()) { in onMerge()
119 for (Connection c : getConnections()) { in onSwap()
131 for (Connection c : getConnections()) { in onHold()
143 for (Connection c : getConnections()) { in onUnhold()
DExtendedInCallServiceTest.java33 import android.telecom.Connection;
210 assertEquals(Connection.STATE_HOLDING, connection.getState()); in testHoldAndUnholdCall()
214 assertEquals(Connection.STATE_ACTIVE, connection.getState()); in testHoldAndUnholdCall()
230 assertConnectionState(connection, Connection.STATE_RINGING); in testAnswerIncomingCallAudioOnly()
235 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAnswerIncomingCallAudioOnly()
249 assertConnectionState(connection, Connection.STATE_RINGING); in testAcceptRingingCall()
254 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAcceptRingingCall()
271 assertConnectionState(connection, Connection.STATE_RINGING); in testEndRingingCall()
276 assertConnectionState(connection, Connection.STATE_DISCONNECTED); in testEndRingingCall()
293 assertConnectionState(connection, Connection.STATE_RINGING); in testEndCall()
[all …]
DCtsRemoteConnectionService.java23 import android.telecom.Connection;
91 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection()
105 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
148 public void onConference(Connection connection1, Connection connection2) { in onConference()
DConnectionServiceTest.java31 import android.telecom.Connection;
196 Connection outgoing = verifyConnectionForOutgoingCall(); in testConnectionServiceFocusGainedWithSameConnectionService()
292 Connection.CallFilteringCompletionInfo info = new Connection.CallFilteringCompletionInfo( in testCallFilteringCompletionInfoParcelable()
301 Connection.CallFilteringCompletionInfo info2 = in testCallFilteringCompletionInfoParcelable()
302 Connection.CallFilteringCompletionInfo.CREATOR.createFromParcel(p); in testCallFilteringCompletionInfoParcelable()
338 Connection.CallFilteringCompletionInfo completionInfo = in testCallFilteringCompleteSignalNotInContacts()
339 (Connection.CallFilteringCompletionInfo) callFilteringCompleteInvocations[0]; in testCallFilteringCompleteSignalNotInContacts()
387 Connection.CallFilteringCompletionInfo completionInfo = in testCallFilteringCompleteSignalInContacts()
388 (Connection.CallFilteringCompletionInfo) callFilteringCompleteInvocations[0]; in testCallFilteringCompleteSignalInContacts()
457 final Connection connection1 = verifyConnectionForOutgoingCall();
[all …]
DExternalCallTest.java22 import android.telecom.Connection;
35 public static final int CONNECTION_PROPERTIES = Connection.PROPERTY_IS_EXTERNAL_CALL;
36 public static final int CONNECTION_CAPABILITIES = Connection.CAPABILITY_CAN_PULL_CALL;
47 public Connection onCreateOutgoingConnection( in setUp()
50 Connection connection = super.onCreateOutgoingConnection( in setUp()
DCallDiagnosticServiceTest.java30 import android.telecom.Connection;
91 connectionExtras.putInt(Connection.EXTRA_AUDIO_CODEC, Connection.AUDIO_CODEC_AMR_WB); in testAddCallAndPassValues()
102 Connection.EXTRA_AUDIO_CODEC) in testAddCallAndPassValues()
104 Connection.EXTRA_AUDIO_CODEC) == Connection.AUDIO_CODEC_AMR_WB; in testAddCallAndPassValues()
204 message.putInt(Connection.EXTRA_DEVICE_TO_DEVICE_MESSAGE_TYPE, in testReceiveD2DMessage()
206 message.putInt(Connection.EXTRA_DEVICE_TO_DEVICE_MESSAGE_VALUE, in testReceiveD2DMessage()
208 mConnection.sendConnectionEvent(Connection.EVENT_DEVICE_TO_DEVICE_MESSAGE, message); in testReceiveD2DMessage()
239 assertEquals(Connection.EVENT_DEVICE_TO_DEVICE_MESSAGE, event); in testSendD2DMessage()
241 int messageType = extras.getInt(Connection.EXTRA_DEVICE_TO_DEVICE_MESSAGE_TYPE); in testSendD2DMessage()
242 int messageValue = extras.getInt(Connection.EXTRA_DEVICE_TO_DEVICE_MESSAGE_VALUE); in testSendD2DMessage()
DCtsConnectionService.java24 import android.telecom.Connection;
87 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection()
102 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
187 public void onConference(Connection connection1, Connection connection2) { in onConference()
222 PhoneAccountHandle phoneAccountHandle, Connection connection) { in addExistingConnectionToTelecom()
233 public static Collection<Connection> getAllConnectionsFromTelecom() { in getAllConnectionsFromTelecom()
DRemoteConnectionTest.java32 import android.telecom.Connection;
76 assertConnectionState(mConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
77 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
78 assertConnectionState(mRemoteConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
82 assertConnectionState(mConnection, Connection.STATE_HOLDING); in testRemoteConnectionOutgoingCall()
83 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_HOLDING); in testRemoteConnectionOutgoingCall()
84 assertConnectionState(mRemoteConnection, Connection.STATE_HOLDING); in testRemoteConnectionOutgoingCall()
88 assertConnectionState(mConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
89 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
90 assertConnectionState(mRemoteConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall()
[all …]
DConferenceTest.java27 import android.telecom.Connection;
57 public static final int CONF_CAPABILITIES = Connection.CAPABILITY_SEPARATE_FROM_CONFERENCE |
58 Connection.CAPABILITY_DISCONNECT_FROM_CONFERENCE | Connection.CAPABILITY_HOLD |
59 Connection.CAPABILITY_MERGE_CONFERENCE | Connection.CAPABILITY_SWAP_CONFERENCE;
95 assertConnectionState(mConferenceObject.getConnections().get(0), Connection.STATE_ACTIVE); in testConferenceCreate()
96 assertConnectionState(mConferenceObject.getConnections().get(1), Connection.STATE_ACTIVE); in testConferenceCreate()
97 assertConferenceState(mConferenceObject, Connection.STATE_ACTIVE); in testConferenceCreate()
99 LinkedBlockingQueue<Connection> queue = new LinkedBlockingQueue(1); in testConferenceCreate()
103 Connection primaryConnection = queue.poll(TestUtils.WAIT_FOR_STATE_CHANGE_TIMEOUT_MS, in testConferenceCreate()
189 ArrayList<Connection> connectionList = new ArrayList<>(); in testConferenceSetters()
[all …]
DRttOperationsTest.java21 import android.telecom.Connection;
100 connection.setRttTextStream((Connection.RttTextStream) startRttCounter.getArgs(0)[0]); in testLocalRttUpgradeAccepted()
102 connection.getConnectionProperties() | Connection.PROPERTY_IS_RTT); in testLocalRttUpgradeAccepted()
195 connection.getConnectionProperties() & ~Connection.PROPERTY_IS_RTT); in testLocalRttTermination()
217 connection.getConnectionProperties() & ~Connection.PROPERTY_IS_RTT); in testRemoteRttTermination()
230 Connection.RttTextStream connectionSideRtt = connection.getRttTextStream(); in verifyRttEnabled()
240 private void verifyRttPipeReadBlocking(Connection.RttTextStream connectionSide) { in verifyRttPipeReadBlocking()
258 private void verifyRttPipeIntegrity(Call.RttCall inCallSide, Connection.RttTextStream in verifyRttPipeIntegrity()
DIncomingCallTest.java35 import android.telecom.Connection;
71 assertEquals(Connection.VERIFICATION_STATUS_PASSED, in testVerstatPassed()
84 assertEquals(Connection.VERIFICATION_STATUS_FAILED, in testVerstatFailed()
97 assertEquals(Connection.VERIFICATION_STATUS_NOT_VERIFIED, in testVerstatNotVerified()
107 final Connection connection3 = verifyConnectionForIncomingCall(); in testAddNewIncomingCall_CorrectPhoneAccountHandle()
108 Collection<Connection> connections = CtsConnectionService.getAllConnectionsFromTelecom(); in testAddNewIncomingCall_CorrectPhoneAccountHandle()
231 public Connection onCreateIncomingConnection( in testAddNewIncomingCallVoipState()
234 Connection connection = super.onCreateIncomingConnection( in testAddNewIncomingCallVoipState()
DVideoCallTest.java22 import android.telecom.Connection;
23 import android.telecom.Connection.VideoProvider;
106 Connection connection = verifyConnectionForOutgoingCall(); in testUpgradeToVideo()
390 Connection.VideoProvider.SESSION_EVENT_CAMERA_READY, in testReceiveCallSessionEvent()
395 Connection.VideoProvider.SESSION_EVENT_CAMERA_READY); in testReceiveCallSessionEvent()
400 Connection.VideoProvider.SESSION_EVENT_CAMERA_FAILURE, in testReceiveCallSessionEvent()
405 Connection.VideoProvider.SESSION_EVENT_CAMERA_FAILURE); in testReceiveCallSessionEvent()
410 Connection.VideoProvider.SESSION_EVENT_TX_START, in testReceiveCallSessionEvent()
415 Connection.VideoProvider.SESSION_EVENT_TX_START); in testReceiveCallSessionEvent()
420 Connection.VideoProvider.SESSION_EVENT_TX_STOP, in testReceiveCallSessionEvent()
[all …]
DNumberDialingTest.java22 import android.telecom.Connection;
48 public Connection onCreateOutgoingConnection( in testEndInPound()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DTestConnectionService.java20 import android.telecom.Connection;
38 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection()
48 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
60 public void onConference(Connection connection1, Connection connection2) { in onConference()
71 public static class TestConnection extends Connection {
132 private static void hangUpAsync(final Connection connection) { in hangUpAsync()
/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()
141 connection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORT_HOLD | in createManagedConnection()
142 Connection.CAPABILITY_HOLD); in createManagedConnection()
DCtsSelfManagedConnectionService.java4 import android.telecom.Connection;
80 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection()
86 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerAccount, in onCreateOutgoingConnection()
91 private Connection createConnection(ConnectionRequest request, boolean isIncoming) { in createConnection()
96 connection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORT_HOLD | in createConnection()
97 Connection.CAPABILITY_HOLD); in createConnection()
/cts/hostsidetests/numberblocking/app/src/com/android/cts/numberblocking/hostside/
DCallBlockingTest.java24 import android.telecom.Connection;
119 public static class DummyConnection extends Connection {
131 public Connection onCreateIncomingConnection( in onCreateIncomingConnection()
133 final Connection connection = new DummyConnection(); in onCreateIncomingConnection()

12