HomeSort by relevance Sort by last modified time
    Searched refs:ConnectionPool (Results 1 - 20 of 20) sorted by null

  /external/okhttp/android/main/java/com/squareup/okhttp/
ConfigAwareConnectionPool.java 24 * A provider of the shared Android {@link ConnectionPool}. This class is aware of network
55 * {@code true} if the ConnectionPool reset has been registered with the
60 private ConnectionPool connectionPool;
76 * Returns the current {@link ConnectionPool} to use.
78 public synchronized ConnectionPool get() {
79 if (connectionPool == null) {
80 // Only register the listener once the first time a ConnectionPool is created.
87 // re-used. By setting connectionPool to null it ensures that the next time
89 connectionPool = null
    [all...]
  /external/okhttp/android/test/java/com/squareup/okhttp/
ConfigAwareConnectionPoolTest.java 43 ConnectionPool beforeEventInstance = instance.get();
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
ConnectionPool.java 54 public final class ConnectionPool {
57 private static final ConnectionPool systemDefault;
66 systemDefault = new ConnectionPool(0, keepAliveDurationMs);
68 systemDefault = new ConnectionPool(Integer.parseInt(maxIdleConnections), keepAliveDurationMs);
70 systemDefault = new ConnectionPool(5, keepAliveDurationMs);
93 new LinkedBlockingQueue<Runnable>(), Util.threadFactory("OkHttp ConnectionPool", true));
101 public ConnectionPool(int maxIdleConnections, long keepAliveDurationMs) {
106 public static ConnectionPool getDefault() {
OkHttpClient.java 110 @Override public void recycle(ConnectionPool pool, Connection connection) {
185 private ConnectionPool connectionPool;
216 this.connectionPool = okHttpClient.connectionPool;
431 * <p>If unset, the {@link ConnectionPool#getDefault() system-wide
434 public OkHttpClient setConnectionPool(ConnectionPool connectionPool) {
435 this.connectionPool = connectionPool;
    [all...]
Connection.java 41 * HTTP connections as members of a {@linkplain ConnectionPool connection pool}.
61 private final ConnectionPool pool;
80 public Connection(ConnectionPool pool, Route route) {
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
Internal.java 21 import com.squareup.okhttp.ConnectionPool;
74 public abstract void recycle(ConnectionPool pool, Connection connection);
  /frameworks/base/core/java/android/net/
Network.java 39 import com.android.okhttp.ConnectionPool;
67 private volatile ConnectionPool mConnectionPool = null;
231 mConnectionPool = new ConnectionPool(httpMaxConnections,
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
ConnectionPoolTest.java 65 private ConnectionPool pool;
105 pool = new ConnectionPool(poolSize, KEEP_ALIVE_DURATION_MS);
441 ConnectionPool pool = new ConnectionPool(10, KEEP_ALIVE_DURATION_MS);
474 ConnectionPool pool = new ConnectionPool(2, KEEP_ALIVE_DURATION_MS);
552 private void assertPooled(ConnectionPool pool, Connection... connections) throws Exception {
CacheTest.java     [all...]
  /external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
SocketConnector.java 21 import com.squareup.okhttp.ConnectionPool;
58 private final ConnectionPool connectionPool;
60 public SocketConnector(Connection connection, ConnectionPool connectionPool) {
62 this.connectionPool = connectionPool;
178 HttpConnection tunnelConnection = new HttpConnection(connectionPool, connection, socket);
HttpConnection.java 20 import com.squareup.okhttp.ConnectionPool;
76 private final ConnectionPool pool;
85 public HttpConnection(ConnectionPool pool, Connection connection, Socket socket)
HttpEngine.java 23 import com.squareup.okhttp.ConnectionPool;
346 ConnectionPool pool = client.getConnectionPool();
    [all...]
  /external/okhttp/okcurl/src/main/java/com/squareup/okhttp/curl/
Main.java 19 import com.squareup.okhttp.ConnectionPool;
186 client.setConnectionPool(ConnectionPool.getDefault());
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
HttpOverSpdyTest.java 19 import com.squareup.okhttp.ConnectionPool;
404 ConnectionPool connectionPool = new ConnectionPool(5, 5000);
405 client.client().setConnectionPool(connectionPool);
415 assertEquals(1, connectionPool.getSpdyConnectionCount());
RouteSelectorTest.java 20 import com.squareup.okhttp.ConnectionPool;
96 .setConnectionPool(ConnectionPool.getDefault());
URLConnectionTest.java 21 import com.squareup.okhttp.ConnectionPool;
    [all...]
  /external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
UrlConnectionCacheTest.java     [all...]
  /external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/
org.apache.commons.httpclient_3.1.0.v201005080502.jar 
  /prebuilts/tools/common/m2/repository/xalan/xalan/2.7.1/
xalan-2.7.1.jar 
  /prebuilts/tools/common/m2/repository/xalan/xalan/2.6.0/
xalan-2.6.0.jar 

Completed in 703 milliseconds