HomeSort by relevance Sort by last modified time
    Searched refs:Proxy (Results 76 - 100 of 206) sorted by null

1 2 34 5 6 7 8 9

  /external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowActivityThread.java 9 import java.lang.reflect.Proxy;
28 return Proxy.newProxyInstance(
33 public Object invoke(Object proxy, @Nonnull Method method, Object[] args)
  /art/tools/ahat/src/test-dump/
DumpedStuff.java 133 public static class Proxy implements IDumpedManager {
135 Proxy(android.os.IBinder binderProxy) {
144 public static class Proxy implements IBinderInterfaceImpostor {
146 Proxy(android.os.IBinder binderProxy) {
205 Object correctBinderProxyObject = new IDumpedManager.Stub.Proxy(correctBinderProxy);
206 Object impostorBinderProxyObject = new IBinderInterfaceImpostor.Stub.Proxy(imposedBinderProxy);
  /device/generic/goldfish/wifi/ipv6proxy/
proxy.cpp 17 #include "proxy.h"
92 int Proxy::run() {
148 bool Proxy::receiveIfPossible(const pollfd& fd,
169 void Proxy::handleOuterMessage(Message& message) {
191 void Proxy::handleInnerMessage(const Interface& inner, Message& message) {
210 void Proxy::forward(const Interface& from,
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/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/libchrome/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
InterfaceControlMessagesHelper.java 9 import org.chromium.mojo.bindings.Interface.Proxy;
73 public static <I extends Interface, P extends Proxy> boolean handleRun(
96 public static <I extends Interface, P extends Proxy> boolean handleRunOrClosePipe(
  /external/conscrypt/repackaged/testing/src/main/java/com/android/org/conscrypt/javax/net/ssl/
PSKKeyManagerProxy.java 21 import java.lang.reflect.Proxy;
40 return (KeyManager) Proxy.newProxyInstance(
70 public final Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
  /external/conscrypt/testing/src/main/java/org/conscrypt/javax/net/ssl/
PSKKeyManagerProxy.java 20 import java.lang.reflect.Proxy;
39 return (KeyManager) Proxy.newProxyInstance(
69 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/
HttpsServiceConnectionSE.java 11 import java.net.Proxy;
57 * @param proxy proxy server to use
64 public HttpsServiceConnectionSE(Proxy proxy, String host, int port, String file, int timeout)
67 if (proxy == null) {
73 file).openConnection(proxy);
HttpTransportSE.java 34 import java.net.Proxy;
55 * proxy server to use to access it
57 * @param proxy
58 * Proxy information or <code>null</code> for direct access
62 public HttpTransportSE(Proxy proxy, String url) {
63 super(proxy, url);
78 public HttpTransportSE(Proxy proxy, String url, int timeout) {
79 super(proxy, url, timeout)
    [all...]
  /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 136 virtual status_t obtainBuffer(Proxy::Buffer *buffer,
138 virtual void releaseBuffer(Proxy::Buffer *buffer);
  /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/1962-multi-thread-events/src/art/
Test1962.java 20 import java.lang.reflect.Proxy;
  /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/grpc-grpc-java/core/src/main/java/io/grpc/internal/
ProxyDetectorImpl.java 29 import java.net.Proxy;
46 // To validate this code: set up a local squid proxy instance, and
102 // auth_param basic realm Squid proxy-caching web server
111 // configure the proxy. For passwords, use java.net.Authenticator.setDefault().
137 host, addr, port, protocol, prompt, scheme, url, Authenticator.RequestorType.PROXY);
150 * @deprecated Use the standard Java proxy configuration instead with flags such as:
160 // We want an HTTPS proxy, which operates on the entire data stream (See IETF rfc2817).
164 * A proxy selector that uses the global {@link ProxySelector#getDefault()} and
165 * {@link ProxyDetectorImpl.AuthenticationProvider} to detect proxy parameters.
204 log.log(Level.WARNING, "Failed to get host for proxy lookup, proceeding without proxy", t)
235 Proxy proxy = proxies.get(0); local
    [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...]
  /external/v8/tools/clusterfuzz/
v8_mock.js 78 Date = new Proxy(Date, handler);
101 return new Proxy(obj, {
110 return new Proxy(arrayType, handler);

Completed in 330 milliseconds

1 2 34 5 6 7 8 9