HomeSort by relevance Sort by last modified time
    Searched full:inetaddress (Results 1 - 25 of 404) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/tests/java/net/
InetAddressTest.java 24 import java.net.InetAddress;
39 * @tests java.net.InetAddress#getByName(String)
47 InetAddress.getByName("unknown.unknown.bad");
56 InetAddress ia1 = InetAddress.getByName("localhost");
57 InetAddress ia2 = InetAddress.getByName("::1");
62 * @tests java.net.InetAddress#getAddress()
65 // Test for method byte [] java.net.InetAddress.getAddress()
67 InetAddress ia = InetAddress.getByName("127.0.0.1")
    [all...]
Inet4AddressTest.java 22 import java.net.InetAddress;
40 InetAddress addr = InetAddress.getByName(addrName);
45 addr = InetAddress.getByName(addrName);
50 addr = InetAddress.getByName(addrName);
58 assertTrue(InetAddress.getByName("0.0.0.0").isAnyLocalAddress());
59 assertFalse(InetAddress.getByName("127.0.0.1").isAnyLocalAddress());
68 InetAddress addr = InetAddress.getByName(addrName);
74 addr = InetAddress.getByName(addrName)
    [all...]
Inet6AddressTest.java 22 import java.net.InetAddress;
34 InetAddress addr = null;
43 addr = InetAddress.getByName(addrName);
48 addr = InetAddress.getByName(addrName);
61 addr = InetAddress.getByName(addrName);
67 addr = InetAddress.getByName(addrName);
80 addr = InetAddress.getByName(addrName);
85 addr = InetAddress.getByName(addrName);
94 InetAddress addr = null;
98 addr = InetAddress.getByName(addrName)
    [all...]
  /external/apache-harmony/auth/src/test/java/common/org/ietf/jgss/
ChannelBindingTest.java 23 import java.net.InetAddress;
42 InetAddress addr1= InetAddress.getByAddress(new byte [] {127, 0, 0, 1});
43 InetAddress addr2= InetAddress.getByAddress(new byte [] {127, 0, 0, 2});
55 InetAddress addr= InetAddress.getByAddress(new byte [] {127, 0, 0, 1});
57 assertEquals(InetAddress.getByAddress(new byte [] {127, 0, 0, 1}),
63 InetAddress addr1= InetAddress.getByAddress(new byte [] {127, 0, 0, 1})
    [all...]
  /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...]
