/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 | 128 final int netId = 1234; in test_android_getaddrinfo_networkPolicy() local 132 blockGuardOs.android_getaddrinfo(node, numericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy() 135 verify(mockOsDelegate, times(1)).android_getaddrinfo(node, numericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy() 142 final int netId = 1234; in test_android_getaddrinfo_networkPolicy() local 145 blockGuardOs.android_getaddrinfo(node, nonNumericAddrInfo, netId); in test_android_getaddrinfo_networkPolicy() 148 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 | 217 public static java.net.InetAddress getByNameOnNet(java.lang.String host, int netId) in getByNameOnNet() argument 223 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/sdk/nullability/java/net/ |
D | InetAddress.annotated.java | 85 …tAddress getByNameOnNet(@libcore.util.Nullable java.lang.String host, int netId) throws java.net.U… in getByNameOnNet() argument 87 …ess[] getAllByNameOnNet(@libcore.util.Nullable java.lang.String host, int netId) throws java.net.U… in getAllByNameOnNet() 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 | 214 …@Override public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) t… in android_getaddrinfo() argument 222 return super.android_getaddrinfo(node, hints, netId); in android_getaddrinfo()
|
D | ForwardingOs.java | 133 …tring node, StructAddrinfo hints, int netId) throws GaiException { return os.android_getaddrinfo(n… in android_getaddrinfo() argument
|
D | Os.java | 77 …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 | 65 …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 | 1367 jobject javaHints, jint netId) { in Linux_android_getaddrinfo() argument 1387 int rc = android_getaddrinfofornet(node.c_str(), NULL, &hints, netId, 0, &addressList); in Linux_android_getaddrinfo()
|