/libcore/luni/src/test/java/tests/api/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);
|
/external/apache-harmony/x-net/src/test/impl/java.injected/javax/net/ssl/ |
DefaultSSLSocketFactoryTest.java | 57 f.createSocket("localhost", 0, InetAddress.getLocalHost(), 1); 71 f.createSocket(InetAddress.getLocalHost(), 1); 86 f.createSocket(InetAddress.getLocalHost(), 1, InetAddress 87 .getLocalHost(), 2);
|
/libcore/luni/src/test/java/tests/api/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...] |
/external/apache-harmony/luni/src/test/api/common/org/apache/harmony/luni/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 | 67 cs = new Socket(InetAddress.getLocalHost().getHostName(), port); 159 s = new ServerSocket(0, 10, InetAddress.getLocalHost()); 267 InetAddress addr = InetAddress.getLocalHost(); 387 .getLocalHost(), 0); 394 + (new InetSocketAddress(InetAddress.getLocalHost(), 398 .getLocalHost(), portNumber))); 406 .getLocalHost(), portNumber); 425 theAddress = new InetSocketAddress(InetAddress.getLocalHost(), 0); 471 .getLocalHost(), 0); 478 + (new InetSocketAddress(InetAddress.getLocalHost(), [all...] |
DatagramSocketTest.java | 118 DatagramSocket ds = new DatagramSocket(0, InetAddress.getLocalHost()); 121 .getLocalHost(), ds.getLocalAddress()); 130 InetAddress.getLocalHost(), 0); 142 InetAddress inetAddress = InetAddress.getLocalHost(); 158 InetAddress localHost = InetAddress.getLocalHost(); 221 inetAddress = InetAddress.getLocalHost(); 241 localHost = InetAddress.getLocalHost(); 275 inetAddress = InetAddress.getLocalHost(); 287 inetAddress = InetAddress.getLocalHost(); 305 localHost = InetAddress.getLocalHost(); [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 | 54 inetAddress = InetAddress.getLocalHost(); 63 InetAddress inetAddress1 = InetAddress.getLocalHost(); 64 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); 117 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, 118 InetAddress.getLocalHost(), 0); 144 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, true); 147 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, false); 153 s = new Socket(InetAddress.getLocalHost(), sport); 162 s = new Socket(InetAddress.getLocalHost().getHostName(), sport, 163 InetAddress.getLocalHost(), 0); 169 s = new Socket(InetAddress.getLocalHost(), sport, true); 172 s = new Socket(InetAddress.getLocalHost(), sport, false) [all...] |
OldDatagramSocketTest.java | 188 .getLocalHost()); 192 .getLocalAddress().equals(InetAddress.getLocalHost())); 212 .getLocalHost()); 227 .getLocalHost()); 242 .getLocalHost(), 0); 259 InetAddress inetAddress = InetAddress.getLocalHost(); 291 InetAddress localHost = InetAddress.getLocalHost(); 357 InetAddress inetAddress = InetAddress.getLocalHost(); 381 InetAddress localHost = InetAddress.getLocalHost(); 427 InetAddress inetAddress = InetAddress.getLocalHost(); [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 | 65 SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss 79 InetAddress.getLocalHost(), ss2.getLocalPort()); 94 SSLSocket soc = new MySSLSocket(InetAddress.getLocalHost(), ss1 95 .getLocalPort(), InetAddress.getLocalHost(), ss2
|
/external/ganymed-ssh2/src/main/java/ch/ethz/ssh2/ |
LocalStreamForwarder.java | 33 InetAddress.getLocalHost().getHostAddress(), 0);
|
/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()));
|