Home
last modified time | relevance | path

Searched refs:proxy (Results 1 – 25 of 479) sorted by relevance

12345678910>>...20

/external/dexmaker/src/test/java/com/google/dexmaker/stock/
DProxyBuilderTest.java65 SimpleClass proxy = proxyFor(SimpleClass.class).build(); in testExampleOperation() local
66 assertEquals("expected", proxy.simpleMethod()); in testExampleOperation()
72 SimpleClass proxy = proxyFor(SimpleClass.class).build(); in testExampleOperation_DexMakerCaching() local
74 assertEquals("expected", proxy.simpleMethod()); in testExampleOperation_DexMakerCaching()
79 proxy = proxyFor(SimpleClass.class).build(); in testExampleOperation_DexMakerCaching()
81 assertEquals("expected", proxy.simpleMethod()); in testExampleOperation_DexMakerCaching()
97 ConstructorTakesArguments proxy = proxyFor(ConstructorTakesArguments.class) in testConstruction_SucceedsIfCorrectArgumentsProvided() local
101 assertEquals("hello", proxy.argument); in testConstruction_SucceedsIfCorrectArgumentsProvided()
102 proxy.method(); in testConstruction_SucceedsIfCorrectArgumentsProvided()
152 HasFinalMethod proxy = proxyFor(HasFinalMethod.class).build(); in testCanProxyClassesWithFinalMethods_WillNotCallTheFinalMethod() local
[all …]
/external/apache-harmony/beans/src/test/java/org/apache/harmony/beans/tests/java/beans/
DPropertyChangeListenerProxyTest.java31 PropertyChangeListenerProxy proxy; field in PropertyChangeListenerProxyTest
42 proxy = new PropertyChangeListenerProxy(name, listener); in setUp()
46 proxy = new PropertyChangeListenerProxy(null, listener); in testPropertyChangeListenerProxy()
47 assertSame(listener, proxy.getListener()); in testPropertyChangeListenerProxy()
48 assertNull(proxy.getPropertyName()); in testPropertyChangeListenerProxy()
51 proxy.propertyChange(newevent); in testPropertyChangeListenerProxy()
53 proxy = new PropertyChangeListenerProxy(name, null); in testPropertyChangeListenerProxy()
54 assertSame(name, proxy.getPropertyName()); in testPropertyChangeListenerProxy()
55 assertNull(proxy.getListener()); in testPropertyChangeListenerProxy()
57 proxy.propertyChange(new PropertyChangeEvent(new Object(), "name", in testPropertyChangeListenerProxy()
[all …]
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/
DRoute.java36 final Proxy proxy; field in Route
39 public Route(Address address, Proxy proxy, InetSocketAddress inetSocketAddress) { in Route() argument
43 if (proxy == null) { in Route()
50 this.proxy = proxy; in Route()
66 return proxy; in getProxy()
78 return address.sslSocketFactory != null && proxy.type() == Proxy.Type.HTTP; in requiresTunnel()
85 && proxy.equals(other.proxy) in equals()
94 result = 31 * result + proxy.hashCode(); in hashCode()
DAddress.java39 final Proxy proxy; field in Address
53 CertificatePinner certificatePinner, Authenticator authenticator, Proxy proxy, in Address() argument
60 this.proxy = proxy; in Address()
131 return proxy; in getProxy()
152 return equal(this.proxy, that.proxy) in equals()
168 result = 31 * result + (proxy != null ? proxy.hashCode() : 0); in hashCode()
/external/javassist/src/main/javassist/tools/rmi/
DStubGenerator.java136 CtClass proxy = classPool.makeClass(orgclass.getName(), in produceProxyClass() local
139 proxy.setInterfaces(interfacesForProxy); in produceProxyClass()
143 fieldImporter, proxy); in produceProxyClass()
145 proxy.addField(f, CtField.Initializer.byParameter(0)); in produceProxyClass()
147 f = new CtField(CtClass.intType, fieldObjectId, proxy); in produceProxyClass()
149 proxy.addField(f, CtField.Initializer.byParameter(1)); in produceProxyClass()
151 proxy.addMethod(CtNewMethod.getter(accessorObjectId, f)); in produceProxyClass()
153 proxy.addConstructor(CtNewConstructor.defaultConstructor(proxy)); in produceProxyClass()
156 null, proxy); in produceProxyClass()
157 proxy.addConstructor(cons); in produceProxyClass()
[all …]
/external/v8/test/mjsunit/harmony/
Dproxies-with-unscopables.js14 var proxy = Proxy.create({
29 with (proxy) {
43 var proxy = Proxy.create({
59 with (proxy) {
75 var proxy = Proxy.create({
86 object[Symbol.unscopables] = proxy;
108 var proxy = Proxy.create({
120 object[Symbol.unscopables] = proxy;
134 var proxy = Proxy.create({
139 global[Symbol.unscopables] = proxy;
/external/easymock/src/org/easymock/internal/
DObjectMethodsFilter.java61 public final Object invoke(Object proxy, Method method, Object[] args) in invoke() argument
64 return Boolean.valueOf(proxy == args[0]); in invoke()
67 return Integer.valueOf(System.identityHashCode(proxy)); in invoke()
70 return mockToString(proxy); in invoke()
72 return delegate.invoke(proxy, method, args); in invoke()
75 private String mockToString(Object proxy) { in mockToString() argument
76 return (name != null) ? name : "EasyMock for " + mockType(proxy); in mockToString()
79 private String mockType(Object proxy) { in mockType() argument
80 if (Proxy.isProxyClass(proxy.getClass())) in mockType()
81 return proxy.getClass().getInterfaces()[0].toString(); in mockType()
[all …]
/external/v8/test/mjsunit/harmony/regress/
Dregress-2225.js31 var proxy = Proxy.create({ getPropertyDescriptor:function(key) { variable
39 assertSame(undefined, Object.prototype.__lookupGetter__.call(proxy, 'foo'));
40 assertSame(undefined, Object.prototype.__lookupSetter__.call(proxy, 'bar'));
41 assertSame(undefined, Object.prototype.__lookupGetter__.call(proxy, '123'));
42 assertSame(undefined, Object.prototype.__lookupSetter__.call(proxy, '456'));
45 var object = Object.create(proxy);
53 f.prototype = proxy;
61 g.prototype.__proto__ = proxy;
/external/javassist/src/test/test/javassist/proxy/
DProxySerializationTest.java1 package test.javassist.proxy;
3 import javassist.util.proxy.*;
34 TestClass proxy = (TestClass)constructor.newInstance(new Object[] {name}); in testSerialization() local
35 ((ProxyObject)proxy).setHandler(handler); in testSerialization()
38 out.writeObject(proxy); in testSerialization()
47 assertTrue("classes should be equal", newProxy.getClass() == proxy.getClass()); in testSerialization()
61 TestClass proxy = (TestClass)constructor.newInstance(new Object[] {name}); in testSerialization() local
62 ((ProxyObject)proxy).setHandler(handler); in testSerialization()
65 out.writeObject(proxy); in testSerialization()
72 assertTrue("names should be equal", proxy.getName().equals(newProxy.getName())); in testSerialization()
[all …]
/external/okhttp/android/main/java/com/squareup/okhttp/
DHttpHandler.java42 @Override protected URLConnection openConnection(URL url, Proxy proxy) throws IOException { in openConnection() argument
43 if (url == null || proxy == null) { in openConnection()
46 return newOkUrlFactory(proxy).open(url); in openConnection()
53 protected OkUrlFactory newOkUrlFactory(Proxy proxy) { in newOkUrlFactory() argument
54 OkUrlFactory okUrlFactory = createHttpOkUrlFactory(proxy); in newOkUrlFactory()
67 public static OkUrlFactory createHttpOkUrlFactory(Proxy proxy) { in createHttpOkUrlFactory() argument
84 if (proxy != null) { in createHttpOkUrlFactory()
85 client.setProxy(proxy); in createHttpOkUrlFactory()
/external/ksoap2/ksoap2-base/src/main/java/org/ksoap2/transport/
DTransport.java47 protected Proxy proxy; field in Transport
90 public Transport(Proxy proxy, String url) { in Transport() argument
91 this.proxy = proxy; in Transport()
95 public Transport(Proxy proxy, String url, int timeout) { in Transport() argument
96 this.proxy = proxy; in Transport()
101 public Transport(Proxy proxy, String url, int timeout, int bufferLength) { in Transport() argument
102 this.proxy = proxy; in Transport()
/external/libvncserver/webclients/java-applet/ssl/
Dss_vncviewer265 "-proxy") shift; proxy="$1"
371 if [ "X$proxy" != "X" ]; then
375 if echo "$proxy" | egrep -i "(repeater|vencrypt)://" > /dev/null; then
381 elif echo "$proxy" | grep "," > /dev/null; then
470 if echo "$proxy" | egrep "^sslrepeater://" > /dev/null; then
471 pstr=`echo "$proxy" | sed -e 's,sslrepeater://,,'`
478 proxy=""
480 if echo "$proxy" | egrep "vencrypt://" > /dev/null; then
700 if [ "X$proxy" = "X" -a "X$reverse" = "X" ]; then
711 proxy="ipv6://$host:$port"
[all …]
/external/libvncserver/x11vnc/misc/enhanced_tightvnc_viewer/bin/util/
Dss_vncviewer265 "-proxy") shift; proxy="$1"
371 if [ "X$proxy" != "X" ]; then
375 if echo "$proxy" | egrep -i "(repeater|vencrypt)://" > /dev/null; then
381 elif echo "$proxy" | grep "," > /dev/null; then
470 if echo "$proxy" | egrep "^sslrepeater://" > /dev/null; then
471 pstr=`echo "$proxy" | sed -e 's,sslrepeater://,,'`
478 proxy=""
480 if echo "$proxy" | egrep "vencrypt://" > /dev/null; then
700 if [ "X$proxy" = "X" -a "X$reverse" = "X" ]; then
708 proxy="ipv6://$host:$port"
[all …]
/external/apache-http/src/org/apache/http/conn/params/
DConnRouteParams.java96 HttpHost proxy = (HttpHost) in getDefaultProxy() local
98 if ((proxy != null) && NO_HOST.equals(proxy)) { in getDefaultProxy()
100 proxy = null; in getDefaultProxy()
102 return proxy; in getDefaultProxy()
117 HttpHost proxy) { in setDefaultProxy() argument
121 params.setParameter(DEFAULT_PROXY, proxy); in setDefaultProxy()
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/
DAuthenticatorAdapter.java37 @Override public Request authenticate(Proxy proxy, Response response) throws IOException { in authenticate() argument
46 url.getHost(), getConnectToInetAddress(proxy, url), url.getPort(), url.getProtocol(), in authenticate()
59 @Override public Request authenticateProxy(Proxy proxy, Response response) throws IOException { in authenticateProxy() argument
67 InetSocketAddress proxyAddress = (InetSocketAddress) proxy.address(); in authenticateProxy()
69 proxyAddress.getHostName(), getConnectToInetAddress(proxy, url), proxyAddress.getPort(), in authenticateProxy()
82 private InetAddress getConnectToInetAddress(Proxy proxy, URL url) throws IOException { in getConnectToInetAddress() argument
83 return (proxy != null && proxy.type() != Proxy.Type.DIRECT) in getConnectToInetAddress()
84 ? ((InetSocketAddress) proxy.address()).getAddress() in getConnectToInetAddress()
/external/javassist/src/main/javassist/util/proxy/
DSerializedProxy.java16 package javassist.util.proxy;
37 SerializedProxy(Class proxy, byte[] sig, MethodHandler h) { in SerializedProxy() argument
40 superClass = proxy.getSuperclass().getName(); in SerializedProxy()
41 Class[] infs = proxy.getInterfaces(); in SerializedProxy()
83 ProxyObject proxy = (ProxyObject)f.createClass(filterSignature).newInstance();
84 proxy.setHandler(handler);
85 return proxy;
/external/mockito/src/org/mockito/internal/creation/
DMethodInterceptorFilter.java8 import org.mockito.cglib.proxy.MethodInterceptor;
9 import org.mockito.cglib.proxy.MethodProxy;
44 public Object intercept(Object proxy, Method method, Object[] args, MethodProxy methodProxy) in intercept() argument
47 return proxy == args[0]; in intercept()
49 return hashCodeForMock(proxy); in intercept()
51 return acrossJVMSerializationFeature.writeReplace(proxy); in intercept()
60 …Invocation invocation = new InvocationImpl(proxy, mockitoMethod, args, SequenceNumber.next(), real… in intercept()
/external/skia/src/effects/
DSkPictureImageFilter.cpp93 bool SkPictureImageFilter::onFilterImage(Proxy* proxy, const SkBitmap&, const Context& ctx, in onFilterImage() argument
112 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(), bounds.height())); in onFilterImage()
119 drawPictureAtDeviceResolution(proxy, device.get(), bounds, ctx); in onFilterImage()
121 drawPictureAtLocalResolution(proxy, device.get(), bounds, ctx); in onFilterImage()
130 void SkPictureImageFilter::drawPictureAtDeviceResolution(Proxy* proxy, SkBaseDevice* device, in drawPictureAtDeviceResolution() argument
136 SkCanvas canvas(device, proxy->surfaceProps(), SkCanvas::kDefault_InitFlags); in drawPictureAtDeviceResolution()
143 void SkPictureImageFilter::drawPictureAtLocalResolution(Proxy* proxy, SkBaseDevice* device, in drawPictureAtLocalResolution() argument
154 …SkAutoTUnref<SkBaseDevice> localDevice(proxy->createDevice(localIBounds.width(), localIBounds.heig… in drawPictureAtLocalResolution()
159 SkCanvas localCanvas(localDevice, proxy->surfaceProps(), SkCanvas::kDefault_InitFlags); in drawPictureAtLocalResolution()
166 SkCanvas canvas(device, proxy->surfaceProps(), SkCanvas::kDefault_InitFlags); in drawPictureAtLocalResolution()
DSkXfermodeImageFilter.cpp45 bool SkXfermodeImageFilter::onFilterImage(Proxy* proxy, in onFilterImage() argument
55 !backgroundInput->filterImage(proxy, src, ctx, &background, &backgroundOffset)) { in onFilterImage()
60 !foregroundInput->filterImage(proxy, src, ctx, &foreground, &foregroundOffset)) { in onFilterImage()
78 SkAutoTUnref<SkBaseDevice> device(proxy->createDevice(bounds.width(), bounds.height())); in onFilterImage()
117 bool SkXfermodeImageFilter::filterImageGPU(Proxy* proxy, in filterImageGPU() argument
124 if (getInput(0) && !getInput(0)->getInputResultGPU(proxy, src, ctx, &background, in filterImageGPU()
126 return onFilterImage(proxy, src, ctx, result, offset); in filterImageGPU()
137 if (getInput(1) && !getInput(1)->getInputResultGPU(proxy, src, ctx, &foreground, in filterImageGPU()
139 return onFilterImage(proxy, src, ctx, result, offset); in filterImageGPU()
/external/skia/src/core/
DSkLocalMatrixShader.cpp50 SkShader* SkShader::CreateLocalMatrixShader(SkShader* proxy, const SkMatrix& localMatrix) { in CreateLocalMatrixShader() argument
51 if (NULL == proxy) { in CreateLocalMatrixShader()
56 return SkRef(proxy); in CreateLocalMatrixShader()
62 SkAutoTUnref<SkShader> otherProxy(proxy->refAsALocalMatrixShader(&otherLocalMatrix)); in CreateLocalMatrixShader()
66 proxy = otherProxy.get(); in CreateLocalMatrixShader()
69 return SkNEW_ARGS(SkLocalMatrixShader, (proxy, *lm)); in CreateLocalMatrixShader()
/external/apache-http/src/org/apache/http/conn/routing/
DHttpRoute.java164 public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, in HttpRoute() argument
166 this(local, target, toChain(proxy), secure, tunnelled, layered); in HttpRoute()
208 public HttpRoute(HttpHost target, InetAddress local, HttpHost proxy, in HttpRoute() argument
210 this(local, target, toChain(proxy), secure, in HttpRoute()
213 if (proxy == null) { in HttpRoute()
227 private static HttpHost[] toChain(HttpHost proxy) { in toChain() argument
228 if (proxy == null) in toChain()
231 return new HttpHost[]{ proxy }; in toChain()
247 for (HttpHost proxy : proxies) { in toChain()
248 if (proxy == null) in toChain()
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime.Debug/
DParserDebugger.cs21 DebugEventSocketProxy proxy = new DebugEventSocketProxy( parser, port, null ); in ParserDebugger()
22 DebugListener = proxy; in ParserDebugger()
23 parser.TokenStream = new DebugTokenStream( parser.TokenStream, proxy ); in ParserDebugger()
26 proxy.handshake(); in ParserDebugger()
34 proxy.TreeAdaptor = adap; in ParserDebugger()
/external/guava/guava-tests/test/com/google/common/util/concurrent/
DSimpleTimeLimiterTest.java121 Sample proxy = service.newProxy( in testGoodMethodWithEnoughTime() local
124 assertEquals("x", proxy.sleepThenReturnInput("x")); in testGoodMethodWithEnoughTime()
131 Sample proxy = service.newProxy( in testGoodMethodWithNotEnoughTime() local
135 proxy.sleepThenReturnInput("x"); in testGoodMethodWithNotEnoughTime()
149 Sample proxy = service.newProxy( in testBadMethodWithEnoughTime() local
153 proxy.sleepThenThrowException(); in testBadMethodWithEnoughTime()
162 Sample proxy = service.newProxy( in testBadMethodWithNotEnoughTime() local
166 proxy.sleepThenThrowException(); in testBadMethodWithNotEnoughTime()
/external/v8/src/
Dscopes.cc418 if (function_ != NULL && function_->proxy()->raw_name() == name) { in LookupFunctionVar()
419 return function_->proxy()->var(); in LookupFunctionVar()
428 VariableProxy* proxy = factory->NewVariableProxy(var); in LookupFunctionVar() local
430 proxy, mode, this, RelocInfo::kNoPosition); in LookupFunctionVar()
550 const AstRawString* name = decl->proxy()->raw_name(); in CheckConflictingVarDeclarations()
874 PrintName(function_->proxy()->raw_name()); in Print()
900 PrintVar(n1, function_->proxy()->var()); in Print()
963 Variable* Scope::LookupRecursive(VariableProxy* proxy, in LookupRecursive() argument
975 Variable* var = LookupLocal(proxy->raw_name()); in LookupRecursive()
989 var = LookupFunctionVar(proxy->raw_name(), factory); in LookupRecursive()
[all …]
/external/guava/guava/src/com/google/common/reflect/
DAbstractInvocationHandler.java63 @Override public final Object invoke(Object proxy, Method method, @Nullable Object[] args) in invoke() argument
78 if (proxy == arg) { in invoke()
81 return isProxyOfSameInterfaces(arg, proxy.getClass()) in invoke()
87 return handleInvocation(proxy, method, args); in invoke()
98 protected abstract Object handleInvocation(Object proxy, Method method, Object[] args) in handleInvocation() argument

12345678910>>...20