/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SocketChannelTest.java | 40 import java.nio.channels.SocketChannel; 52 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress())) { in test_read_intoReadOnlyByteArrays() 75 SocketChannel sc = SocketChannel.open(); in test_56684() 104 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress()); in test_channelSocketOutputStreamClosureState() 125 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress()); in test_channelSocketInputStreamClosureState() 144 SocketChannel sc = SocketChannel.open(); in test_open_initialState() 167 SocketChannel sc = SocketChannel.open(); in test_bind_unresolvedAddress() 183 SocketChannel sc = SocketChannel.open(); in test_bind_socketStateSync() 211 SocketChannel sc = SocketChannel.open(); in test_bind_socketObjectCreationAfterBind() 238 SocketChannel sc = SocketChannel.open(); in test_connect_blocking() [all …]
|
D | OldSocketChannelTest.java | 32 import java.nio.channels.SocketChannel; 47 private SocketChannel channel1; 49 private SocketChannel channel2; 57 this.channel1 = SocketChannel.open(); in setUp() 58 this.channel2 = SocketChannel.open(); in setUp() 92 SocketChannel channel = in testConstructor() 96 channel = SocketChannel.open(); in testConstructor() 116 SocketChannel testSChannel = MockSocketChannel.open(); in testOpen() 181 this.channel1 = SocketChannel.open(localAddr1); in testOpenSocketAddress() 186 this.channel1 = SocketChannel.open(newTypeAddress); in testOpenSocketAddress() [all …]
|
D | SelectorTest.java | 28 import java.nio.channels.SocketChannel; 42 SocketChannel sc = SocketChannel.open(); in testNonBlockingConnect_immediate() 118 SocketChannel sc = SocketChannel.open(); in test_57456() 154 SocketChannel server = null; in test28318596() 159 SocketChannel sc = SocketChannel.open(); in test28318596()
|
D | OldServerSocketChannelTest.java | 25 import java.nio.channels.SocketChannel; 35 private SocketChannel clientChannel; 40 this.clientChannel = SocketChannel.open(); in setUp()
|
D | ServerSocketChannelTest.java | 37 import java.nio.channels.SocketChannel; 146 SocketChannel client = channel.accept(); in call() 158 SocketChannel client; in clearAcceptQueue() 267 SocketChannel socketChannel = SocketChannel.open(address); in canConnect()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | SocketChannel.java | 121 public abstract class SocketChannel class 132 protected SocketChannel(SelectorProvider provider) { in SocketChannel() method in SocketChannel 149 public static SocketChannel open() throws IOException { in open() 189 public static SocketChannel open(SocketAddress remote) in open() 192 SocketChannel sc = open(); in open() 243 public abstract SocketChannel bind(SocketAddress local) in bind() 255 public abstract <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption() 276 public abstract SocketChannel shutdownInput() throws IOException; in shutdownInput() 297 public abstract SocketChannel shutdownOutput() throws IOException; in shutdownOutput()
|
D | ServerSocketChannel.java | 274 public abstract SocketChannel accept() throws IOException; in accept()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SelectorTest.java | 29 import java.nio.channels.SocketChannel; 116 SocketChannel sc = SocketChannel.open(); in test_keys() 151 SocketChannel sc = SocketChannel.open(); in test_selectedKeys() 337 SocketChannel sc = SocketChannel.open(); 394 SocketChannel sc = SocketChannel.open(); 440 SocketChannel channel = null; 442 channel = SocketChannel.open(); 469 SocketChannel sc = SocketChannel.open(); 470 SocketChannel client = null; 503 SocketChannel sc = SocketChannel.open(); [all …]
|
D | MockSocketChannel.java | 26 import java.nio.channels.SocketChannel; 30 class MockSocketChannel extends SocketChannel { 95 public SocketChannel shutdownOutput() throws IOException { in shutdownOutput() 100 public SocketChannel shutdownInput() throws IOException { in shutdownInput() 105 public <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption() 111 public SocketChannel bind(SocketAddress local) throws IOException { in bind()
|
D | UnixSelectorTest.java | 25 import java.nio.channels.SocketChannel; 76 SocketChannel socketChannel = SocketChannel.open(); in testSelectorAcceptAndRead() 93 SocketChannel socketChannel2 = SocketChannel.open(); in testSelectUnConnectedChannel()
|
D | SocketChannelTest.java | 42 import java.nio.channels.SocketChannel; 59 private SocketChannel channel1; 61 private SocketChannel channel2; 73 this.channel1 = SocketChannel.open(); in setUp() 74 this.channel2 = SocketChannel.open(); in setUp() 152 SocketChannel.open(null); in testOpenSocketAddress_Null() 211 SocketChannel sc = SocketChannel.open(); in test_getLocalSocketAddress_afterClose() 1456 this.channel1 = SocketChannel.open(); in testCFII_StatusAfterFinish() 1471 this.channel1 = SocketChannel.open(); in testCFII_StatusAfterFinish() 1479 this.channel1 = SocketChannel.open(); in testCFII_StatusAfterFinish() [all …]
|
D | MockServerSocketChannel.java | 26 import java.nio.channels.SocketChannel; 42 public SocketChannel accept() throws IOException { in accept()
|
D | SinkChannelTest.java | 27 import java.nio.channels.SocketChannel; 468 SocketChannel sc = SocketChannel.open(); in test_socketChannel_read_close() 477 SocketChannel sock = ssc.accept(); in test_socketChannel_read_close() 493 SocketChannel sc = SocketChannel.open(); in test_socketChannel_read_write() 495 SocketChannel sock = ssc.accept(); in test_socketChannel_read_write()
|
D | SelectionKeyTest.java | 26 import java.nio.channels.SocketChannel; 36 SocketChannel sc; 45 sc = SocketChannel.open(); in setUp()
|
D | ServerSocketChannelTest.java | 33 import java.nio.channels.SocketChannel; 50 private SocketChannel clientChannel; 55 this.clientChannel = SocketChannel.open(); in setUp() 524 SocketChannel channel; 528 public WriteChannelThread(SocketChannel channel, ByteBuffer buffer) { in WriteChannelThread() 685 SocketChannel client = sc.accept(); in test_accept_SOTIMEOUT() 775 SocketChannel myChannel = serverChannel.accept(); in test_socket_getLocalPort()
|
/libcore/ojluni/src/test/java/nio/channels/Selector/ |
D | SelectAfterRead.java | 35 import java.nio.channels.SocketChannel; 47 SocketChannel sc = SocketChannel.open(server.address())) { in testSelectAfterRead() 66 SocketChannel sc = SocketChannel.open(server.address())) { in testSelectAfterRead()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
D | AbstractSelectableChannelTest.java | 26 import java.nio.channels.SocketChannel; 112 SocketChannel sc = SocketChannel.open(); in test_register_LSelectorILObject() 126 SocketChannel channel = SocketChannel.open(); in test_register_LSelectorILObject() 211 SocketChannel sc = SocketChannel.open(); in test_register_LSelectorILObject_IllegalArgument() 235 SocketChannel sc = SocketChannel.open(); in test_keyfor_LSelector() 257 SocketChannel sc = SocketChannel.open(); in test_configureBlocking_Z_IllegalBlockingMode()
|
/libcore/ojluni/src/test/java/nio/channels/SelectionKey/ |
D | AtomicUpdates.java | 42 import java.nio.channels.SocketChannel; 54 private SelectionKey keyFor(SocketChannel sc) { in keyFor() 100 assertTrue(key.channel() instanceof SocketChannel); in test() 169 try (SocketChannel sc = SocketChannel.open()) { in testDefaultImplementation() 179 try (SocketChannel sc = SocketChannel.open(); in testNioImplementation()
|
/libcore/ojluni/src/test/java/net/Socket/ |
D | ShutdownInput.java | 40 import java.nio.channels.SocketChannel; 59 SocketChannel s1 = SocketChannel.open( in main() 61 SocketChannel s2 = sc.accept() ) { in main()
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | InterruptedStreamTest.java | 35 import java.nio.channels.SocketChannel; 113 SocketChannel clientSocketChannel = SocketChannel.open(); in newSocketChannelPair() 115 SocketChannel server = serverSocketChannel.accept(); in newSocketChannelPair()
|
/libcore/ojluni/src/test/java/net/SocketOptions/ |
D | MinimumRcvBufferSize.java | 51 SocketChannel channel1 = SocketChannel.open(); in testBufferSize()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | ConcurrentCloseTest.java | 32 import java.nio.channels.SocketChannel; 82 SocketChannel s = SocketChannel.open(); in test_connect_nonBlocking()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ServerSocketAdaptor.java | 100 SocketChannel sc = ssc.accept(); in accept() 108 SocketChannel sc; in accept()
|
D | SelectorProviderImpl.java | 59 public SocketChannel openSocketChannel() throws IOException { in openSocketChannel()
|
D | SocketChannelImpl.java | 48 import java.nio.channels.SocketChannel; 66 extends SocketChannel 205 public <T> SocketChannel setOption(SocketOption<T> name, T value) in setOption() 609 public SocketChannel bind(SocketAddress local) throws IOException { in bind() 822 public SocketChannel shutdownInput() throws IOException { in shutdownInput() 839 public SocketChannel shutdownOutput() throws IOException { in shutdownOutput()
|