/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | InputBindingTest.java | 54 InputConnection conn = mock(InputConnection.class); in testInputBinding() local 56 InputBinding inputBinding = new InputBinding(conn, binder, ANY_UID, ANY_PID); in testInputBinding() 57 assertSame(conn, inputBinding.getConnection()); in testInputBinding() 78 InputConnection conn = mock(InputConnection.class); in testInputBindingConstructor() local 81 InputBinding binding = new InputBinding(conn, connectionToken, ANY_UID, ANY_PID); in testInputBindingConstructor() 85 assertSame(conn, binding.getConnection()); in testInputBindingConstructor() 91 InputConnection conn = mock(InputConnection.class); in testInputBindingCopyConstructor() local 93 InputBinding source = new InputBinding(conn, connectionToken, ANY_UID, ANY_PID); in testInputBindingCopyConstructor() 95 InputBinding copy = new InputBinding(conn, source); in testInputBindingCopyConstructor() 98 assertSame(conn, copy.getConnection()); in testInputBindingCopyConstructor()
|
/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/ |
D | AoapInterface.java | 90 public static int getProtocol(UsbDeviceConnection conn) { in getProtocol() argument 92 int len = conn.controlTransfer( in getProtocol() 101 public static void sendString(UsbDeviceConnection conn, int index, String string) { in sendString() argument 103 int len = conn.controlTransfer( in sendString() 114 public static void sendAoapStart(UsbDeviceConnection conn) { in sendAoapStart() argument 115 int len = conn.controlTransfer( in sendAoapStart()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/ |
D | AoapInterface.java | 95 public static int getProtocol(UsbDeviceConnection conn) { in getProtocol() argument 97 int len = conn.controlTransfer( in getProtocol() 106 public static void sendString(UsbDeviceConnection conn, int index, String string) { in sendString() argument 108 int len = conn.controlTransfer( in sendString() 119 public static void sendAoapStart(UsbDeviceConnection conn) { in sendAoapStart() argument 120 int len = conn.controlTransfer( in sendAoapStart()
|
/cts/tests/app/src/android/app/cts/ |
D | ServiceTest.java | 610 TestConnection conn = new TestConnection(true, false); in bindExpectResult() local 616 mContext.bindService(service, conn, 0); in bindExpectResult() 628 mContext.unbindService(conn); in bindExpectResult() 639 mContext.unbindService(conn); in bindExpectResult() 641 conn = new TestConnection(true, true); in bindExpectResult() 645 conn.setMonitor(true); in bindExpectResult() 647 mContext.bindService(service, conn, 0); in bindExpectResult() 654 mContext.unbindService(conn); in bindExpectResult() 660 conn.setMonitor(false); in bindExpectResult() 665 mContext.unbindService(conn); in bindExpectResult() [all …]
|
D | IntentServiceTest.java | 98 ServiceConnection conn = new TestConnection(); in testIntentServiceLifeCycle() local 99 mContext.bindService(mIntent, conn, Context.BIND_AUTO_CREATE); in testIntentServiceLifeCycle() 108 mContext.unbindService(conn); in testIntentServiceLifeCycle()
|
D | ActivityManagerProcessStateTest.java | 341 ServiceConnectionHandler conn = new ServiceConnectionHandler(mContext, mServiceIntent, in testUidImportanceListener() local 382 conn.bind(); in testUidImportanceListener() 384 IBinder service1 = conn.getServiceIBinder(); in testUidImportanceListener() 386 conn.unbind(); in testUidImportanceListener() 406 conn.bind(); in testUidImportanceListener() 418 IBinder service = conn.getServiceIBinder(); in testUidImportanceListener() 421 conn.unbind(); in testUidImportanceListener() 445 conn.bind(); in testUidImportanceListener() 463 conn.unbind(); in testUidImportanceListener() 481 conn.bind(); in testUidImportanceListener() [all …]
|
/cts/tests/tests/netsecpolicy/src/android/security/ |
D | NetworkSecurityPolicyTestBase.java | 75 HttpURLConnection conn = null; in assertCleartextHttpURLConnectionSucceeds() local 78 conn = (HttpURLConnection) url.openConnection(); in assertCleartextHttpURLConnectionSucceeds() 79 conn.setConnectTimeout(5000); in assertCleartextHttpURLConnectionSucceeds() 80 conn.setReadTimeout(5000); in assertCleartextHttpURLConnectionSucceeds() 81 assertEquals(200, conn.getResponseCode()); in assertCleartextHttpURLConnectionSucceeds() 83 if (conn != null) { in assertCleartextHttpURLConnectionSucceeds() 84 conn.disconnect(); in assertCleartextHttpURLConnectionSucceeds() 93 HttpURLConnection conn = null; in assertCleartextHttpURLConnectionBlocked() local 96 conn = (HttpURLConnection) url.openConnection(); in assertCleartextHttpURLConnectionBlocked() 97 conn.setConnectTimeout(5000); in assertCleartextHttpURLConnectionBlocked() [all …]
|
/cts/tests/tests/externalservice/service/src/android/externalservice/service/ |
D | ServiceCreator.java | 59 CreatorConnection conn = new CreatorConnection(msg.replyTo); 60 boolean result = context.bindService(intent, conn, 63 mConnections.add(conn); 88 for (final CreatorConnection conn : mConnections) { in onDestroy() 89 unbindService(conn); in onDestroy()
|
/cts/hostsidetests/appsecurity/test-apps/UseEmbeddedDexApp/src/com/android/cts/useembeddeddex/ |
D | EmbeddedDexTest.java | 37 ServiceConnection conn = new ServiceConnection() { in testIsolatedService() local 50 assertTrue(context.bindService(intent, conn, Context.BIND_AUTO_CREATE)); in testIsolatedService() 53 context.unbindService(conn); in testIsolatedService()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | SelfManagedConnectionServiceTest.java | 1362 TestServiceConnection conn = null; in testPlaceCallToRegisteredSelfManagedConnectionService() local 1364 conn = bindExternalSelfManagedServiceAndRegister( in testPlaceCallToRegisteredSelfManagedConnectionService() 1375 if (conn != null) tearDownControl(conn); in testPlaceCallToRegisteredSelfManagedConnectionService() 1390 TestServiceConnection conn = null; in testPlaceIncorrectSelfManagedCallFromRemote() local 1392 conn = bindExternalSelfManagedServiceAndRegister( in testPlaceIncorrectSelfManagedCallFromRemote() 1399 boolean result = conn.getInterface().placeOutgoingCall( in testPlaceIncorrectSelfManagedCallFromRemote() 1408 if (conn != null) tearDownControl(conn); in testPlaceIncorrectSelfManagedCallFromRemote() 1418 TestServiceConnection conn = bindExternalSelfManagedServiceAndRegister( in testCallSwapBetweenTwoSelfManagedConnectionServices() local 1422 placeSelfManagedCallOnTestApp(conn.getInterface(), in testCallSwapBetweenTwoSelfManagedConnectionServices() 1430 assertTrue(conn.getInterface().getAudioModeIsVoip()); in testCallSwapBetweenTwoSelfManagedConnectionServices() [all …]
|
D | EmergencyCallTests.java | 139 Connection conn = placeAndVerifyEmergencyCall(true /*supportsHold*/); in testStartEmergencyCall() 145 conn.setActive(); in testStartEmergencyCall() 146 conn.setDisconnected(new DisconnectCause(DisconnectCause.LOCAL)); in testStartEmergencyCall() 147 conn.destroy(); in testStartEmergencyCall() 148 assertConnectionState(conn, Connection.STATE_DISCONNECTED); in testStartEmergencyCall() 191 Connection conn = placeAndVerifyEmergencyCall(true /*supportsHold*/); in testEmergencyCallFailureCreatesDropboxEntries() local 198 conn.setDisconnected(new DisconnectCause(DisconnectCause.REJECTED)); in testEmergencyCallFailureCreatesDropboxEntries() 199 conn.destroy(); in testEmergencyCallFailureCreatesDropboxEntries() 200 assertConnectionState(conn, Connection.STATE_DISCONNECTED); in testEmergencyCallFailureCreatesDropboxEntries()
|
D | OutgoingCallTest.java | 313 Connection conn = verifyConnectionForOutgoingCall(); in testExtraPhoneAccountHandleAvailable() local 314 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, conn.getPhoneAccountHandle()); in testExtraPhoneAccountHandleAvailable() 327 conn = verifyConnectionForOutgoingCall(); in testExtraPhoneAccountHandleAvailable() 328 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE_2, conn.getPhoneAccountHandle()); in testExtraPhoneAccountHandleAvailable() 329 conn.onDisconnect(); in testExtraPhoneAccountHandleAvailable()
|
D | AdhocConferenceTest.java | 140 for (Connection conn : conference.getConnections()) { in testAddNewIncomingConference_onReject() 141 assertEquals(STATE_DISCONNECTED, conn.getState()); in testAddNewIncomingConference_onReject() 142 assertEquals(DisconnectCause.REJECTED, conn.getDisconnectCause().getCode()); in testAddNewIncomingConference_onReject()
|
D | TransactionalApisTest.java | 1390 MockConnection conn = verifyConnectionForOutgoingCall(); in placeSimCallAndSetActive() local 1391 conn.setActive(); in placeSimCallAndSetActive() 1392 assertConnectionState(conn, Connection.STATE_ACTIVE); in placeSimCallAndSetActive() 1393 return conn; in placeSimCallAndSetActive()
|
/cts/hostsidetests/appsecurity/test-apps/UseProcessSuccess/src/com/android/cts/useprocess/ |
D | AccessNetworkTest.java | 145 final MyConnection conn = new MyConnection(); in doNetworkTest() local 148 if (!context.bindService(intent, conn, Context.BIND_AUTO_CREATE)) { in doNetworkTest() 151 String result = conn.waitForResult(); in doNetworkTest() 153 Assert.fail(result + ", stack trace:\n" + conn.getStackTrace()); in doNetworkTest()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
D | OpenCVLibrary.java | 109 ServiceConnection conn = new ServiceConnection() { in probePackage() local 122 if (context.bindService(intent, conn, Context.BIND_AUTO_CREATE)) { in probePackage() 126 context.unbindService(conn); in probePackage()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2021-0925/ |
D | t4t.cpp | 142 tNFC_CONN conn = {.deactivate = {.status = NFC_STATUS_OK, in Fuzz_Deinit() local 147 rf_cback(NFC_RF_CONN_ID, NFC_DEACTIVATE_CEVT, &conn); in Fuzz_Deinit() 178 tNFC_CONN conn = {.data = { in Fuzz_Run() local 190 rf_cback(NFC_RF_CONN_ID, NFC_DATA_CEVT, &conn); in Fuzz_Run()
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | SeccompDeviceTest.java | 170 IsolatedConnection conn = new IsolatedConnection(); in bindService() local 171 mContext.bindService(intent, conn, Context.BIND_AUTO_CREATE); in bindService() 173 return conn; in bindService() 188 IsolatedConnection conn = bindService(IsolatedService.class); in testAppZygoteSyscalls() local 189 boolean testResult = conn.getTestResult(); in testAppZygoteSyscalls()
|
/cts/tests/app/app/src/android/app/stubs/ |
D | TrimMemService.java | 157 final MyServiceConnection conn = new MyServiceConnection(latch); in bindToTrimMemService() local 159 instanceName, AsyncTask.THREAD_POOL_EXECUTOR, conn); in bindToTrimMemService() 161 return conn; in bindToTrimMemService()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
D | ConnectivityBackgroundTestActivity.java | 631 final HttpURLConnection conn = 633 conn.setConnectTimeout(10 * 1000); 634 conn.setReadTimeout(10 * 1000); 635 if (doClose) { conn.setRequestProperty("connection", "close"); } 636 rcode = conn.getResponseCode(); 638 msg = new BufferedReader(new InputStreamReader(conn.getInputStream())).readLine(); 640 if (doClose) { conn.disconnect(); } // try not to have reusable sessions
|
/cts/tests/app/AppExitTest/src/android/app/cts/ |
D | MemoryConsumerService.java | 154 final ServiceConnection conn = new ServiceConnection() { in bindToService() local 166 instanceName, AsyncTask.THREAD_POOL_EXECUTOR, conn); in bindToService() 168 return new Pair<>(holder.getBinder(keyIBinder), conn); in bindToService()
|
/cts/tests/tests/apache-http/src/org/apache/http/conn/ssl/cts/ |
D | AbstractVerifierTest.java | 17 package org.apache.http.conn.ssl.cts; 22 import org.apache.http.conn.ssl.AbstractVerifier;
|
/cts/hostsidetests/jdwptunnel/src/android/jdwptunnel/cts/ |
D | JdwpTunnelTest.java | 103 AttachingConnector conn = in getDebuggerConnection() local 109 Map<String, Connector.Argument> params = conn.defaultArguments(); in getDebuggerConnection() 114 return conn.attach(params); in getDebuggerConnection()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | SipDelegateManagerTest.java | 2100 TestSipDelegateConnection conn, TestSipTransport transport) throws Exception { in createSipDelegateConnectionNoDelegateExpected() argument 2102 conn.setOperationCountDownLatch(2); in createSipDelegateConnectionNoDelegateExpected() 2103 conn.connect(manager); in createSipDelegateConnectionNoDelegateExpected() 2104 conn.waitForCountDown(ImsUtils.TEST_TIMEOUT_MS); in createSipDelegateConnectionNoDelegateExpected() 2105 conn.verifyDelegateCreated(); in createSipDelegateConnectionNoDelegateExpected() 2106 conn.verifyRegistrationStateEmpty(); in createSipDelegateConnectionNoDelegateExpected() 2109 conn.verifyAllDenied(SipDelegateManager.DENIED_REASON_NOT_ALLOWED); in createSipDelegateConnectionNoDelegateExpected() 2161 TestSipDelegateConnection conn, TestSipTransport transport, in createSipDelegateConnectionAndVerify() argument 2163 conn.setOperationCountDownLatch(1); in createSipDelegateConnectionAndVerify() 2164 conn.connect(manager); in createSipDelegateConnectionAndVerify() [all …]
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 1187 DefaultHttpServerConnection conn = mServer.createHttpServerConnection(); in run() local 1190 conn.bind(socket, params); in run() 1195 HttpRequest request = conn.receiveRequestHeader(); in run() 1197 conn.receiveRequestEntity( (HttpEntityEnclosingRequest) request); in run() 1200 mExecutorService.execute(new HandleResponseTask(conn, request, socket)); in run()
|