/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | FileDispatcherImpl.java | 50 int read(FileDescriptor fd, long address, int len) throws IOException { in read() 56 int pread(FileDescriptor fd, long address, int len, long position) in pread() 64 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv() 70 int write(FileDescriptor fd, long address, int len) throws IOException { in write() 76 int pwrite(FileDescriptor fd, long address, int len, long position) in pwrite() 84 long writev(FileDescriptor fd, long address, int len) in writev() 92 int force(FileDescriptor fd, boolean metaData) throws IOException { in force() 98 int truncate(FileDescriptor fd, long size) throws IOException { in truncate() 104 long size(FileDescriptor fd) throws IOException { in size() 110 int lock(FileDescriptor fd, boolean blocking, long pos, long size, in lock() [all …]
|
D | DatagramDispatcher.java | 45 int read(FileDescriptor fd, long address, int len) throws IOException { in read() 51 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv() 57 int write(FileDescriptor fd, long address, int len) throws IOException { in write() 63 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev() 69 void close(FileDescriptor fd) throws IOException { in close() 73 void preClose(FileDescriptor fd) throws IOException { in preClose() 77 static native int read0(FileDescriptor fd, long address, int len) in read0() 80 static native long readv0(FileDescriptor fd, long address, int len) in readv0() 83 static native int write0(FileDescriptor fd, long address, int len) in write0() 86 static native long writev0(FileDescriptor fd, long address, int len) in writev0()
|
D | NativeDispatcher.java | 38 abstract int read(FileDescriptor fd, long address, int len) in read() 49 int pread(FileDescriptor fd, long address, int len, long position) in pread() 55 abstract long readv(FileDescriptor fd, long address, int len) in readv() 58 abstract int write(FileDescriptor fd, long address, int len) in write() 61 int pwrite(FileDescriptor fd, long address, int len, long position) in pwrite() 67 abstract long writev(FileDescriptor fd, long address, int len) in writev() 70 abstract void close(FileDescriptor fd) throws IOException; in close() 76 void preClose(FileDescriptor fd) throws IOException { in preClose()
|
D | SocketDispatcher.java | 40 int read(FileDescriptor fd, long address, int len) throws IOException { in read() 46 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv() 52 int write(FileDescriptor fd, long address, int len) throws IOException { in write() 58 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev() 64 void close(FileDescriptor fd) throws IOException { in close() 68 void preClose(FileDescriptor fd) throws IOException { in preClose()
|
D | FileDispatcher.java | 39 abstract int force(FileDescriptor fd, boolean metaData) throws IOException; in force() 41 abstract int truncate(FileDescriptor fd, long size) throws IOException; in truncate() 43 abstract long size(FileDescriptor fd) throws IOException; in size() 45 abstract int lock(FileDescriptor fd, boolean blocking, long pos, long size, in lock() 48 abstract void release(FileDescriptor fd, long pos, long size) in release() 56 abstract FileDescriptor duplicateForMapping(FileDescriptor fd) in duplicateForMapping()
|
D | IOUtil.java | 46 static int write(FileDescriptor fd, ByteBuffer src, long position, in write() 76 private static int writeFromNativeBuffer(FileDescriptor fd, ByteBuffer bb, in writeFromNativeBuffer() 100 static long write(FileDescriptor fd, ByteBuffer[] bufs, NativeDispatcher nd) in write() 106 static long write(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length, in write() 185 static int read(FileDescriptor fd, ByteBuffer dst, long position, in read() 207 private static int readIntoNativeBuffer(FileDescriptor fd, ByteBuffer bb, in readIntoNativeBuffer() 230 static long read(FileDescriptor fd, ByteBuffer[] bufs, NativeDispatcher nd) in read() 236 static long read(FileDescriptor fd, ByteBuffer[] bufs, int offset, int length, in read() 320 FileDescriptor fd = new FileDescriptor(); in newFD() local 334 static native boolean drain(int fd) throws IOException; in drain() [all …]
|
D | Port.java | 64 final void register(int fd, PollableChannel ch) { in register() 79 protected void preUnregister(int fd) { in preUnregister() 86 final void unregister(int fd) { in unregister() 114 abstract void startPoll(int fd, int events); in startPoll() 127 final Object attachForeignChannel(final Channel channel, FileDescriptor fd) { in attachForeignChannel()
|
/libcore/luni/src/main/java/libcore/io/ |
D | BlockGuardOs.java | 53 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException { in tagSocket() 62 …@Override public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoE… in accept() 94 @Override public void close(FileDescriptor fd) throws ErrnoException { in close() 116 public static boolean isNonBlockingFile(FileDescriptor fd) throws ErrnoException { in isNonBlockingFile() 124 public static boolean isUnixSocket(FileDescriptor fd) throws ErrnoException { in isUnixSocket() 132 private static boolean isInetSocket(FileDescriptor fd) throws ErrnoException{ in isInetSocket() 140 private static boolean isLingerSocket(FileDescriptor fd) throws ErrnoException { in isLingerSocket() 145 private static boolean isUdpSocket(FileDescriptor fd) throws ErrnoException { in isUdpSocket() 149 @Override public void connect(FileDescriptor fd, InetAddress address, int port) in connect() 160 @Override public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, in connect() [all …]
|
D | ForwardingOs.java | 93 …public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, … in accept() 141 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind() 146 …public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException … in bind() 179 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } in close() 184 …public void android_fdsan_exchange_owner_tag(FileDescriptor fd, long previousOwnerId, long newOwne… in android_fdsan_exchange_owner_tag() 189 …public long android_fdsan_get_owner_tag(FileDescriptor fd) { return os.android_fdsan_get_owner_tag… in android_fdsan_get_owner_tag() 204 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect() 209 …public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExcepti… in connect() 239 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { os.fchmod(fd, mode); } in fchmod() 244 …public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { os.fchown(fd, uid,… in fchown() [all …]
|
D | Os.java | 68 …public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, … in accept() 83 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind() 88 … public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; in bind() 115 public void close(FileDescriptor fd) throws ErrnoException; in close() 120 …public void android_fdsan_exchange_owner_tag(FileDescriptor fd, long previousOwnerId, long newOwne… in android_fdsan_exchange_owner_tag() 125 public long android_fdsan_get_owner_tag(FileDescriptor fd); in android_fdsan_get_owner_tag() 142 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect() 147 …public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExcepti… in connect() 177 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod() 182 public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown() [all …]
|
D | IoBridge.java | 105 public static int available(FileDescriptor fd) throws IOException { in available() 128 … public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException { in bind() 164 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketExce… in connect() 178 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) th… in connect() 199 …private static void connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int timeout… in connectErrno() 247 private static String createMessageForException(FileDescriptor fd, InetAddress inetAddress, in createMessageForException() 298 public static void closeAndSignalBlockedThreads(@NonNull FileDescriptor fd) throws IOException { in closeAndSignalBlockedThreads() 321 public static boolean isConnected(FileDescriptor fd, InetAddress inetAddress, int port, in isConnected() 367 public static Object getSocketOption(FileDescriptor fd, int option) throws SocketException { in getSocketOption() 375 …private static Object getSocketOptionErrno(FileDescriptor fd, int option) throws ErrnoException, S… in getSocketOptionErrno() [all …]
|
D | IoUtils.java | 69 public static int acquireRawFd(@NonNull FileDescriptor fd) { in acquireRawFd() 155 public static void setFdOwner(@NonNull FileDescriptor fd, @NonNull Object owner) { in setFdOwner() 183 public static void close(@Nullable FileDescriptor fd) throws IOException { in close() 218 public static void closeQuietly(@Nullable FileDescriptor fd) { in closeQuietly() 258 … public static void setBlocking(@NonNull FileDescriptor fd, boolean blocking) throws IOException { in setBlocking() 341 FileDescriptor fd = Libcore.os.open(path, O_RDONLY, 0); in canOpenReadOnly() local 374 private FileDescriptor fd; field in IoUtils.FileReader
|
/libcore/luni/src/test/java/libcore/libcore/io/ |
D | FdsanTest.java | 35 FileDescriptor fd = fis.getFD(); in testFileInputStream() local 45 FileDescriptor fd = fis.getFD(); in testFileOutputStream() local 55 FileDescriptor fd = fis.getFD(); in testRandomAccessFile() local 79 FileDescriptor fd = (FileDescriptor)pfdMethodGetFileDescriptor.invoke(pfd); in testParcelFileDescriptor() local 90 FileDescriptor fd = socket.getFileDescriptor$(); in testDatagramSocket() local 101 public void assertFdOwnedBySocket(FileDescriptor fd) throws Exception { in assertFdOwnedBySocket()
|
/libcore/ojluni/src/main/native/ |
D | FileDispatcherImpl.c | 69 jint fd = fdval(env, fdo); in FileDispatcherImpl_read0() local 79 jint fd = fdval(env, fdo); in FileDispatcherImpl_pread0() local 89 jint fd = fdval(env, fdo); in FileDispatcherImpl_readv0() local 98 jint fd = fdval(env, fdo); in FileDispatcherImpl_write0() local 108 jint fd = fdval(env, fdo); in FileDispatcherImpl_pwrite0() local 118 jint fd = fdval(env, fdo); in FileDispatcherImpl_writev0() local 138 jint fd = fdval(env, fdo); in FileDispatcherImpl_force0() local 174 jint fd = fdval(env, fdo); in FileDispatcherImpl_size0() local 197 jint fd = fdval(env, fdo); in FileDispatcherImpl_lock0() local 234 jint fd = fdval(env, fdo); in FileDispatcherImpl_release0() local [all …]
|
D | EPollPort.c | 52 Java_sun_nio_ch_EPollPort_interrupt(JNIEnv *env, jclass c, jint fd) { in Java_sun_nio_ch_EPollPort_interrupt() 63 Java_sun_nio_ch_EPollPort_drain1(JNIEnv *env, jclass cl, jint fd) { in Java_sun_nio_ch_EPollPort_drain1() 73 Java_sun_nio_ch_EPollPort_close0(JNIEnv *env, jclass c, jint fd) { in Java_sun_nio_ch_EPollPort_close0()
|
D | FileInputStream.c | 79 FD fd = GET_FD(this, fis_fd); in FileInputStream_skip0() local 96 static int available(int fd, jlong *bytes) { in available() 133 FD fd = GET_FD(this, fis_fd); in FileInputStream_available0() local
|
D | DatagramDispatcher.c | 54 jint fd = fdval(env, fdo); in Java_sun_nio_ch_DatagramDispatcher_read0() local 71 jint fd = fdval(env, fdo); in Java_sun_nio_ch_DatagramDispatcher_readv0() local 101 jint fd = fdval(env, fdo); in Java_sun_nio_ch_DatagramDispatcher_write0() local 115 jint fd = fdval(env, fdo); in Java_sun_nio_ch_DatagramDispatcher_writev0() local
|
D | io_util_md.c | 75 FD fd; in handleOpen() local 100 FD fd; in fileOpen() local 121 FD fd = GET_FD(this, fid); in fileClose() local
|
D | io_util.c | 43 FD fd = GET_FD(this, fid); in readSingle() local 83 FD fd; in readBytes() local 135 FD fd = GET_FD(this, fid); in writeSingle() local 159 FD fd; in writeBytes() local
|
D | io_util_md.h | 49 #define SET_FD(this, fd, fid) \ argument 75 #define SET_HANDLE(fd) return (jlong)-1 argument
|
D | FileDescriptor_md.c | 59 int fd = (*env)->GetIntField(env, this, IO_fd_fdID); in FileDescriptor_sync() local 65 JNIEXPORT jboolean JNICALL FileDescriptor_isSocket(JNIEnv *env, jclass ignored, jint fd) { in FileDescriptor_isSocket()
|
/libcore/luni/src/main/native/ |
D | AsynchronousCloseMonitor.h | 54 explicit AsynchronousCloseMonitor(int fd) { in AsynchronousCloseMonitor() 68 static void signalBlockedThreads(int fd) { in signalBlockedThreads()
|
D | AsynchronousCloseMonitor.cpp | 91 void AsynchronousCloseMonitorImpl::signalBlockedThreads(int fd) { in signalBlockedThreads() 106 AsynchronousCloseMonitorImpl::AsynchronousCloseMonitorImpl(int fd) { in AsynchronousCloseMonitorImpl() 145 void async_close_monitor_signal_blocked_threads(int fd) { in async_close_monitor_signal_blocked_threads() 149 void* async_close_monitor_create(int fd) { in async_close_monitor_create()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | FileDescriptorTest.java | 43 FileDescriptor fd = fos.getFD(); in test_sync() local 79 FileDescriptor fd = fos.getFD(); in test_valid() local
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 113 final FileDescriptor fd = Os.socket(AF_INET, SOCK_DGRAM, 0); in testFcntlInt_udpSocket() local 131 final FileDescriptor fd = Os.socket(AF_INET, SOCK_DGRAM, 0); in testFcntlInt_invalidCmd() local 168 final FileDescriptor fd = Os.socket(AF_UNIX, SOCK_STREAM, 0); in testUnixDomainSocket_unnamed() local 230 private static void checkSockName(FileDescriptor fd, boolean isAbstract, in checkSockName() 243 private void checkNoPeerName(FileDescriptor fd) throws Exception { in checkNoPeerName() 247 private void checkNoSockName(FileDescriptor fd) throws Exception { in checkNoSockName() 260 FileDescriptor fd = fos.getFD(); in test_byteBufferPositions_write_pwrite() local 290 FileDescriptor fd = fis.getFD(); in test_byteBufferPositions_read_pread() local 634 FileDescriptor fd = Os.socket(AF_PACKET, SOCK_DGRAM, ETH_P_IPV6); in test_PacketSocketAddress() local
|