Home
last modified time | relevance | path

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

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileOutputStreamTest.java298 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 …]
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.java86 FileChannel fileChannelBeforeClosing = raf.getChannel(); in testCloseRaf_sameChannelReturned()
88 FileChannel fileChannelAfterClosing = raf.getChannel(); in testCloseRaf_sameChannelReturned()
96 FileChannel fileChannelBeforeClosing = raf.getChannel(); in testCloseRaf_channelIsClosed()
98 FileChannel fileChannelAfterClosing = raf.getChannel(); in testCloseRaf_channelIsClosed()
106 FileChannel fileChannelBeforeClosing = raf.getChannel(); in testCloseFileChannel_sameChannelReturned()
109 FileChannel fileChannelAfterClosing = raf.getChannel(); in testCloseFileChannel_sameChannelReturned()
117 FileChannel fileChannelBeforeClosing = raf.getChannel(); in testCloseFileChannel_returnedFileChannelIsClosed()
121 FileChannel fileChannelAfterClosing = raf.getChannel(); in testCloseFileChannel_returnedFileChannelIsClosed()
130 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()
DOldFileChannelTest.java91 .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/
DFileChannelLockingTest.java64 readOnlyChannel = fileInputStream.getChannel(); in setUp()
67 writeOnlyChannel = fileOutputStream.getChannel(); in setUp()
71 readWriteChannel = randomAccessFile.getChannel(); in setUp()
DFileLockTest.java61 readWriteChannel = randomAccessFile.getChannel(); in setUp()
176 FileChannel fileChannel = fout.getChannel(); in test_release()
188 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/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/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.java79 public final FileChannel getChannel() { in getChannel() method in SocketOutputStream
DSocketInputStream.java81 public final FileChannel getChannel() { in getChannel() method in SocketInputStream
/libcore/benchmarks/src/benchmarks/regression/
DByteBufferBulkBenchmark.java61 FileChannel fc = raf.getChannel(); in newBuffer()
/libcore/luni/src/test/java/libcore/java/net/
DServerSocketTest.java66 assertNull(ss.getChannel()); in testInitialState()
/libcore/ojluni/annotations/mmodule/java/net/
DServerSocket.annotated.java62 public java.nio.channels.ServerSocketChannel getChannel() { throw new RuntimeException("Stub!"); } in getChannel() method in ServerSocket
DDatagramSocket.annotated.java102 public java.nio.channels.DatagramChannel getChannel() { throw new RuntimeException("Stub!"); } in getChannel() method in DatagramSocket
/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/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/ojluni/annotations/hiddenapi/java/net/
DServerSocket.java102 public java.nio.channels.ServerSocketChannel getChannel() { in getChannel() method in ServerSocket
/libcore/ojluni/src/main/java/sun/nio/ch/
DServerSocketAdaptor.java140 public ServerSocketChannel getChannel() { in getChannel() method in ServerSocketAdaptor
/libcore/ojluni/src/main/java/java/io/
DFileInputStream.java472 public FileChannel getChannel() { in getChannel() method in FileInputStream

123