HomeSort by relevance Sort by last modified time
    Searched full:proxy (Results 1 - 25 of 717) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /dalvik/libcore/luni/src/test/java/tests/api/java/net/
ProxyTest.java 24 import java.net.Proxy;
29 @TestTargetClass(Proxy.class)
35 * @tests java.net.Proxy#Proxy(java.net.Proxy.Type, SocketAddress)
39 notes = "This is a complete subset of tests for Proxy constructor.",
40 method = "Proxy",
41 args = {java.net.Proxy.Type.class, java.net.SocketAddress.class}
44 // test HTTP type proxy
45 Proxy proxy = new Proxy(Proxy.Type.HTTP, address) local
70 Proxy proxy = null; local
143 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); local
164 Proxy proxy = new Proxy(Proxy.Type.SOCKS, address); local
185 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); local
251 Proxy proxy[] = { new Proxy(Proxy.Type.HTTP, address1), local
    [all...]
ProxyTypeTest.java 26 import java.net.Proxy;
28 @TestTargetClass(Proxy.Type.class)
38 Proxy.Type [] types = {Proxy.Type.DIRECT, Proxy.Type.HTTP,
39 Proxy.Type.SOCKS};
44 assertEquals(types[i], Proxy.Type.valueOf(strTypes[i]));
51 Proxy.Type.valueOf(str);
59 Proxy.Type.valueOf(null);
73 Proxy.Type [] types = { Proxy.Type.DIRECT, Proxy.Type.HTTP,
    [all...]
ProxySelectorTest.java 26 import java.net.Proxy;
199 // no proxy, return a proxyList only contains NO_PROXY
201 assertProxyEquals(proxyList,Proxy.NO_PROXY);
203 // set http proxy
206 // set https proxy
209 // set ftp proxy
212 // set socks proxy
217 assertProxyEquals(proxyList,Proxy.Type.HTTP,HTTP_PROXY_HOST,HTTP_PROXY_PORT);
220 assertProxyEquals(proxyList,Proxy.Type.HTTP,HTTPS_PROXY_HOST,HTTPS_PROXY_PORT);
223 assertProxyEquals(proxyList,Proxy.Type.HTTP,FTP_PROXY_HOST,FTP_PROXY_PORT)
672 Proxy proxy = new Proxy(type, sa); local
    [all...]
ExcludedProxyTest.java 31 import java.net.Proxy;
42 * This test is designed for collecting all the testcases which needs a proxy
48 @TestTargetClass(Proxy.class)
61 notes = "Tests Proxy functionality. Indirect test.",
62 method = "Proxy",
63 args = {java.net.Proxy.Type.class, java.net.SocketAddress.class}
142 notes = "Tests Proxy functionality. Indirect test.",
143 method = "Proxy",
144 args = {java.net.Proxy.Type.class, java.net.SocketAddress.class}
185 * @tests java.net.URL#openConnection(Proxy)
    [all...]
  /external/bluetooth/bluez/serial/
serial.conf 3 # There could be multiple proxy sections, the format is [Proxy <user chosen name>]
4 #[Proxy DUN]
6 # UUID for DUN proxy service
Makefile.am 9 proxy.h proxy.c
  /dalvik/libcore/luni/src/main/java/java/net/
Proxy.java 21 * This class represents proxy server settings. A created instance of {@code
22 * Proxy} stores a type and an address and is immutable. There are three types
29 public class Proxy {
32 * Represents the proxy type setting {@code Proxy.Type.DIRECT}. It tells
33 * protocol handlers that there is no proxy to be used. The address is set
36 public static final Proxy NO_PROXY = new Proxy();
38 private Proxy.Type type;
43 * Creates a new {@code Proxy} instance. {@code SocketAddress} must NOT b
    [all...]
ProxySelectorImpl.java 86 public List<Proxy> select(URI uri) {
99 Proxy proxy = Proxy.NO_PROXY; local
102 proxy = selectHttpProxy(host);
104 proxy = selectHttpsProxy();
106 proxy = selectFtpProxy(host);
108 proxy = selectSocksProxy();
110 List<Proxy> proxyList = new ArrayList<Proxy>(1)
271 Proxy proxy; local
    [all...]
  /dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/
HttpURLConnectionTest.java 33 import java.net.Proxy;
105 "HTTP/1.0 407 Proxy authentication required\n"
106 + "Proxy-authenticate: Basic realm=\"remotehost\"\n\n")
117 request.toLowerCase().indexOf("proxy-authorization:") > 0;
131 // proxy port
137 * Creates proxy selector instance.
138 * Selector will return the proxy, only if the connection
141 * Address of the returned proxy will be localhost:proxy_port.
149 public java.util.List<Proxy> select(URI uri) {
150 Proxy proxy = Proxy.NO_PROXY local
210 MockServer proxy = new MockServer("proxy"); local
256 MockServer proxy = new MockServer("proxy"); local
320 MockProxyServer proxy = new MockProxyServer("ProxyServer"); local
    [all...]
  /dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/
HttpConfiguration.java 20 import java.net.Proxy;
29 * will either consist of a <code>Proxy<code> or a port number (<code>int</code>)
31 * <code>Proxy</code> is used and the type of <code>Proxy</code> it is.
38 private Proxy proxy; field in class:HttpConfiguration
56 public HttpConfiguration(URI uri, Proxy proxy) {
58 this.proxy = proxy;
    [all...]
Handler.java 21 import java.net.Proxy;
51 * Returns a connection, which is established via the <code>proxy</code>,
53 * <code>proxy</code> is DIRECT type, the connection is made in normal
58 * @param proxy
59 * the proxy which is used to make the connection
65 * if any argument is null or the type of proxy is wrong.
70 protected URLConnection openConnection(URL u, Proxy proxy)
72 if (null == u || null == proxy) {
75 return new HttpURLConnectionImpl(u, getDefaultPort(), proxy);
    [all...]
  /dalvik/libcore/luni/src/test/java/tests/api/java/lang/reflect/
ProxyTest.java 27 import java.lang.reflect.Proxy;
36 value = Proxy.class,
41 "called from proxy is tested by ProxyTest.",
70 public Object invoke(Object proxy, Method method, Object[] args)
76 class ProxyCoonstructorTest extends Proxy {
83 * @tests java.lang.reflect.Proxy#getProxyClass(java.lang.ClassLoader,
93 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class local
96 assertTrue("Did not create a Proxy subclass ",
97 proxy.getSuperclass() == Proxy.class)
193 Support_Proxy_I1 proxy = (Support_Proxy_I1) p; local
259 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class local
    [all...]
  /dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/net/
NetUtil.java 20 import java.net.Proxy;
30 * Returns whether to use a SOCKS proxy.
32 * @param proxy java.net.Proxy <code>proxy</code> is used to determine
33 * whether using SOCKS proxy.
34 * @return true if only the type of <code>proxy</code> is
35 * Proxy.Type.SOCKS.
37 public static boolean usingSocks(Proxy proxy) {
    [all...]
  /dalvik/libcore/luni/src/main/java/java/lang/reflect/
InvocationHandler.java 21 * Implementors of this interface dispatch methods invoked on proxy instances.
23 * @see Proxy
28 * Handles the method which was originally invoked on the proxy instance. A
32 * public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
36 * Object result = method.invoke(proxy, args);
42 * @param proxy
43 * the proxy instance on which the method was invoked
45 * the method invoked on the proxy instance
55 * the exception to throw from the invoked method on the proxy.
60 public Object invoke(Object proxy, Method method, Object[] args
    [all...]
Proxy.java 33 * {@code Proxy} defines methods for creating dynamic proxy classes and instances.
34 * A proxy class implements a declared set of interfaces and delegates method
40 public class Proxy implements Serializable {
58 private Proxy() {
62 * Constructs a new {@code Proxy} instance with the specified invocation
66 * the invocation handler for the newly created proxy
68 protected Proxy(InvocationHandler h) {
81 * the class loader that will define the proxy class
84 * interface that will be implemented by the returned proxy
    [all...]
  /dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/ftp/
Handler.java 21 import java.net.Proxy;
38 * Returns a connection, which is established via the <code>proxy</code>,
40 * <code>proxy</code> is DIRECT type, the connection is made in normal
45 * @param proxy
46 * the proxy which is used to make the connection
52 * if any argument is null or the type of proxy is wrong.
57 protected URLConnection openConnection(URL u, Proxy proxy)
59 if (null == u || null == proxy) {
62 return new FtpURLConnection(u, proxy);
    [all...]
  /sdk/eclipse/plugins/com.android.ide.eclipse.adt/src/com/android/ide/eclipse/adt/internal/editors/layout/gre/
NodeFactory.java 40 * Returns an {@link INode} proxy based on the view key of the given
48 * Returns an {@link INode} proxy based on a given {@link UiViewElementNode} that
62 NodeProxy proxy = mNodeMap.get(uiNode); local
64 if (proxy == null) {
65 // Create a new proxy if the key doesn't exist
66 proxy = new NodeProxy(uiNode, bounds, this);
67 mNodeMap.put(uiNode, proxy);
69 } else if (bounds != null && !proxy.getBounds().equals(bounds)) {
71 proxy.setBounds(bounds);
74 return proxy;
    [all...]
  /frameworks/base/core/java/android/net/
Proxy.java 28 * A convenience class for accessing the user and default proxy
31 final public class Proxy {
40 * Return the proxy host set by the user.
41 * @param ctx A Context used to get the settings for the proxy host.
66 * Return the proxy port set by the user.
67 * @param ctx A Context used to get the settings for the proxy port.
68 * @return The port number to use or -1 if no proxy is to be used.
93 * Return the default proxy host specified by the carrier.
94 * @return String containing the host name or null if there is no proxy for
98 String host = SystemProperties.get("net.gprs.http-proxy");
    [all...]
  /external/easymock/src/org/easymock/internal/
ObjectMethodsFilter.java 22 import java.lang.reflect.Proxy;
61 public final Object invoke(Object proxy, Method method, Object[] args)
64 return Boolean.valueOf(proxy == args[0]);
67 return Integer.valueOf(System.identityHashCode(proxy));
70 return mockToString(proxy);
72 return delegate.invoke(proxy, method, args);
75 private String mockToString(Object proxy) {
76 return (name != null) ? name : "EasyMock for " + mockType(proxy);
79 private String mockType(Object proxy) {
80 if (Proxy.isProxyClass(proxy.getClass()))
    [all...]
  /cts/tests/tests/net/src/android/net/cts/
ProxyTest.java 20 import android.net.Proxy;
30 @TestTargetClass(Proxy.class)
44 method = "Proxy",
48 new Proxy();
77 int defaultPort = Proxy.getDefaultPort();
78 if(null == Proxy.getDefaultHost()) {
84 final String host = "proxy.example.com";
88 assertEquals(host, Proxy.getHost(mContext));
89 assertEquals(port, Proxy.getPort(mContext));
  /external/bluetooth/glib/gio/
gioscheduler.c 312 MainLoopProxy *proxy = data; local
314 proxy->ret_val = proxy->func (proxy->data);
316 if (proxy->notify)
317 proxy->notify (proxy->data);
319 if (proxy->ack_lock)
321 g_mutex_lock (proxy->ack_lock);
322 g_cond_signal (proxy->ack_condition)
361 MainLoopProxy *proxy; local
428 MainLoopProxy *proxy; local
    [all...]
  /external/apache-http/src/org/apache/http/impl/conn/
ProxySelectorRoutePlanner.java 37 import java.net.Proxy;
59 * By default, it will pick up the proxy settings of the JVM, either
71 /** The proxy selector to use, or <code>null</code> for system default. */
76 * Creates a new proxy selector route planner.
79 * @param prosel the proxy selector, or
95 * Obtains the proxy selector to use.
97 * @return the proxy selector, or <code>null</code> for the system default
105 * Sets the proxy selector to use.
107 * @param prosel the proxy selector, or
143 final HttpHost proxy = determineProxy(target, request, context) local
    [all...]
  /dalvik/tests/044-proxy/src/
BasicTest.java 23 import java.lang.reflect.Proxy;
33 Object proxy = createProxy(proxyMe); local
35 if (!Proxy.isProxyClass(proxy.getClass()))
36 System.err.println("not a proxy class?");
37 if (Proxy.getInvocationHandler(proxy) == null)
38 System.err.println("ERROR: Proxy.getInvocationHandler is null");
41 Shapes shapes = (Shapes) proxy;
45 Quads quads = (Quads) proxy;
92 Object proxy = null; local
    [all...]
Clash2.java 20 import java.lang.reflect.Proxy;
23 * Try to instantiate a proxy class with interfaces that have conflicting
31 Proxy.newProxyInstance(Clash.class.getClassLoader(),
55 public Object invoke(Object proxy, Method method, Object[] args)
  /dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/https/
Handler.java 21 import java.net.Proxy;
39 protected URLConnection openConnection(URL url, Proxy proxy)
41 if ((url == null) || (proxy == null)) {
42 // K034b=url and proxy can not be null
45 return new HttpsURLConnectionImpl(url, getDefaultPort(), proxy);

Completed in 676 milliseconds

1 2 3 4 5 6 7 8 91011>>