Home
last modified time | relevance | path

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

/libcore/ojluni/src/main/java/java/net/
DNetworkInterface.java270 for (NetworkInterface ni : nis) { in getByName()
271 if (ni.getName().equals(name)) { in getByName()
272 return ni; in getByName()
294 for (NetworkInterface ni : nis) { in getByIndex()
295 if (ni.getIndex() == index) { in getByIndex()
296 return ni; in getByIndex()
333 for (NetworkInterface ni : nis) { in getByInetAddress()
334 for (InetAddress inetAddress : Collections.list(ni.getInetAddresses())) { in getByInetAddress()
336 return ni; in getByInetAddress()
400 NetworkInterface ni = new NetworkInterface(name, index, null); in getAll() local
[all …]
DMulticastSocket.java519 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getInterface() local
520 Enumeration<InetAddress> addrs = ni.getInetAddresses(); in getInterface()
/libcore/luni/src/main/java/java/math/
DPrimality.java92 BigInt ni = n.getBigInt(); in nextProbablePrime() local
94 if (ni.bitLength() <= 10) { in nextProbablePrime()
95 int l = (int)ni.longInt(); in nextProbablePrime()
102 BigInt startPoint = ni.copy(); in nextProbablePrime()
106 startPoint.addPositiveInt(BigInt.remainderByPositiveInt(ni, 2) + 1); in nextProbablePrime()
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java216 Collections.list(nifs).forEach(ni -> actualNiNames.add(ni.getName())); in testGetNetworkInterfaces()
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramChannelImpl.java306 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getOption() local
307 if (ni == null) in getOption()
309 return (T) ni; in getOption()
315 NetworkInterface ni = NetworkInterface.getByIndex(index); in getOption()
316 if (ni == null) in getOption()
318 return (T) ni; in getOption()
/libcore/luni/src/test/java/libcore/io/
DOsTest.java728 for (NetworkInterface ni : nis) { in test_if_nametoindex_if_indextoname()
729 int index = ni.getIndex(); in test_if_nametoindex_if_indextoname()
730 String name = ni.getName(); in test_if_nametoindex_if_indextoname()