Home
last modified time | relevance | path

Searched refs:conn (Results 1 – 18 of 18) sorted by relevance

/cts/apps/CtsVerifierUSBCompanion/src/com/android/cts/verifierusbcompanion/
DAoapInterface.java90 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/
DAoapInterface.java95 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/
DServiceTest.java529 TestConnection conn = new TestConnection(true, false); in bindExpectResult() local
535 mContext.bindService(service, conn, 0); in bindExpectResult()
547 mContext.unbindService(conn); in bindExpectResult()
558 mContext.unbindService(conn); in bindExpectResult()
560 conn = new TestConnection(true, true); in bindExpectResult()
564 conn.setMonitor(true); in bindExpectResult()
566 mContext.bindService(service, conn, 0); in bindExpectResult()
573 mContext.unbindService(conn); in bindExpectResult()
579 conn.setMonitor(false); in bindExpectResult()
584 mContext.unbindService(conn); in bindExpectResult()
[all …]
DActivityManagerProcessStateTest.java236 ServiceConnectionHandler conn = new ServiceConnectionHandler(mContext, mServiceIntent, in testUidImportanceListener() local
277 conn.bind(); in testUidImportanceListener()
279 IBinder service1 = conn.getServiceIBinder(); in testUidImportanceListener()
281 conn.unbind(); in testUidImportanceListener()
301 conn.bind(); in testUidImportanceListener()
313 IBinder service = conn.getServiceIBinder(); in testUidImportanceListener()
316 conn.unbind(); in testUidImportanceListener()
340 conn.bind(); in testUidImportanceListener()
358 conn.unbind(); in testUidImportanceListener()
376 conn.bind(); in testUidImportanceListener()
[all …]
DIntentServiceTest.java98 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/
DNetworkSecurityPolicyTestBase.java75 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/
Dprocessing_main.py63 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/
DServiceCreator.java59 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/
DMyBroadcastReceiver.java168 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/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/
DOpenCVLibrary.java109 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/seccomp/app/src/android/seccomp/cts/app/
DSeccompDeviceTest.java169 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/apps/CtsVerifier/src/com/android/cts/verifier/net/
DConnectivityBackgroundTestActivity.java628 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/hostsidetests/jdwptunnel/src/android/jdwptunnel/cts/
DJdwpTunnelTest.java84 AttachingConnector conn = in getDebuggerConnection() local
90 Map<String, Connector.Argument> params = conn.defaultArguments(); in getDebuggerConnection()
95 return conn.attach(params); in getDebuggerConnection()
/cts/libs/testserver/src/android/webkit/cts/
DTestWebServer.java581 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()
DCtsTestServer.java968 DefaultHttpServerConnection conn = mServer.createHttpServerConnection(); in run() local
971 conn.bind(socket, params); in run()
976 HttpRequest request = conn.receiveRequestHeader(); in run()
978 conn.receiveRequestEntity( (HttpEntityEnclosingRequest) request); in run()
981 mExecutorService.execute(new HandleResponseTask(conn, request, socket)); in run()
/cts/tests/tests/net/src/org/apache/http/conn/ssl/cts/
DAbstractVerifierTest.java17 package org.apache.http.conn.ssl.cts;
22 import org.apache.http.conn.ssl.AbstractVerifier;
/cts/tests/tests/content/src/android/content/cts/
DContextTest.java1217 TestConnection conn = new TestConnection(true, false); in bindExpectResult() local
1219 context.bindService(service, conn, Context.BIND_AUTO_CREATE); in bindExpectResult()
1229 context.unbindService(conn); in bindExpectResult()
/cts/tests/tests/security/src/android/security/cts/
DStagefrightTest.java824 Socket conn = serverSocket.accept()) { in testStagefright_bug_68342866()
825 OutputStream outputstream = conn.getOutputStream(); in testStagefright_bug_68342866()
826 InputStream inputStream = conn.getInputStream(); in testStagefright_bug_68342866()