/libcore/luni/src/test/java/libcore/javax/xml/transform/stream/ |
D | StreamSourceTest.java | 42 StreamSource ss = new StreamSource(); in constructor() local 43 assertNull(ss.getInputStream()); in constructor() 44 assertNull(ss.getPublicId()); in constructor() 45 assertNull(ss.getReader()); in constructor() 46 assertNull(ss.getSystemId()); in constructor() 53 StreamSource ss = new StreamSource(file); in constructorWithFile() local 54 assertNull(ss.getInputStream()); in constructorWithFile() 55 assertNull(ss.getPublicId()); in constructorWithFile() 56 assertNull(ss.getReader()); in constructorWithFile() 57 assertTrue("SystemId is " + ss.getSystemId(), ss.getSystemId().contains(PREFIX)); in constructorWithFile() [all …]
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | ServerSocketTest.java | 36 try (ServerSocket ss = new ServerSocket(0)) { in testTimeoutAfterAccept() argument 37 ss.setReuseAddress(true); in testTimeoutAfterAccept() 40 ss.setSoTimeout(1234); in testTimeoutAfterAccept() 45 result[0] = ss.accept(); in testTimeoutAfterAccept() 53 new Socket(ss.getInetAddress(), ss.getLocalPort()).close(); in testTimeoutAfterAccept() 60 ServerSocket ss = new ServerSocket(); in testInitialState() local 62 assertFalse(ss.isBound()); in testInitialState() 63 assertFalse(ss.isClosed()); in testInitialState() 64 assertEquals(-1, ss.getLocalPort()); in testInitialState() 65 assertNull(ss.getLocalSocketAddress()); in testInitialState() [all …]
|
D | ConcurrentCloseTest.java | 46 ServerSocket ss = new ServerSocket(0); in test_accept() local 47 new Killer(ss).start(); in test_accept() 50 Socket s = ss.accept(); in test_accept() 103 SilentServer ss = new SilentServer(); in test_read() local 105 s.connect(ss.getLocalSocketAddress()); in test_read() 114 ss.close(); in test_read() 118 SilentServer ss = new SilentServer(); in test_read_multiple() local 120 s.connect(ss.getLocalSocketAddress()); in test_read_multiple() 157 ss.close(); in test_read_multiple() 175 final SilentServer ss = new SilentServer(128); // Minimal receive buffer size. in test_write() local [all …]
|
D | OldDatagramPacketTest.java | 31 final DatagramSocket ss = new DatagramSocket(); in test_getPort() local 36 ss.setSoTimeout(3000); in test_getPort() 37 ss.receive(packet); in test_getPort() 38 ss.send(packet); in test_getPort() 49 …acket packet = new DatagramPacket(bytes, 6, InetAddress.getByName("localhost"), ss.getLocalPort()); in test_getPort() 54 assertEquals(packet.getPort(), ss.getLocalPort()); in test_getPort() 57 ss.close(); in test_getPort()
|
D | OldServerSocketTest.java | 128 ServerSocket ss = new ServerSocket(); in test_Constructor() local 129 assertEquals(-1, ss.getLocalPort()); in test_Constructor() 130 ss.close(); in test_Constructor() 162 ServerSocket ss = new ServerSocket(0, 10, InetAddress.getLocalHost()); in test_ConstructorIILjava_net_InetAddress() local 164 new ServerSocket(ss.getLocalPort(), 10, InetAddress.getLocalHost()); in test_ConstructorIILjava_net_InetAddress() 168 ss.close(); in test_ConstructorIILjava_net_InetAddress() 200 ServerSocket ss = null; in test_ConstructorI_SocksSet() local 205 ss = new ServerSocket(0); in test_ConstructorI_SocksSet() 208 if (null != ss) { in test_ConstructorI_SocksSet() 209 ss.close(); in test_ConstructorI_SocksSet() [all …]
|
D | OldUnixSocketTest.java | 107 ServerSocket ss = new ServerSocket(0); in test_getOutputStream() local 108 int port = ss.getLocalPort(); in test_getOutputStream() 109 ss.close(); in test_getOutputStream()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ |
D | ServerSocketFactoryTest.java | 41 ServerSocket ss = sf.createServerSocket(); in test_createServerSocket() local 42 assertNotNull(ss); in test_createServerSocket() 43 ss.close(); in test_createServerSocket() 48 ServerSocket ss = sf.createServerSocket(0); in test_createServerSocket_I() local 49 assertNotNull(ss); in test_createServerSocket_I() 52 sf.createServerSocket(ss.getLocalPort()); in test_createServerSocket_I() 57 ss.close(); in test_createServerSocket_I() 68 ServerSocket ss = sf.createServerSocket(0, 0); in test_createServerSocket_II() local 69 assertNotNull(ss); in test_createServerSocket_II() 72 sf.createServerSocket(ss.getLocalPort(), 0); in test_createServerSocket_II() [all …]
|
/libcore/ojluni/src/test/java/net/SocketOptions/ |
D | TcpKeepAliveTest.java | 52 try (ServerSocket ss = new ServerSocket(0); in testTcpKeepAlive() argument 53 Socket s = new Socket(LOCAL_HOST, ss.getLocalPort()); in testTcpKeepAlive() 56 if (ss.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPIDLE)) { in testTcpKeepAlive() 57 ss.setOption(ExtendedSocketOptions.TCP_KEEPIDLE, DEFAULT_KEEP_ALIVE_TIME); in testTcpKeepAlive() 58 if (ss.getOption(ExtendedSocketOptions.TCP_KEEPIDLE) != DEFAULT_KEEP_ALIVE_TIME) { in testTcpKeepAlive() 62 if (ss.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPCOUNT)) { in testTcpKeepAlive() 63 ss.setOption(ExtendedSocketOptions.TCP_KEEPCOUNT, DEFAULT_KEEP_ALIVE_PROBES); in testTcpKeepAlive() 64 … if (ss.getOption(ExtendedSocketOptions.TCP_KEEPCOUNT) != DEFAULT_KEEP_ALIVE_PROBES) { in testTcpKeepAlive() 68 if (ss.supportedOptions().contains(ExtendedSocketOptions.TCP_KEEPINTERVAL)) { in testTcpKeepAlive() 69 ss.setOption(ExtendedSocketOptions.TCP_KEEPINTERVAL, DEFAULT_KEEP_ALIVE_INTVL); in testTcpKeepAlive() [all …]
|
D | QuickAckTest.java | 50 try (ServerSocket ss = new ServerSocket(0); in TestQuickAck() argument 51 Socket s = new Socket(LOCAL_HOST, ss.getLocalPort()); in TestQuickAck() 55 if (ss.supportedOptions().contains(ExtendedSocketOptions.TCP_QUICKACK)) { in TestQuickAck() 56 Sockets.setOption(ss, ExtendedSocketOptions.TCP_QUICKACK, true); in TestQuickAck() 57 if (!ss.getOption(ExtendedSocketOptions.TCP_QUICKACK)) { in TestQuickAck()
|
D | SupportedOptionsSet.java | 53 ServerSocket ss = new ServerSocket(); in first() 58 Set<?> second = ss.supportedOptions(); in first() 71 try (ServerSocket ss = new ServerSocket(); in second() argument 76 Set<?> first = ss.supportedOptions(); in second()
|
/libcore/ojluni/src/test/java/nio/channels/Selector/ |
D | ByteServer.java | 40 private final ServerSocket ss; field in ByteServer 44 this.ss = new ServerSocket(0); in ByteServer() 48 return new InetSocketAddress(ss.getInetAddress(), ss.getLocalPort()); in address() 54 this.s = ss.accept(); in acceptConnection() 74 ss.close(); in close()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | AsynchronousSocketChannelTest.java | 56 ServerSocket ss = new ServerSocket(0); in test_connect() local 65 InetSocketAddress remoteAddress = new InetSocketAddress("localhost", ss.getLocalPort()); in test_connect() 68 Socket s = ss.accept(); in test_connect() 78 ss.close(); in test_connect() 135 ServerSocket ss = new ServerSocket(0); in test_bind_usedAddress() local 137 asc.bind(ss.getLocalSocketAddress()); in test_bind_usedAddress() 145 ss.close(); in test_bind_usedAddress() 271 ServerSocket ss = new ServerSocket(0); in test_futureReadWrite() local 275 Future<Void> connectFuture = asc.connect(ss.getLocalSocketAddress()); in test_futureReadWrite() 283 Socket sss = ss.accept(); in test_futureReadWrite() [all …]
|
D | SocketChannelTest.java | 51 try (ServerSocket ss = new ServerSocket(0); in test_read_intoReadOnlyByteArrays() argument 52 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress())) { in test_read_intoReadOnlyByteArrays() 54 ss.setReuseAddress(true); in test_read_intoReadOnlyByteArrays() 102 ServerSocket ss = new ServerSocket(0); in test_channelSocketOutputStreamClosureState() local 104 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress()); in test_channelSocketOutputStreamClosureState() 118 ss.close(); in test_channelSocketOutputStreamClosureState() 123 ServerSocket ss = new ServerSocket(0); in test_channelSocketInputStreamClosureState() local 125 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress()); in test_channelSocketInputStreamClosureState() 139 ss.close(); in test_channelSocketInputStreamClosureState() 236 ServerSocket ss = new ServerSocket(0); in test_connect_blocking() local [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
D | SSLSessionBindingListenerTest.java | 65 SSLSession ss = sock.getSession(); in test_valueBound() local 67 ss.putValue("test", sbl); in test_valueBound() 79 SSLSession ss = sock.getSession(); in test_valueUnbound() local 81 ss.putValue("test", sbl); in test_valueUnbound() 82 ss.removeValue("test"); in test_valueUnbound()
|
D | SSLSocketFactoryTest.java | 30 private ServerSocket ss; field in SSLSocketFactoryTest 34 ss = new ServerSocket(0); in startServer() 38 return ss.getLocalPort(); in startServer()
|
/libcore/luni/src/main/java/javax/xml/transform/sax/ |
D | SAXSource.java | 191 StreamSource ss = (StreamSource) source; in sourceToInputSource() local 192 InputSource isource = new InputSource(ss.getSystemId()); in sourceToInputSource() 194 isource.setByteStream(ss.getInputStream()); in sourceToInputSource() 195 isource.setCharacterStream(ss.getReader()); in sourceToInputSource() 196 isource.setPublicId(ss.getPublicId()); in sourceToInputSource()
|
/libcore/luni/src/main/native/ |
D | NetworkUtilities.cpp | 105 static bool inetAddressToSockaddr(JNIEnv* env, jobject inetAddress, int port, sockaddr_storage& ss,… in inetAddressToSockaddr() argument 106 memset(&ss, 0, sizeof(ss)); in inetAddressToSockaddr() 125 ss.ss_family = env->GetIntField(holder.get(), familyFid); in inetAddressToSockaddr() 126 if (ss.ss_family == AF_UNSPEC) { in inetAddressToSockaddr() 127 sa_len = sizeof(ss.ss_family); in inetAddressToSockaddr() 132 if (ss.ss_family != AF_INET && ss.ss_family != AF_INET6) { in inetAddressToSockaddr() 134 "inetAddressToSockaddr bad family: %i", ss.ss_family); in inetAddressToSockaddr() 159 sockaddr_in6& sin6 = reinterpret_cast<sockaddr_in6&>(ss); in inetAddressToSockaddr() 161 if (ss.ss_family == AF_INET6) { in inetAddressToSockaddr() 197 sockaddr_in& sin = reinterpret_cast<sockaddr_in&>(ss); in inetAddressToSockaddr() [all …]
|
D | libcore_io_Linux.cpp | 371 static jbyteArray getUnixSocketPath(JNIEnv* env, const sockaddr_storage& ss, in getUnixSocketPath() argument 373 if (ss.ss_family != AF_UNIX) { in getUnixSocketPath() 375 "getUnixSocketPath unsupported ss_family: %i", ss.ss_family); in getUnixSocketPath() 379 const struct sockaddr_un* un_addr = reinterpret_cast<const struct sockaddr_un*>(&ss); in getUnixSocketPath() 397 static jobject makeSocketAddress(JNIEnv* env, const sockaddr_storage& ss, const socklen_t sa_len) { in makeSocketAddress() argument 398 if (ss.ss_family == AF_INET || ss.ss_family == AF_INET6) { in makeSocketAddress() 400 … jobject inetAddress = sockaddrToInetAddress(env, reinterpret_cast<const sockaddr*>(&ss), &port); in makeSocketAddress() 410 } else if (ss.ss_family == AF_UNIX) { in makeSocketAddress() 416 jbyteArray javaSunPath = getUnixSocketPath(env, ss, sa_len); in makeSocketAddress() 421 } else if (ss.ss_family == AF_NETLINK) { in makeSocketAddress() [all …]
|
D | ScopedMsghdr.h | 43 void setMsgNameAndLen(sockaddr* ss, socklen_t sa_len) { in setMsgNameAndLen() argument 44 mMsghdrValue.msg_name = ss; in setMsgNameAndLen()
|
D | NetworkUtilities.h | 31 sockaddr_storage& ss, socklen_t& sa_len); 40 sockaddr_storage& ss, socklen_t& sa_len);
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | EmptyNavigableMap.java | 183 () -> { NavigableMap ss = navigableMap.headMap(null, false); }, in testHeadMap() local 187 () -> { NavigableMap ss = navigableMap.headMap(new Object(), true); }, in testHeadMap() local 190 NavigableMap ss = navigableMap.headMap("1", false); in testHeadMap() local 192 assertEmptyNavigableMap(ss, description + ": Returned value is not empty navigable set."); in testHeadMap() 210 SortedMap ss = navigableMap.subMap(null, BigInteger.TEN); in testSubMap() local 216 SortedMap ss = navigableMap.subMap(BigInteger.ZERO, null); in testSubMap() local 222 SortedMap ss = navigableMap.subMap(null, null); in testSubMap() local 231 SortedMap ss = navigableMap.subMap(obj1, BigInteger.TEN); in testSubMap() local 237 SortedMap ss = navigableMap.subMap(BigInteger.ZERO, obj2); in testSubMap() local 243 SortedMap ss = navigableMap.subMap(obj1, obj2); in testSubMap() local [all …]
|
D | EmptyNavigableSet.java | 229 SortedSet ss = navigableSet.subSet(null, BigInteger.TEN); in testSubSet() local 235 SortedSet ss = navigableSet.subSet(BigInteger.ZERO, null); in testSubSet() local 241 SortedSet ss = navigableSet.subSet(null, null); in testSubSet() local 250 SortedSet ss = navigableSet.subSet(obj1, BigInteger.TEN); in testSubSet() local 256 SortedSet ss = navigableSet.subSet(BigInteger.ZERO, obj2); in testSubSet() local 262 SortedSet ss = navigableSet.subSet(obj1, obj2); in testSubSet() local 355 NavigableSet ss = navigableSet.tailSet("1", true); in testTailSet() local 357 assertEmptyNavigableSet(ss, description + ": Returned value is not empty navigable set."); in testTailSet()
|
/libcore/ojluni/src/test/java/util/Scanner/ |
D | ScannerStreamTest.java | 100 Supplier<Stream<String>> ss = () -> makeScanner(input, delimiter).tokens(); in tokensTest() local 101 withData(TestData.Factory.ofSupplier(description, ss)) in tokensTest() 141 Supplier<Stream<String>> ss = in findAllFileTest() local 144 withData(TestData.Factory.ofSupplier("findAllFileTest", ss)) in findAllFileTest() 197 Supplier<Stream<String>> ss = () -> new Scanner(input).findAll(pattern) in findAllZeroTest() local 201 withData(TestData.Factory.ofSupplier("findAllZeroTest", ss)) in findAllZeroTest()
|
/libcore/ojluni/src/test/java/net/Socket/ |
D | ShutdownInput.java | 50 try ( ServerSocket ss = new ServerSocket(0); in main() argument 51 Socket s1 = new Socket(iaddr, ss.getLocalPort()); in main() 52 Socket s2 = ss.accept() ) { in main()
|
/libcore/support/src/test/java/tests/support/ |
D | Support_UnmodifiableCollectionTest.java | 73 SortedSet<Integer> ss = new TreeSet<Integer>(); in runTest() local 75 ss.add(it.next()); in runTest() 77 it = ss.iterator(); in runTest()
|