/dalvik/libcore/luni/src/main/java/java/net/ |
D | InetSocketAddress.java | 37 private int port; field in InetSocketAddress 48 public InetSocketAddress(int port) { in InetSocketAddress() argument 49 this((InetAddress) null, port); in InetSocketAddress() local 64 public InetSocketAddress(InetAddress address, int port) { in InetSocketAddress() argument 65 if (port < 0 || port > 65535) { in InetSocketAddress() 74 this.port = port; in InetSocketAddress() 93 public InetSocketAddress(String host, int port) { in InetSocketAddress() argument 94 this(host, port, true); in InetSocketAddress() 101 InetSocketAddress(String host, int port, boolean needResolved) { in InetSocketAddress() argument 102 if (host == null || port < 0 || port > 65535) { in InetSocketAddress() [all …]
|
D | ProxySelectorImpl.java | 126 String port = null; in selectHttpProxy() local 139 port = getSystemPropertyOrAlternative("http.proxyPort", //$NON-NLS-1$ in selectHttpProxy() 144 port = getSystemPropertyOrAlternative("proxyPort", //$NON-NLS-1$ in selectHttpProxy() 150 port = getSystemProperty( in selectHttpProxy() 155 return createProxy(type, host, port, defaultPort); in selectHttpProxy() 163 String port = null; in selectHttpsProxy() local 170 port = getSystemProperty( in selectHttpsProxy() 177 port = getSystemProperty( in selectHttpsProxy() 183 return createProxy(type, host, port, defaultPort); in selectHttpsProxy() 191 String port = null; in selectFtpProxy() local [all …]
|
D | SocketImpl.java | 55 protected int port; field in SocketImpl 125 protected abstract void bind(InetAddress address, int port) in bind() argument 148 protected abstract void connect(String host, int port) throws IOException; in connect() argument 162 protected abstract void connect(InetAddress address, int port) in connect() argument 250 return port; in getPort() 327 getInetAddress()).append(",port=").append(port).append( in toString() 350 .sendDatagram2(fd, buffer, offset, count, port, address); in write()
|
D | DatagramPacket.java | 38 int port = -1; // The default port number is -1 field in DatagramPacket 114 public DatagramPacket(byte[] data, int length, InetAddress host, int port) { in DatagramPacket() argument 115 this(data, 0, length, host, port); in DatagramPacket() 167 return port; in getPort() 243 port = aPort; in setPort() 315 port = inetAddr.getPort(); in setSocketAddress()
|
/dalvik/libcore/security/src/test/java/tests/security/permissions/ |
D | JavaNetSocketTest.java | 96 int port = -1; in test_ctor() field in JavaNetSocketTest.TestSecurityManager 100 port = -1; in test_ctor() 103 public void checkConnect(String host, int port) { in test_ctor() argument 105 this.port = port; in test_ctor() 115 int port = 80; in test_ctor() local 122 new Socket(host, port); in test_ctor() 125 assertEquals("Argument of checkConnect is not correct", port, s.port); in test_ctor() 128 new Socket(host, port, true); in test_ctor() 131 assertEquals("Argument of checkConnect is not correct", port, s.port); in test_ctor() 134 new Socket(host, port, InetAddress.getByAddress(new byte[] {0,0,0,0}), 0); in test_ctor() [all …]
|
D | JavaNetMulticastSocketTest.java | 79 int port = 0; in test_ctor() field in JavaNetMulticastSocketTest.TestSecurityManager 82 port = 0; in test_ctor() 85 public void checkListen(int port) { in test_ctor() argument 87 this.port = port; in test_ctor() 88 super.checkListen(port); in test_ctor() 99 int port = Support_PortManager.getNextPortForUDP(); in test_ctor() local 102 new MulticastSocket(port); in test_ctor() 104 assertEquals("Argument of checkListen is not correct", port, s.port); in test_ctor() 109 assertEquals("Argument of checkListen is not correct", 0, s.port); in test_ctor() 114 assertEquals("Argument of checkListen is not correct", 0, s.port); in test_ctor() [all …]
|
D | JavaNetDatagramSocketTest.java | 80 int port = 0; in test_ctor() field in JavaNetDatagramSocketTest.TestSecurityManager 83 port = 0; in test_ctor() 86 public void checkListen(int port) { in test_ctor() argument 88 this.port = port; in test_ctor() 99 int port = Support_PortManager.getNextPortForUDP(); in test_ctor() local 101 DatagramSocket s1 = new DatagramSocket(port); in test_ctor() 103 assertEquals("Argument of checkListen is not correct", port, s.port); in test_ctor() 108 assertEquals("Argument of checkListen is not correct", 0, s.port); in test_ctor() 110 port = Support_PortManager.getNextPortForUDP(); in test_ctor() 112 DatagramSocket s3 = new DatagramSocket(new InetSocketAddress(port)); in test_ctor() [all …]
|
D | JavaNetServerSocketTest.java | 82 int port = 0; in test_ctor() field in JavaNetServerSocketTest.TestSecurityManager 85 port = 0; in test_ctor() 88 public void checkListen(int port) { in test_ctor() argument 90 this.port = port; in test_ctor() 104 assertEquals("Argument of checkListen is not correct", 8888, s.port); in test_ctor() 110 assertEquals("Argument of checkListen is not correct", 8888, s.port); in test_ctor() 117 assertEquals("Argument of checkListen is not correct", 0, s.port); in test_ctor() 123 assertEquals("Argument of checkListen is not correct", 8888, s.port); in test_ctor()
|
/dalvik/libcore/security/src/main/java/java/security/cert/ |
D | LDAPCertStoreParameters.java | 34 private final int port; field in LDAPCertStoreParameters 48 public LDAPCertStoreParameters(String serverName, int port) { in LDAPCertStoreParameters() argument 49 this.port = port; in LDAPCertStoreParameters() 67 this.port = DEFAULT_LDAP_PORT; in LDAPCertStoreParameters() 81 this.port = DEFAULT_LDAP_PORT; in LDAPCertStoreParameters() 95 return new LDAPCertStoreParameters(serverName, port); in clone() 105 return port; in getPort()
|
/dalvik/libcore/x-net/src/main/java/javax/net/ |
D | DefaultSocketFactory.java | 41 public Socket createSocket(String host, int port) throws IOException, in createSocket() argument 43 return new Socket(host, port); in createSocket() 46 public Socket createSocket(String host, int port, InetAddress localHost, in createSocket() argument 48 return new Socket(host, port, localHost, localPort); in createSocket() 51 public Socket createSocket(InetAddress host, int port) throws IOException { in createSocket() argument 52 return new Socket(host, port); in createSocket() 55 public Socket createSocket(InetAddress address, int port, in createSocket() argument 57 return new Socket(address, port, localAddress, localPort); in createSocket()
|
D | DefaultServerSocketFactory.java | 37 public ServerSocket createServerSocket(int port) throws IOException { in createServerSocket() argument 38 return new ServerSocket(port); in createServerSocket() 41 public ServerSocket createServerSocket(int port, int backlog) in createServerSocket() argument 43 return new ServerSocket(port, backlog); in createServerSocket() 46 public ServerSocket createServerSocket(int port, int backlog, in createServerSocket() argument 48 return new ServerSocket(port, backlog, iAddress); in createServerSocket()
|
D | SocketFactory.java | 96 public abstract Socket createSocket(String host, int port) in createSocket() argument 123 public abstract Socket createSocket(String host, int port, in createSocket() argument 142 public abstract Socket createSocket(InetAddress host, int port) in createSocket() argument 166 public abstract Socket createSocket(InetAddress address, int port, in createSocket() argument
|
D | ServerSocketFactory.java | 86 public abstract ServerSocket createServerSocket(int port) in createServerSocket() argument 102 public abstract ServerSocket createServerSocket(int port, int backlog) in createServerSocket() argument 121 public abstract ServerSocket createServerSocket(int port, int backlog, in createServerSocket() argument
|
/dalvik/libcore/x-net/src/main/java/javax/net/ssl/ |
D | SSLSocket.java | 62 protected SSLSocket(String host, int port) throws IOException, in SSLSocket() argument 64 super(host, port); in SSLSocket() 82 protected SSLSocket(InetAddress address, int port) throws IOException { in SSLSocket() argument 83 super(address, port); in SSLSocket() 107 protected SSLSocket(String host, int port, InetAddress clientAddress, in SSLSocket() argument 109 super(host, port, clientAddress, clientPort); in SSLSocket() 131 protected SSLSocket(InetAddress address, int port, in SSLSocket() argument 133 super(address, port, clientAddress, clientPort); in SSLSocket()
|
D | SSLServerSocket.java | 59 protected SSLServerSocket(int port) throws IOException { in SSLServerSocket() argument 60 super(port); in SSLServerSocket() 77 protected SSLServerSocket(int port, int backlog) throws IOException { in SSLServerSocket() argument 78 super(port, backlog); in SSLServerSocket() 99 protected SSLServerSocket(int port, int backlog, InetAddress address) in SSLServerSocket() argument 101 super(port, backlog, address); in SSLServerSocket()
|
D | DefaultSSLSocketFactory.java | 46 public Socket createSocket(Socket s, String host, int port, in createSocket() argument 54 public Socket createSocket(String host, int port) throws IOException, in createSocket() argument 62 public Socket createSocket(String host, int port, InetAddress localHost, in createSocket() argument 70 public Socket createSocket(InetAddress host, int port) throws IOException { in createSocket() argument 77 public Socket createSocket(InetAddress address, int port, in createSocket() argument
|
D | SSLEngine.java | 35 private final int port; field in SSLEngine 44 port = -1; in SSLEngine() 57 protected SSLEngine(String host, int port) { in SSLEngine() argument 59 this.port = port; in SSLEngine() 175 return port; in getPeerPort()
|
D | DefaultSSLServerSocketFactory.java | 42 public ServerSocket createServerSocket(int port) throws IOException { in createServerSocket() argument 47 public ServerSocket createServerSocket(int port, int backlog) in createServerSocket() argument 52 public ServerSocket createServerSocket(int port, int backlog, in createServerSocket() argument
|
/dalvik/libcore/nio/src/test/java/org/apache/harmony/nio/tests/java/nio/channels/ |
D | MockSecurityManager.java | 24 MockSecurityManager(int port) { in MockSecurityManager() argument 26 this.validPort = port; in MockSecurityManager() 37 public void checkConnect(String host, int port) { in checkConnect() argument 48 super.checkConnect(host, port); in checkConnect() 51 public void checkAccept(String host, int port) { in checkAccept() argument 60 if (this.validPort != port) { in checkAccept() 67 super.checkAccept(host, port); in checkAccept()
|
/dalvik/libcore/x-net/src/main/java/org/apache/harmony/xnet/provider/jsse/ |
D | OpenSSLSocketFactoryImpl.java | 64 public Socket createSocket(String host, int port) throws IOException, UnknownHostException { in createSocket() argument 65 return new OpenSSLSocketImpl(host, port, (SSLParameters) sslParameters.clone()); in createSocket() 68 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) in createSocket() argument 70 …return new OpenSSLSocketImpl(host, port, localHost, localPort, (SSLParameters) sslParameters.clone… in createSocket() 73 public Socket createSocket(InetAddress host, int port) throws IOException { in createSocket() argument 74 return new OpenSSLSocketImpl(host, port, (SSLParameters) sslParameters.clone()); in createSocket() 77 … public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort) in createSocket() argument 79 …return new OpenSSLSocketImpl(address, port, localAddress, localPort, (SSLParameters) sslParameters… in createSocket() 82 …public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException { in createSocket() argument 83 …return new OpenSSLSocketImplWrapper(s, host, port, autoClose, (SSLParameters) sslParameters.clone(… in createSocket()
|
D | OpenSSLServerSocketFactoryImpl.java | 58 public ServerSocket createServerSocket(int port) throws IOException { in createServerSocket() argument 59 return new OpenSSLServerSocketImpl(port, (SSLParameters) sslParameters.clone()); in createServerSocket() 62 public ServerSocket createServerSocket(int port, int backlog) in createServerSocket() argument 64 return new OpenSSLServerSocketImpl(port, backlog, (SSLParameters) sslParameters.clone()); in createServerSocket() 67 public ServerSocket createServerSocket(int port, int backlog, in createServerSocket() argument 69 …return new OpenSSLServerSocketImpl(port, backlog, iAddress, (SSLParameters) sslParameters.clone()); in createServerSocket()
|
D | ClientSessionContext.java | 160 public SSLSession getSession(String host, int port) { in getSession() argument 162 SSLSession session = sessions.get(new HostAndPort(host, port)); in getSession() 170 byte[] data = persistentCache.getSessionData(host, port); in getSession() 172 SSLSession session = toSession(data, host, port); in getSession() 175 sessions.put(new HostAndPort(host, port), session); in getSession() 205 final int port; field in ClientSessionContext.HostAndPort 207 HostAndPort(String host, int port) { in HostAndPort() argument 209 this.port = port; in HostAndPort() 214 return host.hashCode() * 31 + port; in hashCode() 221 return host.equals(other.host) && port == other.port; in equals()
|
/dalvik/libcore/luni/src/main/java/org/apache/harmony/luni/platform/ |
D | OSNetworkSystem.java | 118 public void connectDatagram(FileDescriptor aFD, int port, int trafficClass, in connectDatagram() argument 120 connectDatagramImpl2(aFD, port, trafficClass, inetAddress); in connectDatagram() 124 InetAddress inetAddress, int port) throws IOException{ in connect() argument 125 return connectSocketImpl(aFD, trafficClass, inetAddress, port); in connect() 130 int trafficClass, InetAddress inetAddress, int port, int step, in connectWithTimeout() argument 133 inetAddress, port, step, context); in connectWithTimeout() 144 public void bind(FileDescriptor aFD, int port, InetAddress inetAddress) in bind() argument 146 socketBindImpl(aFD, port, inetAddress); in bind() 149 public boolean bind2(FileDescriptor aFD, int port, boolean bindToDevice, in bind2() argument 151 return socketBindImpl2(aFD, port, bindToDevice, inetAddress); in bind2() [all …]
|
/dalvik/libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/ |
D | SSLContextSpiImpl.java | 61 public SSLEngine engineCreateSSLEngine(String host, int port) { in engineCreateSSLEngine() argument 64 if (port < 0 || port > max) { in engineCreateSSLEngine() 71 return new tmpSSLEngine(host, port); in engineCreateSSLEngine()
|
/dalvik/libcore/x-net/src/test/java/tests/api/javax/net/ssl/ |
D | SSLEngineTest.java | 99 int port = 1010; in test_ConstructorLjava_lang_StringI01() local 100 SSLEngine e = getEngine(null, port); in test_ConstructorLjava_lang_StringI01() 102 assertEquals(e.getPeerPort(), port); in test_ConstructorLjava_lang_StringI01() local 110 e = getEngine(null, port); in test_ConstructorLjava_lang_StringI01() 117 e = getEngine(null, port); in test_ConstructorLjava_lang_StringI01() 138 int port = 8080; in test_ConstructorLjava_lang_StringI02() local 139 SSLEngine e = getEngine(host, port); in test_ConstructorLjava_lang_StringI02() 141 assertEquals(e.getPeerPort(), port); in test_ConstructorLjava_lang_StringI02() local 584 int port = 8080; in test_unwrap_02() local 588 SSLEngine sse = getEngine(host, port); in test_unwrap_02() [all …]
|