Home
last modified time | relevance | path

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

/libcore/luni/src/main/java/java/net/
DAddressCache.java47 AddressCacheKey(String hostname, int netId) { in AddressCacheKey() argument
49 mNetId = netId; in AddressCacheKey()
102 public Object get(String hostname, int netId) { in get() argument
103 AddressCacheEntry entry = cache.get(new AddressCacheKey(hostname, netId)); in get()
117 public void put(String hostname, int netId, InetAddress[] addresses) { in put() argument
118 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(addresses)); in put()
125 public void putUnknownHost(String hostname, int netId, String detailMessage) { in putUnknownHost() argument
126 cache.put(new AddressCacheKey(hostname, netId), new AddressCacheEntry(detailMessage)); in putUnknownHost()
/libcore/ojluni/src/main/java/java/net/
DInet6AddressImpl.java73 public InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostException { in lookupAllHostAddr() argument
90 return lookupHostByName(host, netId); in lookupAllHostAddr()
100 private static InetAddress[] lookupHostByName(String host, int netId) in lookupHostByName() argument
104 Object cachedResult = addressCache.get(host, netId); in lookupHostByName()
122 InetAddress[] addresses = Libcore.os.android_getaddrinfo(host, hints, netId); in lookupHostByName()
127 addressCache.put(host, netId, addresses); in lookupHostByName()
140 addressCache.putUnknownHost(host, netId, detailMessage); in lookupHostByName()
DInetAddress.java260 public InetAddress[] lookupAllHostAddr(String host, int netId)
262 return impl.lookupAllHostAddr(host, netId);
993 public static InetAddress getByNameOnNet(String host, int netId) throws UnknownHostException { in getByNameOnNet() argument
994 return impl.lookupAllHostAddr(host, netId)[0]; in getByNameOnNet()
1007 …public static InetAddress[] getAllByNameOnNet(String host, int netId) throws UnknownHostException { in getAllByNameOnNet() argument
1008 return impl.lookupAllHostAddr(host, netId).clone(); in getAllByNameOnNet()
DInetAddressImpl.java41 InetAddress[] lookupAllHostAddr(String hostname, int netId) throws UnknownHostException; in lookupAllHostAddr() argument
/libcore/ojluni/src/main/java/sun/net/spi/nameservice/
DNameService.java31 …public java.net.InetAddress[] lookupAllHostAddr(String host, int netId) throws UnknownHostExceptio… in lookupAllHostAddr() argument
/libcore/luni/src/main/java/libcore/io/
DForwardingOs.java58 …tring node, StructAddrinfo hints, int netId) throws GaiException { return os.android_getaddrinfo(n… in android_getaddrinfo() argument
DOs.java49 …public InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) throws GaiE… in android_getaddrinfo() argument
DLinux.java52 …public native InetAddress[] android_getaddrinfo(String node, StructAddrinfo hints, int netId) thro… in android_getaddrinfo() argument
/libcore/luni/src/main/java/android/system/
DOs.java56 …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.cpp1180 jobject javaHints, jint netId) { in Linux_android_getaddrinfo() argument
1200 int rc = android_getaddrinfofornet(node.c_str(), NULL, &hints, netId, 0, &addressList); in Linux_android_getaddrinfo()