HomeSort by relevance Sort by last modified time
    Searched refs:connection (Results 51 - 75 of 1578) sorted by null

1 23 4 5 6 7 8 91011>>

  /cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
UsbDeviceTestActivity.java 164 UsbDeviceConnection connection = mUsbManager.openDevice(device);
166 makeThisDeviceAnAccessory(connection);
168 connection.close();
213 * @param connection The connection to the USB device
215 private void makeThisDeviceAnAccessory(@NonNull UsbDeviceConnection connection) {
216 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_MANUFACTURER,
218 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_MODEL,
220 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_DESCRIPTION,
222 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_VERSION, "1")
2108 UsbDeviceConnection connection = mUsbManager.openDevice(device); local
    [all...]
  /external/cmockery/cmockery_0_1_2/src/example/
customer_database_test.c 24 DatabaseConnection * const connection, const char * const customer_name);
28 DatabaseConnection* const connection, const char * const query_string,
53 DatabaseConnection connection = { local
60 assert_int_equal(get_customer_id_by_name(&connection, "john doe"), 543);
database.h 24 DatabaseConnection* const connection, const char * const query_string,
27 // Connection to a database.
  /external/libmicrohttpd/src/examples/
mhd2spdy_spdy.h 38 struct SPDY_Connection *connection);
45 struct SPDY_Connection *connection);
49 spdy_exec_io(struct SPDY_Connection *connection);
69 spdy_free_connection(struct SPDY_Connection * connection);
  /external/libmicrohttpd/src/microhttpd/
