Home
last modified time | relevance | path

Searched refs:ni (Results 1 – 5 of 5) sorted by relevance

/libcore/ojluni/src/main/java/java/net/
DNetworkInterface.java299 for (NetworkInterface ni : nis) { in getByName()
300 if (ni.getName().equals(name)) { in getByName()
301 return ni; in getByName()
326 for (NetworkInterface ni : nis) { in getByIndex()
327 if (ni.getIndex() == index) { in getByIndex()
328 return ni; in getByIndex()
366 for (NetworkInterface ni : nis) { in getByInetAddress()
367 for (InetAddress inetAddress : Collections.list(ni.getInetAddresses())) { in getByInetAddress()
369 return ni; in getByInetAddress()
462 NetworkInterface ni = new NetworkInterface(name, index, null); in getAll() local
[all …]
DMulticastSocket.java521 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getInterface() local
522 Enumeration<InetAddress> addrs = ni.getInetAddresses(); in getInterface()
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramChannelImpl.java302 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getOption() local
303 if (ni == null) in getOption()
305 return (T) ni; in getOption()
311 NetworkInterface ni = NetworkInterface.getByIndex(index); in getOption()
312 if (ni == null) in getOption()
314 return (T) ni; in getOption()
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java222 nifs.forEach(ni -> actualNiNames.add(ni.getName())); in testGetNetworkInterfaces_matchesIfaddrs()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java1653 for (NetworkInterface ni : nis) {
1654 int index = ni.getIndex();
1655 String name = ni.getName();