Home
last modified time | relevance | path

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

12

/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()
DFileInputStreamTest.java123 FileInputStream fis = new FileInputStream(fos.getFD()); in test_ConstructorLjava_io_FileDescriptor()
190 FileInputStream fis2 = new FileInputStream(fis1.getFD()); in test_close_shared_fd()
209 assertTrue("Returned invalid fd", fis.getFD().valid()); in test_getFD()
211 assertTrue("Returned invalid fd", !fis.getFD().valid()); in test_getFD()
DSyncFailedExceptionTest.java36 FileDescriptor fd = fos.getFD(); in test_ConstructorLjava_lang_String()
DFileOutputStreamTest.java90 fos = new FileOutputStream(fis.getFD()); in test_ConstructorLjava_io_FileDescriptor()
177 assertTrue("Returned invalid fd", fos.getFD().valid()); in test_getFD()
179 assertTrue("Returned invalid fd", !fos.getFD().valid()); in test_getFD()
403 assertTrue(fdAccess.getAppend(fos.getFD())); in test_getChanne_Append_Append()
DFileReaderTest.java62 br = new FileReader(fis.getFD()); in test_ConstructorLjava_io_FileDescriptor()
/libcore/ojluni/src/main/native/
DFileInputStream.c80 fd = getFD(env, this, fis_fd); in Java_java_io_FileInputStream_length0()
96 fd = getFD(env, this, fis_fd); in Java_java_io_FileInputStream_position0()
111 FD fd = getFD(env, this, fis_fd); in Java_java_io_FileInputStream_skip0()
165 FD fd = getFD(env, this, fis_fd); in Java_java_io_FileInputStream_available0()
Dio_util.c43 FD fd = getFD(env, this, fid); in readSingle()
107 fd = getFD(env, this, fid); in readBytes()
135 FD fd = getFD(env, this, fid); in writeSingle()
188 fd = getFD(env, this, fid); in writeBytes()
Dio_util_md.h52 FD getFD(JNIEnv *env, jobject cur, jfieldID fid);
/libcore/luni/src/test/java/libcore/java/io/
DFileInputStreamTest.java121 FileInputStream fis2 = new FileInputStream(fis1.getFD()); in testFileDescriptorOwnership()
147 assertTrue(fis1.getFD().valid()); in testFileDescriptorOwnership()
174 assertFalse(fis1.getFD().valid()); in testFileDescriptorOwnership()
226 android.system.Os.ioctlInt(input.getFD(), OsConstants.FIONREAD); in test_available_on_nonIOCTL_supported_file()
265 assertEquals(0, Libcore.os.lseek(fis.getFD(), 0, OsConstants.SEEK_CUR)); in testSkipOnLargeFiles()
282 Os.posix_fallocate(fos.getFD(), 0, fileSize); in allocateEmptyFile()
290 Os.ftruncate(fos.getFD(), fileSize); in allocateEmptyFile()
DFileDescriptorTest.java35 new RandomAccessFile(f, "r").getFD().sync(); in testReadOnlyFileDescriptorSync()
41 assertFalse(fis.getFD().isSocket$()); in test_isSocket()
45 assertTrue(s.getImpl().getFD$().isSocket$()); in test_isSocket()
DFileOutputStreamTest.java34 FileOutputStream fos2 = new FileOutputStream(fos1.getFD()); in testFileDescriptorOwnership()
65 assertFalse(fos1.getFD().valid()); in testFileDescriptorOwnership()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSelChImpl.java42 FileDescriptor getFD(); in getFD() method
91 Net.poll(getFD(), event, millis); in park()
DPollArrayWrapper.java75 putDescriptor(totalChannels, IOUtil.fdVal(sc.getFD())); in addEntry()
DSocketAdaptor.java63 super(new FileDescriptorHolderSocketImpl(sc.getFD())); in SocketAdaptor()
461 return sc.getFD(); in getFileDescriptor$()
DSinkChannelImpl.java70 public FileDescriptor getFD() { in getFD() method in SinkChannelImpl
DSourceChannelImpl.java71 public FileDescriptor getFD() { in getFD() method in SourceChannelImpl
/libcore/luni/src/test/java/libcore/libcore/io/
DFdsanTest.java35 FileDescriptor fd = fis.getFD(); in testFileInputStream()
45 FileDescriptor fd = fis.getFD(); in testFileOutputStream()
55 FileDescriptor fd = fis.getFD(); in testRandomAccessFile()
78 Object pfd = pfdMethodDup.invoke(null, fis.getFD()); in testParcelFileDescriptor()
/libcore/ojluni/src/main/java/java/lang/
DProcessImpl.java109 std_fds[0] = f0.getFD().getInt$(); in start()
121 std_fds[1] = f1.getFD().getInt$(); in start()
133 std_fds[2] = f2.getFD().getInt$(); in start()
/libcore/ojluni/annotations/mmodule/java/io/
DFileInputStream.annotated.java56 public final java.io.FileDescriptor getFD() throws java.io.IOException { throw new RuntimeException… in getFD() method in FileInputStream
/libcore/luni/src/main/java/java/nio/
DNioUtils.java71 public static FileDescriptor getFD(FileChannel fc) { in getFD() method in NioUtils
/libcore/ojluni/annotations/mmodule/java/net/
DSocketImpl.annotated.java66 public java.io.FileDescriptor getFD$() { throw new RuntimeException("Stub!"); } in getFD$()
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java102 assertFalse(S_ISSOCK(Os.fstat(fis.getFD()).st_mode)); in testIsSocket()
106 assertTrue(S_ISSOCK(Os.fstat(s.getImpl().getFD$()).st_mode)); in testIsSocket()
116 Os.fcntlInt(fis.getFD(), F_SETFD, FD_CLOEXEC); in testFcntlInt()
117 int flags = Os.fcntlVoid(fis.getFD(), F_GETFD); in testFcntlInt()
274 FileDescriptor fd = fos.getFD(); in test_byteBufferPositions_write_pwrite()
304 FileDescriptor fd = fis.getFD(); in test_byteBufferPositions_read_pread()
1624 final FileDescriptor fd = fis.getFD();
1772 StructStat structStat1 = Os.fstat(fos.getFD());
1779 StructStat structStat2 = Os.fstat(fos.getFD());
1869 FileDescriptor inFd = inStream.getFD();
[all …]
/libcore/ojluni/annotations/hiddenapi/java/io/
DFileOutputStream.java83 public final java.io.FileDescriptor getFD() throws java.io.IOException { in getFD() method in FileOutputStream
DFileInputStream.java85 public final java.io.FileDescriptor getFD() throws java.io.IOException { in getFD() method in FileInputStream
/libcore/ojluni/annotations/hiddenapi/java/net/
DSocketImpl.java74 public java.io.FileDescriptor getFD$() { in getFD$()

12