/external/jmdns/src/javax/jmdns/impl/ |
NetworkTopologyEventImpl.java | 6 import java.net.InetAddress; 22 private final InetAddress _inetAddress; 28 * @param inetAddress 32 public NetworkTopologyEventImpl(JmDNS jmDNS, InetAddress inetAddress) { 34 this._inetAddress = inetAddress; 37 NetworkTopologyEventImpl(NetworkTopologyListener jmmDNS, InetAddress inetAddress) { 39 this._inetAddress = inetAddress; 56 public InetAddress getInetAddress() [all...] |
/libcore/luni/src/main/native/ |
NetworkUtilities.h | 25 // Convert from InetAddress to sockaddr_storage. An InetUnixAddress will be converted to 30 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, 33 // Convert from InetAddress to sockaddr_storage. An InetUnixAddress will be converted to 39 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port,
|
NetworkUtilities.cpp | 95 "getByAddress", "(Ljava/lang/String;[BI)Ljava/net/InetAddress;"); 103 static bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len, bool map) { 107 if (inetAddress == NULL) { 114 ss.ss_family = env->GetIntField(inetAddress, familyFid); 127 // Get the byte array that stores the IP address bytes in the InetAddress. 129 ScopedLocalRef<jbyteArray> addressBytes(env, reinterpret_cast<jbyteArray>(env->GetObjectField(inetAddress, bytesFid))); 169 sin6.sin6_scope_id = env->GetIntField(inetAddress, scopeFid); 199 bool inetAddressToSockaddrVerbatim(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) { 200 return inetAddressToSockaddr(env, inetAddress, port, ss, sa_len, false); 203 bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss, socklen_t& sa_len) [all...] |
libcore_io_Posix.cpp | 217 jobject inetAddress = sockaddrToInetAddress(env, ss, &port); 218 if (inetAddress == NULL) { 222 "(Ljava/net/InetAddress;I)V"); 223 return env->NewObject(JniConstants::inetSocketAddressClass, ctor, inetAddress, port); 322 static jfieldID addressFid = env->GetFieldID(JniConstants::inetSocketAddressClass, "addr", "Ljava/net/InetAddress;"); 658 ScopedLocalRef<jobject> inetAddress(env, sockaddrToInetAddress(env, address, NULL)); 659 if (inetAddress.get() == NULL) { 662 env->SetObjectArrayElement(result, index, inetAddress.get()); [all...] |
/external/nist-sip/java/gov/nist/core/ |
Host.java | 60 * at the end of IPv6 addresses generated by InetAddress.getHostAddress(). 81 private InetAddress inetAddress; 174 if (inetAddress == null) 175 inetAddress = InetAddress.getByName(hostname); 176 rawIpAddress = inetAddress.getHostAddress(); 208 //set inetAddress to null so that it would be reinited 210 inetAddress = null; 267 public InetAddress getInetAddress() throws java.net.UnknownHostException [all...] |
/cts/tests/tests/net/src/android/net/cts/ |
SSLCertificateSocketFactoryTest.java | 20 import java.net.InetAddress; 53 InetAddress inetAddress = null; 54 inetAddress = InetAddress.getLocalHost(); 56 mFactory.createSocket(inetAddress, port); 63 InetAddress inetAddress1 = InetAddress.getLocalHost(); 64 InetAddress inetAddress2 = InetAddress.getLocalHost() [all...] |
/frameworks/base/core/java/android/net/ |
LinkAddress.java | 23 import java.net.InetAddress; 35 private InetAddress address; 42 private void init(InetAddress address, int prefixLength) { 53 public LinkAddress(InetAddress address, int prefixLength) { 68 InetAddress inetAddress = null; 73 inetAddress = InetAddress.parseNumericAddress(pieces[0]); 80 if (inetAddress == null || prefixLength == -1) { 84 init(inetAddress, prefixLength) [all...] |
ConnectivityManager.java | 31 import java.net.InetAddress; 783 InetAddress inetAddress = NetworkUtils.intToInetAddress(hostAddress); 785 if (inetAddress == null) { 789 return requestRouteToHostAddress(networkType, inetAddress); 802 public boolean requestRouteToHostAddress(int networkType, InetAddress hostAddress) { [all...] |
CaptivePortalTracker.java | 49 import java.net.InetAddress; 214 InetAddress server; 282 InetAddress server = lookupHost(mServer); 372 private boolean isCaptivePortal(InetAddress server) { 417 private InetAddress lookupHost(String hostname) { 418 InetAddress inetAddress[]; 420 inetAddress = InetAddress.getAllByName(hostname); 426 for (InetAddress a : inetAddress) [all...] |
/libcore/luni/src/main/java/libcore/io/ |
IoBridge.java | 27 import java.net.InetAddress; 73 public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException { 95 * Connects socket 'fd' to 'inetAddress' on 'port', with no timeout. The lack of a timeout 98 public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketException { 100 return IoBridge.connect(fd, inetAddress, port, 0); 107 * Connects socket 'fd' to 'inetAddress' on 'port', with a the given 'timeoutMs'. 110 public static boolean connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) throws SocketException, SocketTimeoutException { 112 return connectErrno(fd, inetAddress, port, timeoutMs) [all...] |
BlockGuardOs.java | 22 import java.net.InetAddress; 83 @Override public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { 167 @Override public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { 169 return os.sendto(fd, buffer, flags, inetAddress, port); 172 @Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { 174 if (inetAddress != null) { 177 return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
|
Posix.java | 20 import java.net.InetAddress; 34 public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; 38 public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; 55 public native InetAddress[] getaddrinfo(String node, StructAddrinfo hints) throws GaiException; 60 public native String getnameinfo(InetAddress address, int flags) throws GaiException; 68 public native InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException; 76 public native InetAddress inet_pton(int family, String address); 77 public native InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException; 147 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException [all...] |
ForwardingOs.java | 20 import java.net.InetAddress; 40 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.bind(fd, address, port); } 44 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { os.connect(fd, address, port); } 61 public InetAddress[] getaddrinfo(String node, StructAddrinfo hints) throws GaiException { return os.getaddrinfo(node, hints); } 66 public String getnameinfo(InetAddress address, int flags) throws GaiException { return os.getnameinfo(address, flags); } 74 public InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException { return os.getsockoptInAddr(fd, level, option); } 82 public InetAddress inet_pton(int family, String address) { return os.inet_pton(family, address); } 83 public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException { return os.ioctlInetAddress(fd, cmd, interfaceName); } 113 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { return os.sendto(fd, buffer, flags, inetAddres (…) [all...] |
Os.java | 20 import java.net.InetAddress; 31 public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; 35 public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException; 52 public InetAddress[] getaddrinfo(String node, StructAddrinfo hints) throws GaiException; 58 public String getnameinfo(InetAddress address, int flags) throws GaiException; 66 public InetAddress getsockoptInAddr(FileDescriptor fd, int level, int option) throws ErrnoException; 74 public InetAddress inet_pton(int family, String address); 75 public InetAddress ioctlInetAddress(FileDescriptor fd, int cmd, String interfaceName) throws ErrnoException; 105 public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException [all...] |
/frameworks/base/core/java/android/net/arp/ |
ArpPeer.java | 26 import java.net.InetAddress; 45 private final InetAddress mMyAddr; 47 private final InetAddress mPeer; 56 public ArpPeer(String interfaceName, InetAddress myAddr, String mac, 57 InetAddress peer) throws SocketException { 136 InetAddress inetAddress = null; 137 InetAddress gateway = null; 141 inetAddress = la.getAddress(); 151 ArpPeer peer = new ArpPeer(interfaceName, inetAddress, myMacAddress, gateway) [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldDatagramSocketTest.java | 29 import java.net.InetAddress; 92 public DatagramServer(int aPort, InetAddress address) 184 // Test for method java.net.DatagramSocket(int, java.net.InetAddress) 187 ds = new java.net.DatagramSocket(portNumber, InetAddress 192 .getLocalAddress().equals(InetAddress.getLocalHost())); 211 new java.net.DatagramSocket(8080, InetAddress 226 new java.net.DatagramSocket(1, InetAddress 241 dp = new DatagramPacket("Test String".getBytes(), 11, InetAddress 259 InetAddress inetAddress = InetAddress.getLocalHost() [all...] |
InetAddressTest.java | 21 import java.net.InetAddress; 68 return (Inet6Address) InetAddress.getByAddress(LOOPBACK6_BYTES); 72 return (Inet6Address) InetAddress.getByAddress("localhost", LOOPBACK6_BYTES); 77 assertEquals("/1.2.3.4", InetAddress.parseNumericAddress("1.2.3.4").toString()); 79 assertEquals("/2001:4860:800d::68", InetAddress.parseNumericAddress("2001:4860:800d::68").toString()); 81 assertEquals("/127.0.0.1", InetAddress.parseNumericAddress("::ffff:127.0.0.1").toString()); 83 assertEquals("/2001:4860:800d::68", InetAddress.parseNumericAddress("[2001:4860:800d::68]").toString()); 84 assertEquals("/127.0.0.1", InetAddress.parseNumericAddress("[::ffff:127.0.0.1]").toString()); 87 InetAddress.parseNumericAddress("example.com"); // Not numeric. 94 InetAddress.parseNumericAddress(invalid) [all...] |
URLTest.java | 20 import java.net.InetAddress; 56 for (InetAddress inetAddress : InetAddress.getAllByName("localhost")) { 57 String address = inetAddress.getHostAddress(); 58 if (inetAddress instanceof Inet6Address) {
|
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/ |
DatagramSocketTest.java | 29 import java.net.InetAddress; 89 public DatagramServer(int aPort, InetAddress address) 115 * @tests java.net.DatagramSocket#DatagramSocket(int, java.net.InetAddress) 118 DatagramSocket ds = new DatagramSocket(0, InetAddress.getLocalHost()); 120 assertEquals("Created socket with incorrect address", InetAddress 130 InetAddress.getLocalHost(), 0); 142 InetAddress inetAddress = InetAddress.getLocalHost(); 143 ds.connect(inetAddress, 0) [all...] |
/libcore/luni/src/main/java/java/net/ |
InetAddress.java | 48 * families, and should use {@code InetAddress}. 50 * <p>An {@code InetAddress} may have a hostname (accessible via {@code getHostName}), but may not, 51 * depending on how the {@code InetAddress} was created. 120 * InetAddress and by the C library, which meant that DNS TTLs could not be honored correctly. 126 public class InetAddress implements Serializable { 142 public static final InetAddress UNSPECIFIED = new InetAddress(AF_UNSPEC, null, null); 145 * Constructs an {@code InetAddress}. 149 InetAddress(int family, byte[] ipaddress, String hostName) { 156 * Compares this {@code InetAddress} instance against the specified addres [all...] |
/development/apps/Development/src/com/android/development/ |
Connectivity.java | 66 import java.net.InetAddress; 504 InetAddress inetAddress = null; 506 inetAddress = InetAddress.getByName(mTdlsAddr); 507 mWm.setTdlsEnabled(inetAddress, true); 516 InetAddress inetAddress = null; 518 inetAddress = InetAddress.getByName(mTdlsAddr) [all...] |
/libcore/crypto/src/main/java/org/conscrypt/ |
SSLSocketImpl.java | 23 import java.net.InetAddress; 118 * @param localHost: InetAddress 123 * @see javax.net.ssl.SSLSocket#SSLSocket(String,int,InetAddress,int) 127 InetAddress localHost, int localPort, 139 * @param host: InetAddress 144 * @see javax.net.ssl.SSLSocket#SSLSocket(InetAddress,int) 147 protected SSLSocketImpl(InetAddress host, int port, 158 * @param address: InetAddress 160 * @param localAddress: InetAddress 165 * @see javax.net.ssl.SSLSocket#SSLSocket(InetAddress,int,InetAddress,int [all...] |
OpenSSLSocketImpl.java | 25 import java.net.InetAddress; 132 protected OpenSSLSocketImpl(InetAddress address, int port, SSLParametersImpl sslParameters) 141 InetAddress clientAddress, int clientPort, 148 protected OpenSSLSocketImpl(InetAddress address, int port, 149 InetAddress clientAddress, int clientPort, 470 InetAddress inetAddress = super.getInetAddress(); 471 if (inetAddress != null) { 472 return inetAddress.getHostName(); [all...] |
/libcore/luni/src/main/java/java/nio/ |
SocketChannelImpl.java | 26 import java.net.InetAddress; 77 private InetAddress localAddress = null; 122 InetAddress addr = null; 164 InetAddress normalAddr = inetSocketAddress.getAddress(); 169 normalAddr = InetAddress.getLocalHost(); 257 InetAddress inetAddress = connectAddress.getAddress(); 259 finished = IoBridge.isConnected(fd, inetAddress, port, 0, 0); // Return immediately. 452 public InetAddress getLocalAddress() throws UnknownHostException { 516 public InetAddress getLocalAddress() [all...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
SIPDialog.java | 67 import java.net.InetAddress; [all...] |