/external/libmicrohttpd/src/examples/ |
mhd2spdy_http.c | 20 * @brief HTTP part of the proxy. libmicrohttpd is used for the server side. 56 "Proxy-Connection", 87 struct Proxy *proxy = (struct Proxy *)cls; local 92 PRINT_INFO2("http_cb_response for %s", proxy->url); 94 if(proxy->spdy_error) 97 if(0 == proxy->http_body_size && (proxy->done || !proxy->spdy_active) 171 struct Proxy *proxy; local 380 struct Proxy *proxy; local [all...] |
/external/libmicrohttpd/src/spdy2http/ |
proxy.c | 20 * @file proxy.c 159 struct Proxy 412 struct Proxy *proxy = (struct Proxy *)SPDY_get_cls_from_request(request); local 414 if(!store_in_buffer(buf, size, &proxy->received_body, &proxy->received_body_size)) 420 proxy->receiving_done = !more; 426 if(proxy->is_curl_read_paused) 428 if(CURLE_OK != (ret = curl_easy_pause(proxy->curl_handle, CURLPAUSE_CONT)) 447 struct Proxy *proxy = (struct Proxy *)cls; local 513 struct Proxy *proxy = (struct Proxy *)cls; local 531 struct Proxy *proxy = (struct Proxy *)userp; local 686 struct Proxy *proxy = (struct Proxy *)userp; local 731 struct Proxy *proxy = (struct Proxy *)userp; local 792 struct Proxy *proxy = (struct Proxy *)cls; local 846 struct Proxy *proxy; local 989 struct Proxy *proxy; local [all...] |
/external/okhttp/okhttp-apache/src/main/java/com/squareup/okhttp/apache/ |
OkApacheClient.java | 12 import java.net.Proxy; 31 import static java.net.Proxy.Type.HTTP; 106 Proxy proxy = client.getProxy(); 107 if (proxy == null) { 110 InetSocketAddress address = (InetSocketAddress) proxy.address(); 119 Proxy proxy = null; 121 proxy = new Proxy(HTTP, new InetSocketAddress(host.getHostName(), host.getPort())) [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
ForwardingTestCase.java | 28 import java.lang.reflect.Proxy; 67 public Object invoke(Object proxy, Method method, Object[] args) 75 return (T) Proxy.newProxyInstance(c.getClassLoader(), 122 // using Proxy so that we can have Java 7 compliant code. 124 @Override public Object invoke(Object proxy, Method method, 134 "Unexpected " + method + " invoked on " + proxy); 137 return Proxy.newProxyInstance(returnType.getClassLoader(),
|
/external/guava/guava-tests/test/com/google/common/reflect/ |
AbstractInvocationHandlerTest.java | 29 import java.lang.reflect.Proxy; 48 List<String> proxy = newDelegatingList(LIST1); local 49 assertEquals(Proxy.getInvocationHandler(proxy).toString(), proxy.toString()); 63 // But whatever, no one is going to proxy List (hopefully). 83 @SuppressWarnings("unchecked") // proxy of List<String> 88 @SuppressWarnings("unchecked") // proxy of List<String> 93 @SuppressWarnings("unchecked") // proxy of Iterable<String> 98 @SuppressWarnings("unchecked") // proxy of List<String [all...] |
/external/v8/tools/foozzie/ |
v8_mock.js | 51 Date = new Proxy(Date, handler); 73 return new Proxy( 77 return new Proxy(arrayType, handler);
|
/frameworks/av/include/private/media/ |
AudioTrackShared.h | 134 friend class Proxy; 200 // Proxy for shared memory control block, to isolate callers from needing to know the details. 203 class Proxy : public RefBase { 205 Proxy(audio_track_cblk_t* cblk, void *buffers, size_t frameCount, size_t frameSize, bool isOut, 207 virtual ~Proxy() { } 235 // Proxy seen by AudioTrack client and AudioRecord client 236 class ClientProxy : public Proxy { 272 // DEAD_OBJECT Server has died or invalidated, caller should destroy this proxy and re-create. 345 // is initialized when the server proxy created. A local zero timestamp 353 // Proxy used by AudioTrack client, which also includes AudioFlinger::PlaybackThread::OutputTrac [all...] |
/external/apache-harmony/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ReferenceType/ |
SourceDebugExtensionDebuggee.java | 29 import java.lang.reflect.Proxy; 177 // Instantiate a proxy whose name should contain "$Proxy". 178 Class proxy = Proxy.getProxyClass(SomeInterface.class.getClassLoader(), local
|
/external/conscrypt/testing/src/main/java/libcore/javax/net/ssl/ |
PSKKeyManagerProxy.java | 20 import java.lang.reflect.Proxy; 38 return (KeyManager) Proxy.newProxyInstance( 68 public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
/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...] |
/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/mockito/src/main/java/org/mockito/internal/configuration/plugins/ |
PluginLoader.java | 13 import java.lang.reflect.Proxy; 61 return (T) Proxy.newProxyInstance(pluginType.getClassLoader(), 65 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
/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());
|
/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 {
|
/libcore/luni/src/test/java/libcore/javax/net/ssl/ |
PSKKeyManagerProxy.java | 21 import java.lang.reflect.Proxy; 40 return (KeyManager) Proxy.newProxyInstance( 77 public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
|
/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...] |
/libcore/support/src/test/java/tests/io/ |
MockOs.java | 24 import java.lang.reflect.Proxy; 56 @Override public Object invoke(Object proxy, Method method, Object[] args) 62 return handler.invoke(proxy, method, args); 66 private final Os mockOs = (Os) Proxy.newProxyInstance(MockOs.class.getClassLoader(), 115 @Override public Object invoke(Object proxy, Method method, Object[] args) throws ErrnoException {
|
/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(); 51 System.out.println("Proxy methods: " + 54 System.out.println("Invoking foo using I2 type: " + proxy.foo()); 56 I1 proxyAsParent = proxy; 60 proxy.foo(); 67 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 {
|
/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);
|