/libcore/luni/src/test/java/libcore/java/net/ |
D | NetworkInterfaceTest.java | 97 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testInterfaceProperties() 98 assertEquals(nif, NetworkInterface.getByName(nif.getName())); in testInterfaceProperties() 100 if (nif.isUp() == false) { in testInterfaceProperties() 104 if (isEthernet(nif.getName())) { in testInterfaceProperties() 105 for (InterfaceAddress ia : nif.getInterfaceAddresses()) { in testInterfaceProperties() 116 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testGetHardwareAddress_returnsNull() 117 assertNull(nif.getHardwareAddress()); in testGetHardwareAddress_returnsNull() 132 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testDumpAll() 133 System.err.println(nif); in testDumpAll() 134 System.err.println(nif.getInterfaceAddresses()); in testDumpAll() [all …]
|
D | InetAddressTest.java | 254 for (NetworkInterface nif in test_isReachable() 256 deserialized.isReachable(nif, 20, 500); in test_isReachable()
|
/libcore/ojluni/src/main/java/java/net/ |
D | Inet6Address.java | 262 void init(byte addr[], NetworkInterface nif) in init() argument 267 if (nif != null) { in init() 268 this.scope_id = deriveNumericScope(ipaddress, nif); in init() 270 this.scope_ifname = nif; in init() 421 Inet6Address (String hostName, byte addr[], NetworkInterface nif) in Inet6Address() argument 425 initif (hostName, addr, nif); in Inet6Address() 456 NetworkInterface nif) in getByAddress() argument 466 return new Inet6Address(host, addr, nif); in getByAddress() 509 NetworkInterface nif = NetworkInterface.getByName (ifname); in initstr() local 510 if (nif == null) { in initstr() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | Inet6Address.java | 47 Inet6Address(java.lang.String hostName, byte[] addr, java.net.NetworkInterface nif) in Inet6Address() argument 58 java.lang.String host, byte[] addr, java.net.NetworkInterface nif) in getByAddress() argument 73 private void initif(java.lang.String hostName, byte[] addr, java.net.NetworkInterface nif) in initif() argument 248 void init(byte[] addr, java.net.NetworkInterface nif) throws java.net.UnknownHostException { in init() argument
|
/libcore/luni/src/main/java/libcore/io/ |
D | IoBridge.java | 92 NetworkInterface nif = NetworkInterface.getByInetAddress(address); in bind() local 93 if (nif == null) { in bind() 97 … address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex()); in bind() 383 NetworkInterface nif = NetworkInterface.getByInetAddress((InetAddress) value); in setSocketOptionErrno() local 384 if (nif == null) { in setSocketOptionErrno() 389 Libcore.os.setsockoptIpMreqn(fd, IPPROTO_IP, IP_MULTICAST_IF, nif.getIndex()); in setSocketOptionErrno() 390 Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF, nif.getIndex()); in setSocketOptionErrno()
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | Inet6Address.annotated.java | 36 …getByAddress(java.lang.String host, byte[] addr, java.net.NetworkInterface nif) throws java.net.Un… in getByAddress() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | InetAddressTest.java | 337 Enumeration<NetworkInterface> nif = NetworkInterface.getNetworkInterfaces(); in test_isReachableLjava_net_NetworkInterfaceII() local 339 while (nif.hasMoreElements()) { in test_isReachableLjava_net_NetworkInterfaceII() 340 netif = nif.nextElement(); in test_isReachableLjava_net_NetworkInterfaceII()
|
D | Inet6AddressTest.java | 711 NetworkInterface nif = null; in test_getByAddressLString$BLNetworkInterface() local 713 Inet6Address.getByAddress("123", null, nif); in test_getByAddressLString$BLNetworkInterface() 720 Inet6Address.getByAddress("123", addr1, nif); in test_getByAddressLString$BLNetworkInterface() 730 Inet6Address.getByAddress("123", addr2, nif); in test_getByAddressLString$BLNetworkInterface()
|