Home
last modified time | relevance | path

Searched refs:addresses (Results 1 – 19 of 19) sorted by relevance

/libcore/luni/src/main/java/java/net/
DNetworkInterface.java46 private final List<InetAddress> addresses; field in NetworkInterface
53 List<InetAddress> addresses, List<InterfaceAddress> interfaceAddresses) { in NetworkInterface() argument
56 this.addresses = addresses; in NetworkInterface()
86 return Collections.enumeration(addresses); in getInetAddresses()
122 List<InetAddress> addresses = new ArrayList<InetAddress>(); in getByNameInternal() local
125 collectIpv6Addresses(interfaceName, interfaceIndex, addresses, interfaceAddresses, in getByNameInternal()
127 collectIpv4Address(interfaceName, addresses, interfaceAddresses); in getByNameInternal()
129 return new NetworkInterface(interfaceName, interfaceIndex, addresses, interfaceAddresses); in getByNameInternal()
146 List<InetAddress> addresses, List<InterfaceAddress> interfaceAddresses, in collectIpv6Addresses() argument
181 addresses.add(inet6Address); in collectIpv6Addresses()
[all …]
DMulticastSocket.java88 Enumeration<InetAddress> addresses = theInterface.getInetAddresses(); in getInterface() local
89 if (addresses != null) { in getInterface()
90 while (addresses.hasMoreElements()) { in getInterface()
91 InetAddress nextAddress = addresses.nextElement(); in getInterface()
DInetAddress.java283 InetAddress[] addresses = null; in parseNumericAddressNoThrow() local
285 addresses = Libcore.os.android_getaddrinfo(address, hints, NETID_UNSET); in parseNumericAddressNoThrow()
288 return (addresses != null) ? addresses[0] : null; in parseNumericAddressNoThrow()
438 InetAddress[] addresses = Libcore.os.android_getaddrinfo(host, hints, netId); in lookupHostByName() local
440 for (InetAddress address : addresses) { in lookupHostByName()
443 addressCache.put(host, netId, addresses); in lookupHostByName()
444 return addresses; in lookupHostByName()
DAddressCache.java117 public void put(String hostname, int netId, InetAddress[] addresses) { in put() argument
118 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(addresses)); in put()
/libcore/dex/src/main/java/com/android/dex/
DCode.java97 final int[] addresses; field in Code.CatchHandler
101 public CatchHandler(int[] typeIndexes, int[] addresses, int catchAllAddress, int offset) { in CatchHandler() argument
103 this.addresses = addresses; in CatchHandler()
113 return addresses; in getAddresses()
DDex.java711 int[] addresses = new int[handlersCount]; in readCatchHandler() local
714 addresses[i] = readUleb128(); in readCatchHandler()
717 return new CatchHandler(typeIndexes, addresses, catchAllAddress, offset); in readCatchHandler()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DNetworkInterfaceTest.java86 Enumeration addresses = networkInterface1.getInetAddresses(); in test_getInetAddresses() local
89 while (addresses.hasMoreElements()) { in test_getInetAddresses()
90 InetAddress theAddress = (InetAddress) addresses.nextElement(); in test_getInetAddresses()
97 addresses = networkInterface2.getInetAddresses(); in test_getInetAddresses()
99 while (addresses.hasMoreElements()) { in test_getInetAddresses()
100 InetAddress theAddress = (InetAddress) addresses in test_getInetAddresses()
260 Enumeration addresses = networkInterface1.getInetAddresses(); in test_getByInetAddressLjava_net_InetAddress() local
261 while (addresses.hasMoreElements()) { in test_getByInetAddressLjava_net_InetAddress()
262 InetAddress theAddress = (InetAddress) addresses.nextElement(); in test_getByInetAddressLjava_net_InetAddress()
273 Enumeration addresses = networkInterface2.getInetAddresses(); in test_getByInetAddressLjava_net_InetAddress() local
[all …]
DInterfaceAddressTest.java146 Enumeration<InetAddress> addresses = theInterface in setUp() local
148 if (addresses != null && addresses.hasMoreElements()) { in setUp()
150 .getByInetAddress(addresses.nextElement()); in setUp()
DMulticastSocketTest.java85 Enumeration<InetAddress> addresses = nextInterface.getInetAddresses(); in setUp() local
86 while (addresses.hasMoreElements()) { in setUp()
87 final InetAddress nextAddress = addresses.nextElement(); in setUp()
137 Enumeration addresses = ipv4NetworkInterface.getInetAddresses(); in test_getInterface() local
138 if (addresses.hasMoreElements()) { in test_getInterface()
139 InetAddress firstAddress = (InetAddress) addresses.nextElement(); in test_getInterface()
189 Enumeration addresses = ipv4NetworkInterface.getInetAddresses(); in test_getNetworkInterface() local
190 if (addresses.hasMoreElements()) { in test_getNetworkInterface()
191 firstAddress = (InetAddress) addresses.nextElement(); in test_getNetworkInterface()
381 Enumeration<InetAddress> addresses = thisInterface.getInetAddresses(); in test_joinGroupLjava_net_SocketAddressLjava_net_NetworkInterface() local
[all …]
DInetAddressTest.java389 Enumeration<InetAddress> addresses = networkInterface in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface() local
391 while (addresses.hasMoreElements()) { in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface()
392 InetAddress address = addresses.nextElement(); in test_isReachableLjava_net_NetworkInterfaceII_loopbackInterface()
DInet6AddressTest.java909 Object[] addresses = { InetAddress.getByAddress(localv6), in testSerializationCompatibility() local
914 SerializationTest.verifyGolden(this, addresses, COMPARATOR); in testSerializationCompatibility()
/libcore/luni/src/test/java/libcore/java/net/
DNetworkInterfaceTest.java48 List<InetAddress> addresses = new ArrayList<InetAddress>(1); in test_collectIpv6Addresses_3digitInterfaceIndex() local
51 NetworkInterface.collectIpv6Addresses("wlan0", 1, addresses, in test_collectIpv6Addresses_3digitInterfaceIndex()
53 assertEquals(1, addresses.size()); in test_collectIpv6Addresses_3digitInterfaceIndex()
64 List<InetAddress> addresses = new ArrayList<InetAddress>(1); in test_collectIpv6Addresses_skipsUnmatchedLines() local
67 NetworkInterface.collectIpv6Addresses("wlan0", 1, addresses, in test_collectIpv6Addresses_skipsUnmatchedLines()
69 assertEquals(1, addresses.size()); in test_collectIpv6Addresses_skipsUnmatchedLines()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
DimportNode06.java78 NodeList addresses; in runTest() local
81 addresses = aNewDoc.getElementsByTagName("emp:address"); in runTest()
82 element = (Element) addresses.item(0); in runTest()
Dattrgetownerelement04.java76 NodeList addresses; in runTest() local
79 addresses = doc.getElementsByTagNameNS("http://www.nist.gov", "address"); in runTest()
80 element = (Element) addresses.item(1); in runTest()
DimportNode05.java80 NodeList addresses; in runTest() local
83 addresses = aNewDoc.getElementsByTagName("emp:address"); in runTest()
84 element = (Element) addresses.item(0); in runTest()
Ddocumentimportnode02.java85 NodeList addresses; in runTest() local
89 addresses = doc.getElementsByTagNameNS("http://www.nist.gov", "address"); in runTest()
90 element = (Element) addresses.item(1); in runTest()
/libcore/luni/src/test/java/tests/org/w3c/dom/
DAttrGetOwnerElement.java89 NodeList addresses; in testGetOwnerElement4() local
94 addresses = doc in testGetOwnerElement4()
96 element = (Element) addresses.item(1); in testGetOwnerElement4()
DImportNode.java209 NodeList addresses; in testImportNode5() local
212 addresses = aNewDoc.getElementsByTagName("emp:address"); in testImportNode5()
213 element = (Element) addresses.item(0); in testImportNode5()
235 NodeList addresses; in testImportNode6() local
238 addresses = aNewDoc.getElementsByTagName("emp:address"); in testImportNode6()
239 element = (Element) addresses.item(0); in testImportNode6()
DDocumentImportNode.java96 NodeList addresses; in testImportNode2() local
100 addresses = doc in testImportNode2()
102 element = (Element) addresses.item(1); in testImportNode2()