/cts/tests/app/src/android/app/cts/ |
D | ServiceTest.java | 572 TestConnection conn = new TestConnection(true, false); in bindExpectResult() local 578 mContext.bindService(service, conn, 0); in bindExpectResult() 590 mContext.unbindService(conn); in bindExpectResult() 601 mContext.unbindService(conn); in bindExpectResult() 603 conn = new TestConnection(true, true); in bindExpectResult() 607 conn.setMonitor(true); in bindExpectResult() 609 mContext.bindService(service, conn, 0); in bindExpectResult() 616 mContext.unbindService(conn); in bindExpectResult() 622 conn.setMonitor(false); in bindExpectResult() 627 mContext.unbindService(conn); in bindExpectResult() [all …]
|
D | ActivityManagerProcessStateTest.java | 264 ServiceConnectionHandler conn = new ServiceConnectionHandler(mContext, mServiceIntent, in testUidImportanceListener() local 305 conn.bind(); in testUidImportanceListener() 307 IBinder service1 = conn.getServiceIBinder(); in testUidImportanceListener() 309 conn.unbind(); in testUidImportanceListener() 329 conn.bind(); in testUidImportanceListener() 341 IBinder service = conn.getServiceIBinder(); in testUidImportanceListener() 344 conn.unbind(); in testUidImportanceListener() 368 conn.bind(); in testUidImportanceListener() 386 conn.unbind(); in testUidImportanceListener() 404 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/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/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/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/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/net/app2/src/com/android/cts/net/hostside/app2/ |
D | MyBroadcastReceiver.java | 168 final HttpURLConnection conn = (HttpURLConnection) url.openConnection(); in checkNetworkStatus() local 169 conn.setReadTimeout(NETWORK_TIMEOUT_MS); in checkNetworkStatus() 170 conn.setConnectTimeout(NETWORK_TIMEOUT_MS / 2); in checkNetworkStatus() 171 conn.setRequestMethod("GET"); in checkNetworkStatus() 172 conn.setDoInput(true); in checkNetworkStatus() 173 conn.connect(); in checkNetworkStatus() 174 final int response = conn.getResponseCode(); in checkNetworkStatus()
|
/cts/hostsidetests/seccomp/app/src/android/seccomp/cts/app/ |
D | SeccompDeviceTest.java | 169 IsolatedConnection conn = new IsolatedConnection(); in bindService() local 170 mContext.bindService(intent, conn, Context.BIND_AUTO_CREATE); in bindService() 172 return conn; in bindService() 187 IsolatedConnection conn = bindService(IsolatedService.class); in testAppZygoteSyscalls() local 188 boolean testResult = conn.getTestResult(); in testAppZygoteSyscalls()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | OutgoingCallTest.java | 190 Connection conn = verifyConnectionForOutgoingCall(); in testExtraPhoneAccountHandleAvailable() local 191 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE, conn.getPhoneAccountHandle()); in testExtraPhoneAccountHandleAvailable() 200 conn = verifyConnectionForOutgoingCall(); in testExtraPhoneAccountHandleAvailable() 201 assertEquals(TestUtils.TEST_PHONE_ACCOUNT_HANDLE_2, conn.getPhoneAccountHandle()); in testExtraPhoneAccountHandleAvailable() 202 conn.onDisconnect(); in testExtraPhoneAccountHandleAvailable()
|
/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/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/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 | 967 DefaultHttpServerConnection conn = mServer.createHttpServerConnection(); in run() local 970 conn.bind(socket, params); in run() 975 HttpRequest request = conn.receiveRequestHeader(); in run() 977 conn.receiveRequestEntity( (HttpEntityEnclosingRequest) request); in run() 980 mExecutorService.execute(new HandleResponseTask(conn, request, socket)); in run()
|
/cts/hostsidetests/jdwptunnel/src/android/jdwptunnel/cts/ |
D | JdwpTunnelTest.java | 91 AttachingConnector conn = in getDebuggerConnection() local 97 Map<String, Connector.Argument> params = conn.defaultArguments(); in getDebuggerConnection() 102 return conn.attach(params); in getDebuggerConnection()
|
/cts/tests/tests/net/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/tests/tests/security/src/android/security/cts/ |
D | StagefrightTest.java | 1030 Socket conn = serverSocket.accept(); in testStagefright_bug_68342866() 1032 OutputStream outputstream = conn.getOutputStream(); in testStagefright_bug_68342866() 1033 InputStream inputStream = conn.getInputStream(); in testStagefright_bug_68342866() 1139 Socket conn = serverSocket.accept() in testStagefright_cve_2017_13279() 1141 OutputStream stream = conn.getOutputStream(); in testStagefright_cve_2017_13279() 1145 while(!conn.isClosed()) in testStagefright_cve_2017_13279()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ContextTest.java | 1368 TestConnection conn = new TestConnection(true, false); in bindExpectResult() local 1370 context.bindService(service, conn, Context.BIND_AUTO_CREATE); in bindExpectResult() 1380 context.unbindService(conn); in bindExpectResult()
|