Searched refs:isa (Results 1 – 6 of 6) sorted by relevance
/libcore/luni/src/test/java/libcore/java/net/ |
D | InetSocketAddressTest.java | 60 InetSocketAddress isa = new InetSocketAddress(ia, 80); in test_ConstructorLInetAddressI() local 61 assertEquals(80,isa.getPort()); in test_ConstructorLInetAddressI() 65 InetSocketAddress isa = new InetSocketAddress((InetAddress)null, 80); in test_ConstructorLInetAddressI() local 66 assertEquals("::", isa.getHostName()); in test_ConstructorLInetAddressI() 82 InetSocketAddress isa = new InetSocketAddress(65535); in test_ConstructorI() local 83 assertEquals("::", isa.getHostName()); in test_ConstructorI() 84 assertEquals(65535, isa.getPort()); in test_ConstructorI() 122 InetSocketAddress isa = new InetSocketAddress(ia, 0); in test_getAddress() local 123 assertEquals(ia, isa.getAddress()); in test_getAddress() 125 InetSocketAddress isa = new InetSocketAddress((InetAddress) null, 0); in test_getAddress() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetSocketAddressTest.java | 49 InetSocketAddress isa = InetSocketAddress.createUnresolved( in test_createUnresolvedLjava_lang_StringI() local 51 assertTrue(isa.isUnresolved()); in test_createUnresolvedLjava_lang_StringI() 52 assertNull(isa.getAddress()); in test_createUnresolvedLjava_lang_StringI() 53 assertEquals(isa.getHostName(), legalHostPortPairs[i].host); in test_createUnresolvedLjava_lang_StringI() 54 assertEquals(isa.getPort(), legalHostPortPairs[i].port); in test_createUnresolvedLjava_lang_StringI()
|
/libcore/luni/src/main/java/java/net/ |
D | DatagramSocket.java | 515 InetSocketAddress isa = (InetSocketAddress) peer; in connect() local 516 if (isa.getAddress() == null) { in connect() 517 throw new SocketException("Host is unresolved: " + isa.getHostName()); in connect() 524 this.address = isa.getAddress(); in connect() 525 this.port = isa.getPort(); in connect()
|
/libcore/luni/src/main/java/java/nio/ |
D | DatagramChannelImpl.java | 292 InetSocketAddress isa = (InetSocketAddress) socketAddress; in send() local 293 if (isa.getAddress() == null) { in send() 297 if (isConnected() && !connectAddress.equals(isa)) { in send() 306 sendCount = IoBridge.sendto(fd, source, 0, isa.getAddress(), isa.getPort()); in send()
|
/libcore/luni/src/test/java/libcore/io/ |
D | OsTest.java | 139 InetSocketAddress isa = (InetSocketAddress) Libcore.os.getsockname(fd); in checkSockName() local 141 checkNoName(isa); in checkSockName() 143 assertEquals(address, isa.getAddress()); in checkSockName() 148 InetSocketAddress isa = (InetSocketAddress) sa; in checkNoName() local 149 assertEquals(0, isa.getAddress().getAddress().length); in checkNoName()
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 626 InetSocketAddress isa = (InetSocketAddress) sa; in getSocketLocalAddress() local 627 return isa.getAddress(); in getSocketLocalAddress() 636 InetSocketAddress isa = (InetSocketAddress) sa; in getSocketLocalPort() local 637 return isa.getPort(); in getSocketLocalPort()
|