/frameworks/base/services/java/com/android/server/location/ |
GpsXtraDownloader.java | 20 import android.net.Proxy; 83 String proxyHost = Proxy.getHost(mContext); 84 int proxyPort = Proxy.getPort(mContext); 119 HttpHost proxy = new HttpHost(proxyHost, proxyPort); local 120 ConnRouteParams.setDefaultProxy(req.getParams(), proxy); local
|
/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...] |
/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...] |
WrappedThrow.java | 21 import java.lang.reflect.Proxy; 25 * Create a Proxy class that blah. 31 Object proxy; local 34 proxy = Proxy.newProxyInstance(WrappedThrow.class.getClassLoader(), 42 InterfaceW1 if1 = (InterfaceW1) proxy; 43 InterfaceW2 if2 = (InterfaceW2) proxy; 176 * Invocation handler for our proxy class. 186 * This is called when anything gets invoked in the proxy object. 188 public Object invoke(Object proxy, Method method, Object[] args [all...] |
/libcore/luni/src/main/java/org/apache/harmony/lang/annotation/ |
AnnotationFactory.java | 27 import java.lang.reflect.Proxy; 38 * The annotation implementation based on dynamically generated proxy instances. 100 return (Annotation)Proxy.newProxyInstance( annotationType.getClassLoader(), 192 if (Proxy.isProxyClass(obj.getClass()) 193 && (handler = Proxy.getInvocationHandler(obj)) instanceof AnnotationFactory ) { 286 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable
|
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/http/ |
HttpConnection.java | 27 import java.net.Proxy; 42 * to the origin server or via a proxy. Create an instance using the {@link 70 socketCandidate = (config.proxy != null && config.proxy.type() != Proxy.Type.HTTP) 71 ? new Socket(config.proxy) 243 private final Proxy proxy; field in class:HttpConnection.Address 250 this.proxy = null; 259 * proxy. When doing so, we must avoid buffering bytes intended fo [all...] |
HttpURLConnectionImpl.java | 34 import java.net.Proxy; 139 // proxy which is used to make the connection. 140 private Proxy proxy; field in class:HttpURLConnectionImpl 193 * @param proxy 194 * Proxy The proxy which is used to make the connection 196 protected HttpURLConnectionImpl(URL url, int port, Proxy proxy) { 198 this.proxy = proxy [all...] |
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/ |
HttpsURLConnectionTest.java | 32 import java.net.Proxy; 92 // Proxy authentication required response code 369 * Tests HTTPS connection process made through the proxy server. 386 url.openConnection(new Proxy(Proxy.Type.HTTP, 400 * Tests HTTPS connection process made through the proxy server. 401 * Proxy server needs authentication. 426 url.openConnection(new Proxy(Proxy.Type.HTTP, 440 * Tests HTTPS connection process made through the proxy server [all...] |
/external/guava/src/com/google/common/util/concurrent/ |
SimpleTimeLimiter.java | 27 import java.lang.reflect.Proxy; 164 Object object = Proxy.newProxyInstance(
|
/external/v8/src/ |
messages.cc | 136 Handle<Proxy> callback_obj(Proxy::cast(listener.get(0))); 138 FUNCTION_CAST<v8::MessageCallback>(callback_obj->proxy());
|
api.h | 116 reinterpret_cast<intptr_t>(v8::internal::Proxy::cast(obj)->proxy())); 192 v8::internal::Handle<v8::internal::Proxy> obj); 236 static inline v8::internal::Handle<v8::internal::Proxy> 268 MAKE_TO_LOCAL(ToLocal, Proxy, External) 303 MAKE_OPEN_HANDLE(External, Proxy)
|
bootstrapper.cc | 215 // Hooks the given global proxy into the context. If the context was created 216 // by deserialization then this will unhook the global proxy that was 554 // Step 2: create or re-initialize the global proxy object. 577 // Return the global proxy. [all...] |
factory.h | 147 static Handle<Proxy> NewProxy(Address addr, 150 // Allocate a new proxy. The proxy is pretenured (allocated directly in 152 static Handle<Proxy> NewProxy(const AccessorDescriptor* proxy);
|
/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...] |
/libcore/luni/src/main/java/org/apache/harmony/luni/net/ |
PlainSocketImpl.java | 28 import java.net.Proxy; 58 private Proxy proxy; field in class:PlainSocketImpl 64 public PlainSocketImpl(Proxy proxy) { 66 this.proxy = proxy; 108 return proxy != null && proxy.type() == Proxy.Type.SOCKS [all...] |
/libcore/luni/src/main/java/org/apache/harmony/luni/internal/net/www/protocol/https/ |
HttpsURLConnectionImpl.java | 23 import java.net.Proxy; 52 protected HttpsURLConnectionImpl(URL url, int port, Proxy proxy) { 54 httpsEngine = new HttpsEngine(url, port, proxy); 346 protected HttpsEngine(URL url, int port, Proxy proxy) { 347 super(url, port, proxy); 353 * an HTTP proxy requires calling retrieveResponse() which calls
|
/frameworks/base/core/java/android/net/http/ |
RequestQueue.java | 30 import android.net.Proxy; 225 * Enables data state and proxy tracking 239 new IntentFilter(Proxy.PROXY_CHANGE_ACTION)); 241 // we need to resample the current proxy setup 260 * synchronize setting the proxy 267 String host = Proxy.getHost(mContext); 273 mProxyHost = new HttpHost(host, Proxy.getPort(mContext), "http"); 280 * @return proxy host if set, null otherwise 396 // Chooses between the proxy and the request's host. 398 // There used to be a comment in ConnectionThread about t-mob's proxy [all...] |
/libcore/luni/src/main/java/java/net/ |
Socket.java | 34 private final Proxy proxy; field in class:Socket 60 this.proxy = null; 64 * Creates a new unconnected socket using the given proxy type. When a 70 * proxy server: <br> 71 * {@code Socket sock = new Socket(new Proxy(Proxy.Type.SOCKS, new 74 * @param proxy 75 * the specified proxy for this socket. 77 * if the argument {@code proxy} is {@code null} or of a [all...] |
URL.java | 673 * connection will be established through the given proxy and allows 676 * @param proxy 677 * the proxy through which the connection will be established. 684 * to the proxy. 686 * if the argument proxy is {@code null} or is an invalid type. 691 public URLConnection openConnection(Proxy proxy) throws IOException { 692 if (proxy == null) { 693 throw new IllegalArgumentException("proxy == null"); 697 if (sm != null && proxy.type() != Proxy.Type.DIRECT) [all...] |
/libcore/support/src/test/java/tests/http/ |
MockWebServer.java | 28 import java.net.Proxy; 80 public Proxy toProxyAddress() { 81 return new Proxy(Proxy.Type.HTTP, new InetSocketAddress("localhost", getPort()));
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldURLStreamHandlerTest.java | 6 import java.net.Proxy; 184 public URLConnection openConnection(URL u, Proxy p) throws IOException {
|
OldURLTest.java | 31 import java.net.Proxy; 799 public List<Proxy> select(URI uri) { 801 ArrayList<Proxy> proxyList = new ArrayList<Proxy>(1); 802 proxyList.add(Proxy.NO_PROXY); 870 public URLConnection openConnection(URL arg0, Proxy proxy) 872 return super.openConnection(u, proxy); [all...] |
OldSocketTest.java | 28 import java.net.Proxy; 1146 Proxy proxy = new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("127.0.0.1", 0)); local [all...] |
/libcore/luni/src/test/java/tests/api/java/io/ |
ObjectStreamClassTest.java | 30 import java.lang.reflect.Proxy; 186 Class<?> proxyClass = Proxy.getProxyClass(this.getClass() 192 assertEquals("Proxy classes should have zero serialVersionUID", 0, 195 assertEquals("Proxy classes should have no serialized fields", 0,
|
/external/easymock/src/org/easymock/ |
EasyMock.java | 18 import java.lang.reflect.Proxy;
[all...] |