/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | ProxyTest.java | 33 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal() local 34 assertEquals(Proxy.Type.HTTP, proxy.type()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal() 35 assertEquals(address, proxy.address()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal() 38 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal() 39 assertEquals(Proxy.Type.SOCKS, proxy.type()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal() 40 assertEquals(address, proxy.address()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal() 43 proxy = Proxy.NO_PROXY; in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal() 44 assertEquals(Proxy.Type.DIRECT, proxy.type()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal() 45 assertNull(proxy.address()); in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_Normal() 52 Proxy proxy = null; in test_ConstructorLjava_net_ProxyLjava_net_SocketAddress_IllegalAddress() local [all …]
|
D | ProxySelectorTest.java | 513 private void assertProxyEquals(List selectedProxyList, Proxy proxy) { in assertProxyEquals() argument 516 assertEquals((Proxy) selectedProxyList.get(0), proxy); in assertProxyEquals() 527 Proxy proxy = new Proxy(type, sa); in assertProxyEquals() local 528 assertProxyEquals(selectedProxyList, proxy); in assertProxyEquals()
|
/libcore/ojluni/src/main/java/sun/util/logging/ |
D | LoggingSupport.java | 48 private static final LoggingProxy proxy = field in LoggingSupport 71 return proxy != null; in isAvailable() 75 if (proxy == null) in ensureAvailable() 81 return proxy.getLoggerNames(); in getLoggerNames() 85 return proxy.getLoggerLevel(loggerName); in getLoggerLevel() 90 proxy.setLoggerLevel(loggerName, levelName); in setLoggerLevel() 95 return proxy.getParentLoggerName(loggerName); in getParentLoggerName() 100 return proxy.getLogger(name); in getLogger() 105 return proxy.getLevel(logger); in getLevel() 110 proxy.setLevel(logger, newLevel); in setLevel() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/internal/net/www/protocol/http/ |
D | HttpURLConnectionTest.java | 141 Proxy proxy = Proxy.NO_PROXY; in select() local 144 proxy = new Proxy(Proxy.Type.HTTP, in select() 148 result.add(proxy); in select() 189 MockServer proxy = new MockServer("proxy"); in testUsingProxy() local 196 proxy.port()))); in testUsingProxy() 204 proxy.start(); in testUsingProxy() 206 if (!proxy.started) bound.wait(5000); in testUsingProxy() 213 proxy.join(); in testUsingProxy() 216 assertTrue("Proxy server was not used", proxy.accepted); in testUsingProxy() 229 MockServer proxy = new MockServer("proxy"); in testUsingProxySelector() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | ProxyTest.java | 55 public Object invoke(Object proxy, Method method, Object[] args) in invoke() argument 72 Class proxy = Proxy.getProxyClass(Support_Proxy_I1.class in test_getProxyClassLjava_lang_ClassLoader$Ljava_lang_Class() local 76 proxy.getSuperclass() == Proxy.class); in test_getProxyClassLjava_lang_ClassLoader$Ljava_lang_Class() 78 .isProxyClass(proxy)); in test_getProxyClassLjava_lang_ClassLoader$Ljava_lang_Class() 104 public Object invoke(Object proxy, Method method, Object[] args) in test_ProxyLjava_lang_reflect_InvocationHandler() 122 public Object invoke(Object proxy, Method method, Object[] args) in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler() 125 return new Boolean(proxy == args[0]); in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler() 142 Support_Proxy_I1 proxy = (Support_Proxy_I1) p; in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler() local 143 assertTrue("Failed identity test ", proxy.equals(proxy)); in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler() 144 assertTrue("Failed not equals test ", !proxy.equals("")); in test_newProxyInstanceLjava_lang_ClassLoader$Ljava_lang_ClassLjava_lang_reflect_InvocationHandler() [all …]
|
/libcore/ojluni/src/main/java/sun/net/ |
D | ApplicationProxy.java | 36 private ApplicationProxy(Proxy proxy) { in ApplicationProxy() argument 37 super(proxy.type(), proxy.address()); in ApplicationProxy() 40 public static ApplicationProxy create(Proxy proxy) { in create() argument 41 return new ApplicationProxy(proxy); in create()
|
D | NetworkClient.java | 49 protected Proxy proxy = Proxy.NO_PROXY; field in NetworkClient 154 if (proxy != null) { in doConnect() 155 if (proxy.type() == Proxy.Type.SOCKS) { in doConnect() 159 return new Socket(proxy); in doConnect() 161 } else if (proxy.type() == Proxy.Type.DIRECT) { in doConnect()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | OldProxyTest.java | 28 Proxy proxy = new Proxy(Proxy.Type.SOCKS, address); in test_address() local 29 assertEquals(address, proxy.address()); in test_address() 61 Proxy proxy = new Proxy(Proxy.Type.HTTP, address); in test_type() local 62 assertEquals(Proxy.Type.HTTP, proxy.type()); in test_type() 64 proxy = new Proxy(Proxy.Type.SOCKS, address); in test_type() 65 assertEquals(Proxy.Type.SOCKS, proxy.type()); in test_type() 67 proxy = Proxy.NO_PROXY; in test_type() 68 assertEquals(Proxy.Type.DIRECT, proxy.type()); in test_type()
|
D | FtpURLConnectionTest.java | 139 Proxy proxy = Proxy.NO_PROXY; in testConnectOverProxy_noProxy() local 142 URLConnection connection = fileUrl.openConnection(proxy); in testConnectOverProxy_noProxy() 145 assertEquals(Proxy.Type.DIRECT, proxy.type()); in testConnectOverProxy_noProxy() 157 Proxy proxy = countingProxy.asProxy(); in testCountingProxy() local 158 assertEquals(Proxy.Type.HTTP, proxy.type()); in testCountingProxy() 159 SocketAddress address = proxy.address(); in testCountingProxy() 180 Proxy proxy = countingProxy.asProxy(); in testConnectOverProxy_explicit_http_uses_direct_connection() local 181 URLConnection connection = fileUrl.openConnection(proxy); in testConnectOverProxy_explicit_http_uses_direct_connection() 202 Proxy proxy = countingProxy.asProxy(); in testConnectOverProxy_implicit_http_fails() local 203 SingleProxySelector proxySelector = new SingleProxySelector(proxy); in testConnectOverProxy_implicit_http_fails() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ProxyTest.java | 34 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { 64 Object proxy = Proxy.newProxyInstance(loaderA, interfacesA, invocationHandlerB); in testClassLoaderDoesNotNeedToSeeInvocationHandlerLoader() local 65 assertEquals(loaderA, proxy.getClass().getClassLoader()); in testClassLoaderDoesNotNeedToSeeInvocationHandlerLoader() 66 assertEquals("foo", proxy.getClass().getMethod("echo", String.class).invoke(proxy, "foo")); in testClassLoaderDoesNotNeedToSeeInvocationHandlerLoader() 249 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testEquals() 262 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testHashCode() 272 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testToString() 282 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testReturnTypeDoesNotSatisfyAllConstraintsWithLenientCaller() 294 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testReturnTypeDoesNotSatisfyAllConstraintsWithStrictCaller() 395 public Object invoke(Object proxy, Method method, Object[] args) throws Throwable { in invoke() argument [all …]
|
D | ReflectionTest.java | 542 @Override public Object invoke(Object proxy, Method method, Object[] args) { in testProxyMethodGetExceptions() 547 Object proxy = Proxy.newProxyInstance(getClass().getClassLoader(), in testProxyMethodGetExceptions() local 549 assertSetEquals(proxy.getClass().getMethod("foo").getExceptionTypes(), in testProxyMethodGetExceptions() 551 assertSetEquals(proxy.getClass().getMethod("foo", Void.class).getExceptionTypes()); in testProxyMethodGetExceptions()
|
/libcore/ojluni/src/main/java/java/beans/ |
D | PropertyChangeSupport.java | 111 PropertyChangeListenerProxy proxy = in addPropertyChangeListener() local 114 addPropertyChangeListener(proxy.getPropertyName(), in addPropertyChangeListener() 115 proxy.getListener()); in addPropertyChangeListener() 137 PropertyChangeListenerProxy proxy = in removePropertyChangeListener() local 140 removePropertyChangeListener(proxy.getPropertyName(), in removePropertyChangeListener() 141 proxy.getListener()); in removePropertyChangeListener()
|
/libcore/luni/src/main/java/libcore/net/http/ |
D | HttpURLConnectionFactory.java | 107 @NonNull Proxy proxy) throws IOException { in openConnection() argument 108 return mFactory.openConnection(url, socketFactory, proxy); in openConnection()
|
/libcore/ojluni/src/main/java/java/lang/reflect/ |
D | Proxy.java | 975 public static InvocationHandler getInvocationHandler(Object proxy) in getInvocationHandler() argument 981 if (!isProxyClass(proxy.getClass())) { in getInvocationHandler() 985 final Proxy p = (Proxy) proxy; in getInvocationHandler() 1004 private static Object invoke(Proxy proxy, Method method, Object[] args) throws Throwable { in invoke() argument 1005 InvocationHandler h = proxy.h; in invoke() 1006 return h.invoke(proxy, method, args); in invoke()
|
D | InvocationHandler.java | 93 public Object invoke(Object proxy, Method method, Object[] args) in invoke() argument
|
/libcore/luni/src/test/java/libcore/java/util/beans/ |
D | PropertyChangeSupportTest.java | 197 PropertyChangeListenerProxy proxy = new PropertyChangeListenerProxy("a", listener); in testAddingAProxy() local 198 support.addPropertyChangeListener("b", proxy); in testAddingAProxy() 323 PropertyChangeListenerProxy proxy = (PropertyChangeListenerProxy) listener; in describe() local 324 return proxy.getPropertyName() + " to " + describe(proxy.getListener()); in describe()
|
/libcore/ojluni/src/main/java/sun/net/ftp/impl/ |
D | FtpClient.java | 57 private Proxy proxy; field in FtpClient 649 if (proxy != null) { in openPassiveDataConnection() 650 if (proxy.type() == Proxy.Type.SOCKS) { in openPassiveDataConnection() 655 return new Socket(proxy); in openPassiveDataConnection() 735 if (proxy != null && proxy.type() == Proxy.Type.SOCKS) { in openDataConnection() 905 proxy = p; in setProxy() 917 return proxy; in getProxy() 942 if (proxy != null) { in doConnect() 943 if (proxy.type() == Proxy.Type.SOCKS) { in doConnect() 948 return new Socket(proxy); in doConnect()
|
/libcore/ojluni/annotations/sdk/nullability/java/lang/reflect/ |
D | Proxy.annotated.java | 43 …cationHandler getInvocationHandler(@libcore.util.NonNull java.lang.Object proxy) throws java.lang.… in getInvocationHandler() argument
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | SerializationTest.java | 404 public Object invoke(Object proxy, Method method, Object[] args) { in invoke() argument 436 public Object invoke(Object proxy, Method method, Object[] args) { in invoke() argument
|
/libcore/ojluni/src/main/java/java/net/ |
D | Socket.java | 117 public Socket(Proxy proxy) { in Socket() argument 119 if (proxy == null) { in Socket() 122 Proxy p = proxy == Proxy.NO_PROXY ? Proxy.NO_PROXY in Socket() 123 : sun.net.ApplicationProxy.create(proxy); in Socket()
|
D | URL.java | 1038 public URLConnection openConnection(Proxy proxy) in openConnection() argument 1040 if (proxy == null) { in openConnection() 1045 Proxy p = proxy == Proxy.NO_PROXY ? Proxy.NO_PROXY : sun.net.ApplicationProxy.create(proxy); in openConnection()
|
D | SocksSocketImpl.java | 64 SocksSocketImpl(Proxy proxy) { in SocksSocketImpl() argument 65 SocketAddress a = proxy.address(); in SocksSocketImpl()
|
/libcore/ojluni/annotations/hiddenapi/java/lang/reflect/ |
D | Proxy.java | 96 public static java.lang.reflect.InvocationHandler getInvocationHandler(java.lang.Object proxy) in getInvocationHandler() argument 103 java.lang.reflect.Proxy proxy, java.lang.reflect.Method method, java.lang.Object[] args) in invoke() argument
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | SocksSocketImpl.java | 42 SocksSocketImpl(java.net.Proxy proxy) { in SocksSocketImpl() argument
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | Socket.annotated.java | 40 public Socket(java.net.Proxy proxy) { throw new RuntimeException("Stub!"); } in Socket() argument
|