/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | ConnectionTest.java | 26 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 …]
|
D | CallDetailsTest.java | 19 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 …]
|
D | MockConnectionService.java | 24 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 …]
|
D | RemoteConferenceTest.java | 25 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 …]
|
D | BackgroundCallAudioTest.java | 19 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 …]
|
D | WiredHeadsetTest.java | 21 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()
|
D | CtsSelfManagedConnectionService.java | 21 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()
|
D | EmergencyCallTests.java | 23 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()
|
D | MockConference.java | 22 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()
|
D | ExtendedInCallServiceTest.java | 33 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 …]
|
D | CtsRemoteConnectionService.java | 23 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()
|
D | ConnectionServiceTest.java | 31 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 …]
|
D | ExternalCallTest.java | 22 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()
|
D | CallDiagnosticServiceTest.java | 30 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()
|
D | CtsConnectionService.java | 24 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()
|
D | RemoteConnectionTest.java | 32 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 …]
|
D | ConferenceTest.java | 27 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 …]
|
D | RttOperationsTest.java | 21 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()
|
D | IncomingCallTest.java | 35 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()
|
D | VideoCallTest.java | 22 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 …]
|
D | NumberDialingTest.java | 22 import android.telecom.Connection; 48 public Connection onCreateOutgoingConnection( in testEndInPound()
|
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | TestConnectionService.java | 20 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/ |
D | CtsConnectionService.java | 21 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()
|
D | CtsSelfManagedConnectionService.java | 4 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/ |
D | CallBlockingTest.java | 24 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()
|