test_postprocessor_amp.c 26 struct MHD_Connection connection; local
30 memset (&connection, 0, sizeof (struct MHD_Connection));
32 connection.headers_received = &header;
37 pp = MHD_create_post_processor (&connection,
  /external/skia/tools/skiaserve/urlhandlers/
UrlHandler.h 19 virtual int handle(Request* request, MHD_Connection* connection,
27 int handle(Request* request, MHD_Connection* connection,
35 int handle(Request* request, MHD_Connection* connection,
43 int handle(Request* request, MHD_Connection* connection,
55 int handle(Request* request, MHD_Connection* connection,
67 int handle(Request* request, MHD_Connection* connection,
79 int handle(Request* request, MHD_Connection* connection,
87 int handle(Request* request, MHD_Connection* connection,
95 int handle(Request* request, MHD_Connection* connection,
103 int handle(Request* request, MHD_Connection* connection,
    [all...]
DownloadHandler.cpp 21 int DownloadHandler::handle(Request* request, MHD_Connection* connection,
31 return SendData(connection, data.get(), "application/octet-stream", true,
  /frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
URLFetcher.java 53 * Retry {@code retry} times if the connection failed or timed out for any reason.
97 HttpURLConnection connection = null; local
99 connection = (HttpURLConnection) url.openConnection();
100 connection.setInstanceFollowRedirects(true);
101 connection.setConnectTimeout(connectionTimeoutMillis);
102 connection.setReadTimeout(connectionTimeoutMillis);
103 connection.setUseCaches(true);
104 connection.setInstanceFollowRedirects(false);
105 connection.addRequestProperty("Cache-Control", "max-stale=60");
107 if (connection.getResponseCode() != HttpURLConnection.HTTP_OK)
    [all...]
  /system/tpm/tpm_manager/server/
tpm_initializer_impl.h 57 // if not. Returns true on success, else false. The |connection| already has
59 bool InitializeEndorsementKey(TpmConnection* connection);
62 // Returns true on success, else false. The |connection| already has the
64 bool TakeOwnership(TpmConnection* connection);
68 // The |connection| already has the current owner password injected.
69 bool InitializeSrk(TpmConnection* connection);
73 // Returns true on success, else false. The |connection| already has the old
75 bool ChangeOwnerPassword(TpmConnection* connection,
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/telecom/
CtsConnectionService.java 21 import android.telecom.Connection;
41 void onDestroyed(CtsConnection connection) {
43 mConnections.remove(connection);
106 public Connection onCreateOutgoingConnection(PhoneAccountHandle connectionManagerAccount,
113 public Connection onCreateIncomingConnection(PhoneAccountHandle connectionManagerPhoneAccount,
129 private Connection createManagedConnection(ConnectionRequest request, boolean isIncoming) {
135 CtsConnection connection = new CtsConnection(getApplicationContext(), isIncoming, local
138 connection.setConnectionProperties(Connection.PROPERTY_SELF_MANAGED);
140 connection.setConnectionCapabilities(Connection.CAPABILITY_SUPPORT_HOLD
    [all...]
  /external/oauth/core/src/main/java/net/oauth/client/
URLConnectionClient.java 36 * they do things like connection pooling. They also support reading the body
50 final URLConnection connection = url.openConnection(); local
51 connection.setDoInput(true);
52 if (connection instanceof HttpURLConnection) {
53 HttpURLConnection http = (HttpURLConnection) connection;
65 for (Map.Entry<String, List<String>> header : connection
77 && connection instanceof HttpURLConnection) {
80 connection.setRequestProperty(key, header.getValue());
89 ((HttpURLConnection) connection)
92 connection.setDoOutput(true)
    [all...]
  /external/replicaisland/src/com/replica/replicaisland/
EventReporter.java 82 HttpURLConnection connection = null; local
95 connection = null;
97 //Set up the initial connection
98 connection = (HttpURLConnection)serverAddress.openConnection();
100 connection.setRequestMethod("GET");
101 connection.setDoOutput(true);
102 connection.setReadTimeout(0);
104 connection.connect();
105 final int response = connection.getResponseCode();
106 DebugLog.d("Report Event", event.eventType + " " + response + ":" + connection.getURL().toString())
    [all...]
  /packages/services/Car/car-usb-handler/src/android/car/usb/handler/
UsbUtil.java 35 UsbDeviceConnection connection = openConnection(usbManager, device); local
36 if (AoapInterface.isSupported(connection)) {
39 connection.close();
49 public static void sendAoapAccessoryStart(UsbDeviceConnection connection, String manufacturer,
52 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_MANUFACTURER,
54 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_MODEL,
56 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_DESCRIPTION,
58 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_VERSION,
60 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_URI, uri);
61 AoapInterface.sendString(connection, AoapInterface.ACCESSORY_STRING_SERIAL,serial)
    [all...]
  /external/jacoco/org.jacoco.agent.rt/src/org/jacoco/agent/rt/internal/output/
TcpServerOutput.java 33 private TcpConnection connection; field in class:TcpServerOutput
59 connection = new TcpConnection(
62 connection.init();
63 connection.run();
82 if (connection != null) {
83 connection.close();
90 if (connection != null) {
91 connection.writeExecutionData(reset);
TcpClientOutput.java 33 private TcpConnection connection; field in class:TcpClientOutput
50 connection = new TcpConnection(socket, data);
51 connection.init();
55 connection.run();
67 connection.close();
72 connection.writeExecutionData(reset);
  /packages/apps/Bluetooth/src/com/android/bluetooth/hfpclient/connserv/
HfpClientDeviceBlock.java 31 import android.telecom.Connection;
108 synchronized Connection onCreateIncomingConnection(BluetoothHeadsetClientCall call) {
109 HfpClientConnection connection = connection = mConnections.get(call.getUUID()); local
110 if (connection != null) {
111 connection.onAdded();
113 return connection;
115 Log.e(TAG, "Call " + call + " ignored: connection does not exist");
120 Connection onCreateOutgoingConnection(Uri address) {
121 HfpClientConnection connection = buildConnection(null, address) local
130 HfpClientConnection connection = connection = mConnections.get(call.getUUID()); local
171 HfpClientConnection connection = findConnectionKey(call); local
268 HfpClientConnection connection = null; local
276 mConnections.put(connection.getUUID(), connection); local
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
Spdy3ConnectionTest.java 77 FramedConnection connection = connection(peer, SPDY3); local
78 FramedStream stream = connection.newStream(headerEntries("b", "banana"), true, true);
84 assertEquals(0, connection.openStreamCount());
106 FramedConnection connection = connection(peer, SPDY3); local
107 FramedStream stream = connection.newStream(headerEntries("a", "android"), false, false);
108 assertEquals(1, connection.openStreamCount());
110 connection.ping().roundTripTime(); // Ensure that inFinished has been received.
111 assertEquals(0, connection.openStreamCount())
123 FramedConnection connection = connection(peer, SPDY3); local
209 connection(peer, SPDY3); method
226 FramedConnection connection = connection(peer, SPDY3); local
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
URLConnectionTest.java 110 private HttpURLConnection connection; field in class:URLConnectionTest
135 connection = client.open(server.getUrl("/"));
136 connection.addRequestProperty("D", "e");
137 connection.addRequestProperty("D", "f");
138 assertEquals("f", connection.getRequestProperty("D"));
139 assertEquals("f", connection.getRequestProperty("d"));
140 Map<String, List<String>> requestHeaders = connection.getRequestProperties();
154 connection.setRequestProperty(null, "j");
159 connection.addRequestProperty(null, "k");
163 connection.setRequestProperty("NullValue", null)
403 HttpURLConnection connection = client.open(url); local
1120 URLConnection connection = client.open(server.getUrl("\/")); local
1134 URLConnection connection = client.open(server.getUrl("\/")); local
1149 HttpURLConnection connection = client.open(server.getUrl("\/")); local
1159 URLConnection connection = client.open(server.getUrl("\/")); local
1179 URLConnection connection = client.open(server.getUrl("\/")); local
1194 URLConnection connection = client.open(server.getUrl("\/")); local
1223 URLConnection connection = client.open(server.getUrl("\/")); local
1294 HttpURLConnection connection = client.open(server.getUrl("\/")); local
    [all...]
  /external/autotest/frontend/
setup_test_environment.py 21 connection = connections['default'] variable
41 """Close all connection to the test database.
43 connection.close()
49 # the real connection ourselves.
52 for con in [connection, connection_global, connection_readonly,
54 real_connection = con.connection
57 con.connection = None
80 for query in connection.queries:
  /packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
IncomingSelfManagedCallActivity.java 46 final SelfManagedConnection connection = SelfManagedCallList.getInstance() local
50 if (connection != null) {
51 connection.setConnectionActive();
57 if (connection != null) {
58 connection.setConnectionDisconnected(DisconnectCause.INCOMING_REJECTED);
59 connection.destroy();
SelfManagedCallNotificationReceiver.java 41 SelfManagedConnection connection = SelfManagedCallList.getInstance() local
46 if (connection != null) {
47 connection.setConnectionActive();
54 if (connection != null) {
55 connection.setConnectionDisconnected(DisconnectCause.INCOMING_REJECTED);
56 connection.destroy();
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
FramedStream.java 50 * available bytes in {@code connection.bytesLeftInWriteWindow}.
56 private final FramedConnection connection; field in class:FramedStream
76 FramedStream(int id, FramedConnection connection, boolean outFinished, boolean inFinished,
78 if (connection == null) throw new NullPointerException("connection == null");
81 this.connection = connection;
83 connection.peerSettings.getInitialWindowSize(DEFAULT_INITIAL_WINDOW_SIZE);
85 connection.okHttpSettings.getInitialWindowSize(DEFAULT_INITIAL_WINDOW_SIZE));
121 return connection.client == streamIsClient
    [all...]
  /packages/services/Telephony/src/com/android/services/telephony/
PstnIncomingCallNotifier.java 36 import com.android.internal.telephony.Connection;
58 /** New ringing connection event code. */
133 Connection connection = (Connection) asyncResult.result; local
134 if (connection != null) {
135 Call call = connection.getCall();
139 sendIncomingCallIntent(connection);
149 Connection connection = call.getLatestConnection() local
165 Connection connection = (Connection) asyncResult.result; local
    [all...]
  /external/conscrypt/openjdk/src/test/java/org/conscrypt/
OpenSSLSocketImplTest.java 254 TestConnection connection = new TestConnection(new X509Certificate[] {cert, ca}, certKey); local
255 connection.doHandshake();
257 assertTrue(connection.clientHooks.isHandshakeCompleted);
258 assertTrue(connection.serverHooks.isHandshakeCompleted);
263 TestConnection connection = local
266 connection.clientHooks.ctVerificationEnabled = true;
268 connection.doHandshake();
270 assertTrue(connection.clientHooks.isHandshakeCompleted);
271 assertTrue(connection.serverHooks.isHandshakeCompleted);
276 TestConnection connection = new TestConnection(new X509Certificate[] {cert, ca}, certKey) local
289 TestConnection connection = new TestConnection(new X509Certificate[] {cert, ca}, certKey); local
303 TestConnection connection = new TestConnection(new X509Certificate[] {cert, ca}, certKey); local
315 TestConnection connection = new TestConnection(new X509Certificate[] {cert, ca}, certKey); local
346 TestConnection connection = new TestConnection(new X509Certificate[] {cert, ca}, certKey); local
    [all...]
  /external/conscrypt/platform/src/test/java/org/conscrypt/
OpenSSLSocketImplTest.java 299 TestConnection connection = new TestConnection(new X509Certificate[] {cert, ca}, certKey); local
300 connection.doHandshake();
302 assertTrue(connection.clientHooks.isHandshakeCompleted);
303 assertTrue(connection.serverHooks.isHandshakeCompleted);
308 TestConnection connection = local
311 connection.clientHooks.ctVerificationEnabled = true;
313 connection.doHandshake();
315 assertTrue(connection.clientHooks.isHandshakeCompleted);
316 assertTrue(connection.serverHooks.isHandshakeCompleted);
321 TestConnection connection = new TestConnection(new X509Certificate[] {cert, ca}, certKey, true) local
334 TestConnection connection = new TestConnection(new X509Certificate[] {cert, ca}, certKey, true); local
347 TestConnection connection = new TestConnection(new X509Certificate[] {cert, ca}, certKey, true); local
358 TestConnection connection = new TestConnection(new X509Certificate[] {cert, ca}, certKey, true); local
389 TestConnection connection = local
    [all...]

Completed in 315 milliseconds

1 23 4 5 6 7 8 91011>>