/libcore/luni/src/main/java/java/net/ |
D | AddressCache.java | 50 AddressCacheKey(String hostname, int netId) { in AddressCacheKey() argument 52 mNetId = netId; in AddressCacheKey() 108 public Object get(String hostname, int netId) { in get() argument 109 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId)); in get() 123 public void put(String hostname, int netId, InetAddress[] addresses) { in put() argument 124 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(addresses)); in put() 131 public void putUnknownHost(String hostname, int netId, String detailMessage) { in putUnknownHost() argument 132 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(detailMessage)); in putUnknownHost()
|
/libcore/ojluni/src/main/java/java/net/ |
D | Inet6AddressImpl.java | 90 public InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException { in lookupAllHostAddr() argument 103 return lookupHostByName(host, netId); in lookupAllHostAddr() 113 private static InetAddress[] lookupHostByName(String host, int netId) in lookupHostByName() argument 117 Object cachedResult = addressCache.get(host, netId); in lookupHostByName() 135 InetAddress[] addresses = Libcore.os.android_getaddrinfo(host, hints, netId); in lookupHostByName() 141 addressCache.put(host, netId, addresses); in lookupHostByName() 155 addressCache.putUnknownHost(host, netId, detailMessage); in lookupHostByName()
|
D | InetAddress.java | 280 public InetAddress[] lookupAllHostAddr(String host, int netId) 282 return impl.lookupAllHostAddr(host, netId); 1669 public static InetAddress getByNameOnNet(String host, int netId) throws UnknownHostException { in getByNameOnNet() argument 1670 return impl.lookupAllHostAddr(host, netId)[0]; in getByNameOnNet() 1683 …public static InetAddress[] getAllByNameOnNet(String host, int netId) throws UnknownHostException { in getAllByNameOnNet() argument 1684 return impl.lookupAllHostAddr(host, netId).clone(); in getAllByNameOnNet()
|
D | InetAddressImpl.java | 48 InetAddress[] lookupAllHostAddr(String hostname, int netId) throws UnknownHostException; in lookupAllHostAddr() argument
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | BlockGuardOsTest.java | 120 final int netId = 1234; in test_android_getaddrinfo_networkPolicy() local 124 blockGuardOs.android_getaddrinfo(node, numericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy() 127 verify(mockOsDelegate, times(1)).android_getaddrinfo(node, numericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy() 134 final int netId = 1234; in test_android_getaddrinfo_networkPolicy() local 137 blockGuardOs.android_getaddrinfo(node, nonNumericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy() 140 verify(mockOsDelegate, times(1)).android_getaddrinfo(node, nonNumericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | Inet6AddressImpl.java | 36 public java.net.InetAddress[] lookupAllHostAddr(java.lang.String host, int netId) in lookupAllHostAddr() argument 41 private static java.net.InetAddress[] lookupHostByName(java.lang.String host, int netId) in lookupHostByName() argument
|
D | InetAddress.java | 211 public static java.net.InetAddress getByNameOnNet(java.lang.String host, int netId) in getByNameOnNet() argument 217 public static java.net.InetAddress[] getAllByNameOnNet(java.lang.String host, int netId) in getAllByNameOnNet() argument
|
/libcore/ojluni/src/main/java/sun/net/spi/nameservice/ |
D | NameService.java | 34 …public java.net.InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostExceptio… in lookupAllHostAddr() argument
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | InetAddress.annotated.java | 100 public static java.net.InetAddress getByNameOnNet(java.lang.String host, int netId) throws java.net… in getByNameOnNet() argument 103 public static java.net.InetAddress[] getAllByNameOnNet(java.lang.String host, int netId) throws jav… in getAllByNameOnNet() argument
|
/libcore/luni/src/main/java/libcore/io/ |
D | BlockGuardOs.java | 192 …@Override public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) t… in android_getaddrinfo() argument 200 return super.android_getaddrinfo(node, hints, netId); in android_getaddrinfo()
|
D | ForwardingOs.java | 74 …tring node, StructAddrinfo hints, int netId) throws GaiException { return os.android_getaddrinfo(n… in android_getaddrinfo() argument
|
D | Os.java | 53 …public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiE… in android_getaddrinfo() argument
|
D | Linux.java | 53 …public native InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) thro… in android_getaddrinfo() argument
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 62 …g node, StructAddrinfo hints, int netId) throws GaiException { return Libcore.os.android_getaddrin… in android_getaddrinfo() argument
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 1323 jobject javaHints, jint netId) { in Linux_android_getaddrinfo() argument 1343 int rc = android_getaddrinfofornet(node.c_str(), NULL, &hints, netId, 0, &addressList); in Linux_android_getaddrinfo()
|