Home
last modified time | relevance | path

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

/libcore/luni/src/test/java/libcore/java/io/
DFileDescriptorTest.java30 new RandomAccessFile(f, "r").getFD().sync(); in testReadOnlyFileDescriptorSync()
36 assertFalse(fis.getFD().isSocket()); in test_isSocket()
40 assertTrue(s.getImpl$().getFD$().isSocket()); in test_isSocket()
DFileOutputStreamTest.java31 FileOutputStream fos2 = new FileOutputStream(fos1.getFD()); in testFileDescriptorOwnership()
DFileInputStreamTest.java106 FileInputStream fis2 = new FileInputStream(fis1.getFD()); in testFileDescriptorOwnership()
DOldRandomAccessFileTest.java206 assertTrue("Test 1: Returned invalid fd.", raf.getFD().valid()); in test_getFD()
209 assertFalse("Test 2: Returned valid fd after close", raf.getFD().valid()); in test_getFD()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileDescriptorTest.java43 FileDescriptor fd = fos.getFD(); in test_sync()
50 fd = fis.getFD(); in test_sync()
55 fd = raf.getFD(); in test_sync()
79 FileDescriptor fd = fos.getFD(); in test_valid()
DSyncFailedExceptionTest.java36 FileDescriptor fd = fos.getFD(); in test_ConstructorLjava_lang_String()
DFileInputStreamTest.java118 FileInputStream fis = new FileInputStream(fos.getFD()); in test_ConstructorLjava_io_FileDescriptor()
185 FileInputStream fis2 = new FileInputStream(fis1.getFD()); in test_close_shared_fd()
204 assertTrue("Returned invalid fd", fis.getFD().valid()); in test_getFD()
206 assertTrue("Returned invalid fd", !fis.getFD().valid()); in test_getFD()
DFileOutputStreamTest.java81 fos = new FileOutputStream(fis.getFD()); in test_ConstructorLjava_io_FileDescriptor()
167 assertTrue("Returned invalid fd", fos.getFD().valid()); in test_getFD()
169 assertTrue("Returned invalid fd", !fos.getFD().valid()); in test_getFD()
DFileReaderTest.java62 br = new FileReader(fis.getFD()); in test_ConstructorLjava_io_FileDescriptor()
DFileWriterTest.java102 br = new BufferedReader(new FileReader(fis.getFD())); in test_ConstructorLjava_io_FileDescriptor()
DRandomAccessFileTest.java170 assertTrue("Returned invalid fd", raf.getFD().valid()); in test_getFD()
173 assertFalse("Returned valid fd after close", raf.getFD().valid()); in test_getFD()
/libcore/luni/src/main/java/java/nio/
DServerSocketChannelImpl.java102 IoUtils.setBlocking(socket.getFD$(), blocking); in implConfigureBlocking()
113 public FileDescriptor getFD() { in getFD() method in ServerSocketChannelImpl
114 return socket.getFD$(); in getFD()
170 private FileDescriptor getFD$() { in getFD$()
171 return super.getImpl$().getFD$(); in getFD$()
DPipeImpl.java75 IoUtils.setBlocking(getFD(), blocking); in implConfigureBlocking()
90 public FileDescriptor getFD() { in getFD() method in PipeImpl.PipeSourceChannel
110 IoUtils.setBlocking(getFD(), blocking); in implConfigureBlocking()
125 public FileDescriptor getFD() { in getFD() method in PipeImpl.PipeSinkChannel
DNioUtils.java43 public static FileDescriptor getFD(FileChannel fc) { in getFD() method in NioUtils
44 return ((FileChannelImpl) fc).getFD(); in getFD()
DFileDescriptorChannel.java25 public FileDescriptor getFD(); in getFD() method
DSocketChannelImpl.java481 public FileDescriptor getFD() { in getFD() method in SocketChannelImpl
576 return socketImpl.getFD$(); in getFileDescriptor$()
DFileChannelImpl.java424 FileDescriptor outFd = ((SocketChannelImpl) target).getFD(); in transferTo()
535 public FileDescriptor getFD() { in getFD() method in FileChannelImpl
DSelectorImpl.java223 setPollFd(i++, ((FileDescriptorChannel) key.channel()).getFD(), eventMask, key); in preparePollFds()
DDatagramChannelImpl.java491 public FileDescriptor getFD() { in getFD() method in DatagramChannelImpl
/libcore/luni/src/test/java/libcore/io/
DOsTest.java39 assertFalse(S_ISSOCK(Libcore.os.fstat(fis.getFD()).st_mode)); in testIsSocket()
43 assertTrue(S_ISSOCK(Libcore.os.fstat(s.getImpl$().getFD$()).st_mode)); in testIsSocket()
144 FileDescriptor fd = fos.getFD(); in test_byteBufferPositions_write_pwrite()
173 FileDescriptor fd = fis.getFD(); in test_byteBufferPositions_read_pread()
/libcore/luni/src/main/java/java/net/
DSocketImpl.java147 public FileDescriptor getFD$() { in getFD$()
/libcore/luni/src/main/java/java/io/
DFileOutputStream.java180 public final FileDescriptor getFD() throws IOException { in getFD() method in FileOutputStream
DFileInputStream.java168 public final FileDescriptor getFD() throws IOException { in getFD() method in FileInputStream
DRandomAccessFile.java206 public final FileDescriptor getFD() throws IOException { in getFD() method in RandomAccessFile
/libcore/luni/src/main/java/java/util/zip/
DZipFile.java516 int cnt = inflater.setFileInput(sharedRaf.getFD(), offset, nativeEndBufSize);