Home
last modified time | relevance | path

Searched refs:netId (Results 1 – 15 of 15) sorted by relevance

/libcore/luni/src/main/java/java/net/
DAddressCache.java50 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/
DInet6AddressImpl.java90 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()
DInetAddress.java280 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()
DInetAddressImpl.java48 InetAddress[] lookupAllHostAddr(String hostname, int netId) throws UnknownHostException; in lookupAllHostAddr() argument
/libcore/luni/src/test/java/libcore/libcore/io/
DBlockGuardOsTest.java120 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/
DInet6AddressImpl.java36 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
DInetAddress.java211 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/
DNameService.java34 …public java.net.InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostExceptio… in lookupAllHostAddr() argument
/libcore/ojluni/annotations/mmodule/java/net/
DInetAddress.annotated.java100 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/
DBlockGuardOs.java192 …@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()
DForwardingOs.java74 …tring node, StructAddrinfo hints, int netId) throws GaiException { return os.android_getaddrinfo(n… in android_getaddrinfo() argument
DOs.java53 …public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiE… in android_getaddrinfo() argument
DLinux.java53 …public native InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) thro… in android_getaddrinfo() argument
/libcore/luni/src/main/java/android/system/
DOs.java62 …g node, StructAddrinfo hints, int netId) throws GaiException { return Libcore.os.android_getaddrin… in android_getaddrinfo() argument
/libcore/luni/src/main/native/
Dlibcore_io_Linux.cpp1323 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()