/external/javassist/src/main/javassist/tools/rmi/ |
Proxy.java | 19 * An interface implemented by proxy classes. 23 public interface Proxy {
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldProxyTest.java | 19 import java.net.Proxy; 28 Proxy proxy = new Proxy(Proxy.Type.SOCKS, address); local 29 assertEquals(address, proxy.address()); 32 new Proxy(Proxy.Type.SOCKS, null); 42 Proxy proxy1 = new Proxy(Proxy.Type.HTTP, address1) 61 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); local [all...] |
ProxySelectorTest.java | 20 import java.net.Proxy; 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)); 79 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("a", 80))), 81 assertEquals(Arrays.asList(new Proxy(Proxy.Type.HTTP, createUnresolved("b", 80))) [all...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
ProxyTest.java | 19 import java.net.Proxy; 29 * @tests java.net.Proxy#Proxy(java.net.Proxy.Type, SocketAddress) 32 // test HTTP type proxy 33 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); local 34 assertEquals(Proxy.Type.HTTP, proxy.type()) 52 Proxy proxy = null; local 111 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); local 170 Proxy proxy[] = { new Proxy(Proxy.Type.HTTP, address1), local [all...] |
ProxySelectorTest.java | 21 import java.net.Proxy; 112 // no proxy, return a proxyList only contains NO_PROXY 114 assertProxyEquals(proxyList,Proxy.NO_PROXY); 116 // set http proxy 119 // set https proxy 122 // set ftp proxy 125 // set socks proxy 130 assertProxyEquals(proxyList,Proxy.Type.HTTP,HTTP_PROXY_HOST,HTTP_PROXY_PORT); 133 assertProxyEquals(proxyList,Proxy.Type.HTTP,HTTPS_PROXY_HOST,HTTPS_PROXY_PORT); 136 assertProxyEquals(proxyList,Proxy.Type.HTTP,FTP_PROXY_HOST,FTP_PROXY_PORT) 527 Proxy proxy = new Proxy(type, sa); local [all...] |
/frameworks/base/tests/CoreTests/android/core/ |
ProxyTest.java | 22 import android.net.Proxy; 26 * Proxy tests 38 String proxyHost = Proxy.getHost(mContext); 39 int proxyPort = Proxy.getPort(mContext); 54 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, null)); 55 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "")); 56 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:")); 57 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad")); 58 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad:\\")); 59 assertEquals(mHttpHost, Proxy.getPreferredHttpHost(mContext, "bad://#")) [all...] |
/cts/tests/tests/net/src/android/net/cts/ |
ProxyTest.java | 20 import android.net.Proxy; 26 new Proxy(); 32 int defaultPort = Proxy.getDefaultPort(); 33 if(null == Proxy.getDefaultHost()) {
|
/libcore/luni/src/main/java/java/net/ |
Proxy.java | 19 * This class represents proxy server settings. A created instance of {@code 20 * Proxy} stores a type and an address and is immutable. There are three types 27 public class Proxy { 30 * Represents the proxy type setting {@code Proxy.Type.DIRECT}. It tells 31 * protocol handlers that there is no proxy to be used. The address is set 34 public static final Proxy NO_PROXY = new Proxy(); 36 private Proxy.Type type; 41 * Creates a new {@code Proxy} instance. {@code SocketAddress} must NOT b [all...] |
ProxySelectorImpl.java | 31 @Override public List<Proxy> select(URI uri) { 35 private Proxy selectOneProxy(URI uri) { 45 Proxy proxy = null; local 51 proxy = lookupProxy("http.proxyHost", "http.proxyPort", Proxy.Type.HTTP, port); 55 proxy = lookupProxy("https.proxyHost", "https.proxyPort", Proxy.Type.HTTP, port); 59 proxy = lookupProxy("ftp.proxyHost", "ftp.proxyPort", Proxy.Type.HTTP, port) [all...] |
/external/apache-harmony/luni/src/test/api/common/ |
Proxy2Test.java | 18 import java.lang.reflect.Proxy; 29 Class pc = Proxy.getProxyClass(DefaultPkgIntf.class.getClassLoader(),
|
/external/clang/test/CodeCompletion/ |
member-access.cpp | 23 class Proxy { 28 void test(const Proxy &p) {
|
/external/easymock/src/org/easymock/internal/ |
JavaProxyFactory.java | 19 import java.lang.reflect.Proxy;
24 return (T) Proxy.newProxyInstance(toMock.getClassLoader(),
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/lang/reflect/ |
ProxyTest.java | 23 import java.lang.reflect.Proxy; 57 public Object invoke(Object proxy, Method method, Object[] args) 64 * @tests java.lang.reflect.Proxy#getProxyClass(java.lang.ClassLoader, 68 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class local 71 assertTrue("Did not create a Proxy subclass ", 72 proxy.getSuperclass() == Proxy.class); 73 assertTrue("Does not believe its a Proxy class ", Proxy 116 Support_Proxy_I1 proxy = (Support_Proxy_I1) p; local 160 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class local [all...] |
/external/skia/legacy/include/core/ |
SkImageFilter.h | 41 class Proxy { 45 // returns true if the proxy handled the filter itself. if this returns 50 virtual ~Proxy() {}; 66 bool filterImage(Proxy*, const SkBitmap& src, const SkMatrix& ctm, 104 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
|
/external/skia/include/core/ |
SkImageFilter.h | 47 class Proxy { 49 virtual ~Proxy() {}; 52 // returns true if the proxy can handle this filter natively 54 // returns true if the proxy handled the filter itself. if this returns 74 bool filterImage(Proxy*, const SkBitmap& src, const SkMatrix& ctm, 112 virtual bool filterImageGPU(Proxy*, const SkBitmap& src, SkBitmap* result); 151 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 158 SkBitmap getInputResult(int index, Proxy*, const SkBitmap& src, const SkMatrix&,
|
/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
ProxyTest.java | 22 import java.lang.reflect.Proxy; 52 public Object invoke(Object proxy, Method method, Object[] args) 58 class ProxyCoonstructorTest extends Proxy { 65 * java.lang.reflect.Proxy#getProxyClass(java.lang.ClassLoader, 69 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class local 72 assertTrue("Did not create a Proxy subclass ", 73 proxy.getSuperclass() == Proxy.class); 74 assertTrue("Does not believe its a Proxy class ", Prox 138 Support_Proxy_I1 proxy = (Support_Proxy_I1) p; local 198 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class local [all...] |
/external/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
RouteSelector.java | 25 import java.net.Proxy; 38 * choice of proxy server, IP address, and TLS mode. Connections may also be 56 private Proxy lastProxy; 59 /* State for negotiating the next proxy to use. */ 61 private Proxy userSpecifiedProxy; 62 private Iterator<Proxy> proxySelectorProxies; 126 if (connection.getProxy().type() != Proxy.Type.DIRECT && proxySelector != null) { 127 // Tell the proxy selector when we fail to connect on a fresh connection. 133 private void resetNextProxy(URI uri, Proxy proxy) { [all...] |
/dalvik/tests/044-proxy/src/ |
Clash.java | 20 import java.lang.reflect.Proxy; 23 * Try to instantiate a proxy class with interfaces that have conflicting 32 Proxy.newProxyInstance(Clash.class.getClassLoader(), 41 Proxy.newProxyInstance(Clash.class.getClassLoader(), 65 public Object invoke(Object proxy, Method method, Object[] args)
|
/external/okhttp/android/main/java/com/squareup/okhttp/ |
HttpHandler.java | 21 import java.net.Proxy; 31 @Override protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { 32 if (url == null || proxy == null) { 33 throw new IllegalArgumentException("url == null || proxy == null"); 35 return new OkHttpClient().setProxy(proxy).open(url);
|
HttpsHandler.java | 21 import java.net.Proxy; 31 @Override protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { 32 if (url == null || proxy == null) { 33 throw new IllegalArgumentException("url == null || proxy == null"); 35 return new OkHttpClient().setProxy(proxy).open(url);
|
/external/skia/include/effects/ |
SkBicubicImageFilter.h | 40 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 45 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, SkBitmap* result) SK_OVERRIDE;
|
SkBlurImageFilter.h | 24 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 28 virtual bool filterImageGPU(Proxy* proxy, const SkBitmap& src, SkBitmap* result) SK_OVERRIDE;
|
/libcore/luni/src/main/java/libcore/net/http/ |
HttpHandler.java | 21 import java.net.Proxy; 32 @Override protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { 33 if (url == null || proxy == null) { 34 throw new IllegalArgumentException("url == null || proxy == null"); 36 return new HttpURLConnectionImpl(url, getDefaultPort(), proxy);
|
HttpsHandler.java | 21 import java.net.Proxy; 32 @Override protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { 33 if (url == null || proxy == null) { 34 throw new IllegalArgumentException("url == null || proxy == null"); 36 return new HttpsURLConnectionImpl(url, getDefaultPort(), proxy);
|
/libcore/luni/src/main/java/libcore/net/url/ |
FtpHandler.java | 21 import java.net.Proxy; 36 * Returns a connection, which is established via the <code>proxy</code>, 38 * <code>proxy</code> is DIRECT type, the connection is made in normal 43 * @param proxy 44 * the proxy which is used to make the connection 50 * if any argument is null or the type of proxy is wrong. 55 protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { 56 if (url == null || proxy == null) { 57 throw new IllegalArgumentException("url == null || proxy == null") [all...] |