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.java290 for (NetworkInterface ni : nis) { in getByName()
291 if (ni.getName().equals(name)) { in getByName()
292 return ni; in getByName()
315 for (NetworkInterface ni : nis) { in getByIndex()
316 if (ni.getIndex() == index) { in getByIndex()
317 return ni; in getByIndex()
355 for (NetworkInterface ni : nis) { in getByInetAddress()
356 for (InetAddress inetAddress : Collections.list(ni.getInetAddresses())) { in getByInetAddress()
358 return ni; in getByInetAddress()
426 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/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.java226 Collections.list(nifs).forEach(ni -> actualNiNames.add(ni.getName())); in testGetNetworkInterfaces()
/libcore/ojluni/src/main/java/sun/nio/ch/
DDatagramChannelImpl.java290 NetworkInterface ni = NetworkInterface.getByInetAddress(ia); in getOption() local
291 if (ni == null) in getOption()
293 return (T) ni; in getOption()
299 NetworkInterface ni = NetworkInterface.getByIndex(index); in getOption()
300 if (ni == null) in getOption()
302 return (T) ni; in getOption()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java1109 for (NetworkInterface ni : nis) { in test_if_nametoindex_if_indextoname()
1110 int index = ni.getIndex(); in test_if_nametoindex_if_indextoname()
1111 String name = ni.getName(); in test_if_nametoindex_if_indextoname()