Home
last modified time | relevance | path

Searched refs:open (Results 1 – 25 of 128) sorted by relevance

123456

/libcore/luni/src/test/java/libcore/java/nio/channels/
DSelectorTest.java36 Selector selector = Selector.open(); in testNonBlockingConnect_immediate()
37 ServerSocketChannel ssc = ServerSocketChannel.open(); in testNonBlockingConnect_immediate()
42 SocketChannel sc = SocketChannel.open(); in testNonBlockingConnect_immediate()
57 Selector selector = Selector.open(); in testInterrupted()
72 final Selector selector = Selector.open(); in testManyWakeupCallsTriggerOnlyOneWakeup()
105 Selector selector = Selector.open(); in testLeakingPipes()
111 Selector selector = Selector.open(); in test_57456()
112 ServerSocketChannel ssc = ServerSocketChannel.open(); in test_57456()
118 SocketChannel sc = SocketChannel.open(); in test_57456()
143 Selector selector = Selector.open(); in test_80785()
[all …]
DDatagramChannelTest.java62 DatagramChannel dc = DatagramChannel.open()) { in test_read_intoReadOnlyByteArrays()
85 try (DatagramChannel dc = DatagramChannel.open()) { in testNonBlockingRecv()
95 try (DatagramChannel dc = DatagramChannel.open()) { in testInitialState()
115 DatagramChannel dc = DatagramChannel.open(); in test_bind_unresolvedAddress()
139 try (DatagramChannel dc = DatagramChannel.open()) { in test_bind_any()
177 try (DatagramChannel dc = DatagramChannel.open()) { in test_bind()
188 DatagramChannel dc = DatagramChannel.open(); in test_setOption()
209 try (DatagramSocket socket = DatagramChannel.open().socket()) { in test_getFileDescriptor()
218 DatagramChannel channel = DatagramChannel.open(); in test_bind()
232 try (DatagramChannel dc = DatagramChannel.open()){ in test_bind()
[all …]
DAsynchronousServerSocketChannelTest.java53 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(); in test_bind()
68 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(); in test_bind_null()
83 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(); in test_bind_unresolvedAddress()
95 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(); in test_bind_used()
108 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(); in test_futureAccept()
130 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(); in test_completionHandlerAccept()
157 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(); in test_completionHandlerAccept_attachment()
181 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(); in test_completionHandlerAccept_nyb()
194 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(); in test_completionHandlerAccept_npe()
207 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(); in test_options()
[all …]
DSocketChannelTest.java52 SocketChannel sc = SocketChannel.open(ss.getLocalSocketAddress())) { in test_read_intoReadOnlyByteArrays()
75 SocketChannel sc = SocketChannel.open(); in test_56684()
78 Selector selector = Selector.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 …]
DAsynchronousFileChannelTest.java61 AsynchronousFileChannel channel = AsynchronousFileChannel.open(newFile, in testOpen_create()
75 AsynchronousFileChannel channel = AsynchronousFileChannel.open(newFile, in testOpen_existing()
80 AsynchronousFileChannel.open(newFile, StandardOpenOption.CREATE_NEW); in testOpen_existing()
83 AsynchronousFileChannel.open(newFile, StandardOpenOption.CREATE_NEW, in testOpen_existing()
90 channel = AsynchronousFileChannel.open(newFile, StandardOpenOption.CREATE, in testOpen_existing()
101 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.READ); in testOpen_nonexistent()
107 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.WRITE); in testOpen_nonexistent()
118 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.CREATE); in testOpen_nonexistent()
124 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.CREATE, in testOpen_nonexistent()
131 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.CREATE_NEW); in testOpen_nonexistent()
[all …]
DAsynchronousChannelGroupTest.java89 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(acg); in test_shutdown()
101 AsynchronousServerSocketChannel.open(acg); in test_shutdown()
120 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(acg); in test_shutdownNow()
130 AsynchronousServerSocketChannel.open(acg); in test_shutdownNow()
143 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(acg); in test_isTerminated()
160 AsynchronousServerSocketChannel assc = AsynchronousServerSocketChannel.open(acg); in test_awaitTermination()
DServerSocketChannelTest.java54 try (ServerSocketChannel ssc = ServerSocketChannel.open()) { in testNonBlockingAccept()
65 try (ServerSocketChannel ssc = ServerSocketChannel.open()) { in open_initialState()
82 ServerSocketChannel ssc = ServerSocketChannel.open(); in bind_unresolvedAddress()
97 ServerSocketChannel ssc = ServerSocketChannel.open(); in bind_nullBindsToAll()
169 ServerSocketChannel ssc = ServerSocketChannel.open(); in bind_loopback()
213 ServerSocketChannel ssc = ServerSocketChannel.open(); in bind_socketAddress()
227 ServerSocketChannel ssc1 = ServerSocketChannel.open(); in bind_socketAddress()
243 ServerSocketChannel sc = ServerSocketChannel.open(); in set_option()
267 SocketChannel socketChannel = SocketChannel.open(address); in canConnect()
DAsynchronousSocketChannelTest.java57 AsynchronousSocketChannel asc = AsynchronousSocketChannel.open(); in test_connect()
83 AsynchronousSocketChannel asc = AsynchronousSocketChannel.open(); in test_bind()
103 AsynchronousSocketChannel asc = AsynchronousSocketChannel.open(); in test_bind_unsupportedAddress()
119 AsynchronousSocketChannel asc = AsynchronousSocketChannel.open(); in test_bind_unresolvedAddress()
134 AsynchronousSocketChannel asc = AsynchronousSocketChannel.open(); in test_bind_usedAddress()
150 AsynchronousSocketChannel asc = AsynchronousSocketChannel.open(); in test_bind_null()
161 AsynchronousSocketChannel asc = AsynchronousSocketChannel.open(); in test_connect_unresolvedAddress()
174 AsynchronousSocketChannel asc = AsynchronousSocketChannel.open(); in test_close()
272 AsynchronousSocketChannel asc = AsynchronousSocketChannel.open(); in test_futureReadWrite()
321 AsynchronousSocketChannel asc = AsynchronousSocketChannel.open(); in test_completionHandlerReadWrite()
[all …]
DOldSocketChannelTest.java57 this.channel1 = SocketChannel.open(); in setUp()
58 this.channel2 = SocketChannel.open(); in setUp()
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()
195 this.channel1 = SocketChannel.open(unresolvedAddress); in testOpenSocketAddress()
202 SocketChannel.open(null); in testOpenSocketAddress()
283 final ServerSocketChannel ssc = ServerSocketChannel.open(); in test_socketChannel_read_DirectByteBuffer()
302 SocketChannel sc = SocketChannel.open(); in test_socketChannel_read_DirectByteBuffer()
[all …]
/libcore/ojluni/src/test/java/nio/channels/Selector/
DSelectWithConsumer.java124 Pipe p = Pipe.open(); in testReadable()
125 try (Selector sel = Selector.open()) { in testReadable()
145 Pipe p = Pipe.open(); in testWritable()
146 try (Selector sel = Selector.open()) { in testWritable()
167 try (Selector sel = Selector.open()) { in testReadableAndWriteable()
168 ssc = ServerSocketChannel.open().bind(new InetSocketAddress(0)); in testReadableAndWriteable()
169 sc = SocketChannel.open(ssc.getLocalAddress()); in testReadableAndWriteable()
191 Pipe p = Pipe.open(); in testTwoChannels()
192 try (Selector sel = Selector.open()) { in testTwoChannels()
248 Pipe p = Pipe.open(); in testRepeatedSelect1()
[all …]
DSelectAfterRead.java47 SocketChannel sc = SocketChannel.open(server.address())) { in testSelectAfterRead()
52 try (Selector sel = Selector.open()) { in testSelectAfterRead()
66 SocketChannel sc = SocketChannel.open(server.address())) { in testSelectAfterRead()
71 try (Selector sel = Selector.open()) { in testSelectAfterRead()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
DUnixSelectorTest.java31 ServerSocketChannel serverChannel = ServerSocketChannel.open();
62 Selector sel0 = Selector.open(); in testSelectorAcceptAndRead()
63 Selector sel1 = Selector.open(); in testSelectorAcceptAndRead()
76 SocketChannel socketChannel = SocketChannel.open(); in testSelectorAcceptAndRead()
78 Selector sel2 = Selector.open(); in testSelectorAcceptAndRead()
93 SocketChannel socketChannel2 = SocketChannel.open(); in testSelectUnConnectedChannel()
95 Selector sel3 = Selector.open(); in testSelectUnConnectedChannel()
104 Selector sel4 = Selector.open(); in testSelectUnConnectedChannel()
110 Selector sel5 = Selector.open(); in testSelectUnConnectedChannel()
DPipeTest.java37 Pipe pipe = Pipe.open(); in test_open()
45 Pipe pipe = Pipe.open(); in test_sink()
54 Pipe pipe = Pipe.open(); in test_source()
DSelectorTest.java54 ssc = ServerSocketChannel.open(); in setUp()
59 selector = Selector.open(); in setUp()
116 SocketChannel sc = SocketChannel.open(); in test_keys()
151 SocketChannel sc = SocketChannel.open(); in test_selectedKeys()
251 selector = Selector.open(); in test_selectJ_SelectorClosed()
337 SocketChannel sc = SocketChannel.open();
361 final Pipe pipe = Pipe.open();
394 SocketChannel sc = SocketChannel.open();
442 channel = SocketChannel.open();
444 Selector selector = Selector.open();
[all …]
/libcore/dalvik/src/test/java/libcore/dalvik/system/
DCloseGuardTest.java62 owner.open();
78 owner.open();
97 owner.open();
108 owner.open();
126 owner.open();
142 owner.open();
161 owner.open();
189 public void open() {
190 closeGuard.open("close");
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixChannelFactory.java106 return FileChannelImpl.open(fdObj, path, reading, writing, null); in newFileChannel()
136 FileDescriptor fdObj = open(dfd, path, pathForPermissionCheck, flags, mode); in newFileChannel()
137 return FileChannelImpl.open(fdObj, path.toString(), flags.read, in newFileChannel()
175 FileDescriptor fdObj = open(-1, path, null, flags, mode); in newAsynchronousFileChannel()
176 return SimpleAsynchronousFileChannelImpl.open(fdObj, flags.read, flags.write, pool); in newAsynchronousFileChannel()
183 protected static FileDescriptor open(int dfd, in open() method in UnixChannelFactory
260 fd = UnixNativeDispatcher.open(path, oflags, mode); in open()
/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousServerSocketChannel.java145 public static AsynchronousServerSocketChannel open(AsynchronousChannelGroup group) in open() method in AsynchronousServerSocketChannel
168 public static AsynchronousServerSocketChannel open() in open() method in AsynchronousServerSocketChannel
171 return open(null); in open()
DSocketChannel.java149 public static SocketChannel open() throws IOException { in open() method in SocketChannel
189 public static SocketChannel open(SocketAddress remote) in open() method in SocketChannel
192 SocketChannel sc = open(); in open()
DAsynchronousFileChannel.java246 public static AsynchronousFileChannel open(Path file, in open() method in AsynchronousFileChannel
301 public static AsynchronousFileChannel open(Path file, OpenOption... options) in open() method in AsynchronousFileChannel
311 return open(file, set, null, NO_ATTRIBUTES); in open()
/libcore/dalvik/test-rules/src/test/java/libcore/dalvik/system/
DCloseGuardSupportTest.java46 closeGuard.open("test resource"); in test()
61 closeGuard.open("test resource"); in test()
79 closeGuard.open("test resource"); in test()
97 closeGuard.open("test resource"); in test()
163 guard.open("test resource"); in test()
/libcore/
DREADME.md3 [Existing open bugs](http://b/issues?q=componentid:24949%20status:open)
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectableChannelTest.java112 SocketChannel sc = SocketChannel.open(); in test_register_LSelectorILObject()
126 SocketChannel channel = SocketChannel.open(); in test_register_LSelectorILObject()
128 Selector selector = Selector.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/luni/src/test/java/libcore/java/io/
DInterruptedStreamTest.java90 testInterruptReadableChannel(Pipe.open().source()); in testInterruptReadablePipeChannel()
94 testInterruptWritableChannel(Pipe.open().sink()); in testInterruptWritablePipeChannel()
111 ServerSocketChannel serverSocketChannel = ServerSocketChannel.open(); in newSocketChannelPair()
113 SocketChannel clientSocketChannel = SocketChannel.open(); in newSocketChannelPair()
/libcore/ojluni/src/test/java/net/SocketOptions/
DMinimumRcvBufferSize.java41 ServerSocketChannel channel = ServerSocketChannel.open(); in testBufferSize()
51 SocketChannel channel1 = SocketChannel.open(); in testBufferSize()
/libcore/ojluni/src/main/java/sun/nio/ch/
DAsynchronousServerSocketChannelImpl.java61 private volatile boolean open = true; field in AsynchronousServerSocketChannelImpl
76 return open; in isOpen()
105 if (!open) in close()
107 open = false; in close()

123456