/libcore/ojluni/src/main/java/java/nio/channels/spi/ |
D | AbstractInterruptibleChannel.java | 93 private volatile boolean open = true; field in AbstractInterruptibleChannel 113 if (!open) in close() 115 open = false; in close() 139 return open; in isOpen() 161 if (!open) in begin() 163 open = false; in begin() 205 if (!completed && !open) in end()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | SelectorTest.java | 36 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 …]
|
D | DatagramChannelTest.java | 50 DatagramChannel dc = DatagramChannel.open()) { in test_read_intoReadOnlyByteArrays() 72 DatagramChannel dc = DatagramChannel.open(); in testNonBlockingRecv() 84 DatagramChannel dc = DatagramChannel.open(); in testInitialState() 106 DatagramChannel dc = DatagramChannel.open(); in test_bind_unresolvedAddress() 128 DatagramChannel dc = DatagramChannel.open(); in test_bind_any() 160 try (DatagramChannel dc = DatagramChannel.open()) { in test_bind() 170 DatagramChannel dc = DatagramChannel.open(); in test_setOption() 190 try (DatagramSocket socket = DatagramChannel.open().socket()) { in test_getFileDescriptor() 198 DatagramChannel channel = DatagramChannel.open(); in test_bind() 212 try (DatagramChannel dc = DatagramChannel.open()){ in test_bind() [all …]
|
D | AsynchronousServerSocketChannelTest.java | 53 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 …]
|
D | SocketChannelTest.java | 52 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 …]
|
D | AsynchronousFileChannelTest.java | 59 AsynchronousFileChannel channel = AsynchronousFileChannel.open(newFile, in testOpen_create() 73 AsynchronousFileChannel channel = AsynchronousFileChannel.open(newFile, in testOpen_existing() 78 AsynchronousFileChannel.open(newFile, StandardOpenOption.CREATE_NEW); in testOpen_existing() 81 AsynchronousFileChannel.open(newFile, StandardOpenOption.CREATE_NEW, in testOpen_existing() 88 channel = AsynchronousFileChannel.open(newFile, StandardOpenOption.CREATE, in testOpen_existing() 99 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.READ); in testOpen_nonexistent() 105 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.WRITE); in testOpen_nonexistent() 116 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.CREATE); in testOpen_nonexistent() 122 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.CREATE, in testOpen_nonexistent() 129 AsynchronousFileChannel.open(nonExistent, StandardOpenOption.CREATE_NEW); in testOpen_nonexistent() [all …]
|
D | ServerSocketChannelTest.java | 38 ServerSocketChannel ssc = ServerSocketChannel.open(); in testNonBlockingAccept() 51 ServerSocketChannel ssc = ServerSocketChannel.open(); in test_open_initialState() 70 ServerSocketChannel ssc = ServerSocketChannel.open(); in test_bind_unresolvedAddress() 84 ServerSocketChannel ssc = ServerSocketChannel.open(); in test_bind_nullBindsToAll() 110 ServerSocketChannel ssc = ServerSocketChannel.open(); in test_bind_loopback() 143 ServerSocketChannel ssc = ServerSocketChannel.open(); in test_bind$SocketAddress() 157 ServerSocketChannel ssc1 = ServerSocketChannel.open(); in test_bind$SocketAddress() 172 ServerSocketChannel sc = ServerSocketChannel.open(); in test_setOption() 196 SocketChannel socketChannel = SocketChannel.open(address); in canConnect()
|
D | AsynchronousChannelGroupTest.java | 89 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()
|
D | OldSocketChannelTest.java | 57 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 …]
|
D | AsynchronousSocketChannelTest.java | 57 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 …]
|
/libcore/dalvik/src/test/java/dalvik/system/ |
D | CloseGuardTest.java | 60 owner.open(); 68 owner.open(); 78 owner.open(); 89 owner.open(); 108 owner.open(); 116 owner.open(); 126 owner.open(); 155 public void open() { 156 closeGuard.open("close");
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | UnixSelectorTest.java | 31 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()
|
D | PipeTest.java | 37 Pipe pipe = Pipe.open(); in test_open() 45 Pipe pipe = Pipe.open(); in test_sink() 54 Pipe pipe = Pipe.open(); in test_source()
|
D | SelectorTest.java | 54 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/main/java/dalvik/system/ |
D | CloseGuard.java | 213 public void open(String closer) { in open() method in CloseGuard 224 currentTracker.open(allocationSite); in open() 263 void open(Throwable allocationSite); in open() method 273 public void open(Throwable allocationSite) { in open() method in CloseGuard.DefaultTracker
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | AsynchronousServerSocketChannel.java | 140 public static AsynchronousServerSocketChannel open(AsynchronousChannelGroup group) in open() method in AsynchronousServerSocketChannel 163 public static AsynchronousServerSocketChannel open() in open() method in AsynchronousServerSocketChannel 166 return open(null); in open()
|
D | SocketChannel.java | 144 public static SocketChannel open() throws IOException { in open() method in SocketChannel 184 public static SocketChannel open(SocketAddress remote) in open() method in SocketChannel 187 SocketChannel sc = open(); in open()
|
D | AsynchronousFileChannel.java | 241 public static AsynchronousFileChannel open(Path file, in open() method in AsynchronousFileChannel 296 public static AsynchronousFileChannel open(Path file, OpenOption... options) in open() method in AsynchronousFileChannel 301 return open(file, set, null, NO_ATTRIBUTES); in open()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixChannelFactory.java | 106 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, flags.write, flags.append, null); in newFileChannel() 172 FileDescriptor fdObj = open(-1, path, null, flags, mode); in newAsynchronousFileChannel() 173 return SimpleAsynchronousFileChannelImpl.open(fdObj, flags.read, flags.write, pool); in newAsynchronousFileChannel() 180 protected static FileDescriptor open(int dfd, in open() method in UnixChannelFactory 257 fd = UnixNativeDispatcher.open(path, oflags, mode); in open()
|
/libcore/dalvik/test-rules/src/test/java/dalvik/system/ |
D | CloseGuardSupportTest.java | 44 closeGuard.open("test resource"); in test() 59 closeGuard.open("test resource"); in test() 77 closeGuard.open("test resource"); in test() 95 closeGuard.open("test resource"); in test() 161 guard.open("test resource"); in test()
|
/libcore/ojluni/src/main/java/java/io/ |
D | FileInputStream.java | 150 open(name); in FileInputStream() 151 guard.open("close"); in FileInputStream() 199 private void open(String name) throws FileNotFoundException { in open() method in FileInputStream 401 channel = FileChannelImpl.open(fd, path, true, false, this); in getChannel()
|
D | FileOutputStream.java | 223 open(name, append); in FileOutputStream() 224 guard.open("close"); in FileOutputStream() 285 private void open(String name, boolean append) in open() method in FileOutputStream 404 channel = FileChannelImpl.open(fd, path, false, true, append, this); in getChannel()
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | SocketTaggingTest.java | 84 server = ServerSocketChannel.open(); in setUp() 99 SocketChannel sc = SocketChannel.open(); in testSocketChannel() 109 ServerSocketChannel ssc = ServerSocketChannel.open(); in testServerSocketChannel() 119 DatagramChannel dc = DatagramChannel.open(); in testDatagramChannel()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
D | AbstractSelectableChannelTest.java | 112 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/ |
D | InterruptedStreamTest.java | 90 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()
|