HomeSort by relevance Sort by last modified time
    Searched refs:Proxy (Results 101 - 125 of 376) sorted by null

1 2 3 45 6 7 8 91011>>

  /external/guava/guava-testlib/src/com/google/common/testing/
DummyProxy.java 30 import java.lang.reflect.Proxy;
36 * Generates a dummy interface proxy that simply returns a dummy value for each method.
43 * Returns a new proxy for {@code interfaceType}. Proxies of the same interface are equal to each
49 // Make the proxy serializable to work with SerializableTester
51 Object dummy = Proxy.newProxyInstance(
71 Object proxy, Method method, Object[] args) {
101 return "Dummy proxy for " + interfaceType;
  /external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/
ModifiedSystemClassRuntimeTest.java 26 import java.lang.reflect.Proxy;
54 * Note that we use Proxy here to mock {@link Instrumentation}, because JDK
59 return (Instrumentation) Proxy.newProxyInstance(getClass()
101 public Object invoke(Object proxy, Method method, Object[] args)
  /external/ksoap2/ksoap2-j2se/src/main/java/org/ksoap2/transport/
ServiceConnectionSE.java 50 public ServiceConnectionSE(Proxy proxy, String url) throws IOException {
51 this(proxy, url, ServiceConnection.DEFAULT_TIMEOUT);
64 public ServiceConnectionSE(Proxy proxy, String url, int timeout) throws IOException {
65 connection = (proxy == null)
67 : (HttpURLConnection) new URL(url).openConnection(proxy);
HttpTransportSE.java 32 import java.net.Proxy;
58 * proxy server to use to access it
60 * @param proxy
61 * Proxy information or <code>null</code> for direct access
65 public HttpTransportSE(Proxy proxy, String url) {
66 super(proxy, url);
81 public HttpTransportSE(Proxy proxy, String url, int timeout) {
82 super(proxy, url, timeout)
    [all...]
  /external/libmojo/mojo/android/javatests/src/org/chromium/mojo/bindings/
InterfaceControlMessageTest.java 74 // error to close the handle of a proxy without closing the proxy first.
84 IntegerAccessor.Proxy p = BindingsTestUtils.newProxyOverPipe(
100 IntegerAccessor.Proxy p = BindingsTestUtils.newProxyOverPipe(
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/
SocksProxyTest.java 21 import java.net.Proxy;
47 @Test public void proxy() throws Exception { method in class:SocksProxyTest
52 .setProxy(socksProxy.proxy());
70 @Override public List<Proxy> select(URI uri) {
71 return Collections.singletonList(socksProxy.proxy());
90 // This testcase will fail if the target is resolved locally instead of through the proxy.
94 .setProxy(socksProxy.proxy());
SocksProxy.java 24 import java.net.Proxy;
81 public Proxy proxy() { method in class:SocksProxy
82 return new Proxy(Proxy.Type.SOCKS, InetSocketAddress.createUnresolved(
  /external/slf4j/slf4j-api/src/test/java/org/slf4j/helpers/
SubstitutableLoggerTest.java 30 import java.lang.reflect.Proxy;
52 Logger proxyLogger = (Logger) Proxy.newProxyInstance(getClass().getClassLoader(), new Class[] { Logger.class }, ih);
75 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
  /frameworks/av/services/audioflinger/
RecordTracks.h 123 virtual status_t obtainBuffer(Proxy::Buffer *buffer,
125 virtual void releaseBuffer(Proxy::Buffer *buffer);
127 void setPeerProxy(PatchProxyBufferProvider *proxy) { mPeerProxy = proxy; }
  /libcore/ojluni/src/main/java/sun/net/www/protocol/file/
Handler.java 31 import java.net.Proxy;
75 public synchronized URLConnection openConnection(URL u, Proxy p)
  /libcore/ojluni/src/main/java/sun/net/www/protocol/ftp/
FtpURLConnection.java 45 import java.net.Proxy;
90 private Proxy instProxy;
175 * Same as FtpURLconnection(URL) with a per connection proxy specified
178 // FtpURLConnection(URL url, Proxy p) {
179 FtpURLConnection(URL url, Proxy p) throws IOException {
230 Proxy p = null;
231 if (instProxy == null) { // no per connection proxy specified
233 * Do we have to use a proxy?
243 Iterator<Proxy> it = sel.select(uri).iterator();
246 if (p == null || p == Proxy.NO_PROXY |
    [all...]
  /art/test/044-proxy/src/
NarrowingTest.java 32 I2 proxy = (I2) Proxy.newProxyInstance(NarrowingTest.class.getClassLoader(), local
37 public Object invoke(Object proxy, Method method,
48 Main.registerProxyClassName(proxy.getClass().getCanonicalName());
50 Method[] methods = proxy.getClass().getDeclaredMethods();
52 System.out.println("Proxy methods: " +
55 System.out.println("Invoking foo using I2 type: " + proxy.foo());
57 I1 proxyAsParent = proxy;
61 proxy.foo();
68 System.out.println("Proxy narrowed invocation return type passed")
    [all...]
  /art/test/616-cha-proxy-method-inline/src/
Main.java 25 return java.lang.reflect.Proxy.newProxyInstance(
35 public Object invoke(Object proxy, Method m, Object[] args) throws Throwable {
  /device/generic/goldfish/wifi/ipv6proxy/
main.cpp 23 #include "proxy.h"
31 " -n Optional parameter that causes the proxy to run in the given\n"
40 " The proxy will ensure that router solicitations from inner\n"
107 Proxy proxy(outer, innerInterfaces.begin(), innerInterfaces.end());
109 return proxy.run();
  /external/javassist/src/main/javassist/bytecode/annotation/
AnnotationImpl.java 20 import java.lang.reflect.Proxy;
71 return Proxy.newProxyInstance(cl, new Class[] { clazz }, handler);
120 * Executes a method invocation on a proxy instance.
124 * is also available on the proxy instance.
126 public Object invoke(Object proxy, Method method, Object[] args)
238 if (obj instanceof Proxy) {
239 InvocationHandler ih = Proxy.getInvocationHandler(obj);
  /external/libmojo/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
Interface.java 38 * A proxy to a mojo interface. This is base class for all generated proxies. It implements the
42 public interface Proxy extends Interface {
44 * Class allowing to interact with the proxy itself.
53 * Unbinds the proxy and passes the handle. Can return null if the proxy is not bound or
54 * if the proxy is not over a message pipe.
83 * Returns the {@link Handler} object allowing to interact with the proxy itself.
89 * Base implementation of {@link Proxy}.
91 abstract class AbstractProxy implements Proxy {
95 protected static class HandlerImpl implements Proxy.Handler, ConnectionErrorHandler
370 P proxy = attachProxy(handle.getCore(), router); local
386 P proxy = attachProxy(handles.first, 0); local
    [all...]
  /libcore/luni/src/main/java/libcore/reflect/
AnnotationFactory.java 27 import java.lang.reflect.Proxy;
34 * The annotation implementation based on dynamically generated proxy instances.
95 return (A) Proxy.newProxyInstance(annotationType.getClassLoader(),
185 if (Proxy.isProxyClass(obj.getClass())
186 && (handler = Proxy.getInvocationHandler(obj)) instanceof AnnotationFactory) {
276 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
  /libcore/ojluni/src/main/java/java/lang/reflect/
Proxy.java 56 * {@code Proxy} provides static methods for creating dynamic proxy
58 * dynamic proxy classes created by those methods.
60 * <p>To create a proxy for some interface {@code Foo}:
63 * Class&lt;?&gt; proxyClass = Proxy.getProxyClass(Foo.class.getClassLoader(), Foo.class);
69 * Foo f = (Foo) Proxy.newProxyInstance(Foo.class.getClassLoader(),
74 * <p>A <i>dynamic proxy class</i> (simply referred to as a <i>proxy
79 * A <i>proxy interface</i> is such an interface that is implemented
80 * by a proxy class
    [all...]
  /external/libmicrohttpd/src/examples/
mhd2spdy_spdy.c 27 * @brief SPDY part of the proxy. libspdylay is used for the client side.
76 struct Proxy *proxy = (struct Proxy *)(source->ptr); local
86 if(!proxy->received_body_size)//nothing to write now
88 if(proxy->receiving_done)
97 if(length >= proxy->received_body_size)
99 ret = proxy->received_body_size;
105 if(NULL == (newbody = malloc(proxy->received_body_size - length)))
110 memcpy(newbody, proxy->received_body + length, proxy->received_body_size - length)
294 struct Proxy *proxy; local
330 struct Proxy * proxy; local
394 struct Proxy * proxy = spdylay_session_get_stream_user_data(session, stream_id); local
429 struct Proxy *proxy; local
475 struct Proxy *proxy; local
815 struct Proxy *proxy; local
    [all...]
  /prebuilts/misc/common/swig/include/2.0.11/gcj/
javaprims.i 210 class Proxy;
211 class Proxy$ClassFactory;
212 class Proxy$ProxyData;
213 class Proxy$ProxySignature;
214 class Proxy$ProxyType;
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/https/
HttpsURLConnectionTest.java 37 import java.net.Proxy;
97 // Proxy authentication required response code
384 * Tests HTTPS connection process made through the proxy server.
395 // create a server that pretends to be both a proxy and then the webserver
396 // request 1: proxy CONNECT, respond with OK
410 url.openConnection(new Proxy(Proxy.Type.HTTP, proxyAddress));
424 * Tests HTTPS connection process made through the proxy server.
425 * Proxy server needs authentication.
442 // create a server that pretends to be both a proxy and then the webserve
    [all...]
  /external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/internal/http/
RouteSelectorTest.java 28 import java.net.Proxy;
42 import static java.net.Proxy.NO_PROXY;
56 private static final Proxy proxyA =
57 new Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved(proxyAHost, proxyAPort));
60 private static final Proxy proxyB =
61 new Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved(proxyBHost, proxyBPort));
128 proxySelector.assertRequests(); // No proxy selector requests!
143 proxySelector.assertRequests(); // No proxy selector requests
    [all...]
  /frameworks/base/config/
boot-image-profile.txt 51 HPLandroid/accounts/IAccountAuthenticator$Stub$Proxy;->getAuthToken(Landroid/accounts/IAccountAuthenticatorResponse;Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)V
52 HPLandroid/accounts/IAccountAuthenticator$Stub$Proxy;->hasFeatures(Landroid/accounts/IAccountAuthenticatorResponse;Landroid/accounts/Account;[Ljava/lang/String;)V
70 HPLandroid/accounts/IAccountAuthenticatorResponse$Stub$Proxy;->asBinder()Landroid/os/IBinder;
71 HPLandroid/accounts/IAccountAuthenticatorResponse$Stub$Proxy;->onResult(Landroid/os/Bundle;)V
78 HPLandroid/accounts/IAccountManager$Stub$Proxy;->addAccount(Landroid/accounts/IAccountManagerResponse;Ljava/lang/String;Ljava/lang/String;[Ljava/lang/String;ZLandroid/os/Bundle;)V
79 HPLandroid/accounts/IAccountManager$Stub$Proxy;->invalidateAuthToken(Ljava/lang/String;Ljava/lang/String;)V
80 HPLandroid/accounts/IAccountManager$Stub$Proxy;->unregisterAccountListener([Ljava/lang/String;Ljava/lang/String;)V
82 HPLandroid/accounts/IAccountManagerResponse$Stub$Proxy;->asBinder()Landroid/os/IBinder;
83 HPLandroid/accounts/IAccountManagerResponse$Stub$Proxy;->onError(ILjava/lang/String;)V
84 HPLandroid/accounts/IAccountManagerResponse$Stub$Proxy;->onResult(Landroid/os/Bundle;)
    [all...]
  /frameworks/av/include/private/media/
AudioTrackShared.h 136 friend class Proxy;
202 // Proxy for shared memory control block, to isolate callers from needing to know the details.
205 class Proxy : public RefBase {
207 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut,
209 virtual ~Proxy() { }
237 // Proxy seen by AudioTrack client and AudioRecord client
238 class ClientProxy : public Proxy {
274 // DEAD_OBJECT Server has died or invalidated, caller should destroy this proxy and re-create.
349 // is initialized when the server proxy created. A local zero timestamp
357 // Proxy used by AudioTrack client, which also includes AudioFlinger::PlaybackThread::OutputTrac
    [all...]
  /art/test/1945-proxy-method-arguments/src/
Main.java 19 import java.lang.reflect.Proxy;
32 public Object invoke(Object proxy, Method method, Object[] args) {
33 // Force garbage collection to try to make `proxy` move in memory
37 System.out.println("Proxy for " + TestInterface.class + "." + method.getName());
39 testMethod0(proxy, args);
41 testMethod1(proxy, args);
43 testMethod10(proxy, args);
45 testMethod10Even(proxy, args);
50 private void testMethod0(Object proxy, Object[] args) {
51 // Get argument 0 (method target) from the proxy method frame ($Proxy0.method0 activation)
126 TestInterface proxy = (TestInterface) Proxy.newProxyInstance( local
    [all...]

Completed in 3993 milliseconds

1 2 3 45 6 7 8 91011>>