Home
last modified time | relevance | path

Searched refs:getChannel (Results 1 – 25 of 66) sorted by relevance

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileOutputStreamTest.java301 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 …]
DFileInputStreamTest.java456 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/
DRandomAccessFileTest.java76 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()
DInterruptedStreamTest.java99 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/
DMappedByteBufferTest.java46 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/
DFileChannelTest.java55 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 …]
DFileIOInterruptTest.java194 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()
DFileLockTest.java40 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/
DFileChannelLockingTest.java64 readOnlyChannel = fileInputStream.getChannel(); in setUp()
67 writeOnlyChannel = fileOutputStream.getChannel(); in setUp()
71 readWriteChannel = randomAccessFile.getChannel(); in setUp()
DFileLockTest.java64 readWriteChannel = randomAccessFile.getChannel(); in setUp()
195 FileChannel fileChannel = fout.getChannel(); in test_release()
207 fileChannel = fout.getChannel(); in test_release()
DChannelsTest.java232 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/
DReadXBytes.java93 fis.getChannel().position(pos); in main()
106 fis.getChannel().position(pos); in main()
/libcore/ojluni/src/main/java/sun/nio/cs/
DStreamDecoder.java214 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/
DEncodingTest.java204 WritableByteChannel wbc = (WritableByteChannel) fos.getChannel();) { in testMalformedOutput()
232 WritableByteChannel wbc = (WritableByteChannel) fos.getChannel()) { in writeToFile()
262 ReadableByteChannel rbc = (ReadableByteChannel) fis.getChannel()) { in readFileToString()
DBasic.java244 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()
DWrite.java44 FileChannel fc = fos.getChannel(); in testWrite()
/libcore/ojluni/src/test/java/util/Scanner/
DEncodingTest.java115 return new Scanner(fis1.getChannel(), csn); in getScanner()
128 return new Scanner(fis1.getChannel(), charset); in getScanner()
/libcore/ojluni/annotations/mmodule/java/io/
DFileInputStream.annotated.java58 public java.nio.channels.FileChannel getChannel() { throw new RuntimeException("Stub!"); } in getChannel() method in FileInputStream
/libcore/ojluni/src/main/java/java/net/
DSocketOutputStream.java78 public final FileChannel getChannel() { in getChannel() method in SocketOutputStream
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/spi/
DAbstractSelectableChannelTest.java263 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/
DByteBufferBulkBenchmark.java61 FileChannel fc = raf.getChannel(); in newBuffer()
/libcore/ojluni/annotations/mmodule/java/net/
DServerSocket.annotated.java62 public java.nio.channels.ServerSocketChannel getChannel() { throw new RuntimeException("Stub!"); } in getChannel() method in ServerSocket
/libcore/ojluni/annotations/hiddenapi/java/io/
DFileOutputStream.java87 public java.nio.channels.FileChannel getChannel() { in getChannel() method in FileOutputStream
DFileInputStream.java89 public java.nio.channels.FileChannel getChannel() { in getChannel() method in FileInputStream
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketTest.java68 assertNull(ss.getChannel()); in testInitialState()

123