HomeSort by relevance Sort by last modified time
    Searched refs:getLocalHost (Results 1 - 25 of 74) sorted by null

1 2 3

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/
SocketFactoryTest.java 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,
132 InetAddress.getLocalHost(), 0)
    [all...]
ServerSocketFactoryTest.java 89 ServerSocket ss = sf.createServerSocket(0, 0, InetAddress.getLocalHost());
93 sf.createServerSocket(ss.getLocalPort(), 0, InetAddress.getLocalHost());
101 sf.createServerSocket(Integer.MAX_VALUE, 0, InetAddress.getLocalHost());
  /external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/
SocketFactoryTest.java 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);
ServerSocketFactoryTest.java 72 s = sf.createServerSocket(0, 50, InetAddress.getLocalHost());
  /external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ssl/
DefaultSSLSocketFactoryTest.java 56 f.createSocket("localhost", 0, InetAddress.getLocalHost(), 1);
70 f.createSocket(InetAddress.getLocalHost(), 1);
85 f.createSocket(InetAddress.getLocalHost(), 1, InetAddress
86 .getLocalHost(), 2);
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/
SSLSocketTest.java 66 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport);
72 getSSLSocket(InetAddress.getLocalHost(), sport + 1);
79 getSSLSocket(InetAddress.getLocalHost(), invalidPort[i]);
93 SSLSocket ssl = getSSLSocket(InetAddress.getLocalHost(), sport,
94 InetAddress.getLocalHost(), 0);
100 getSSLSocket(InetAddress.getLocalHost(), 8081, InetAddress.getLocalHost(), 8082);
106 getSSLSocket(InetAddress.getLocalHost(), -1, InetAddress.getLocalHost(), sport + 1);
111 getSSLSocket(InetAddress.getLocalHost(), sport, InetAddress.getLocalHost(), -1)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DatagramPacketTest.java 70 InetAddress.getLocalHost(), 0);
71 assertEquals("Wrong host", InetAddress.getLocalHost(), dp.getAddress());
83 InetAddress.getLocalHost(), 0);
84 assertEquals("Wrong address", InetAddress.getLocalHost(), dp
95 InetAddress.getLocalHost(), 0);
96 assertEquals("Incorrect address returned", InetAddress.getLocalHost(),
130 InetAddress.getLocalHost(), 1000);
133 final InetAddress localhost = InetAddress.getLocalHost();
153 InetAddress.getLocalHost(), 0);
192 InetAddress.getLocalHost(), 1000)
    [all...]
SocketTest.java 174 theSocket.bind(new InetSocketAddress(InetAddress.getLocalHost(), 0));
180 new InetSocketAddress(InetAddress.getLocalHost(), portNumber),
186 .getLocalHost(), 0);
191 .getLocalHost(), sport);
197 new InetSocketAddress(InetAddress.getLocalHost(), portNumber),
215 theAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0);
260 Socket client = new Socket(InetAddress.getLocalHost(), server.getLocalPort());
333 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(),
343 .getLocalHost(), server.getLocalPort());
362 boundAddress = new InetSocketAddress(InetAddress.getLocalHost(), serve
    [all...]
ServerSocketTest.java 64 cs = new Socket(InetAddress.getLocalHost().getHostName(), port);
156 s = new ServerSocket(0, 10, InetAddress.getLocalHost());
264 InetAddress addr = InetAddress.getLocalHost();
385 .getLocalHost(), 0);
392 + (new InetSocketAddress(InetAddress.getLocalHost(),
396 .getLocalHost(), portNumber)));
404 .getLocalHost(), portNumber);
423 theAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0);
469 .getLocalHost(), 0);
476 + (new InetSocketAddress(InetAddress.getLocalHost(),
    [all...]
DatagramSocketTest.java 106 DatagramSocket ds = new DatagramSocket(0, InetAddress.getLocalHost());
109 .getLocalHost(), ds.getLocalAddress());
118 InetAddress.getLocalHost(), 0);
130 InetAddress inetAddress = InetAddress.getLocalHost();
146 InetAddress localHost = InetAddress.getLocalHost();
321 InetAddress inetAddress = InetAddress.getLocalHost();
338 InetAddress local = InetAddress.getLocalHost();
340 assertEquals(InetAddress.getByName(InetAddress.getLocalHost().getHostName()), ds.getLocalAddress());
360 theSocket.connect(InetAddress.getLocalHost(), portNumber);
594 InetAddress.getLocalHost(), 0))
    [all...]
  /external/jmdns/src/javax/jmdns/impl/
