Home
last modified time | relevance | path

Searched refs:proxyFor (Results 1 – 7 of 7) sorted by relevance

/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/stock/
DProxyBuilderTest.java96 ExampleClass proxy = proxyFor(ExampleClass.class).build(); in testExampleOperation()
104 ExampleOperationClass proxy = proxyFor(ExampleOperationClass.class).build(); in testExampleOperation_DexMakerCaching()
111 proxy = proxyFor(ExampleOperationClass.class).build(); in testExampleOperation_DexMakerCaching()
130 ConstructorTakesArguments proxy = proxyFor(ConstructorTakesArguments.class) in testConstruction_SucceedsIfCorrectArgumentsProvided()
140 proxyFor(ConstructorTakesArguments.class).build(); in testConstruction_FailsWithWrongNumberOfArguments()
146 proxyFor(MethodVisibilityClass.class).build(); in testClassIsNotAccessbile_FailsWithUnsupportedOperationException()
153 proxyFor(PrivateVisibilityClass.class).build(); in testPrivateClass_FailsWithUnsupportedOperationException()
164 assertEquals("fake result", proxyFor(ProtectedVisibilityClass.class).build().foo()); in testProtectedVisibility_WorksFine()
179 HasFinalMethod proxy = proxyFor(HasFinalMethod.class).build(); in testCanProxyClassesWithFinalMethods_WillNotCallTheFinalMethod()
192 HasPrivateMethod proxy = proxyFor(HasPrivateMethod.class).build(); in testProxyingPrivateMethods_NotIntercepted()
[all …]
/external/grpc-grpc-java/core/src/test/java/io/grpc/internal/
DProxyDetectorImplTest.java84 ProxyParameters detected = proxyDetector.proxyFor(destination); in override_hostPort()
102 ProxyParameters detected = proxyDetector.proxyFor(destination); in override_hostOnly()
117 assertNull(proxyDetector.proxyFor(destination)); in returnNullWhenNoProxy()
125 ProxyParameters detected = proxyDetector.proxyFor(destination); in detectProxyForUnresolvedDestination()
139 ProxyParameters detected = proxyDetector.proxyFor(destination); in detectProxyForResolvedDestination()
150 ProxyParameters proxy = proxyDetector.proxyFor(destination); in unresolvedProxyAddressBecomesResolved()
162 ProxyParameters detected = proxyDetector.proxyFor(destination); in pickFirstHttpProxy()
170 assertNull(proxyDetector.proxyFor(mock(SocketAddress.class))); in noProxyForNonInetSocket()
190 ProxyParameters detected = proxyDetector.proxyFor(destination); in authRequired()
212 assertNull(proxyDetector.proxyFor(destination)); in proxySelectorReturnsNull()
DDnsNameResolverTest.java503 when(alwaysDetectProxy.proxyFor(any(SocketAddress.class))) in doNotResolveWhenProxyDetected()
/external/grpc-grpc-java/core/src/main/java/io/grpc/internal/
DProxyDetector.java36 ProxyParameters proxyFor(SocketAddress targetServerAddress) throws IOException; in proxyFor() method
DProxyDetectorImpl.java187 public ProxyParameters proxyFor(SocketAddress targetServerAddress) throws IOException { in proxyFor() method in ProxyDetectorImpl
DGrpcUtil.java246 public ProxyParameters proxyFor(SocketAddress targetServerAddress) {
DDnsNameResolver.java215 proxy = proxyDetector.proxyFor(destination);