Home
last modified time | relevance | path

Searched refs:ConnectionPool (Results 1 – 24 of 24) sorted by relevance

/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
DConnectionPoolTest.java48 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); in connectionsEvictedWhenIdleLongEnough()
80 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); in inUseConnectionsNotEvicted()
104 ConnectionPool pool = new ConnectionPool(Integer.MAX_VALUE, 100L, TimeUnit.NANOSECONDS); in cleanupPrioritizesEarliestEviction()
136 ConnectionPool pool = new ConnectionPool(2, 100L, TimeUnit.NANOSECONDS); in oldestConnectionsEvictedIfIdleLimitExceeded()
160 ConnectionPool pool = new ConnectionPool(2, 100L, TimeUnit.NANOSECONDS); in leakedAllocation()
174 private void allocateAndLeakAllocation(ConnectionPool pool, RealConnection connection) { in allocateAndLeakAllocation()
190 private RealConnection newConnection(ConnectionPool pool, Route route, long idleAtNanos) { in newConnection()
DConnectionReuseTest.java104 client.setConnectionPool(new ConnectionPool(0, 5000)); in connectionsAreNotReusedIfPoolIsSizeZero()
115 client.setConnectionPool(new ConnectionPool(0, 5000)); in connectionsReusedWithRedirectEvenIfPoolIsSizeZero()
132 client.setConnectionPool(new ConnectionPool(0, 5000)); in connectionsNotReusedWithRedirectIfDiscardingResponseIsSlow()
209 client.setConnectionPool(new ConnectionPool(5, 250, TimeUnit.MILLISECONDS)); in connectionsAreEvicted()
DCacheTest.java1024 ConnectionPool pool = ConnectionPool.getDefault(); in conditionalCacheHitIsNotDoublePooled()
DURLConnectionTest.java1302 ConnectionPool pool = ConnectionPool.getDefault(); in endOfStreamResponseIsNotPooled()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DConnectionPool.java58 public final class ConnectionPool { class
61 private static final ConnectionPool systemDefault;
71 systemDefault = new ConnectionPool(0, keepAliveDurationMs);
73 systemDefault = new ConnectionPool(Integer.parseInt(maxIdleConnections), keepAliveDurationMs);
75 systemDefault = new ConnectionPool(5, keepAliveDurationMs);
99 synchronized (ConnectionPool.this) {
101 ConnectionPool.this.wait(waitMillis, (int) waitNanos);
113 public ConnectionPool(int maxIdleConnections, long keepAliveDurationMs) { in ConnectionPool() method in ConnectionPool
117 public ConnectionPool(int maxIdleConnections, long keepAliveDuration, TimeUnit timeUnit) { in ConnectionPool() method in ConnectionPool
127 public static ConnectionPool getDefault() { in getDefault()
DOkHttpClient.java79 ConnectionPool pool, RealConnection connection) {
84 ConnectionPool pool, Address address, StreamAllocation streamAllocation) {
88 @Override public void put(ConnectionPool pool, RealConnection connection) {
92 @Override public RouteDatabase routeDatabase(ConnectionPool connectionPool) {
139 private ConnectionPool connectionPool;
405 public OkHttpClient setConnectionPool(ConnectionPool connectionPool) { in setConnectionPool()
410 public ConnectionPool getConnectionPool() { in getConnectionPool()
603 result.connectionPool = ConnectionPool.getDefault(); in copyWithDefaults()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/
DConnectionPool.java60 public final class ConnectionPool { class
64 private static final ConnectionPool systemDefault;
74 systemDefault = new ConnectionPool(0, keepAliveDurationMs);
76 systemDefault = new ConnectionPool(Integer.parseInt(maxIdleConnections), keepAliveDurationMs);
78 systemDefault = new ConnectionPool(5, keepAliveDurationMs);
104 synchronized (ConnectionPool.this) {
106 ConnectionPool.this.wait(waitMillis, (int) waitNanos);
119 public ConnectionPool(int maxIdleConnections, long keepAliveDurationMs) { in ConnectionPool() method in ConnectionPool
123 public ConnectionPool(int maxIdleConnections, long keepAliveDuration, TimeUnit timeUnit) { in ConnectionPool() method in ConnectionPool
133 public static ConnectionPool getDefault() { in getDefault()
DOkHttpClient.java82 ConnectionPool pool, RealConnection connection) {
87 ConnectionPool pool, Address address, StreamAllocation streamAllocation) {
91 @Override public void put(ConnectionPool pool, RealConnection connection) {
95 @Override public RouteDatabase routeDatabase(ConnectionPool connectionPool) {
143 private ConnectionPool connectionPool;
416 public OkHttpClient setConnectionPool(ConnectionPool connectionPool) { in setConnectionPool()
422 public ConnectionPool getConnectionPool() { in getConnectionPool()
617 result.connectionPool = ConnectionPool.getDefault(); in copyWithDefaults()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/
DInternal.java21 import com.squareup.okhttp.ConnectionPool;
57 ConnectionPool pool, Address address, StreamAllocation streamAllocation); in get()
59 public abstract void put(ConnectionPool pool, RealConnection connection); in put()
61 public abstract boolean connectionBecameIdle(ConnectionPool pool, RealConnection connection); in connectionBecameIdle()
63 public abstract RouteDatabase routeDatabase(ConnectionPool connectionPool); in routeDatabase()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/
DInternal.java22 import com.android.okhttp.ConnectionPool;
69 ConnectionPool pool, Address address, StreamAllocation streamAllocation); in get()
72 public abstract void put(ConnectionPool pool, RealConnection connection); in put()
75 public abstract boolean connectionBecameIdle(ConnectionPool pool, RealConnection connection); in connectionBecameIdle()
78 public abstract RouteDatabase routeDatabase(ConnectionPool connectionPool); in routeDatabase()
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/
DConfigAwareConnectionPool.java62 private ConnectionPool connectionPool;
80 public synchronized ConnectionPool get() { in get()
97 connectionPool = new ConnectionPool( in get()
/external/okhttp/android/src/main/java/com/squareup/okhttp/
DConfigAwareConnectionPool.java60 private ConnectionPool connectionPool;
78 public synchronized ConnectionPool get() { in get()
95 connectionPool = new ConnectionPool( in get()
/external/okhttp/repackaged/android/src/main/java/com/android/okhttp/internalandroidapi/
DHttpURLConnectionFactory.java20 import com.android.okhttp.ConnectionPool;
58 private ConnectionPool connectionPool;
73 this.connectionPool = new ConnectionPool(maxIdleConnections, keepAliveDuration, timeUnit); in setNewConnectionPool()
/external/okhttp/android/src/main/java/com/android/okhttp/internalandroidapi/
DHttpURLConnectionFactory.java19 import com.squareup.okhttp.ConnectionPool;
56 private ConnectionPool connectionPool;
71 this.connectionPool = new ConnectionPool(maxIdleConnections, keepAliveDuration, timeUnit); in setNewConnectionPool()
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/http/
DStreamAllocation.java20 import com.android.okhttp.ConnectionPool;
79 private final ConnectionPool connectionPool;
88 public StreamAllocation(ConnectionPool connectionPool, Address address) { in StreamAllocation()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DStreamAllocation.java19 import com.squareup.okhttp.ConnectionPool;
77 private final ConnectionPool connectionPool;
86 public StreamAllocation(ConnectionPool connectionPool, Address address) { in StreamAllocation()
/external/autotest/server/hosts/
Dssh_multiplex_unittest.py17 p = ssh_multiplex.ConnectionPool()
Dssh_multiplex.py139 class ConnectionPool(object): class
/external/okhttp/android/src/test/java/com/squareup/okhttp/
DConfigAwareConnectionPoolTest.java43 ConnectionPool beforeEventInstance = instance.get(); in get()
/external/okhttp/
DREADME.android13 ConnectionPool that listens for network configuration changes.
/external/okhttp/okcurl/src/main/java/com/squareup/okhttp/curl/
DMain.java19 import com.squareup.okhttp.ConnectionPool;
186 client.setConnectionPool(ConnectionPool.getDefault()); in createClient()
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/framed/
DHttpOverSpdyTest.java19 import com.squareup.okhttp.ConnectionPool;
398 ConnectionPool connectionPool = new ConnectionPool(5, 5000); in disconnectWithStreamNotEstablished()
/external/okhttp/okhttp-urlconnection/src/test/java/com/squareup/okhttp/
DUrlConnectionCacheTest.java852 ConnectionPool pool = ConnectionPool.getDefault(); in conditionalCacheHitIsNotDoublePooled()
/external/autotest/server/
Dserver_job.py376 self._connection_pool = ssh_multiplex.ConnectionPool()