DNSQuestion.java 37 DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL);
46 return jmDNSImpl.getLocalHost().getName().equals(name) || jmDNSImpl.getServices().keySet().contains(name);
61 DNSRecord answer = jmDNSImpl.getLocalHost().getDNSAddressRecord(this.getRecordType(), DNSRecordClass.UNIQUE, DNSConstants.DNS_TTL);
70 return jmDNSImpl.getLocalHost().getName().equals(name) || jmDNSImpl.getServices().keySet().contains(name);
106 InetAddress address = jmDNSImpl.getLocalHost().getInetAddress();
110 answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_A, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL));
113 answers.add(jmDNSImpl.getLocalHost().getDNSReverseAddressRecord(DNSRecordType.TYPE_AAAA, DNSRecordClass.NOT_UNIQUE, DNSConstants.DNS_TTL));
135 if (jmDNSImpl.getLocalHost().getName().equalsIgnoreCase(loname)) {
137 answers.addAll(jmDNSImpl.getLocalHost().answers(this.isUnique(), DNSConstants.DNS_TTL));
153 return jmDNSImpl.getLocalHost().getName().equals(name) || jmDNSImpl.getServices().keySet().contains(name)
    [all...]
  /cts/tests/tests/net/src/android/net/cts/
SSLCertificateSocketFactoryTest.java 58 inetAddress = InetAddress.getLocalHost();
67 InetAddress inetAddress1 = InetAddress.getLocalHost();
68 InetAddress inetAddress2 = InetAddress.getLocalHost();
  /libcore/luni/src/test/java/libcore/java/net/
OldAuthenticatorTest.java 29 InetAddress addr = InetAddress.getLocalHost();
37 addr = InetAddress.getLocalHost();
OldSocketTest.java 75 s = new Socket(InetAddress.getLocalHost().getHostName(), sport);
116 s = new Socket(InetAddress.getLocalHost().getHostName(), sport,
117 InetAddress.getLocalHost(), 0);
143 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, true);
146 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, false);
152 s = new Socket(InetAddress.getLocalHost(), sport);
161 s = new Socket(InetAddress.getLocalHost().getHostName(), sport,
162 InetAddress.getLocalHost(), 0);
168 s = new Socket(InetAddress.getLocalHost(), sport, true);
171 s = new Socket(InetAddress.getLocalHost(), sport, false)
    [all...]
OldAndroidDatagramTest.java 71 packet.setAddress(InetAddress.getLocalHost());
125 reflector = new Reflector(1234, InetAddress.getLocalHost());
131 socket = new DatagramSocket(2345, InetAddress.getLocalHost());
138 packet.setAddress(InetAddress.getLocalHost());
OldServerSocketTest.java 58 .getLocalHost(), 0);
65 + (new InetSocketAddress(InetAddress.getLocalHost(),
69 .getLocalHost(), portNumber)));
77 .getLocalHost(), portNumber);
109 cs = new Socket(InetAddress.getLocalHost().getHostName(), port);
162 ServerSocket ss = new ServerSocket(0, 10, InetAddress.getLocalHost());
164 new ServerSocket(ss.getLocalPort(), 10, InetAddress.getLocalHost());
171 new ServerSocket(65536, 10, InetAddress.getLocalHost());
OldUnixSocketTest.java 40 InetAddress.getLocalHost(), pingServer.getLocalPort()));
89 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(),
  /external/apache-harmony/x-net/src/test/api/java/org/apache/harmony/xnet/tests/javax/net/ssl/
SSLSocketTest.java 64 SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss
78 InetAddress.getLocalHost(), ss2.getLocalPort());
93 SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss1
94 .getLocalPort(), InetAddress.getLocalHost(), ss2
SSLServerSocketTest.java 71 new MySSLServerSocket(0, 10, InetAddress.getLocalHost());
  /external/apache-harmony/luni/src/test/api/unix/org/apache/harmony/luni/tests/java/net/
UnixSocketTest.java 44 InetAddress.getLocalHost(), pingServer.getLocalPort()));
93 theSocket.connect(new InetSocketAddress(InetAddress.getLocalHost(),
  /external/jmdns/src/javax/jmdns/impl/tasks/state/
Canceler.java 104 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())) {
117 for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalHost())) {
Prober.java 117 newOut.addQuestion(DNSQuestion.newQuestion(this.getDns().getLocalHost().getName(), DNSRecordType.TYPE_ANY, DNSRecordClass.CLASS_IN, DNSRecordClass.NOT_UNIQUE));
118 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.NOT_UNIQUE, this.getTTL())) {
133 newOut = this.addAuthoritativeAnswer(newOut, new DNSRecord.Service(info.getQualifiedName(), DNSRecordClass.CLASS_IN, DNSRecordClass.NOT_UNIQUE, this.getTTL(), info.getPriority(), info.getWeight(), info.getPort(), this.getDns().getLocalHost()
Announcer.java 104 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())) {
117 for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalHost())) {
Renewer.java 105 for (DNSRecord answer : this.getDns().getLocalHost().answers(DNSRecordClass.UNIQUE, this.getTTL())) {
118 for (DNSRecord answer : info.answers(DNSRecordClass.UNIQUE, this.getTTL(), this.getDns().getLocalHost())) {
  /libcore/luni/src/test/java/libcore/javax/net/
ServerSocketFactoryTest.java 75 Socket socket = new Socket(InetAddress.getLocalHost(), serverSocket.getLocalPort());
77 InetAddress.getLocalHost(), serverSocket.getLocalPort()));

Completed in 187 milliseconds

1 2 3