/libcore/luni/src/main/java/libcore/io/ |
D | Os.java | 35 import java.io.FileDescriptor; 44 …public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, … in accept() 47 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind() 48 … public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException; in bind() 51 public void close(FileDescriptor fd) throws ErrnoException; in close() 52 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect() 53 …public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExcepti… in connect() 54 public FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException; in dup() 55 public FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException; in dup2() 59 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod() [all …]
|
D | Posix.java | 35 import java.io.FileDescriptor; 47 …public native FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoExce… in accept() 50 …public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind() 51 …public native void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExc… in bind() 54 public native void close(FileDescriptor fd) throws ErrnoException; in close() 55 …public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect() 56 …public native void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, Socket… in connect() 57 public native FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException; in dup() 58 public native FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException; in dup2() 62 public native void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod() [all …]
|
D | ForwardingOs.java | 35 import java.io.FileDescriptor; 53 …public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoException, … in accept() 56 …public void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, SocketEx… in bind() 57 …public void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketException … in bind() 60 public void close(FileDescriptor fd) throws ErrnoException { os.close(fd); } in close() 61 …public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, Socke… in connect() 62 …public void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExcepti… in connect() 63 public FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException { return os.dup(oldFd); } in dup() 64 …public FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException { return os.dup2… in dup2() 68 public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { os.fchmod(fd, mode); } in fchmod() [all …]
|
D | BlockGuardOs.java | 27 import java.io.FileDescriptor; 45 private FileDescriptor tagSocket(FileDescriptor fd) throws ErrnoException { in tagSocket() 54 private void untagSocket(FileDescriptor fd) throws ErrnoException { in untagSocket() 62 …@Override public FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoE… in accept() 82 @Override public void close(FileDescriptor fd) throws ErrnoException { in close() 105 private static boolean isLingerSocket(FileDescriptor fd) throws ErrnoException { in isLingerSocket() 110 …@Override public void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoExcept… in connect() 115 @Override public void fchmod(FileDescriptor fd, int mode) throws ErrnoException { in fchmod() 120 @Override public void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { in fchown() 127 @Override public void fdatasync(FileDescriptor fd) throws ErrnoException { in fdatasync() [all …]
|
D | IoBridge.java | 26 import java.io.FileDescriptor; 57 public static int available(FileDescriptor fd) throws IOException { in available() 81 … public static void bind(FileDescriptor fd, InetAddress address, int port) throws SocketException { in bind() 110 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port) throws SocketExce… in connect() 122 …public static void connect(FileDescriptor fd, InetAddress inetAddress, int port, int timeoutMs) th… in connect() 136 …private static void connectErrno(FileDescriptor fd, InetAddress inetAddress, int port, int timeout… in connectErrno() 196 public static void closeAndSignalBlockedThreads(FileDescriptor fd) throws IOException { in closeAndSignalBlockedThreads() 202 FileDescriptor oldFd = new FileDescriptor(); in closeAndSignalBlockedThreads() 212 …public static boolean isConnected(FileDescriptor fd, InetAddress inetAddress, int port, int timeou… in isConnected() 253 public static Object getSocketOption(FileDescriptor fd, int option) throws SocketException { in getSocketOption() [all …]
|
D | AsynchronousCloseMonitor.java | 19 import java.io.FileDescriptor; 25 public static native void signalBlockedThreads(FileDescriptor fd); in signalBlockedThreads()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | FileDispatcherImpl.java | 44 int read(FileDescriptor fd, long address, int len) throws IOException { in read() 49 int pread(FileDescriptor fd, long address, int len, long position) in pread() 56 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv() 61 int write(FileDescriptor fd, long address, int len) throws IOException { in write() 66 int pwrite(FileDescriptor fd, long address, int len, long position) in pwrite() 73 long writev(FileDescriptor fd, long address, int len) in writev() 80 int force(FileDescriptor fd, boolean metaData) throws IOException { in force() 85 int truncate(FileDescriptor fd, long size) throws IOException { in truncate() 90 long size(FileDescriptor fd) throws IOException { in size() 95 int lock(FileDescriptor fd, boolean blocking, long pos, long size, in lock() [all …]
|
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 | DatagramDispatcher.java | 40 int read(FileDescriptor fd, long address, int len) throws IOException { in read() 45 long readv(FileDescriptor fd, long address, int len) throws IOException { in readv() 50 int write(FileDescriptor fd, long address, int len) throws IOException { in write() 55 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev() 60 void close(FileDescriptor fd) throws IOException { in close() 64 void preClose(FileDescriptor fd) throws IOException { in preClose() 68 static native int read0(FileDescriptor fd, long address, int len) in read0() 71 static native long readv0(FileDescriptor fd, long address, int len) in readv0() 74 static native int write0(FileDescriptor fd, long address, int len) in write0() 77 static native long writev0(FileDescriptor fd, long address, int len) in writev0()
|
D | FileDispatcher.java | 37 abstract int force(FileDescriptor fd, boolean metaData) throws IOException; in force() 39 abstract int truncate(FileDescriptor fd, long size) throws IOException; in truncate() 41 abstract long size(FileDescriptor fd) throws IOException; in size() 43 abstract int lock(FileDescriptor fd, boolean blocking, long pos, long size, in lock() 46 abstract void release(FileDescriptor fd, long pos, long size) in release() 54 abstract FileDescriptor duplicateForMapping(FileDescriptor fd) in duplicateForMapping()
|
D | Net.java | 331 static void setSocketOption(FileDescriptor fd, ProtocolFamily family, 386 static Object getSocketOption(FileDescriptor fd, ProtocolFamily family, 425 static FileDescriptor socket(boolean stream) throws IOException { 429 static FileDescriptor socket(ProtocolFamily family, boolean stream) 436 static FileDescriptor serverSocket(boolean stream) { 443 static void bind(FileDescriptor fd, InetAddress addr, int port) 449 static void bind(ProtocolFamily family, FileDescriptor fd, 457 private static native void bind0(FileDescriptor fd, boolean preferIPv6, 462 static native void listen(FileDescriptor fd, int backlog) throws IOException; 464 static int connect(FileDescriptor fd, InetAddress remote, int remotePort) [all …]
|
D | SocketDispatcher.java | 41 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() 51 int write(FileDescriptor fd, long address, int len) throws IOException { in write() 56 long writev(FileDescriptor fd, long address, int len) throws IOException { in writev() 61 void close(FileDescriptor fd) throws IOException { in close() 65 void preClose(FileDescriptor fd) throws IOException { in preClose()
|
D | PipeImpl.java | 45 FileDescriptor sourcefd = new FileDescriptor(); in PipeImpl() 48 FileDescriptor sinkfd = new FileDescriptor(); in PipeImpl()
|
D | IOUtil.java | 28 import java.io.FileDescriptor; 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() 319 static FileDescriptor newFD(int i) { in newFD() [all …]
|
D | FileKey.java | 28 import java.io.FileDescriptor; 41 public static FileKey create(FileDescriptor fd) { in create() 69 private native void init(FileDescriptor fd) throws IOException; in init()
|
D | InheritedChannel.java | 29 import java.io.FileDescriptor; 79 FileDescriptor fd, in InheritedSocketChannelImpl() 96 FileDescriptor fd) in InheritedServerSocketChannelImpl() 113 FileDescriptor fd) in InheritedDatagramChannelImpl() 172 FileDescriptor fd = (FileDescriptor)Reflect.invoke(ctr, args); in createChannel()
|
/libcore/ojluni/src/main/java/java/io/ |
D | FileDescriptor.java | 49 public final class FileDescriptor { class 57 public FileDescriptor() { in FileDescriptor() method in FileDescriptor 61 private FileDescriptor(int descriptor) { in FileDescriptor() method in FileDescriptor 72 public static final FileDescriptor in = dupFd(0); 80 public static final FileDescriptor out = dupFd(1); 89 public static final FileDescriptor err = dupFd(2); 161 private static FileDescriptor dupFd(int fd) { in dupFd() 163 return new FileDescriptor(Os.fcntlInt(new FileDescriptor(fd), F_DUPFD_CLOEXEC, 0)); in dupFd()
|
D | FileOutputStream.java | 63 private final FileDescriptor fd; 215 this.fd = new FileDescriptor(); in FileOutputStream() 248 public FileOutputStream(FileDescriptor fdObj) { in FileOutputStream() 258 public FileOutputStream(FileDescriptor fdObj, boolean isFdOwner) { in FileOutputStream() 371 public final FileDescriptor getFD() throws IOException { in getFD() 416 if (fd == FileDescriptor.out || fd == FileDescriptor.err) { in finalize()
|
D | FileInputStream.java | 58 private final FileDescriptor fd; 141 fd = new FileDescriptor(); in FileInputStream() 170 public FileInputStream(FileDescriptor fdObj) { in FileInputStream() 175 public FileInputStream(FileDescriptor fdObj, boolean isFdOwner) { in FileInputStream() 374 public final FileDescriptor getFD() throws IOException { in getFD() 417 if ((fd != null) && (fd != FileDescriptor.in)) { in finalize()
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 21 import java.io.FileDescriptor; 43 …public static FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws Errno… in accept() 49 …public static FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoExce… in accept() 61 …public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind() 63 …/** @hide */ public static void bind(FileDescriptor fd, SocketAddress address) throws ErrnoExcepti… in bind() 78 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd); } in close() 83 …public static void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect() 85 …/** @hide */ public static void connect(FileDescriptor fd, SocketAddress address) throws ErrnoExce… in connect() 90 …public static FileDescriptor dup(FileDescriptor oldFd) throws ErrnoException { return Libcore.os.d… in dup() 95 …public static FileDescriptor dup2(FileDescriptor oldFd, int newFd) throws ErrnoException { return … in dup2() [all …]
|
/libcore/dalvik/src/main/java/dalvik/system/ |
D | SocketTagger.java | 19 import java.io.FileDescriptor; 32 @Override public void tag(FileDescriptor socketDescriptor) throws SocketException {} 33 @Override public void untag(FileDescriptor socketDescriptor) throws SocketException {} 41 public abstract void tag(FileDescriptor socketDescriptor) throws SocketException; in tag() 51 public abstract void untag(FileDescriptor socketDescriptor) throws SocketException; in untag()
|
/libcore/ojluni/src/main/java/sun/net/ |
D | NetHooks.java | 29 import java.io.FileDescriptor; 83 public static void beforeTcpBind(FileDescriptor fdObj, in beforeTcpBind() 95 public static void beforeTcpConnect(FileDescriptor fdObj, in beforeTcpConnect()
|
/libcore/ojluni/src/main/java/java/net/ |
D | PlainSocketImpl.java | 29 import java.io.FileDescriptor; 43 this(new FileDescriptor()); in PlainSocketImpl() 49 PlainSocketImpl(FileDescriptor fd) { in PlainSocketImpl()
|
D | SocketImpl.java | 32 import java.io.FileDescriptor; 55 protected FileDescriptor fd; 225 protected FileDescriptor getFileDescriptor() { in getFileDescriptor() 232 public FileDescriptor getFD$() { in getFD$()
|
D | DatagramSocketImpl.java | 28 import java.io.FileDescriptor; 48 protected FileDescriptor fd; 241 protected FileDescriptor getFileDescriptor() { in getFileDescriptor()
|