/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileOutputStreamTest.java | 301 assertEquals(10, f.getChannel().position()); in test_getChannel() 309 assertEquals(0, fos.getChannel().position()); in test_getChannel_Append() 311 assertEquals(10, fos.getChannel().position()); in test_getChannel_Append() 313 assertEquals(20, fos.getChannel().position()); in test_getChannel_Append() 315 assertEquals(30, fos.getChannel().position()); in test_getChannel_Append() 319 fos.getChannel().position(); in test_getChannel_Append() 330 assertEquals(0, fos.getChannel().position()); in test_getChannel_UnAppend() 332 assertEquals(10, fos.getChannel().position()); in test_getChannel_UnAppend() 334 assertEquals(20, fos.getChannel().position()); in test_getChannel_UnAppend() 336 assertEquals(30, fos.getChannel().position()); in test_getChannel_UnAppend() [all …]
|
D | FileInputStreamTest.java | 456 assertEquals(0, fis.getChannel().position()); in test_getChannel() 460 assertEquals(count++, fis.getChannel().position()); in test_getChannel() 465 fis.getChannel().position(); in test_getChannel() 472 assertEquals(0, fis.getChannel().position()); in test_getChannel() 475 assertEquals(10, fis.getChannel().position()); in test_getChannel() 479 assertEquals(0, fis.getChannel().position()); in test_getChannel() 482 assertEquals(100, fis.getChannel().position()); in test_getChannel() 484 assertEquals(110, fis.getChannel().position()); in test_getChannel()
|
/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 | FileLockTest.java | 40 try(FileChannel fc = fos.getChannel()) { in testToString() 59 try(FileChannel fc = fis.getChannel()) { in testToString()
|
/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 | 64 readWriteChannel = randomAccessFile.getChannel(); in setUp() 195 FileChannel fileChannel = fout.getChannel(); in test_release() 207 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/test/java/io/FileInputStream/ |
D | ReadXBytes.java | 93 fis.getChannel().position(pos); in main() 106 fis.getChannel().position(pos); in main()
|
/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/src/test/java/nio/channels/Channels/ |
D | EncodingTest.java | 204 WritableByteChannel wbc = (WritableByteChannel) fos.getChannel();) { in testMalformedOutput() 232 WritableByteChannel wbc = (WritableByteChannel) fos.getChannel()) { in writeToFile() 262 ReadableByteChannel rbc = (ReadableByteChannel) fis.getChannel()) { in readFileToString()
|
D | Basic.java | 244 FileChannel fc = fos.getChannel(); in testNewOutputStream() 255 FileChannel fc = fis.getChannel(); in testNewInputStream() 370 WritableByteChannel wbc = (WritableByteChannel)fos.getChannel(); in testNewWriter() 383 ReadableByteChannel rbc = (ReadableByteChannel)fis.getChannel(); in testNewReader()
|
D | Write.java | 44 FileChannel fc = fos.getChannel(); in testWrite()
|
/libcore/ojluni/src/test/java/util/Scanner/ |
D | EncodingTest.java | 115 return new Scanner(fis1.getChannel(), csn); in getScanner() 128 return new Scanner(fis1.getChannel(), charset); in getScanner()
|
/libcore/ojluni/annotations/mmodule/java/io/ |
D | FileInputStream.annotated.java | 58 public java.nio.channels.FileChannel getChannel() { throw new RuntimeException("Stub!"); } in getChannel() method in FileInputStream
|
/libcore/ojluni/src/main/java/java/net/ |
D | SocketOutputStream.java | 78 public final FileChannel getChannel() { in getChannel() method in SocketOutputStream
|
/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/benchmarks/src/benchmarks/regression/ |
D | ByteBufferBulkBenchmark.java | 61 FileChannel fc = raf.getChannel(); in newBuffer()
|
/libcore/ojluni/annotations/mmodule/java/net/ |
D | ServerSocket.annotated.java | 62 public java.nio.channels.ServerSocketChannel getChannel() { throw new RuntimeException("Stub!"); } in getChannel() method in ServerSocket
|
/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/luni/src/test/java/libcore/java/net/ |
D | ServerSocketTest.java | 68 assertNull(ss.getChannel()); in testInitialState()
|