/libcore/luni/src/test/java/libcore/java/net/ |
ProxySelectorTest.java | 21 import java.net.ProxySelector; 29 private ProxySelector proxySelector; 39 proxySelector = ProxySelector.getDefault(); 66 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(ftpUri)); 67 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(httpUri)); 68 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(httpsUri)); 69 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(socketUri)); 70 assertEquals(Arrays.asList(Proxy.NO_PROXY), proxySelector.select(otherUri)) [all...] |
FtpURLConnectionTest.java | 33 import java.net.ProxySelector; 165 * Tests that if a ProxySelector is set, any HTTP proxies selected for 167 * be selected once the ProxySelector's proxies have failed. 172 ProxySelector defaultProxySelector = ProxySelector.getDefault(); 177 SingleProxySelector proxySelector = new SingleProxySelector(proxy); 178 ProxySelector.setDefault(proxySelector); 182 IOException e = proxySelector.getLastException(); 193 ProxySelector.setDefault(defaultProxySelector) [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
Address.java | 20 import java.net.ProxySelector; 45 final ProxySelector proxySelector; 54 List<Protocol> protocols, List<ConnectionSpec> connectionSpecs, ProxySelector proxySelector) { 76 if (proxySelector == null) throw new IllegalArgumentException("proxySelector == null"); 77 this.proxySelector = proxySelector; 145 public ProxySelector getProxySelector() [all...] |
OkHttpClient.java | 29 import java.net.ProxySelector; 127 private ProxySelector proxySelector; 161 this.proxySelector = okHttpClient.proxySelector; 259 * <p>If unset, the {@link ProxySelector#getDefault() system-wide default} 262 public OkHttpClient setProxySelector(ProxySelector proxySelector) { 263 this.proxySelector = proxySelector; [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
AddressTest.java | 34 private RecordingProxySelector proxySelector = new RecordingProxySelector(); 38 authenticator, null, protocols, connectionSpecs, proxySelector); 40 authenticator, null, protocols, connectionSpecs, proxySelector);
|
SocksProxyTest.java | 22 import java.net.ProxySelector; 66 @Test public void proxySelector() throws Exception { 69 ProxySelector proxySelector = new ProxySelector() { 80 .setProxySelector(proxySelector);
|
OkHttpClientTest.java | 28 import java.net.ProxySelector; 48 private static final ProxySelector DEFAULT_PROXY_SELECTOR = ProxySelector.getDefault(); 54 ProxySelector.setDefault(DEFAULT_PROXY_SELECTOR); 113 ProxySelector proxySelector = new RecordingProxySelector(); 121 ProxySelector.setDefault(proxySelector); 126 assertSame(proxySelector, client.getProxySelector());
|
URLConnectionTest.java | 42 import java.net.ProxySelector; 306 FakeProxySelector proxySelector = new FakeProxySelector(); 307 proxySelector.proxies.add(server2.toProxyAddress()); 308 client.client().setProxySelector(proxySelector); [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/ |
RouteSelectorTest.java | 73 private final RecordingProxySelector proxySelector = new RecordingProxySelector(); 118 authenticator, proxyA, protocols, connectionSpecs, proxySelector); 128 proxySelector.assertRequests(); // No proxy selector requests! 133 authenticator, NO_PROXY, protocols, connectionSpecs, proxySelector); 143 proxySelector.assertRequests(); // No proxy selector requests! 149 proxySelector.proxies = null; 151 proxySelector.assertRequests(address.url().uri()); 172 proxySelector.assertRequests(address.url().uri()); 178 proxySelector.proxies.add(proxyA); 179 proxySelector.proxies.add(proxyB) [all...] |
/external/apache-http/src/org/apache/http/impl/conn/ |
ProxySelectorRoutePlanner.java | 38 import java.net.ProxySelector; 59 * This implementation is based on {@link java.net.ProxySelector}. 78 protected ProxySelector proxySelector; 89 ProxySelector prosel) { 96 proxySelector = prosel; 105 public ProxySelector getProxySelector() { 106 return this.proxySelector; 116 public void setProxySelector(ProxySelector prosel) { 117 this.proxySelector = prosel [all...] |
/frameworks/base/core/java/android/net/ |
Proxy.java | 26 import java.net.ProxySelector; 40 private static final ProxySelector sDefaultProxySelector; 97 sDefaultProxySelector = ProxySelector.getDefault(); 113 ProxySelector proxySelector = ProxySelector.getDefault(); 115 List<java.net.Proxy> proxyList = proxySelector.select(uri); 283 ProxySelector.setDefault(new PacProxySelector()); 285 ProxySelector.setDefault(sDefaultProxySelector);
|
/prebuilts/tools/common/m2/repository/com/squareup/okhttp3/okhttp/3.3.0/ |
okhttp-3.3.0.jar | |
/prebuilts/tools/common/m2/repository/com/squareup/okhttp3/okhttp/3.4.1/ |
okhttp-3.4.1.jar | |
/prebuilts/eclipse/mavenplugins/tycho/tycho-dependencies-m2repo/org/sonatype/aether/aether-util/1.7/ |
aether-util-1.7.jar | |
/prebuilts/tools/common/m2/repository/org/sonatype/aether/aether-util/1.7/ |
aether-util-1.7.jar | |
/prebuilts/tools/common/m2/repository/com/squareup/okhttp/okhttp/2.5.0/ |
okhttp-2.5.0.jar | |
/prebuilts/tools/common/m2/repository/com/squareup/okhttp/okhttp/2.7.2/ |
okhttp-2.7.2.jar | |
/prebuilts/tools/common/m2/repository/com/squareup/okhttp/okhttp/2.7.4/ |
okhttp-2.7.4.jar | |
/prebuilts/eclipse/maven/apache-maven-3.2.1/lib/ |
aether-api-0.9.0.M2.jar | |
aether-impl-0.9.0.M2.jar | |
/prebuilts/tools/common/m2/repository/org/eclipse/aether/aether-api/1.0.2.v20150114/ |
aether-api-1.0.2.v20150114.jar | |
/prebuilts/tools/common/m2/repository/com/google/http-client/google-http-client/1.19.0/ |
google-http-client-1.19.0.jar | |
/prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.0/ |
dagger-compiler-2.0.jar | |
/prebuilts/tools/common/m2/repository/org/apache/httpcomponents/httpclient/4.3.2/ |
httpclient-4.3.2.jar | |
/prebuilts/tools/common/m2/repository/org/apache/httpcomponents/httpclient/4.5.2/ |
httpclient-4.5.2.jar | |