Home
last modified time | relevance | path

Searched refs:getChannel (Results 1 – 25 of 52) 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 …]
/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()
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.java59 public java.nio.channels.FileChannel getChannel() { throw new RuntimeException("Stub!"); } in getChannel() method in FileInputStream
/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.java63 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
DDatagramSocket.java191 public java.nio.channels.DatagramChannel getChannel() { in getChannel() method in DatagramSocket
/libcore/ojluni/src/main/java/java/net/
DSocketInputStream.java81 public final FileChannel getChannel() { in getChannel() method in SocketInputStream
/libcore/ojluni/src/main/java/java/io/
DFileInputStream.java472 public FileChannel getChannel() { in getChannel() method in FileInputStream
DFileOutputStream.java475 public FileChannel getChannel() { in getChannel() method in FileOutputStream
/libcore/ojluni/src/main/java/sun/nio/ch/
DServerSocketAdaptor.java140 public ServerSocketChannel getChannel() { in getChannel() method in ServerSocketAdaptor

123