NetworkTopologyDiscoveryImpl.java 7 import java.net.InetAddress;
58 public InetAddress[] getInetAddresses() {
59 Set<InetAddress> result = new HashSet<InetAddress>();
64 for (Enumeration<InetAddress> iaenum = nif.getInetAddresses(); iaenum.hasMoreElements();) {
65 InetAddress interfaceAddress = iaenum.nextElement();
67 logger.finest("Found NetworkInterface/InetAddress: " + nif + " -- " + interfaceAddress);
77 return result.toArray(new InetAddress[result.size()]);
82 * @see javax.jmdns.JmmDNS.NetworkTopologyDiscovery#useInetAddress(java.net.NetworkInterface, java.net.InetAddress)
85 public boolean useInetAddress(NetworkInterface networkInterface, InetAddress interfaceAddress)
    [all...]
NameRegister.java 6 import java.net.InetAddress;
31 * @see javax.jmdns.impl.NameRegister#register(java.net.InetAddress, java.lang.String, javax.jmdns.impl.NameRegister.NameType)
34 public void register(InetAddress networkInterface, String name, NameType type) {
41 * @see javax.jmdns.impl.NameRegister#checkName(java.net.InetAddress, java.lang.String, javax.jmdns.impl.NameRegister.NameType)
44 public boolean checkName(InetAddress networkInterface, String name, NameType type) {
51 * @see javax.jmdns.impl.NameRegister#incrementHostName(java.net.InetAddress, java.lang.String, javax.jmdns.impl.NameRegister.NameType)
54 public String incrementHostName(InetAddress networkInterface, String name, NameType type) {
65 * @see javax.jmdns.impl.NameRegister#register(java.net.InetAddress, java.lang.String, javax.jmdns.impl.NameRegister.NameType)
68 public void register(InetAddress networkInterface, String name, NameType type) {
75 * @see javax.jmdns.impl.NameRegister#checkName(java.net.InetAddress, java.lang.String, javax.jmdns.impl.NameRegister.NameType
    [all...]
  /libcore/luni/src/test/java/libcore/java/net/
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...]
  /frameworks/base/core/java/android/net/dhcp/
DhcpStateMachine.java 19 import java.net.InetAddress;
33 byte[] myMac, InetAddress offeredIpAddress,
34 InetAddress serverIpAddress);
44 public void onAckReceived(InetAddress myIpAddress, InetAddress myNetMask,
45 InetAddress myGateway, List<InetAddress> myDnsServers,
46 InetAddress myDhcpServer, int leaseTime);
60 byte[] clientMac, InetAddress requestedIp, byte[] requestedParams,
68 InetAddress preassignedIp, byte[] requestedParams)
    [all...]
DhcpNakPacket.java 19 import java.net.InetAddress;
30 DhcpNakPacket(int transId, InetAddress clientIp, InetAddress yourIp,
31 InetAddress nextIp, InetAddress relayIp,
47 InetAddress destIp = mClientIp;
48 InetAddress srcIp = mYourIp;
DhcpDeclinePacket.java 19 import java.net.InetAddress;
29 DhcpDeclinePacket(int transId, InetAddress clientIp, InetAddress yourIp,
30 InetAddress nextIp, InetAddress relayIp,
DhcpInformPacket.java 19 import java.net.InetAddress;
29 DhcpInformPacket(int transId, InetAddress clientIp, InetAddress yourIp,
30 InetAddress nextIp, InetAddress relayIp,
71 InetAddress clientRequest =
  /external/okhttp/src/main/java/com/squareup/okhttp/internal/
Dns.java 18 import java.net.InetAddress;
22 * Domain name service. Prefer this over {@link InetAddress#getAllByName} to
27 @Override public InetAddress[] getAllByName(String host) throws UnknownHostException {
28 return InetAddress.getAllByName(host);
32 InetAddress[] getAllByName(String host) throws UnknownHostException;
  /libcore/luni/src/test/java/tests/api/javax/net/
SocketFactoryTest.java 26 import java.net.InetAddress;
63 Socket s = sf.createSocket(InetAddress.getLocalHost().getHostName(), sport);
75 sf.createSocket(InetAddress.getLocalHost().getHostName(), invalidPorts[i]);
82 sf.createSocket(InetAddress.getLocalHost().getHostName(), s.getLocalPort());
89 f.createSocket(InetAddress.getLocalHost().getHostName(), 8082);
100 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport);
106 sf.createSocket(InetAddress.getLocalHost(), invalidPorts[i]);
113 sf.createSocket(InetAddress.getLocalHost(), s.getLocalPort());
120 f.createSocket(InetAddress.getLocalHost(), 8081);
131 Socket s = sf.createSocket(InetAddress.getLocalHost(), sport
    [all...]
  /libcore/support/src/test/java/org/apache/harmony/xnet/tests/support/
SSLSocketFactoryImpl.java 5 import java.net.InetAddress;
56 * @see javax.net.SocketFactory#createSocket(java.net.InetAddress, int)
59 public Socket createSocket(InetAddress arg0, int arg1) throws IOException {
65 * @see javax.net.SocketFactory#createSocket(java.lang.String, int, java.net.InetAddress, int)
68 public Socket createSocket(String arg0, int arg1, InetAddress arg2, int arg3) throws IOException, UnknownHostException {
74 * @see javax.net.SocketFactory#createSocket(java.net.InetAddress, int, java.net.InetAddress, int)
77 public Socket createSocket(InetAddress arg0, int arg1, InetAddress arg2, int arg3) throws IOException {
  /external/jmdns/src/javax/jmdns/
NetworkTopologyEvent.java 6 import java.net.InetAddress;
41 * @return InetAddress
43 public abstract InetAddress getInetAddress();
  /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...]
  /external/smack/src/org/jivesoftware/smack/proxy/
DirectSocketFactory.java 21 import java.net.InetAddress;
47 InetAddress resolved[] = InetAddress.getAllByName(host);
52 public Socket createSocket(String host ,int port, InetAddress localHost,
59 public Socket createSocket(InetAddress host, int port)
67 public Socket createSocket( InetAddress address, int port,
68 InetAddress localAddress, int localPort)
  /external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
SSLSocketTest.java 21 import java.net.InetAddress;
61 * Class under test for void SSLSocket(InetAddress, int)
65 SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss
72 * Class under test for void SSLSocket(String, int, InetAddress, int)
79 InetAddress.getLocalHost(), ss2.getLocalPort());
88 * Class under test for void SSLSocket(InetAddress, int, InetAddress, int)
94 SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss1
95 .getLocalPort(), InetAddress.getLocalHost(), ss2
116 protected MySSLSocket(InetAddress address, int port
    [all...]
  /external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/
SocketFactoryTest.java 25 import java.net.InetAddress;
67 s = sf.createSocket("localhost", 8081, InetAddress.getLocalHost(), 8082);
72 s = sf.createSocket(InetAddress.getLocalHost(), 8081);
77 s = sf.createSocket(InetAddress.getLocalHost(), 8081, InetAddress.getLocalHost(), 8082);
90 public Socket createSocket(String host, int port, InetAddress localHost, int localPort)
96 public Socket createSocket(InetAddress host, int port) throws IOException {
101 public Socket createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)
  /external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ssl/
DefaultSSLSocketFactoryTest.java 22 import java.net.InetAddress;
52 * Class under test for Socket createSocket(String, int, InetAddress, int)
57 f.createSocket("localhost", 0, InetAddress.getLocalHost(), 1);
66 * Class under test for Socket createSocket(InetAddress, int)
71 f.createSocket(InetAddress.getLocalHost(), 1);
80 * Class under test for Socket createSocket(InetAddress, int, InetAddress,
86 f.createSocket(InetAddress.getLocalHost(), 1, InetAddress
  /frameworks/base/tests/CoreTests/android/core/
InetAddrTest.java 21 import java.net.InetAddress;
43 InetAddress ia = InetAddress.getByName("localhost");
52 ia = InetAddress.getByName("127.0.0.1");
61 ia = InetAddress.getByName(null);
64 InetAddress.getByName(".0.0.1");
71 InetAddress.getByName("thereisagoodchancethisdomaindoesnotexist.weirdtld");
78 InetAddress.getByName("127.0.0.");
89 InetAddress.getByName(HOSTS[index]);
  /libcore/luni/src/main/java/java/net/
InetUnixAddress.java 24 * An AF_UNIX address. See {@link InetAddress}.
27 public final class InetUnixAddress extends InetAddress {
29 * Constructs an AF_UNIX InetAddress for the given path.
36 * Constructs an AF_UNIX InetAddress for the given path.
43 * Returns a string form of this InetAddress.
  /development/samples/WiFiDirectServiceDiscovery/src/com/example/android/wifidirect/discovery/
ClientSocketHandler.java 8 import java.net.InetAddress;
17 private InetAddress mAddress;
19 public ClientSocketHandler(Handler handler, InetAddress groupOwnerAddress) {
  /libcore/luni/src/main/java/libcore/io/
StructGroupReq.java 19 import java.net.InetAddress;
26 public final InetAddress gr_group;
28 public StructGroupReq(int gr_interface, InetAddress gr_group) {

Completed in 2298 milliseconds

1 2 3 4 5 6 7 8 91011>>