/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 | 579 TestConnection conn = new TestConnection(true, false); in bindExpectResult() local 585 mContext.bindService(service, conn, 0); in bindExpectResult() 597 mContext.unbindService(conn); in bindExpectResult() 608 mContext.unbindService(conn); in bindExpectResult() 610 conn = new TestConnection(true, true); in bindExpectResult() 614 conn.setMonitor(true); in bindExpectResult() 616 mContext.bindService(service, conn, 0); in bindExpectResult() 623 mContext.unbindService(conn); in bindExpectResult() 629 conn.setMonitor(false); in bindExpectResult() 634 mContext.unbindService(conn); in bindExpectResult() [all …]
|
D | ActivityManagerProcessStateTest.java | 298 ServiceConnectionHandler conn = new ServiceConnectionHandler(mContext, mServiceIntent, in testUidImportanceListener() local 339 conn.bind(); in testUidImportanceListener() 341 IBinder service1 = conn.getServiceIBinder(); in testUidImportanceListener() 343 conn.unbind(); in testUidImportanceListener() 363 conn.bind(); in testUidImportanceListener() 375 IBinder service = conn.getServiceIBinder(); in testUidImportanceListener() 378 conn.unbind(); in testUidImportanceListener() 402 conn.bind(); in testUidImportanceListener() 420 conn.unbind(); in testUidImportanceListener() 438 conn.bind(); in testUidImportanceListener() [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()
|
/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/suite/audio_quality/test_description/ |
D | processing_main.py | 63 def __init__(self, conn): argument 64 self.conn = conn 66 self.conn.close() 149 raw = self.conn.recv(length - totalRead) 197 sent = self.conn.send(rawString[totalSent:]) 213 conn, addr = s.accept() variable 217 handler = CommandHandler(conn)
|
/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 | 110 final MyServiceConnection conn = new MyServiceConnection(latch); in bindToTrimMemService() local 112 instanceName, AsyncTask.THREAD_POOL_EXECUTOR, conn); in bindToTrimMemService() 114 return conn; in bindToTrimMemService()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | OutgoingCallTest.java | 227 Connection conn = verifyConnectionForOutgoingCall(); in testExtraPhoneAccountHandleAvailable() local 228 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, conn.getPhoneAccountHandle()); in testExtraPhoneAccountHandleAvailable() 239 conn = verifyConnectionForOutgoingCall(); in testExtraPhoneAccountHandleAvailable() 240 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE_2, conn.getPhoneAccountHandle()); in testExtraPhoneAccountHandleAvailable() 241 conn.onDisconnect(); in testExtraPhoneAccountHandleAvailable()
|
D | AdhocConferenceTest.java | 130 for (Connection conn : conference.getConnections()) { in testAddNewIncomingConference_onReject() 131 assertEquals(STATE_DISCONNECTED, conn.getState()); in testAddNewIncomingConference_onReject() 132 assertEquals(DisconnectCause.REJECTED, conn.getDisconnectCause().getCode()); in testAddNewIncomingConference_onReject()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/net/ |
D | ConnectivityBackgroundTestActivity.java | 628 final HttpURLConnection conn = 630 conn.setConnectTimeout(10 * 1000); 631 conn.setReadTimeout(10 * 1000); 632 if (doClose) { conn.setRequestProperty("connection", "close"); } 633 rcode = conn.getResponseCode(); 635 msg = new BufferedReader(new InputStreamReader(conn.getInputStream())).readLine(); 637 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/libs/testserver/src/android/webkit/cts/ |
D | TestWebServer.java | 581 DefaultHttpServerConnection conn = new DefaultHttpServerConnection(); in run() local 582 conn.bind(socket, params); in run() 587 HttpRequest request = conn.receiveRequestHeader(); in run() 593 conn.sendResponseHeader(response); in run() 594 conn.sendResponseEntity(response); in run() 595 conn.close(); in run()
|
D | CtsTestServer.java | 1063 DefaultHttpServerConnection conn = mServer.createHttpServerConnection(); in run() local 1066 conn.bind(socket, params); in run() 1071 HttpRequest request = conn.receiveRequestHeader(); in run() 1073 conn.receiveRequestEntity( (HttpEntityEnclosingRequest) request); in run() 1076 mExecutorService.execute(new HandleResponseTask(conn, request, socket)); in run()
|
/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 | 95 AttachingConnector conn = in getDebuggerConnection() local 101 Map<String, Connector.Argument> params = conn.defaultArguments(); in getDebuggerConnection() 106 return conn.attach(params); in getDebuggerConnection()
|
/cts/tests/tests/telephony/current/src/android/telephony/ims/cts/ |
D | SipDelegateManagerTest.java | 1746 TestSipDelegateConnection conn, TestSipTransport transport) throws Exception { in createSipDelegateConnectionNoDelegateExpected() argument 1748 conn.setOperationCountDownLatch(2); in createSipDelegateConnectionNoDelegateExpected() 1749 conn.connect(manager); in createSipDelegateConnectionNoDelegateExpected() 1750 conn.waitForCountDown(ImsUtils.TEST_TIMEOUT_MS); in createSipDelegateConnectionNoDelegateExpected() 1751 conn.verifyDelegateCreated(); in createSipDelegateConnectionNoDelegateExpected() 1752 conn.verifyRegistrationStateEmpty(); in createSipDelegateConnectionNoDelegateExpected() 1755 conn.verifyAllDenied(SipDelegateManager.DENIED_REASON_NOT_ALLOWED); in createSipDelegateConnectionNoDelegateExpected() 1807 TestSipDelegateConnection conn, TestSipTransport transport, in createSipDelegateConnectionAndVerify() argument 1809 conn.setOperationCountDownLatch(1); in createSipDelegateConnectionAndVerify() 1810 conn.connect(manager); in createSipDelegateConnectionAndVerify() [all …]
|
/cts/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 1059 Socket conn = serverSocket.accept(); in testStagefright_bug_68342866() 1061 OutputStream outputstream = conn.getOutputStream(); in testStagefright_bug_68342866() 1062 InputStream inputStream = conn.getInputStream(); in testStagefright_bug_68342866() 1358 Socket conn = serverSocket.accept() in testStagefright_cve_2016_3880() 1360 OutputStream outputstream = conn.getOutputStream(); in testStagefright_cve_2016_3880() 1361 InputStream inputStream = conn.getInputStream(); in testStagefright_cve_2016_3880()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 1653 TestConnection conn = new TestConnection(true, false); in bindExpectResult() local 1655 context.bindService(service, conn, Context.BIND_AUTO_CREATE); in bindExpectResult() 1665 context.unbindService(conn); in bindExpectResult()
|