/art/test/910-methods/src/art/ |
Test910.java | 20 import java.lang.reflect.Proxy; 137 // We need this machinery for a consistent proxy name. Names of proxy classes include a 143 // as many proxy classes but cycling through subsets of the test-provided interfaces 147 // (This is made under the judgment that we do not want to have proxy-specific behavior 180 return Proxy.getProxyClass(Test910.class.getClassLoader(), input); 183 // Need this for the proxy naming.
|
/external/guava/guava/src/com/google/common/util/concurrent/ |
SimpleTimeLimiter.java | 29 import java.lang.reflect.Proxy; 191 Object object = Proxy.newProxyInstance(interfaceType.getClassLoader(),
|
/external/guice/extensions/persist/src/com/google/inject/persist/jpa/ |
JpaPersistModule.java | 38 import java.lang.reflect.Proxy; 128 // and hashcode as a proxy (!) for the proxy's equals and hashcode. 157 @SuppressWarnings("unchecked") // Proxy must produce instance of type given. 158 T proxy = (T) Proxy local 162 bind(iface).toInstance(proxy);
|
/external/v8/tools/foozzie/ |
v8_mock_archs.js | 32 return new Proxy(arrayType, handler);
|
/frameworks/av/services/audioflinger/ |
TrackBase.h | 228 virtual status_t obtainBuffer(Proxy::Buffer* buffer, 230 virtual void releaseBuffer(Proxy::Buffer* buffer) = 0;
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/util/ |
ReflectionUtils.java | 25 import java.lang.reflect.Proxy; 124 return (T) Proxy.newProxyInstance(loader, new Class[]{interfaze}, new InvocationHandler() { 125 public Object invoke(Object proxy, Method m, Object[] args) {
|
/frameworks/support/webkit/src/main/java/androidx/webkit/internal/ |
ServiceWorkerWebSettingsImpl.java | 30 import java.lang.reflect.Proxy; 67 Proxy.getInvocationHandler(mBoundaryInterface));
|
/art/test/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.out.println("not a proxy class?"); 37 if (Proxy.getInvocationHandler(proxy) == null) 38 System.out.println("ERROR: Proxy.getInvocationHandler is null"); 41 Shapes shapes = (Shapes) proxy; 45 Quads quads = (Quads) proxy; 103 Object proxy = null; local [all...] |
/external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/ |
BindingsTestUtils.java | 99 public static <I extends Interface, P extends Interface.Proxy> P newProxyOverPipe( 103 P proxy = manager.attachProxy(handles.first, 0); local 104 toClose.add(proxy); 106 return proxy;
|
/external/v8/src/ |
deoptimize-reason.h | 55 V(Proxy, "proxy") \
|
/frameworks/base/packages/services/Proxy/src/com/android/proxyhandler/ |
ProxyServer.java | 29 import java.net.Proxy; 53 private static final String HEADER_PROXY_CONNECTION = "proxy-connection"; 116 List<Proxy> list = Lists.newArrayList(); 123 for (Proxy proxy : list) { 125 if (!proxy.equals(Proxy.NO_PROXY)) { 128 (InetSocketAddress)proxy.address(); 136 // No proxy to respond so we must. 146 Log.v(TAG, "Unable to connect to proxy " + proxy, ioe) [all...] |
/art/test/1914-get-local-instance/src/art/ |
Test1914.java | 23 import java.lang.reflect.Proxy; 40 + (val != null ? (val instanceof Proxy ? "PROXY CLASS" : val.getClass()) : "NULL") + ")"); 176 return Proxy.newProxyInstance( 181 return "Proxy for " + Arrays.toString(k);
|
/art/test/1939-proxy-frames/src/art/ |
Test1939.java | 23 import java.lang.reflect.Proxy; 48 if (o instanceof Method && Proxy.isProxyClass(((Method)o).getDeclaringClass())) { 51 return o.toString().replaceFirst("Proxy[0-9]+", "__PROXY__"); 159 return Proxy.newProxyInstance( 164 return "Proxy for " + Arrays.toString(k);
|
/external/javassist/src/main/javassist/tools/rmi/ |
ObjectImporter.java | 30 * obtains a proxy object, which is a reference to that object. 31 * The class name of the proxy object is identical to that of 33 * The proxy object provides the same set of methods as the remote object. 34 * If one of the methods is invoked on the proxy object, 53 * proxy object, the reference to the remote object instead of a copy of 58 * <li>The parameter objects cannot contain the proxy 119 * @return the proxy object or null. 131 * Sets an http proxy server. After this method is called, the object 132 * importer connects a server through the http proxy server. 146 * It sends a POST request to the server (via an http proxy serve [all...] |
/packages/apps/Messaging/src/android/support/v7/mms/ |
MmsHttpClient.java | 41 import java.net.Proxy; 103 * @param isProxySet Is there a proxy for the MMSC 104 * @param proxyHost The proxy host 105 * @param proxyPort The proxy port 116 + (isProxySet ? (", proxy=" + proxyHost + ":" + proxyPort) : "") 121 Proxy proxy = Proxy.NO_PROXY; local 123 proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress(proxyHost, proxyPort)) [all...] |
/libcore/ojluni/src/main/java/java/net/ |
Socket.java | 90 * Creates an unconnected socket, specifying the type of proxy, if any, 94 * is called with the proxy host address and port number 98 * <UL> <LI>{@code Socket s = new Socket(Proxy.NO_PROXY);} will create 99 * a plain socket ignoring any other proxy configuration.</LI> 100 * <LI>{@code Socket s = new Socket(new Proxy(Proxy.Type.SOCKS, new InetSocketAddress("socks.mydom.com", 1080)));} 101 * will create a socket connecting through the specified SOCKS proxy 105 * @param proxy a {@link java.net.Proxy Proxy} object specifying what kin [all...] |
/external/webrtc/talk/app/webrtc/ |
proxy.h | 53 // The proxy can be created using TestProxy::Create(Thread*, TestInterface*). 112 explicit SynchronousMethodCall(rtc::MessageHandler* proxy) 113 : e_(), proxy_(proxy) {} 316 class c##Proxy : public c##Interface { \ 319 c##Proxy(rtc::Thread* thread, C* c) : owner_thread_(thread), c_(c) {} \ 320 ~c##Proxy() { \ 321 MethodCall0<c##Proxy, void> call(this, &c##Proxy::Release_s); \ 327 return new rtc::RefCountedObject<c##Proxy>(thread, c); \
|
/libcore/luni/src/test/java/libcore/java/net/ |
OldURLTest.java | 28 import java.net.Proxy; 577 public List<Proxy> select(URI uri) { 579 ArrayList<Proxy> proxyList = new ArrayList<Proxy>(1); 580 proxyList.add(Proxy.NO_PROXY); 648 public URLConnection openConnection(URL arg0, Proxy proxy) 650 return super.openConnection(u, proxy);
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowWebView.java | 13 import java.lang.reflect.Proxy; 67 Object provider = Proxy.newProxyInstance(classLoader, new Class[]{webViewProviderClass}, new InvocationHandler() { 68 @Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { 70 return Proxy.newProxyInstance(classLoader, new Class[]{ 75 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
/frameworks/base/core/java/android/net/ |
Network.java | 321 // TODO: Should this be optimized to avoid fetching the global proxy for every request? 323 final java.net.Proxy proxy; local 325 proxy = proxyInfo.makeProxy(); 327 proxy = java.net.Proxy.NO_PROXY; 329 return openConnection(url, proxy); 336 * @param proxy the proxy through which the connection will be established. 339 * @throws IllegalArgumentException if the argument proxy is null [all...] |
/external/apache-http/android/src/android/net/http/ |
RequestQueue.java | 30 import android.net.Proxy; 218 * Enables data state and proxy tracking 232 new IntentFilter(Proxy.PROXY_CHANGE_ACTION)); 234 // we need to resample the current proxy setup 253 * synchronize setting the proxy 260 String host = Proxy.getHost(mContext); 266 mProxyHost = new HttpHost(host, Proxy.getPort(mContext), "http"); 273 * @return proxy host if set, null otherwise 389 // Chooses between the proxy and the request's host. 391 // There used to be a comment in ConnectionThread about t-mob's proxy [all...] |
/external/guice/core/src/com/google/inject/ |
Binder.java | 32 import java.lang.reflect.Proxy; 475 * Prevents Guice from constructing a {@link Proxy} when a circular dependency
|
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
OkHttpClient.java | 28 import java.net.Proxy; 122 private Proxy proxy; field in class:OkHttpClient 156 this.proxy = okHttpClient.proxy; 239 * Sets the HTTP proxy that will be used by connections created by this 241 * only honored when this proxy is null (which it is by default). To disable 242 * proxy use completely, call {@code setProxy(Proxy.NO_PROXY)}. 244 public OkHttpClient setProxy(Proxy proxy) [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/io/ |
RealConnection.java | 44 import java.net.Proxy; 98 Proxy proxy = route.getProxy(); local 109 rawSocket = proxy.type() == Proxy.Type.DIRECT || proxy.type() == Proxy.Type.HTTP 111 : new Socket(proxy); 255 * To make an HTTPS connection over an HTTP proxy, send an unencrypted 256 * CONNECT request to create the proxy connection. This may need to b [all...] |
/external/robolectric-shadows/shadowapi/src/main/java/org/robolectric/util/ |
ReflectionHelpers.java | 10 import java.lang.reflect.Proxy; 32 return (T) Proxy.newProxyInstance(clazz.getClassLoader(), 35 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { 43 return (T) Proxy.newProxyInstance(clazz.getClassLoader(), 46 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { 60 Proxy.newProxyInstance(annotation.getClassLoader(), new Class[] { annotation }, 62 @Override public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|