Home
last modified time | relevance | path

Searched defs:connection (Results 1 – 25 of 149) sorted by relevance

123456

/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DInternal.java51 public abstract Transport newTransport(Connection connection, HttpEngine httpEngine) in newTransport()
54 public abstract boolean clearOwner(Connection connection); in clearOwner()
56 public abstract void closeIfOwnedBy(Connection connection, Object owner) throws IOException; in closeIfOwnedBy()
58 public abstract int recycleCount(Connection connection); in recycleCount()
60 public abstract void setProtocol(Connection connection, Protocol protocol); in setProtocol()
62 public abstract void setOwner(Connection connection, HttpEngine httpEngine); in setOwner()
74 public abstract void recycle(ConnectionPool pool, Connection connection); in recycle()
82 public abstract void connectAndSetOwner(OkHttpClient client, Connection connection, in connectAndSetOwner()
92 public abstract BufferedSource connectionRawSource(Connection connection); in connectionRawSource()
93 public abstract BufferedSink connectionRawSink(Connection connection); in connectionRawSink()
[all …]
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DOkUrlFactoryTest.java59 HttpURLConnection connection = factory.open(server.getUrl("/")); in networkResponseSourceHeader() local
67 HttpURLConnection connection = factory.open(server.getUrl("/")); in networkFailureResponseSourceHeader() local
138 HttpURLConnection connection = factory.open(server.getUrl("/a")); in setInstanceFollowRedirectsFalse() local
144 private void assertResponseBody(HttpURLConnection connection, String expected) throws Exception { in assertResponseBody()
149 private void assertResponseHeader(HttpURLConnection connection, String expected) { in assertResponseHeader()
154 private void assertResponseCode(HttpURLConnection connection, int expected) throws IOException { in assertResponseCode()
DUrlConnectionCacheTest.java298 HttpURLConnection connection = client.open(server.getUrl("/")); in responseCachingAndRedirects() local
427 URLConnection connection = client.open(server.getUrl("/")); in testServerPrematureDisconnect() local
452 URLConnection connection = client.open(server.getUrl("/")); in testClientPrematureDisconnect() local
482 URLConnection connection = client.open(url); in defaultExpirationDateFullyCachedForLessThan24Hours() local
509 URLConnection connection = client.open(server.getUrl("/")); in defaultExpirationDateFullyCachedForMoreThan24Hours() local
882 URLConnection connection = client.open(server.getUrl("/")); in requestMaxAge() local
895 URLConnection connection = client.open(server.getUrl("/")); in requestMinFresh() local
908 URLConnection connection = client.open(server.getUrl("/")); in requestMaxStale() local
923 URLConnection connection = client.open(server.getUrl("/")); in requestMaxStaleNotHonoredWithMustRevalidate() local
931 HttpURLConnection connection = client.open(server.getUrl("/")); in requestOnlyIfCachedWithNoResponseCached() local
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DConnectionPool.java140 Connection connection = i.previous(); in get() local
174 void recycle(Connection connection) { in recycle()
204 private void addConnection(Connection connection) { in addConnection()
218 void share(Connection connection) { in share()
278 Connection connection = i.previous(); in performCleanup() local
292 Connection connection = i.previous(); in performCleanup() local
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
DHttpsURLConnectionTest.java142 HttpsURLConnection connection = (HttpsURLConnection) url in testHttpsConnection() local
182 HttpsURLConnection connection = (HttpsURLConnection) url in testHttpsPersistentConnection() local
220 HttpsURLConnection connection = (HttpsURLConnection) url in testHttpsConnection_Not_Found_Response() local
265 HttpsURLConnection connection = (HttpsURLConnection) url in testSetDefaultSSLSocketFactory() local
306 HttpsURLConnection connection = (HttpsURLConnection) url in testSetSSLSocketFactory() local
344 HttpsURLConnection connection = (HttpsURLConnection) url in testUnconnectedStateParameters() local
394 HttpsURLConnection connection = (HttpsURLConnection) url in testSetHostnameVerifier() local
436 HttpsURLConnection connection = (HttpsURLConnection) url in test_doOutput() local
472 HttpsURLConnection connection = (HttpsURLConnection) url in testPersistence_doOutput() local
507 HttpsURLConnection connection = (HttpsURLConnection) url in testProxyConnection() local
[all …]
/external/okhttp/okhttp-android-support/src/test/java/com/squareup/okhttp/internal/huc/
DResponseCacheTest.java210 HttpURLConnection connection = openConnection(url); in assertCached() local
313 HttpURLConnection connection = openConnection(server.getUrl("/")); in responseCachingAndRedirects() local
499 URLConnection connection = openConnection(server.getUrl("/")); in testServerPrematureDisconnect() local
524 URLConnection connection = openConnection(server.getUrl("/")); in testClientPrematureDisconnect() local
550 URLConnection connection = openConnection(url); in defaultExpirationDateFullyCachedForLessThan24Hours() local
578 URLConnection connection = openConnection(server.getUrl("/")); in defaultExpirationDateFullyCachedForMoreThan24Hours() local
733 private void addRequestBodyIfNecessary(String requestMethod, HttpURLConnection connection) in addRequestBodyIfNecessary()
998 URLConnection connection = openConnection(server.getUrl("/")); in requestMaxAge() local
1013 URLConnection connection = openConnection(server.getUrl("/")); in requestMinFresh() local
1028 URLConnection connection = openConnection(server.getUrl("/")); in requestMaxStale() local
[all …]
DCacheAdapterTest.java73 private HttpURLConnection connection; field in CacheAdapterTest
247 private void executeGet(HttpURLConnection connection) throws IOException { in executeGet()
253 private void executePost(HttpURLConnection connection) throws IOException { in executePost()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/spdy/
DSpdy3ConnectionTest.java75 SpdyConnection connection = connection(peer, SPDY3); in clientCreatesStreamAndServerReplies() local
104 SpdyConnection connection = connection(peer, SPDY3); in headersOnlyStreamIsClosedAfterReplyHeaders() local
121 SpdyConnection connection = connection(peer, SPDY3); in clientCreatesStreamAndServerRepliesWithFin() local
221 SpdyConnection connection = connection(peer, SPDY3); in clientPingsServer() local
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
DDisconnectTest.java78 HttpURLConnection connection = new OkUrlFactory(client).open(server.getUrl("/")); in interruptWritingRequestBody() local
105 HttpURLConnection connection = new OkUrlFactory(client).open(server.getUrl("/")); in interruptReadingResponseBody() local
120 private void disconnectLater(final HttpURLConnection connection, final int delayMillis) { in disconnectLater()
DThreadInterruptTest.java82 HttpURLConnection connection = new OkUrlFactory(client).open(server.getUrl("/")); in interruptWritingRequestBody() local
109 HttpURLConnection connection = new OkUrlFactory(client).open(server.getUrl("/")); in interruptReadingResponseBody() local
DURLConnectionTest.java124 private HttpURLConnection connection; field in URLConnectionTest
410 HttpURLConnection connection = client.open(url); in invalidHost() local
1099 URLConnection connection = client.open(server.getUrl("/")); in nonHexChunkSize() local
1112 URLConnection connection = client.open(server.getUrl("/")); in malformedChunkSize() local
1125 HttpURLConnection connection = client.open(server.getUrl("/")); in extensionAfterChunkSize() local
1135 URLConnection connection = client.open(server.getUrl("/")); in missingChunkBody() local
1153 URLConnection connection = client.open(server.getUrl("/")); in gzipEncodingEnabledByDefault() local
1168 URLConnection connection = client.open(server.getUrl("/")); in clientConfiguredGzipContentEncoding() local
1197 URLConnection connection = client.open(server.getUrl("/")); in clientConfiguredCustomContentEncoding() local
1271 HttpURLConnection connection = client.open(server.getUrl("/")); in endOfStreamResponseIsNotPooled() local
/external/okhttp/mockwebserver/src/test/java/com/squareup/okhttp/mockwebserver/
DMockWebServerTest.java79 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in regularResponse() local
98 URLConnection connection = server.getUrl("/").openConnection(); in redirect() local
124 URLConnection connection = server.getUrl("/").openConnection(); in dispatchBlocksWaitingForEnqueue() local
136 URLConnection connection = server.getUrl("/").openConnection(); in nonHexadecimalChunkSize() local
195 URLConnection connection = server.getUrl("/").openConnection(); in throttleRequest() local
/external/jetty/src/java/org/eclipse/jetty/client/
DHttpDestination.java184 AbstractHttpConnection connection = null; in getConnection() local
236 AbstractHttpConnection connection = getConnection(timeout); in reserveConnection() local
244 AbstractHttpConnection connection = null; in getIdleConnection() local
348 public void onNewConnection(final AbstractHttpConnection connection) throws IOException in onNewConnection()
405 … public void returnConnection(AbstractHttpConnection connection, boolean close) throws IOException in returnConnection()
457 public void returnIdleConnection(AbstractHttpConnection connection) in returnIdleConnection()
556 AbstractHttpConnection connection = getIdleConnection(); in doSend() local
589 protected void send(AbstractHttpConnection connection, HttpExchange exchange) throws IOException in send()
/external/mockwebserver/src/test/java/com/google/mockwebserver/
DMockWebServerTest.java105 HttpURLConnection connection = (HttpURLConnection) url.openConnection(); in testRegularResponse() local
125 URLConnection connection = server.getUrl("/").openConnection(); in testRedirect() local
153 URLConnection connection = server.getUrl("/").openConnection(); in testDispatchBlocksWaitingForEnqueue() local
166 URLConnection connection = server.getUrl("/").openConnection(); in testNonHexadecimalChunkSize() local
/external/okhttp/okhttp-ws/src/main/java/com/squareup/okhttp/ws/
DWebSocketCall.java169 Connection connection = Internal.instance.callEngineGetConnection(call); in createWebSocket() local
197 static RealWebSocket create(Response response, Connection connection, BufferedSource source, in create()
209 private final Connection connection; field in WebSocketCall.ConnectionWebSocket
211 private ConnectionWebSocket(Connection connection, BufferedSource source, BufferedSink sink, in ConnectionWebSocket()
/external/jetty/src/java/org/eclipse/jetty/server/bio/
DSocketConnector.java120 ConnectorEndPoint connection=new ConnectorEndPoint(socket); in accept() local
138 ConnectorEndPoint connection = (ConnectorEndPoint)endpoint; in customize() local
171 ConnectorEndPoint connection = (ConnectorEndPoint)endPoint; in doStop() local
208 public void setConnection(Connection connection) in setConnection()
/external/cmockery/cmockery_0_1_2/src/example/
Dcustomer_database_test.c28 DatabaseConnection* const connection, const char * const query_string, in mock_query_database()
53 DatabaseConnection connection = { in test_get_customer_id_by_name() local
/external/dnsmasq/src/
Ddbus.c261 DBusHandlerResult message_handler(DBusConnection *connection, in message_handler()
305 DBusConnection *connection = NULL; in dbus_init() local
363 DBusConnection *connection = (DBusConnection *)daemon->dbus; in check_dbus_listeners() local
395 DBusConnection *connection = (DBusConnection *)daemon->dbus; in emit_dbus_signal() local
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DHttpEngine.java116 private Connection connection; field in HttpEngine
189 boolean callerWritesRequestBody, boolean forWebSocket, Connection connection, in HttpEngine()
284 Internal.instance.recycle(client.getConnectionPool(), connection); in sendRequest() local
340 Connection connection = createNextConnection(); in nextConnection() local
427 Connection connection = close(); in recover() local
492 Connection connection = close(); in recover() local
841 @Override public Connection connection() { in connection() method in HttpEngine.NetworkInterceptorChain
/external/jetty/src/java/org/eclipse/jetty/server/session/
DJDBCSessionIdManager.java209 …public PreparedStatement getLoadStatement (Connection connection, String rowId, String contextPath… in getLoadStatement()
585 Connection connection = null; in prepareTables() local
689 Connection connection = null; in insert() local
735 Connection connection = null; in delete() local
769 Connection connection = null; in exists() local
806 Connection connection = null; in scavenge() local
904 Connection connection = null; in cleanExpiredSessions() local
/external/oauth/core/src/main/java/net/oauth/client/
DURLConnectionResponse.java44 byte[] requestExcerpt, URLConnection connection) throws IOException { in URLConnectionResponse()
56 private final URLConnection connection; field in URLConnectionResponse
/external/apache-http/src/org/apache/http/impl/conn/
DIdleConnectionHandler.java78 public void add(HttpConnection connection, long validDuration, TimeUnit unit) { in add()
97 public boolean remove(HttpConnection connection) { in remove()
/external/clang/test/CodeGenCXX/
Dincomplete-member-function-pointer.cpp4 struct connection { struct
/external/jetty/src/java/org/eclipse/jetty/io/
DConnectedEndPoint.java24 void setConnection(Connection connection); in setConnection()
/external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
DNullDatabaseMapTest.java42 Connection connection = null; in MapLoadsButConnectionFails() local

123456