/libcore/luni/src/test/java/libcore/java/net/ |
D | NetworkInterfaceTest.java | 101 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testInterfaceProperties() 102 assertEquals(nif, NetworkInterface.getByName(nif.getName())); in testInterfaceProperties() 104 if (nif.isUp() == false) { in testInterfaceProperties() 108 if (isEthernet(nif.getName())) { in testInterfaceProperties() 109 for (InterfaceAddress ia : nif.getInterfaceAddresses()) { in testInterfaceProperties() 119 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testGetByIndex() 120 int nifIndex = nif.getIndex(); in testGetByIndex() 124 assertEquals(nif, NetworkInterface.getByIndex(nifIndex)); in testGetByIndex() 139 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testDumpAll() 140 System.err.println(nif); 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 | 270 void init(byte addr[], NetworkInterface nif) in init() argument 275 if (nif != null) { in init() 276 this.scope_id = deriveNumericScope(ipaddress, nif); in init() 278 this.scope_ifname = nif; in init() 429 Inet6Address (String hostName, byte addr[], NetworkInterface nif) in Inet6Address() argument 433 initif (hostName, addr, nif); in Inet6Address() 464 NetworkInterface nif) in getByAddress() argument 474 return new Inet6Address(host, addr, nif); in getByAddress() 517 NetworkInterface nif = NetworkInterface.getByName (ifname); in initstr() local 518 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 | 133 NetworkInterface nif = NetworkInterface.getByInetAddress(address); in bind() local 134 if (nif == null) { in bind() 138 … address = Inet6Address.getByAddress(address.getHostName(), address.getAddress(), nif.getIndex()); in bind() 452 NetworkInterface nif = NetworkInterface.getByInetAddress((InetAddress) value); in setSocketOptionErrno() local 453 if (nif == null) { in setSocketOptionErrno() 458 Libcore.os.setsockoptIpMreqn(fd, IPPROTO_IP, IP_MULTICAST_IF, nif.getIndex()); in setSocketOptionErrno() 459 Libcore.os.setsockoptInt(fd, IPPROTO_IPV6, IPV6_MULTICAST_IF, nif.getIndex()); in setSocketOptionErrno()
|
/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()
|
/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
|