/libcore/luni/src/main/java/libcore/io/ |
H A D | AsynchronousCloseMonitor.java | 25 public static native void signalBlockedThreads(FileDescriptor fd); argument
|
/libcore/luni/src/main/native/ |
H A D | libcore_io_AsynchronousCloseMonitor.cpp | 26 int fd = jniGetFDFromFileDescriptor(env, javaFd); local 27 AsynchronousCloseMonitor::signalBlockedThreads(fd);
|
/libcore/ojluni/src/main/java/java/io/ |
H A D | FileReader.java | 79 * @param fd the FileDescriptor to read from 81 public FileReader(FileDescriptor fd) { argument 82 super(new FileInputStream(fd));
|
H A D | FileWriter.java | 113 * @param fd FileDescriptor object to write to. 115 public FileWriter(FileDescriptor fd) { argument 116 super(new FileOutputStream(fd));
|
H A D | FileDescriptor.java | 53 // Android-changed: Renamed fd to descriptor to avoid issues with JNI/reflection 159 public final void setInt$(int fd) { argument 160 this.descriptor = fd; 172 private static FileDescriptor dupFd(int fd) { argument 174 return new FileDescriptor(Os.fcntlInt(new FileDescriptor(fd), F_DUPFD_CLOEXEC, 0)); 185 public void set(FileDescriptor obj, int fd) { 186 obj.descriptor = fd;
|
/libcore/ojluni/src/main/native/ |
H A D | UnixAsynchronousSocketChannelImpl.c | 40 jobject this, int fd) 46 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &arglen); 39 Java_sun_nio_ch_UnixAsynchronousSocketChannelImpl_checkConnect(JNIEnv *env, jobject this, int fd) argument
|
H A D | socket_tagger_util.cpp | 26 int tagSocket(JNIEnv* env, int fd) { argument 27 if (env->ExceptionOccurred()) { return fd; } 35 jobject fileDescriptor = jniCreateFileDescriptor(env, fd); 37 return fd; 40 void untagSocket(JNIEnv* env, int fd) { argument 49 jobject fileDescriptor = jniCreateFileDescriptor(env, fd);
|
H A D | EPollPort.c | 52 Java_sun_nio_ch_EPollPort_interrupt(JNIEnv *env, jclass c, jint fd) { argument 56 RESTARTABLE(write(fd, buf, 1), res); 63 Java_sun_nio_ch_EPollPort_drain1(JNIEnv *env, jclass cl, jint fd) { argument 66 RESTARTABLE(read(fd, buf, 1), res); 73 Java_sun_nio_ch_EPollPort_close0(JNIEnv *env, jclass c, jint fd) { argument 75 RESTARTABLE(close(fd), res);
|
H A D | FileDescriptor_md.c | 41 /* field id for jint 'fd' in java.io.FileDescriptor */ 59 int fd = (*env)->GetIntField(env, this, IO_fd_fdID); local 60 if (JVM_Sync(fd) == -1) { 65 JNIEXPORT jboolean JNICALL FileDescriptor_isSocket(JNIEnv *env, jclass ignored, jint fd) { argument 68 return TEMP_FAILURE_RETRY(getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &error_length)) == 0;
|
H A D | SocketChannelImpl.c | 58 jint fd = fdval(env, fdo); local 64 poller.fd = fd; 78 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &n);
|
H A D | SocketInputStream.c | 60 jint fd, nread; local 68 fd = (*env)->GetIntField(env, fdObj, IO_fd_fdID); 72 if (fd == -1) { 96 nread = NET_Timeout(fd, timeout); 119 nread = NET_Read(fd, bufP, len);
|
H A D | DatagramDispatcher.c | 54 jint fd = fdval(env, fdo); local 56 int result = recv(fd, buf, len, 0); 71 jint fd = fdval(env, fdo); local 89 result = recvmsg(fd, &m, 0); 101 jint fd = fdval(env, fdo); local 103 int result = send(fd, buf, len, 0); 115 jint fd = fdval(env, fdo); local 134 result = sendmsg(fd, &m, 0);
|
H A D | EPoll.c | 72 jint opcode, jint fd, jint events) 78 event.data.fd = fd; 80 RESTARTABLE(epoll_ctl(epfd, (int)opcode, (int)fd, &event), res); 71 Java_sun_nio_ch_EPoll_epollCtl(JNIEnv *env, jclass c, jint epfd, jint opcode, jint fd, jint events) argument
|
/libcore/luni/src/main/java/android/system/ |
H A D | StructPollfd.java | 28 public FileDescriptor fd; field in class:StructPollfd 31 * The events we're interested in. POLLIN corresponds to being in select(2)'s read fd set, 32 * POLLOUT to the write fd set. 41 * their fd belongs to. This is used by Selector, for example, to associate each
|
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | JavaIOFileDescriptorAccess.java | 34 public void set(FileDescriptor obj, int fd); argument 35 public int get(FileDescriptor fd); argument
|
/libcore/luni/src/main/java/java/nio/ |
H A D | NioUtils.java | 56 return ((FileChannelImpl) fc).fd; 62 public static FileChannel newFileChannel(Closeable ioObject, FileDescriptor fd, int mode) { argument 66 return FileChannelImpl.open(fd, null, readable, writable, append, ioObject);
|
/libcore/luni/src/test/java/libcore/java/util/zip/ |
H A D | ZipFileTest.java | 48 FileDescriptor fd = new FileDescriptor(); 49 fd.setInt$(zipFile.getFileDescriptor()); 51 long initialOffset = android.system.Os.lseek(fd, 0, OsConstants.SEEK_CUR); 54 assertOffset(initialOffset, fd); 60 assertOffset(initialOffset, fd); 63 assertOffset(initialOffset, fd); 65 assertOffset(initialOffset, fd); 69 assertOffset(initialOffset, fd); 74 private static void assertOffset(long initialOffset, FileDescriptor fd) throws Exception { argument 75 long currentOffset = android.system.Os.lseek(fd, [all...] |
/libcore/ojluni/src/main/java/sun/net/ |
H A D | ExtendedOptionsImpl.java | 94 public static void setFlowOption(FileDescriptor fd, SocketFlow f) { argument 98 public static void getFlowOption(FileDescriptor fd, SocketFlow f) { argument
|
H A D | TelnetInputStream.java | 81 public TelnetInputStream(InputStream fd, boolean binary) { argument 82 super(fd);
|
H A D | TelnetOutputStream.java | 78 public TelnetOutputStream(OutputStream fd, boolean binary) { argument 79 super(fd);
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | FileKey.java | 41 public static FileKey create(FileDescriptor fd) { argument 44 fk.init(fd); 69 private native void init(FileDescriptor fd) throws IOException; argument
|
H A D | SocketDispatcher.java | 41 int read(FileDescriptor fd, long address, int len) throws IOException { argument 43 return FileDispatcherImpl.read0(fd, address, len); 46 long readv(FileDescriptor fd, long address, int len) throws IOException { argument 48 return FileDispatcherImpl.readv0(fd, address, len); 51 int write(FileDescriptor fd, long address, int len) throws IOException { argument 53 return FileDispatcherImpl.write0(fd, address, len); 56 long writev(FileDescriptor fd, long address, int len) throws IOException { argument 58 return FileDispatcherImpl.writev0(fd, address, len); 61 void close(FileDescriptor fd) throws IOException { argument 62 FileDispatcherImpl.close0(fd); 65 preClose(FileDescriptor fd) argument [all...] |
H A D | DatagramDispatcher.java | 40 int read(FileDescriptor fd, long address, int len) throws IOException { argument 42 return read0(fd, address, len); 45 long readv(FileDescriptor fd, long address, int len) throws IOException { argument 47 return readv0(fd, address, len); 50 int write(FileDescriptor fd, long address, int len) throws IOException { argument 52 return write0(fd, address, len); 55 long writev(FileDescriptor fd, long address, int len) throws IOException { argument 57 return writev0(fd, address, len); 60 void close(FileDescriptor fd) throws IOException { argument 61 FileDispatcherImpl.close0(fd); 64 preClose(FileDescriptor fd) argument 68 read0(FileDescriptor fd, long address, int len) argument 71 readv0(FileDescriptor fd, long address, int len) argument 74 write0(FileDescriptor fd, long address, int len) argument 77 writev0(FileDescriptor fd, long address, int len) argument [all...] |
H A D | NativeDispatcher.java | 38 abstract int read(FileDescriptor fd, long address, int len) argument 49 int pread(FileDescriptor fd, long address, int len, long position) argument 55 abstract long readv(FileDescriptor fd, long address, int len) argument 58 abstract int write(FileDescriptor fd, long address, int len) argument 61 int pwrite(FileDescriptor fd, long address, int len, long position) argument 67 abstract long writev(FileDescriptor fd, long address, int len) argument 70 abstract void close(FileDescriptor fd) throws IOException; argument 72 // Prepare the given fd for closing by duping it to a known internal fd 74 // (Solaris and Linux) to prevent fd recyclin 76 preClose(FileDescriptor fd) argument [all...] |
/libcore/ojluni/src/main/java/java/net/ |
H A D | SocketOutputStream.java | 53 * that the fd will not be closed. 80 * @param fd the FileDescriptor 86 private native void socketWrite0(FileDescriptor fd, byte[] b, int off, argument 106 FileDescriptor fd = impl.acquireFD(); 109 socketWrite0(fd, b, off, len); 174 * Overrides finalize, the fd is closed by the Socket.
|