/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 | MockConnectionService.java | 24 import android.telecom.Connection; 81 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection() 86 connection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORT_HOLD | in onCreateOutgoingConnection() 87 Connection.CAPABILITY_HOLD in onCreateOutgoingConnection() 88 | Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL in onCreateOutgoingConnection() 89 | Connection.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL); in onCreateOutgoingConnection() 100 Connection.PROPERTY_IS_RTT); in onCreateOutgoingConnection() 118 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection() 123 | Connection.CAPABILITY_CAN_SEND_RESPONSE_VIA_CONNECTION in onCreateIncomingConnection() 124 | Connection.CAPABILITY_SUPPORT_HOLD in onCreateIncomingConnection() [all …]
|
D | CallDetailsTest.java | 19 import static android.telecom.Connection.PROPERTY_HIGH_DEF_AUDIO; 20 import static android.telecom.Connection.PROPERTY_WIFI; 43 import android.telecom.Connection; 71 Connection.CAPABILITY_HOLD | Connection.CAPABILITY_MUTE; 108 public Connection onCreateOutgoingConnection( in setUp() 111 Connection connection = super.onCreateOutgoingConnection( in setUp() 222 Connection.CAPABILITY_SUPPORTS_VT_LOCAL_BIDIRECTIONAL); in testCallLocalVideoCapability() 225 mConnection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORTS_VT_LOCAL_RX); in testCallLocalVideoCapability() 228 mConnection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORTS_VT_LOCAL_TX); in testCallLocalVideoCapability() 232 Connection.CAPABILITY_SUPPORTS_VT_REMOTE_BIDIRECTIONAL); in testCallLocalVideoCapability() [all …]
|
D | RemoteConferenceTest.java | 26 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; 89 assertConnectionState(mConnection1, Connection.STATE_ACTIVE); in testRemoteConferenceCreate() 90 assertConnectionState(mConnection2, Connection.STATE_ACTIVE); in testRemoteConferenceCreate() 91 assertConnectionState(mRemoteConnection1, Connection.STATE_ACTIVE); in testRemoteConferenceCreate() 92 assertConnectionState(mRemoteConnection2, Connection.STATE_ACTIVE); in testRemoteConferenceCreate() 93 assertConferenceState(mConference, Connection.STATE_ACTIVE); in testRemoteConferenceCreate() 94 assertConferenceState(mRemoteConference, Connection.STATE_ACTIVE); in testRemoteConferenceCreate() [all …]
|
D | BackgroundCallAudioTest.java | 20 import android.telecom.Connection; 94 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningAllow() 120 assertConnectionState(connection, Connection.STATE_ACTIVE); in testHoldAfterAudioProcessingFromCallScreening() 151 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningDisallow() 179 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningMissed() 205 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing() 220 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningRemoteHangupDuringRing() 244 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall() 258 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall() 267 assertConnectionState(connection, Connection.STATE_DISCONNECTED); in testAudioProcessingFromCallScreeningAllowPlaceEmergencyCall() [all …]
|
D | CtsSelfManagedConnectionService.java | 21 import android.telecom.Connection; 89 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerAccount, in onCreateOutgoingConnection() 96 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection() 114 public Connection onCreateIncomingHandoverConnection(PhoneAccountHandle fromPhoneAccountHandle, in onCreateIncomingHandoverConnection() 121 public Connection onCreateOutgoingHandoverConnection(PhoneAccountHandle fromPhoneAccountHandle, in onCreateOutgoingHandoverConnection() 158 private Connection createSelfManagedConnection(ConnectionRequest request, boolean isIncoming) { in createSelfManagedConnection() 161 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); in createSelfManagedConnection() 163 Connection.CAPABILITY_HOLD | Connection.CAPABILITY_SUPPORT_HOLD); in createSelfManagedConnection()
|
D | WiredHeadsetTest.java | 20 import android.telecom.Connection; 58 assertConnectionState(connection, Connection.STATE_RINGING); in testIncomingCallShortPress_acceptsCall() 62 assertConnectionState(connection, Connection.STATE_ACTIVE); in testIncomingCallShortPress_acceptsCall() 75 assertConnectionState(connection, Connection.STATE_RINGING); in testIncomingCallLongPress_rejectsCall() 79 assertConnectionState(connection, Connection.STATE_DISCONNECTED); in testIncomingCallLongPress_rejectsCall() 120 assertConnectionState(connection, Connection.STATE_DISCONNECTED); in testInCallShortPress_hangupCall()
|
D | AccessibilitySystemActionTest.java | 21 import android.telecom.Connection; 44 assertConnectionState(connection, Connection.STATE_RINGING); in testIncomingCall_headsetHookAction_acceptsCall() 49 assertConnectionState(connection, Connection.STATE_ACTIVE); in testIncomingCall_headsetHookAction_acceptsCall() 66 assertConnectionState(connection, Connection.STATE_DISCONNECTED); in testInCall_headsetHookAction_hangupCall()
|
D | MockConference.java | 23 import android.telecom.Connection; 70 for (Connection c : getConnections()) { in onDisconnect() 83 for (Connection c : getConnections()) { in onReject() 95 public void onSeparate(Connection connection) { in onSeparate() 109 for (Connection c : getConnections()) { in onMerge() 122 for (Connection c : getConnections()) { in onSwap() 134 for (Connection c : getConnections()) { in onHold() 146 for (Connection c : getConnections()) { in onUnhold()
|
D | EmergencyCallTests.java | 28 import android.telecom.Connection; 139 Connection conn = placeAndVerifyEmergencyCall(true /*supportsHold*/); in testStartEmergencyCall() 148 assertConnectionState(conn, Connection.STATE_DISCONNECTED); in testStartEmergencyCall() 191 Connection conn = placeAndVerifyEmergencyCall(true /*supportsHold*/); in testEmergencyCallFailureCreatesDropboxEntries() 200 assertConnectionState(conn, Connection.STATE_DISCONNECTED); in testEmergencyCallFailureCreatesDropboxEntries() 227 Connection eConnection = placeAndVerifyEmergencyCall(true /*supportsHold*/); in testOngoingEmergencyCallAndReceiveIncomingCall() 260 Connection eConnection = placeAndVerifyEmergencyCall(false /*supportsHold*/); in testIncomingRingingCallAndPlaceEmergencyCall() 265 assertConnectionState(incomingConnection, Connection.STATE_DISCONNECTED); in testIncomingRingingCallAndPlaceEmergencyCall() 290 Connection outgoingConnection = verifyConnectionForOutgoingCall(); in testActiveCallAndIncomingRingingCallAndPlaceEmergencyCall() 304 Connection eConnection = placeAndVerifyEmergencyCall(false /*supportsHold*/); in testActiveCallAndIncomingRingingCallAndPlaceEmergencyCall() [all …]
|
D | ExternalCallTest.java | 27 import android.telecom.Connection; 38 public static final int CONNECTION_PROPERTIES = Connection.PROPERTY_IS_EXTERNAL_CALL; 39 public static final int CONNECTION_CAPABILITIES = Connection.CAPABILITY_CAN_PULL_CALL; 50 public Connection onCreateOutgoingConnection( in setUp() 53 Connection connection = super.onCreateOutgoingConnection( in setUp() 188 assertConnectionState(mExternalConnection, Connection.STATE_ACTIVE); in testExternalCallAndPullCall() 205 assertConnectionState(mExternalConnection, Connection.STATE_ACTIVE); in testExternalCallAndPullCall()
|
D | ExtendedInCallServiceTest.java | 37 import android.telecom.Connection; 227 assertEquals(Connection.STATE_HOLDING, connection.getState()); in testHoldAndUnholdCall() 231 assertEquals(Connection.STATE_ACTIVE, connection.getState()); in testHoldAndUnholdCall() 247 assertConnectionState(connection, Connection.STATE_RINGING); in testAnswerIncomingCallAudioOnly() 252 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAnswerIncomingCallAudioOnly() 266 assertConnectionState(connection, Connection.STATE_RINGING); in testAcceptRingingCall() 271 assertConnectionState(connection, Connection.STATE_ACTIVE); in testAcceptRingingCall() 288 assertConnectionState(connection, Connection.STATE_RINGING); in testEndRingingCall() 293 assertConnectionState(connection, Connection.STATE_DISCONNECTED); in testEndRingingCall() 310 assertConnectionState(connection, Connection.STATE_RINGING); in testEndCall() [all …]
|
D | CtsRemoteConnectionService.java | 23 import android.telecom.Connection; 94 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection() 109 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection() 155 public void onConference(Connection connection1, Connection connection2) { in onConference()
|
D | RemoteConnectionTest.java | 34 import android.telecom.Connection; 83 assertConnectionState(mConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall() 84 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall() 85 assertConnectionState(mRemoteConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall() 89 assertConnectionState(mConnection, Connection.STATE_HOLDING); in testRemoteConnectionOutgoingCall() 90 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_HOLDING); in testRemoteConnectionOutgoingCall() 91 assertConnectionState(mRemoteConnection, Connection.STATE_HOLDING); in testRemoteConnectionOutgoingCall() 95 assertConnectionState(mConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall() 96 assertRemoteConnectionState(mRemoteConnectionObject, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall() 97 assertConnectionState(mRemoteConnection, Connection.STATE_ACTIVE); in testRemoteConnectionOutgoingCall() [all …]
|
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()
|
/cts/tests/tests/mediacujtest/common/src/android/media/cujcommon/cts/ |
D | CallNotificationService.java | 19 import android.telecom.Connection; 32 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection() 34 Connection sampleConnection = new Connection() {}; in onCreateIncomingConnection() 41 Connection mConnection; 43 Task(Connection sampleConnection) { in Task()
|
/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/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | ManagedConnection.java | 21 import android.telecom.Connection; 28 public class ManagedConnection extends Connection { 139 Connection.capabilitiesToString(this.getConnectionCapabilities()))); in clearHoldCapabilities() 141 int holdCapabilities = Connection.CAPABILITY_HOLD | Connection.CAPABILITY_SUPPORT_HOLD; in clearHoldCapabilities() 146 Connection.capabilitiesToString(this.getConnectionCapabilities()))); in clearHoldCapabilities()
|
D | VoipConnection.java | 21 import android.telecom.Connection; 28 public class VoipConnection extends Connection { 156 Connection.capabilitiesToString(this.getConnectionCapabilities()))); in clearHoldCapabilities() 158 int holdCapabilities = Connection.CAPABILITY_HOLD | Connection.CAPABILITY_SUPPORT_HOLD; in clearHoldCapabilities() 163 Connection.capabilitiesToString(this.getConnectionCapabilities()))); in clearHoldCapabilities()
|
D | WaitUntil.java | 25 import android.telecom.Connection; 96 Connection getLastConnection(); in getLastConnection() 102 Connection connection) { in waitUntilIdIsSet() 135 Connection connection) { in waitUntilCallAudioStateIsSet() 170 Connection connection) { in waitUntilAvailableEndpointsIsSet() 201 public static Connection waitUntilConnectionIsNonNull( in waitUntilConnectionIsNonNull() 231 private static String extractTelecomId(Connection connection) { in extractTelecomId() 236 private static Connection getLastConnection(ConnectionServiceImpl s) { in getLastConnection()
|
/cts/tests/tests/telecom-apps/ManagedConnectionService/src/android/telecom/cts/apps/managedapp/ |
D | ManagedConnectionService.java | 19 import android.telecom.Connection; 48 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection() 64 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection() 79 private Connection createConnection(ConnectionRequest request, boolean isOutgoing) { in createConnection() 91 Connection.CAPABILITY_HOLD | Connection.CAPABILITY_SUPPORT_HOLD in createConnection()
|
/cts/tests/tests/telecom-apps/ConnectionServiceVoipAppMain/src/android/telecom/cts/apps/connectionservicevoipappmain/ |
D | VoipConnectionServiceMain.java | 19 import android.telecom.Connection; 48 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateOutgoingConnection() 64 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection() 79 private Connection createConnection(ConnectionRequest request, boolean isOutgoing) { in createConnection() 91 Connection.CAPABILITY_HOLD | Connection.CAPABILITY_SUPPORT_HOLD in createConnection()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/ |
D | CtsConnectionService.java | 21 import android.telecom.Connection; 109 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerAccount, in onCreateOutgoingConnection() 116 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection() 132 private Connection createManagedConnection(ConnectionRequest request, boolean isIncoming) { in createManagedConnection() 141 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED); in createManagedConnection() 144 connection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORT_HOLD | in createManagedConnection() 145 Connection.CAPABILITY_HOLD); in createManagedConnection()
|
D | CtsSelfManagedConnectionService.java | 4 import android.telecom.Connection; 83 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount, in onCreateIncomingConnection() 89 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerAccount, in onCreateOutgoingConnection() 94 private Connection createConnection(ConnectionRequest request, boolean isIncoming) { in createConnection() 99 connection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORT_HOLD | in createConnection() 100 Connection.CAPABILITY_HOLD); in createConnection()
|
/cts/tests/tests/externalservice/src/android/externalservice/cts/ |
D | SharedIsolatedServiceTest.java | 39 private Connection mConnection = new Connection(mCondition); 104 Connection connection2 = new Connection(mCondition); in testMultipleServicesWithSingleInstance() 151 Connection connection2 = new Connection(mCondition); in testMultipleServicesWithMultiInstance() 188 private static class Connection implements ServiceConnection { class in SharedIsolatedServiceTest 193 Connection(ConditionVariable conditionVariable) { in Connection() method in SharedIsolatedServiceTest.Connection
|