/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | ConnectionTest.java | 41 Connection connection = createConnection(lock); in testStateCallbacks() local 44 assertEquals(Connection.STATE_NEW, connection.getState()); in testStateCallbacks() 46 connection.setInitializing(); in testStateCallbacks() 48 assertEquals(Connection.STATE_INITIALIZING, connection.getState()); in testStateCallbacks() 50 connection.setInitialized(); in testStateCallbacks() 52 assertEquals(Connection.STATE_NEW, connection.getState()); in testStateCallbacks() 54 connection.setRinging(); in testStateCallbacks() 56 assertEquals(Connection.STATE_RINGING, connection.getState()); in testStateCallbacks() 58 connection.setDialing(); in testStateCallbacks() 60 assertEquals(Connection.STATE_DIALING, connection.getState()); in testStateCallbacks() [all …]
|
D | MockConnectionService.java | 56 final MockConnection connection = new MockConnection(); in onCreateOutgoingConnection() local 57 connection.setAddress(request.getAddress(), CONNECTION_PRESENTATION); in onCreateOutgoingConnection() 58 connection.setPhoneAccountHandle(connectionManagerPhoneAccount); in onCreateOutgoingConnection() 60 connection.createMockVideoProvider(); in onCreateOutgoingConnection() 64 connection.setVideoState(request.getVideoState()); in onCreateOutgoingConnection() 66 outgoingConnections.add(connection); in onCreateOutgoingConnection() 68 return connection; in onCreateOutgoingConnection() 74 final MockConnection connection = new MockConnection(); in onCreateIncomingConnection() local 75 connection.setAddress(request.getAddress(), CONNECTION_PRESENTATION); in onCreateIncomingConnection() 76 connection.createMockVideoProvider(); in onCreateIncomingConnection() [all …]
|
D | WiredHeadsetTest.java | 44 final MockConnection connection = verifyConnectionForIncomingCall(); in testIncomingCallShortPress_acceptsCall() local 48 assertConnectionState(connection, Connection.STATE_RINGING); in testIncomingCallShortPress_acceptsCall() 52 assertConnectionState(connection, Connection.STATE_ACTIVE); in testIncomingCallShortPress_acceptsCall() 61 final MockConnection connection = verifyConnectionForIncomingCall(); in testIncomingCallLongPress_rejectsCall() local 65 assertConnectionState(connection, Connection.STATE_RINGING); in testIncomingCallLongPress_rejectsCall() 69 assertConnectionState(connection, Connection.STATE_DISCONNECTED); in testIncomingCallLongPress_rejectsCall() 78 final MockConnection connection = verifyConnectionForOutgoingCall(); in testInCallShortPress_togglesMute() local 87 assertMuteState(connection, true); in testInCallShortPress_togglesMute() 90 assertMuteState(connection, false); in testInCallShortPress_togglesMute() 100 final MockConnection connection = verifyConnectionForOutgoingCall(); in testInCallLongPress_hangupCall() local [all …]
|
D | ExtendedInCallServiceTest.java | 66 final MockConnection connection = verifyConnectionForOutgoingCall(); in testMuteAndUnmutePhone() local 74 assertMuteState(connection, false); in testMuteAndUnmutePhone() 79 assertMuteState(connection, true); in testMuteAndUnmutePhone() 83 assertMuteState(connection, false); in testMuteAndUnmutePhone() 93 final MockConnection connection = verifyConnectionForOutgoingCall(); in testSwitchAudioRoutes() local 109 assertAudioRoute(connection, CallAudioState.ROUTE_SPEAKER); in testSwitchAudioRoutes() 115 assertAudioRoute(connection, CallAudioState.ROUTE_EARPIECE); in testSwitchAudioRoutes() 132 final MockConnection connection = verifyConnectionForOutgoingCall(); in testPlayAndStopDtmfTones() local 139 assertDtmfString(connection, ""); in testPlayAndStopDtmfTones() 142 assertDtmfString(connection, "1"); in testPlayAndStopDtmfTones() [all …]
|
D | RemoteConnectionTest.java | 175 public void onStateChanged(RemoteConnection connection, int state) { in testRemoteConnectionCallbacks_StateChange() 176 super.onStateChanged(connection, state); in testRemoteConnectionCallbacks_StateChange() 177 callbackInvoker.invoke(connection, state); in testRemoteConnectionCallbacks_StateChange() 201 public void onRingbackRequested(RemoteConnection connection, boolean ringback) { in testRemoteConnectionCallbacks_RingbackRequest() 202 super.onRingbackRequested(connection, ringback); in testRemoteConnectionCallbacks_RingbackRequest() 203 callbackInvoker.invoke(connection, ringback); in testRemoteConnectionCallbacks_RingbackRequest() 228 RemoteConnection connection, in testRemoteConnectionCallbacks_ConnectionCapabilities() 230 super.onConnectionCapabilitiesChanged(connection, connectionCapabilities); in testRemoteConnectionCallbacks_ConnectionCapabilities() 231 callbackInvoker.invoke(connection, connectionCapabilities); in testRemoteConnectionCallbacks_ConnectionCapabilities() 257 public void onPostDialWait(RemoteConnection connection, in testRemoteConnectionCallbacks_PostDialWait() [all …]
|
D | BaseRemoteTelecomTest.java | 123 … MockConnection connection = remoteConnectionService.outgoingConnections.get(connectionIndex); in verifyConnectionForOutgoingCallOnRemoteCS() local 124 return connection; in verifyConnectionForOutgoingCallOnRemoteCS() 146 … MockConnection connection = remoteConnectionService.incomingConnections.get(connectionIndex); in verifyConnectionForIncomingCallOnRemoteCS() local 147 setAndVerifyConnectionForIncomingCall(connection); in verifyConnectionForIncomingCallOnRemoteCS() 148 return connection; in verifyConnectionForIncomingCallOnRemoteCS() 158 … MockConnection connection = remoteConnectionService.outgoingConnections.get(connectionIndex); in setAndVerifyConferenceablesForOutgoingConnectionOnRemoteCS() local 162 if (c != connection) { in setAndVerifyConferenceablesForOutgoingConnectionOnRemoteCS() 166 connection.setConferenceableConnections(confConnections); in setAndVerifyConferenceablesForOutgoingConnectionOnRemoteCS() 167 assertEquals(connection.getConferenceables(), confConnections); in setAndVerifyConferenceablesForOutgoingConnectionOnRemoteCS() 185 void assertRemoteConnectionState(final RemoteConnection connection, final int state) { in assertRemoteConnectionState() argument [all …]
|
D | VideoCallTest.java | 64 final MockConnection connection = verifyConnectionForOutgoingCall(); in testMakeTwoWayVideoCall() local 70 connection.setActive(); in testMakeTwoWayVideoCall() 128 final MockConnection connection = verifyConnectionForOutgoingCall(); in testReceiveSessionModifyRequest() local 142 connection.sendMockSessionModifyRequest( in testReceiveSessionModifyRequest() 157 final MockConnection connection = verifyConnectionForOutgoingCall(); in testSendSessionModifyResponse() local 161 final MockVideoProvider mockVideoProvider = connection.getMockVideoProvider(); in testSendSessionModifyResponse() 186 final MockConnection connection = verifyConnectionForOutgoingCall(); in testVideoCallDelayProvider() local 198 connection.createMockVideoProvider(); in testVideoCallDelayProvider() 292 final MockConnection connection = verifyConnectionForOutgoingCall(); in testReceiveVideoQuality() local 303 connection in testReceiveVideoQuality() [all …]
|
D | MockConference.java | 63 public void onSeparate(Connection connection) { in onSeparate() argument 64 super.onSeparate(connection); in onSeparate() 65 if (getConnections().contains(connection)) { in onSeparate() 66 removeConnection(connection); in onSeparate() 69 mRemoteConference.separate(((MockConnection)connection).getRemoteConnection()); in onSeparate()
|
D | BaseTelecomTestWithMockServices.java | 329 MockConnection connection = connectionService.outgoingConnections.get(connectionIndex); in verifyConnectionForOutgoingCall() local 330 return connection; in verifyConnectionForOutgoingCall() 350 MockConnection connection = connectionService.incomingConnections.get(connectionIndex); in verifyConnectionForIncomingCall() local 351 setAndVerifyConnectionForIncomingCall(connection); in verifyConnectionForIncomingCall() 352 return connection; in verifyConnectionForIncomingCall() 355 void setAndVerifyConnectionForIncomingCall(MockConnection connection) { in setAndVerifyConnectionForIncomingCall() argument 356 connection.setRinging(); in setAndVerifyConnectionForIncomingCall() 357 assertConnectionState(connection, Connection.STATE_RINGING); in setAndVerifyConnectionForIncomingCall() 363 MockConnection connection = connectionService.outgoingConnections.get(connectionIndex); in setAndVerifyConferenceablesForOutgoingConnection() local 367 if (c != connection) { in setAndVerifyConferenceablesForOutgoingConnection() [all …]
|
D | CtsConnectionService.java | 131 public void onRemoteExistingConnectionAdded(RemoteConnection connection) { in onRemoteExistingConnectionAdded() argument 134 sConnectionService.onRemoteExistingConnectionAdded(connection); in onRemoteExistingConnectionAdded() 136 mMockConnectionService.onRemoteExistingConnectionAdded(connection); in onRemoteExistingConnectionAdded() 148 PhoneAccountHandle phoneAccountHandle, Connection connection) { in addExistingConnectionToTelecom() argument 150 sTelecomConnectionService.addExistingConnection(phoneAccountHandle, connection); in addExistingConnectionToTelecom()
|
D | CallDetailsTest.java | 75 Connection connection = super.onCreateOutgoingConnection( in setUp() 79 connection.setConnectionCapabilities(CONNECTION_CAPABILITIES); in setUp() 80 connection.setCallerDisplayName( in setUp() 83 connection.setExtras(mExtras); in setUp() 90 connection.setStatusHints(mStatusHints); in setUp() 92 return connection; in setUp()
|
D | ConnectionServiceTest.java | 52 final MockConnection connection = new MockConnection(); in testAddExistingConnection() local 53 connection.setOnHold(); in testAddExistingConnection() 54 CtsConnectionService.addExistingConnectionToTelecom(TEST_PHONE_ACCOUNT_HANDLE, connection); in testAddExistingConnection()
|
D | RemoteConferenceTest.java | 268 RemoteConnection connection) { in testRemoteConferenceCallbacks_ConnectionAdd() 269 super.onConnectionAdded(conference, connection); in testRemoteConferenceCallbacks_ConnectionAdd() 270 callbackInvoker.invoke(conference, connection); in testRemoteConferenceCallbacks_ConnectionAdd() 299 RemoteConnection connection) { in testRemoteConferenceCallbacks_ConnectionRemove() 300 super.onConnectionRemoved(conference, connection); in testRemoteConferenceCallbacks_ConnectionRemove() 301 callbackInvoker.invoke(conference, connection); in testRemoteConferenceCallbacks_ConnectionRemove() 453 MockConnection connection = (MockConnection)super.onCreateOutgoingConnection( in addRemoteConnectionOutgoingCalls() 462 connection.setRemoteConnection(remoteConnection); in addRemoteConnectionOutgoingCalls() 464 int capabilities = connection.getConnectionCapabilities(); in addRemoteConnectionOutgoingCalls() 465 connection.setConnectionCapabilities(capabilities | CONF_CAPABILITIES); in addRemoteConnectionOutgoingCalls() [all …]
|
D | ConferenceTest.java | 285 Connection connection = super.onCreateOutgoingConnection( in addOutgoingCalls() 289 int capabilities = connection.getConnectionCapabilities(); in addOutgoingCalls() 290 connection.setConnectionCapabilities(capabilities | CONF_CAPABILITIES); in addOutgoingCalls() 291 return connection; in addOutgoingCalls()
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/ |
D | MultipartForm.java | 72 HttpURLConnection connection = null; in submitForm() local 75 connection = (HttpURLConnection) url.openConnection(); in submitForm() 76 connection.setInstanceFollowRedirects(false); in submitForm() 77 connection.setRequestMethod("POST"); in submitForm() 78 connection.setDoOutput(true); in submitForm() 79 connection.setRequestProperty("Content-Type", in submitForm() 83 connection.setRequestProperty("Content-Length", Integer.toString(body.length)); in submitForm() 85 OutputStream output = connection.getOutputStream(); in submitForm() 93 InputStream input = connection.getInputStream(); in submitForm() 96 if (connection.getResponseCode() == 302) { in submitForm() [all …]
|
/cts/tests/tests/net/src/android/net/wifi/cts/ |
D | WifiManagerTest.java | 473 HttpURLConnection connection = null; in testWifiWatchdog() local 476 connection = (HttpURLConnection) url.openConnection(); in testWifiWatchdog() 477 connection.setInstanceFollowRedirects(false); in testWifiWatchdog() 478 connection.setConnectTimeout(TIMEOUT_MSEC); in testWifiWatchdog() 479 connection.setReadTimeout(TIMEOUT_MSEC); in testWifiWatchdog() 480 connection.setUseCaches(false); in testWifiWatchdog() 481 connection.getInputStream(); in testWifiWatchdog() 485 if (connection != null) connection.disconnect(); in testWifiWatchdog()
|
/cts/tests/tests/view/src/android/view/inputmethod/cts/ |
D | InputMethodManagerTest.java | 86 BaseInputConnection connection = new BaseInputConnection(view, false); in testInputMethodManager() local 101 connection.reportFullscreenMode(false); in testInputMethodManager() 103 connection.reportFullscreenMode(true); in testInputMethodManager()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | TestWebServer.java | 139 URLConnection connection = openConnection(url); in shutdown() local 140 connection.connect(); in shutdown() 143 InputStream is = connection.getInputStream(); in shutdown() 329 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in openConnection() local 330 connection.setHostnameVerifier(new TestHostnameVerifier()); in openConnection() 335 connection.setSSLSocketFactory(context.getSocketFactory()); in openConnection() 337 return connection; in openConnection()
|
D | CtsTestServer.java | 249 URLConnection connection = openConnection(url); in shutdown() local 250 connection.connect(); in shutdown() 253 InputStream is = connection.getInputStream(); in shutdown() 282 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in openConnection() local 283 connection.setHostnameVerifier(new CtsHostnameVerifier()); in openConnection() 291 connection.setSSLSocketFactory(context.getSocketFactory()); in openConnection() 293 return connection; in openConnection() 1072 public HandleResponseTask(DefaultHttpServerConnection connection, in HandleResponseTask() argument 1074 this.mConnection = connection; in HandleResponseTask()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/ |
D | KeyChainTest.java | 330 HttpsURLConnection connection = (HttpsURLConnection) url.openConnection(); in makeHttpsRequest() local 331 connection.setSSLSocketFactory(clientContext.getSocketFactory()); in makeHttpsRequest() 332 if (connection.getResponseCode() != 200) { in makeHttpsRequest() 333 log("Connection failed. Response code: " + connection.getResponseCode()); in makeHttpsRequest()
|
/cts/tests/tests/net/src/android/net/http/cts/ |
D | HttpResponseCacheTest.java | 92 @Override public CacheRequest put(URI uri, URLConnection connection) { in testGetInstalledWithWrongTypeInstalled()
|
/cts/tools/tradefed-host/ |
D | README | 15 - automatically continue a CTS test run on another device if connection
|
/cts/tests/expectations/ |
D | knownfailures.txt | 52 …description: "the test result are too much dependent on live-internet connection, which for some d…
|
/cts/tools/dex-tools/dex/ |
D | classes0.out.dex | 66167 protected org.apache.harmony.luni.internal.net.www.protocol.http.HttpConnection connection
|