/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
D | NetworkInterfaceTest.java | 22 import java.net.NetworkInterface; 31 Enumeration<NetworkInterface> theInterfaces = null; 37 private NetworkInterface networkInterface1 = null; 39 private NetworkInterface sameAsNetworkInterface1 = null; 41 private NetworkInterface networkInterface2 = null; 161 NetworkInterface in test_getInetAddresses() 171 NetworkInterface in test_getInetAddresses() 203 NetworkInterface.getByName(null)); in test_getByNameLjava_lang_String() 209 NetworkInterface.getByName("8not a name4")); in test_getByNameLjava_lang_String() 218 networkInterface1, NetworkInterface.getByName(theName)); in test_getByNameLjava_lang_String() [all …]
|
D | InterfaceAddressTest.java | 24 import java.net.NetworkInterface; 126 Enumeration<NetworkInterface> netifs = NetworkInterface in setUp() 128 NetworkInterface theInterface = null; in setUp() 149 NetworkInterface anotherNetworkInter = NetworkInterface in setUp()
|
D | MulticastSocketTest.java | 35 import java.net.NetworkInterface; 72 private NetworkInterface loopbackInterface; 73 private NetworkInterface ipv4NetworkInterface; 74 private NetworkInterface ipv6NetworkInterface; 81 loopbackInterface = NetworkInterface.getByInetAddress(InetAddress.getLoopbackAddress()); in setUp() 86 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); in setUp() 97 NetworkInterface nextInterface = interfaces.nextElement(); in setUp() 160 ipv4NetworkInterface, NetworkInterface.getByInetAddress(mss.getInterface())); in getInterface() 171 NetworkInterface theInterface = mss.getNetworkInterface(); in getNetworkInterface() 327 NetworkInterface networkInterface, InetAddress group, InetAddress group2) in check_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() [all …]
|
D | InetAddressTest.java | 25 import java.net.NetworkInterface; 337 Enumeration<NetworkInterface> nif = NetworkInterface.getNetworkInterfaces(); in test_isReachableLjava_net_NetworkInterfaceII() 338 NetworkInterface netif; in test_isReachableLjava_net_NetworkInterfaceII() 367 NetworkInterface loopbackInterface = null; in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface() 369 Enumeration<NetworkInterface> networkInterfaces = NetworkInterface.getNetworkInterfaces(); in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface() 372 NetworkInterface networkInterface = networkInterfaces.nextElement(); in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface()
|
D | DatagramSocketImplTest.java | 25 import java.net.NetworkInterface; 129 protected void joinGroup(SocketAddress addr, NetworkInterface netInterface) in joinGroup() 140 protected void leaveGroup(SocketAddress addr, NetworkInterface netInterface) in leaveGroup()
|
/libcore/ojluni/src/main/java/java/net/ |
D | NetworkInterface.java | 70 public final class NetworkInterface { class 96 private List<NetworkInterface> childs; 97 private NetworkInterface parent = null; 99 private static final NetworkInterface defaultInterface; 132 NetworkInterface() { in NetworkInterface() method in NetworkInterface 135 NetworkInterface(String name, int index, InetAddress[] addrs) { in NetworkInterface() method in NetworkInterface 251 public Enumeration<NetworkInterface> getSubInterfaces() { in getSubInterfaces() 264 public NetworkInterface getParent() { in getParent() 314 public static NetworkInterface getByName(String name) throws SocketException { in getByName() 319 NetworkInterface[] nis = getAll(); in getByName() [all …]
|
D | Inet6Address.java | 215 NetworkInterface ifname, boolean scope_ifname_set) in Inet6AddressHolder() 246 NetworkInterface scope_ifname; // null 270 void init(byte addr[], NetworkInterface nif) in init() 429 Inet6Address (String hostName, byte addr[], NetworkInterface nif) in Inet6Address() 464 NetworkInterface nif) in getByAddress() 517 NetworkInterface nif = NetworkInterface.getByName (ifname); in initstr() 527 private void initif(String hostName, byte addr[], NetworkInterface nif) in initif() 559 …private static int deriveNumericScope (byte[] thisAddr, NetworkInterface ifc) throws UnknownHostEx… in deriveNumericScope() 579 Enumeration<NetworkInterface> en; in deriveNumericScope() 581 en = NetworkInterface.getNetworkInterfaces(); in deriveNumericScope() [all …]
|
D | MulticastSocket.java | 324 NetworkInterface defaultInterface = NetworkInterface.getDefault(); in joinGroup() 393 public void joinGroup(SocketAddress mcastaddr, NetworkInterface netIf) in joinGroup() 440 public void leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf) in leaveGroup() 527 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getInterface() 558 public void setNetworkInterface(NetworkInterface netIf) in setNetworkInterface() 578 public NetworkInterface getNetworkInterface() throws SocketException { in getNetworkInterface() 585 return new NetworkInterface(addrs[0].getHostName(), 0, addrs); in getNetworkInterface() 587 return NetworkInterface.getByIndex(niIndex); in getNetworkInterface()
|
D | AbstractPlainDatagramSocketImpl.java | 219 protected void joinGroup(SocketAddress mcastaddr, NetworkInterface netIf) in joinGroup() 226 protected abstract void join(InetAddress inetaddr, NetworkInterface netIf) in join() 237 protected void leaveGroup(SocketAddress mcastaddr, NetworkInterface netIf) in leaveGroup() 244 protected abstract void leave(InetAddress inetaddr, NetworkInterface netIf) in leave() 330 if (o == null || !(o instanceof Integer || o instanceof NetworkInterface)) in setOption() 332 if (o instanceof NetworkInterface) { in setOption() 333 o = new Integer(((NetworkInterface)o).getIndex()); in setOption() 402 NetworkInterface networkInterface = NetworkInterface.getByIndex(niIndex); in getNIFirstAddress()
|
D | StandardSocketOptions.java | 296 public static final SocketOption<NetworkInterface> IP_MULTICAST_IF = 297 new StdSocketOption<NetworkInterface>("IP_MULTICAST_IF", NetworkInterface.class);
|
D | DefaultInterface.java | 38 static NetworkInterface getDefault() { in getDefault()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | NetworkInterfaceTest.java | 32 import java.net.NetworkInterface; 53 import static java.net.NetworkInterface.getNetworkInterfaces; 60 NetworkInterface lo = NetworkInterface.getByName("lo"); in testIPv6() 101 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testInterfaceProperties() 102 assertEquals(nif, NetworkInterface.getByName(nif.getName())); in testInterfaceProperties() 119 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testGetByIndex() 124 assertEquals(nif, NetworkInterface.getByIndex(nifIndex)); in testGetByIndex() 129 NetworkInterface lo = NetworkInterface.getByName("lo"); in testLoopback() 139 for (NetworkInterface nif : Collections.list(getNetworkInterfaces())) { in testDumpAll() 179 NetworkInterface lo = NetworkInterface.getByName("lo"); in testInterfaceRemoval() [all …]
|
D | OldDatagramSocketImplFactoryTest.java | 26 import java.net.NetworkInterface; 161 protected void joinGroup(SocketAddress arg0, NetworkInterface arg1) throws IOException { in joinGroup() 169 protected void leaveGroup(SocketAddress arg0, NetworkInterface arg1) throws IOException { in leaveGroup()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | Inet6Address.java | 47 Inet6Address(java.lang.String hostName, byte[] addr, java.net.NetworkInterface nif) in Inet6Address() 58 java.lang.String host, byte[] addr, java.net.NetworkInterface nif) in getByAddress() 73 private void initif(java.lang.String hostName, byte[] addr, java.net.NetworkInterface nif) in initif() 82 private static int deriveNumericScope(byte[] thisAddr, java.net.NetworkInterface ifc) in deriveNumericScope() 156 public java.net.NetworkInterface getScopedInterface() { in getScopedInterface() 235 java.net.NetworkInterface ifname, in Inet6AddressHolder() 248 void init(byte[] addr, java.net.NetworkInterface nif) throws java.net.UnknownHostException { in init() 314 java.net.NetworkInterface scope_ifname;
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | MembershipKeyImpl.java | 29 import java.net.NetworkInterface; 44 private final NetworkInterface interf; 57 NetworkInterface interf, in MembershipKeyImpl() 76 NetworkInterface interf, in Type4() 111 NetworkInterface interf, in Type6() 161 public NetworkInterface networkInterface() { in networkInterface()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | MulticastChannel.java | 29 import java.net.NetworkInterface; 182 MembershipKey join(InetAddress group, NetworkInterface interf) in join() 231 MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source) in join()
|
D | MembershipKey.java | 29 import java.net.NetworkInterface; 167 public abstract NetworkInterface networkInterface(); in networkInterface()
|
/libcore/ojluni/src/test/java/net/InetAddress/ |
D | IsReachable.java | 32 import java.net.NetworkInterface; 43 NetworkInterface inf = NetworkInterface.getByInetAddress(addr); in testIsReachable()
|
D | IsReachableViaLoopbackTest.java | 49 NetworkInterface inf = NetworkInterface.getByInetAddress(addr); in testReachableViaLoopback()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | DatagramChannelMulticastTest.java | 27 import java.net.NetworkInterface; 79 private NetworkInterface ipv4NetworkInterface; 80 private NetworkInterface ipv6NetworkInterface; 81 private NetworkInterface loopbackInterface; 89 loopbackInterface = NetworkInterface.getByInetAddress(InetAddress.getLoopbackAddress()); in setUp() 94 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); in setUp() 106 NetworkInterface nextInterface = interfaces.nextElement(); in setUp() 232 NetworkInterface networkInterface, ProtocolFamily protocolFamily) throws Exception { in check_joinAnySource() 322 ArrayList<NetworkInterface> realInterfaces = new ArrayList<NetworkInterface>(); in test_joinAnySource_networkInterfaces() 323 Enumeration<NetworkInterface> theInterfaces = NetworkInterface.getNetworkInterfaces(); in test_joinAnySource_networkInterfaces() [all …]
|
D | ServerSocketChannelTest.java | 30 import java.net.NetworkInterface; 108 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); in bind_nullBindsToAll() 110 NetworkInterface nic = interfaces.nextElement(); in bind_nullBindsToAll() 191 Enumeration<NetworkInterface> interfaces = NetworkInterface.getNetworkInterfaces(); in bind_loopback() 194 NetworkInterface nic = interfaces.nextElement(); in bind_loopback()
|
D | MembershipKeyTest.java | 26 import java.net.NetworkInterface; 38 private static final NetworkInterface NETWORK_INTERFACE = getNetworkInterface(); 263 private static NetworkInterface getNetworkInterface() { in getNetworkInterface() 265 return NetworkInterface.getByName("lo"); in getNetworkInterface()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | MockDatagramChannel.java | 23 import java.net.NetworkInterface; 120 public MembershipKey join(InetAddress group, NetworkInterface interf) { in join() 125 public MembershipKey join(InetAddress group, NetworkInterface interf, InetAddress source) in join()
|
/libcore/ojluni/src/test/java/net/Socks/ |
D | SocksIPv6Test.java | 46 import java.net.NetworkInterface; 113 List<NetworkInterface> nics = Collections.list(NetworkInterface.getNetworkInterfaces()); in ensureIPv6OnLoopback() 114 for (NetworkInterface nic : nics) { in ensureIPv6OnLoopback()
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | Inet6Address.annotated.java | 36 …t6Address getByAddress(java.lang.String host, byte[] addr, java.net.NetworkInterface nif) throws j… in getByAddress() 64 public java.net.NetworkInterface getScopedInterface() { throw new RuntimeException("Stub!"); } in getScopedInterface()
|