/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileOutputStreamTest.java | 298 assertEquals(10, f.getChannel().position()); in test_getChannel() 306 assertEquals(0, fos.getChannel().position()); in test_getChannel_Append() 308 assertEquals(10, fos.getChannel().position()); in test_getChannel_Append() 310 assertEquals(20, fos.getChannel().position()); in test_getChannel_Append() 312 assertEquals(30, fos.getChannel().position()); in test_getChannel_Append() 316 fos.getChannel().position(); in test_getChannel_Append() 327 assertEquals(0, fos.getChannel().position()); in test_getChannel_UnAppend() 329 assertEquals(10, fos.getChannel().position()); in test_getChannel_UnAppend() 331 assertEquals(20, fos.getChannel().position()); in test_getChannel_UnAppend() 333 assertEquals(30, fos.getChannel().position()); in test_getChannel_UnAppend() [all …]
|
/libcore/luni/src/test/java/libcore/java/io/ |
D | RandomAccessFileTest.java | 76 FileChannel fileChannelBeforeClosing = raf.getChannel(); in testCloseRaf_sameChannelReturned() 78 FileChannel fileChannelAfterClosing = raf.getChannel(); in testCloseRaf_sameChannelReturned() 86 FileChannel fileChannelBeforeClosing = raf.getChannel(); in testCloseRaf_channelIsClosed() 88 FileChannel fileChannelAfterClosing = raf.getChannel(); in testCloseRaf_channelIsClosed() 96 FileChannel fileChannelBeforeClosing = raf.getChannel(); in testCloseFileChannel_sameChannelReturned() 99 FileChannel fileChannelAfterClosing = raf.getChannel(); in testCloseFileChannel_sameChannelReturned() 107 FileChannel fileChannelBeforeClosing = raf.getChannel(); in testCloseFileChannel_returnedFileChannelIsClosed() 111 FileChannel fileChannelAfterClosing = raf.getChannel(); in testCloseFileChannel_returnedFileChannelIsClosed() 120 raf.getChannel().size(); in testCloseRafBeforeGetChannel_returnChannelWithCloseFdAfterClose()
|
D | InterruptedStreamTest.java | 99 testInterruptReadableChannel(sockets[0].getChannel()); in testInterruptReadableSocketChannel() 104 testInterruptWritableChannel(sockets[0].getChannel()); in testInterruptWritableSocketChannel()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | MappedByteBufferTest.java | 46 FileChannel fc = fis.getChannel(); in testasIntBuffer() 76 FileChannel fc = fis.getChannel(); in testEmptyBuffer() 129 FileChannel fileChannelRead = fileInputStream.getChannel(); in test_force() 136 FileChannel fileChannelR = inputStream.getChannel(); in test_force() 147 FileChannel fileChannelReadWrite = randomFile.getChannel(); in test_force() 155 FileChannel fileChannelRW = random.getChannel(); in test_force() 173 FileChannel fileChannelRead = fileInputStream.getChannel(); in test_load() 180 FileChannel fileChannelReadWrite = randomFile.getChannel(); in test_load() 195 FileChannel fileChannel = fileOutputStream.getChannel(); in setUp() 216 FileChannel ch = f.getChannel(); in test_position()
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileChannelTest.java | 55 FileChannel fc = new FileInputStream(tmp).getChannel(); in testReadOnlyByteArrays() 80 fc = new FileOutputStream(tmp).getChannel(); in testReadOnlyByteArrays() 90 FileChannel fc = new FileOutputStream(tmp).getChannel(); in test_readv() 94 fc = new FileInputStream(tmp).getChannel(); in test_readv() 110 FileChannel fc = new FileOutputStream(tmp).getChannel(); in test_writev() 124 FileChannel fc = fos.getChannel(); in test_append() 250 FileChannel fc = fosFromFd.getChannel(); in test_close_fromFileDescriptor() 266 try (FileChannel fc = fis.getChannel()) { in test_closeGuardSupport_open_without_append() 275 try (FileChannel fc = fos.getChannel()) { in test_closeGuardSupport_open_with_append() 284 FileChannel fc = fos.getChannel(); in createFileContainingBytes() [all …]
|
D | FileIOInterruptTest.java | 194 FileChannel fileInputChannel = fis.getChannel(); in testChannelRead_exceptionWhenAlreadyClosed() 226 FileChannel fileInputChannel = fis.getChannel(); in testChannelRead_exceptionWhenAlreadyInterrupted() 263 FileChannel fileInputChannel = fis.getChannel(); in testChannelRead_exceptionOnCloseWhenBlocked() 294 FileChannel fileChannel = new FileInputStream(fifoFile).getChannel(); in testChannelRead_exceptionOnInterrupt() 326 FileChannel fileOutputChannel = new FileOutputStream(fifoFile).getChannel(); in testChannelWrite_exceptionWhenAlreadyClosed() 358 FileChannel fileInputChannel = fos.getChannel(); in testChannelWrite_exceptionWhenAlreadyInterrupted() 394 FileChannel fileOutputChannel = new FileOutputStream(fifoFile).getChannel(); in testChannelWrite_exceptionOnCloseWhenBlocked() 436 FileChannel fileChannel = new FileOutputStream(fifoFile).getChannel(); in testChannelWrite_exceptionOnInterrupt()
|
D | OldFileChannelTest.java | 91 .getChannel(); in setUp() 93 .getChannel(); in setUp() 95 "rw").getChannel(); in setUp() 645 FileChannel channel = out.getChannel(); in test_isOpen()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | FileChannelLockingTest.java | 64 readOnlyChannel = fileInputStream.getChannel(); in setUp() 67 writeOnlyChannel = fileOutputStream.getChannel(); in setUp() 71 readWriteChannel = randomAccessFile.getChannel(); in setUp()
|
D | FileLockTest.java | 61 readWriteChannel = randomAccessFile.getChannel(); in setUp() 176 FileChannel fileChannel = fout.getChannel(); in test_release() 188 fileChannel = fout.getChannel(); in test_release()
|
D | ChannelsTest.java | 232 WritableByteChannel testChannel = this.fouts.getChannel(); in testNewChannelOutputStream() 274 ReadableByteChannel readbc = this.fins.getChannel(); in testNewInputStreamReadableByteChannel_InputNull() 291 ReadableByteChannel readbc = this.fins.getChannel(); in testNewInputStreamReadableByteChannel() 338 WritableByteChannel writebc = this.fouts.getChannel(); in testNewOutputStreamWritableByteChannel()
|
/libcore/ojluni/src/main/java/sun/nio/cs/ |
D | StreamDecoder.java | 214 private static FileChannel getChannel(FileInputStream in) { in getChannel() method in StreamDecoder 218 return in.getChannel(); in getChannel() 247 ch = getChannel((FileInputStream)in); in StreamDecoder()
|
/libcore/ojluni/annotations/mmodule/java/io/ |
D | FileInputStream.annotated.java | 59 public java.nio.channels.FileChannel getChannel() { throw new RuntimeException("Stub!"); } in getChannel() method in FileInputStream
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | ByteBufferBulkBenchmark.java | 61 FileChannel fc = raf.getChannel(); in newBuffer()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | ServerSocketTest.java | 66 assertNull(ss.getChannel()); in testInitialState()
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | ServerSocket.annotated.java | 63 public java.nio.channels.ServerSocketChannel getChannel() { throw new RuntimeException("Stub!"); } in getChannel() method in ServerSocket
|
D | DatagramSocket.annotated.java | 102 public java.nio.channels.DatagramChannel getChannel() { throw new RuntimeException("Stub!"); } in getChannel() method in DatagramSocket
|
/libcore/ojluni/annotations/hiddenapi/java/io/ |
D | FileOutputStream.java | 87 public java.nio.channels.FileChannel getChannel() { in getChannel() method in FileOutputStream
|
D | FileInputStream.java | 89 public java.nio.channels.FileChannel getChannel() { in getChannel() method in FileInputStream
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/ |
D | AbstractSelectableChannelTest.java | 263 SelectableChannel getChannel = sc.configureBlocking(false); in test_configureBlocking_Z_IllegalBlockingMode() local 264 assertEquals(getChannel, sc); in test_configureBlocking_Z_IllegalBlockingMode()
|
/libcore/ojluni/annotations/hiddenapi/java/net/ |
D | ServerSocket.java | 102 public java.nio.channels.ServerSocketChannel getChannel() { in getChannel() method in ServerSocket
|
D | DatagramSocket.java | 191 public java.nio.channels.DatagramChannel getChannel() { in getChannel() method in DatagramSocket
|
/libcore/ojluni/src/main/java/java/net/ |
D | SocketInputStream.java | 81 public final FileChannel getChannel() { in getChannel() method in SocketInputStream
|
/libcore/ojluni/src/main/java/java/io/ |
D | FileInputStream.java | 472 public FileChannel getChannel() { in getChannel() method in FileInputStream
|
D | FileOutputStream.java | 475 public FileChannel getChannel() { in getChannel() method in FileOutputStream
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | ServerSocketAdaptor.java | 140 public ServerSocketChannel getChannel() { in getChannel() method in ServerSocketAdaptor
|