/libcore/luni/src/main/java/libcore/io/ |
BlockGuardOs.java | 29 import java.net.InetAddress; 109 @Override public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketException { 268 @Override public int sendto(FileDescriptor fd, ByteBuffer buffer, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { 270 return os.sendto(fd, buffer, flags, inetAddress, port); 273 @Override public int sendto(FileDescriptor fd, byte[] bytes, int byteOffset, int byteCount, int flags, InetAddress inetAddress, int port) throws ErrnoException, SocketException { 275 if (inetAddress != null) { 278 return os.sendto(fd, bytes, byteOffset, byteCount, flags, inetAddress, port);
|
/libcore/support/src/test/java/libcore/javax/net/ssl/ |
TestSSLContext.java | 20 import java.net.InetAddress; 90 public final InetAddress host; 104 InetAddress host, 184 InetAddress host = InetAddress.getLocalHost(); 285 public Socket createSocket(String host, int port, InetAddress localHost, int localPort) 289 public Socket createSocket(InetAddress host, int port) throws IOException { 292 public Socket createSocket(InetAddress address, int port, 293 InetAddress localAddress, int localPort) throws IOException {
|
/cts/tests/tests/net/src/android/net/ipv6/cts/ |
PingTest.java | 29 import java.net.InetAddress; 96 InetAddress address, byte[] packet) throws ErrnoException, IOException { 108 private void checkResponse(FileDescriptor s, InetAddress dest, 153 InetAddress ipv6Loopback = InetAddress.getByName(null);
|
/development/samples/training/NsdChat/src/com/example/android/nsdchat/ |
ChatConnection.java | 30 import java.net.InetAddress; 60 public void connectToServer(InetAddress address, int port) { 154 InetAddress address = mSocket.getInetAddress(); 168 private InetAddress mAddress; 176 public ChatClient(InetAddress address, int port) {
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
ServerSocketChannelTest.java | 20 import java.net.InetAddress; 95 Enumeration<InetAddress> inetAddresses = nic.getInetAddresses(); 108 ssc.socket().bind(new InetSocketAddress(InetAddress.getLoopbackAddress(), 0)); 118 new InetSocketAddress(InetAddress.getLoopbackAddress(), boundAddress.getPort()); 126 Enumeration<InetAddress> inetAddresses = nic.getInetAddresses();
|
/external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/ |
UnixSocketTest.java | 24 import java.net.InetAddress; 44 InetAddress.getLocalHost(), pingServer.getLocalPort())); 93 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(),
|
/external/conscrypt/src/main/java/org/conscrypt/ |
OpenSSLSocketImplWrapper.java | 21 import java.net.InetAddress; 69 public InetAddress getLocalAddress() { 74 public InetAddress getInetAddress() {
|
/external/eclipse-basebuilder/basebuilder-3.6.2/org.eclipse.releng.basebuilder/plugins/ |
org.eclipse.ecf.ssl_1.0.0.v20100529-0735.jar | |
/external/smack/src/org/xbill/DNS/ |
UDPClient.java | 22 * a call to InetAddress.getLocalHost(), which can end up here if using a 28 * - If something else calls InetAddress.getLocalHost(), and that causes this 31 * To avoid both of these, check at initialization time to see if InetAddress
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/ |
MediaFrameworkTest.java | 49 import java.net.InetAddress; 130 InetAddress address = InetAddress.getByAddress(MediaNames.STREAM_SERVER);
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/ |
SocketImplTest.java | 24 import java.net.InetAddress; 92 protected void bind(InetAddress address, int port) throws IOException { 101 protected void connect(InetAddress address, int port)
|
/libcore/luni/src/main/java/java/net/ |
NetworkInterface.java | 46 private final List<InetAddress> addresses; 53 List<InetAddress> addresses, List<InterfaceAddress> interfaceAddresses) { 85 public Enumeration<InetAddress> getInetAddresses() { 122 List<InetAddress> addresses = new ArrayList<InetAddress>(); 146 List<InetAddress> addresses, List<InterfaceAddress> interfaceAddresses, 189 private static void collectIpv4Address(String interfaceName, List<InetAddress> addresses, 194 InetAddress address = Libcore.os.ioctlInetAddress(fd, SIOCGIFADDR, interfaceName); 195 InetAddress broadcast = Libcore.os.ioctlInetAddress(fd, SIOCGIFBRDADDR, interfaceName); 196 InetAddress netmask = Libcore.os.ioctlInetAddress(fd, SIOCGIFNETMASK, interfaceName) [all...] |
Socket.java | 44 private InetAddress localAddress = Inet4Address.ANY; 107 private void tryAllAddresses(String dstName, int dstPort, InetAddress 109 InetAddress[] dstAddresses = InetAddress.getAllByName(dstName); 113 InetAddress dstAddress; 176 public Socket(String dstName, int dstPort, InetAddress localAddress, int localPort) throws IOException { 223 public Socket(InetAddress dstAddress, int dstPort) throws IOException { 246 public Socket(InetAddress dstAddress, int dstPort, 247 InetAddress localAddress, int localPort) throws IOException { 267 * @deprecated Use {@code Socket(InetAddress, int)} instead of this fo [all...] |
/libcore/luni/src/test/java/libcore/java/net/ |
OldSocketImplFactoryTest.java | 7 import java.net.InetAddress; 129 protected void bind(InetAddress arg0, int arg1) throws IOException { 141 protected void connect(InetAddress arg0, int arg1) throws IOException {
|
OldUnixSocketTest.java | 24 import java.net.InetAddress; 40 InetAddress.getLocalHost(), pingServer.getLocalPort())); 89 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(),
|
/libcore/luni/src/test/java/libcore/javax/net/ |
ServerSocketFactoryTest.java | 22 import java.net.InetAddress; 75 Socket socket = new Socket(InetAddress.getLocalHost(), serverSocket.getLocalPort()); 77 InetAddress.getLocalHost(), serverSocket.getLocalPort()));
|
/libcore/support/src/test/java/tests/net/ |
StuckServer.java | 20 import java.net.InetAddress; 64 InetAddress testNet1 = InetAddress.getByAddress(new byte[] { (byte) 192, 0, 2, 0 });
|
/cts/tests/tests/permission/src/android/permission/cts/ |
NoNetworkStatePermissionTest.java | 23 import java.net.InetAddress; 124 InetAddress.getByName("www.google.com");
|
/external/apache-http/src/org/apache/http/conn/scheme/ |
HostNameResolver.java | 35 import java.net.InetAddress; 39 InetAddress resolve (String hostname) throws IOException;
|
/external/jmdns/src/javax/jmdns/ |
JmDNS.java | 9 import java.net.InetAddress; 49 * <b>Note:</b> This is a convenience method. The preferred constructor is {@link #create(InetAddress, String)}.<br/> 54 * @see #create(InetAddress, String) 68 * <b>Note:</b> This is a convenience method. The preferred constructor is {@link #create(InetAddress, String)}.<br/> 73 * @see #create(InetAddress, String) 80 public static JmDNS create(final InetAddress addr) throws IOException { 89 * <b>Note:</b> This is a convenience method. The preferred constructor is {@link #create(InetAddress, String)}.<br/> 94 * @see #create(InetAddress, String) 136 public static JmDNS create(final InetAddress addr, final String name) throws IOException { 161 public abstract InetAddress getInetAddress() throws IOException [all...] |
/external/nist-sip/java/gov/nist/javax/sip/stack/ |
MessageChannel.java | 46 import java.net.InetAddress; 132 protected abstract InetAddress getPeerInetAddress(); 143 public abstract InetAddress getPeerPacketSourceAddress(); 168 protected abstract void sendMessage(byte[] message, InetAddress receiverAddress, 201 InetAddress hopAddr = InetAddress.getByName(hop.getHost()); 246 public void sendMessage(SIPMessage sipMessage, InetAddress receiverAddress, int receiverPort) 261 InetAddress sourceInetAddress = InetAddress.getByName(sourceAddress); 272 public static String getKey(InetAddress inetAddr, int port, String transport) [all...] |
/frameworks/base/core/java/android/net/ |
VpnService.java | 43 import java.net.InetAddress; 224 public boolean addAddress(InetAddress address, int prefixLength) { 254 public boolean removeAddress(InetAddress address, int prefixLength) { 311 private static void check(InetAddress address, int prefixLength) { 389 public Builder addAddress(InetAddress address, int prefixLength) { 402 * using a numeric address string. See {@link InetAddress} for the 409 * @see #addAddress(InetAddress, int) 412 return addAddress(InetAddress.parseNumericAddress(address), prefixLength); 424 public Builder addRoute(InetAddress address, int prefixLength) { 443 * using a numeric address string. See {@link InetAddress} for th [all...] |
/frameworks/base/core/java/com/android/internal/net/ |
VpnConfig.java | 34 import java.net.InetAddress; 103 public void updateAllowedFamilies(InetAddress address) { 120 (InetAddress.parseNumericAddress(split[0]), Integer.parseInt(split[1])), null); 134 LinkAddress addr = new LinkAddress(InetAddress.parseNumericAddress(split[0]),
|
/frameworks/base/tests/CoreTests/android/core/ |
NsdServiceInfoTest.java | 14 import java.net.InetAddress; 20 public final static InetAddress LOCALHOST; 26 InetAddress _host = null; 28 _host = InetAddress.getLocalHost();
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
SSLServerSocketTest.java | 26 import java.net.InetAddress; 58 public mySSLServerSocket(int port, int backlog, InetAddress address) throws IOException{ 171 * javax.net.ssl.SSLServerSocket#SSLServerSocket(int port, int backlog, InetAddress address) 174 // A null InetAddress is okay. 179 mySSLServerSocket ssl = new mySSLServerSocket(0, 0, InetAddress.getLocalHost()); 183 new mySSLServerSocket(port_invalid[i], 1, InetAddress.getLocalHost()); 190 new mySSLServerSocket(ssl.getLocalPort(), 0, InetAddress.getLocalHost());
|