Home
last modified time | relevance | path

Searched defs:fd (Results 1 – 25 of 122) sorted by relevance

12345

/libcore/ojluni/src/main/java/sun/nio/ch/
DFileDispatcherImpl.java50 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 …]
DDatagramDispatcher.java45 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()
DNativeDispatcher.java38 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()
DSocketDispatcher.java40 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()
DFileDispatcher.java39 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()
DIOUtil.java46 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 …]
DPort.java64 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()
DEPollPort.java172 void startPoll(int fd, int events) { in startPoll()
205 int fd = getDescriptor(eventAddress); in poll() local
314 private static native void interrupt(int fd) throws IOException; in interrupt()
316 private static native void drain1(int fd) throws IOException; in drain1()
318 private static native void close0(int fd); in close0()
DFileKey.java41 public static FileKey create(FileDescriptor fd) { in create()
69 private native void init(FileDescriptor fd) throws IOException; in init()
/libcore/luni/src/main/java/libcore/io/
DBlockGuardOs.java53 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 …]
DOs.java68 …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 …]
DForwardingOs.java93 …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 …]
DIoBridge.java105 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 …]
DLinux.java51 …public native FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoExce… in accept()
54 …public native void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
55 …public native void bind(FileDescriptor fd, SocketAddress address) throws ErrnoException, SocketExc… in bind()
64 public native void close(FileDescriptor fd) throws ErrnoException; in close()
65 …public native void android_fdsan_exchange_owner_tag(FileDescriptor fd, long previousOwnerId, long … in android_fdsan_exchange_owner_tag()
66 public native long android_fdsan_get_owner_tag(FileDescriptor fd); in android_fdsan_get_owner_tag()
70 …public native void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect()
71 …public native void connect(FileDescriptor fd, SocketAddress address) throws ErrnoException, Socket… in connect()
77 public native void fchmod(FileDescriptor fd, int mode) throws ErrnoException; in fchmod()
78 public native void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException; in fchown()
[all …]
DIoUtils.java69 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/main/java/android/system/
DOs.java51 …public static FileDescriptor accept(FileDescriptor fd, InetSocketAddress peerAddress) throws Errno… in accept()
57 …public static FileDescriptor accept(FileDescriptor fd, SocketAddress peerAddress) throws ErrnoExce… in accept()
70 …public static void bind(FileDescriptor fd, InetAddress address, int port) throws ErrnoException, S… in bind()
75 …ull SocketAddress address) throws ErrnoException, SocketException { Libcore.os.bind(fd, address); } in bind()
131 public static void close(FileDescriptor fd) throws ErrnoException { Libcore.os.close(fd); } in close()
136 …public static void connect(FileDescriptor fd, InetAddress address, int port) throws ErrnoException… in connect()
141 … SocketAddress address) throws ErrnoException, SocketException { Libcore.os.connect(fd, address); } in connect()
171 …public static void fchmod(FileDescriptor fd, int mode) throws ErrnoException { Libcore.os.fchmod(f… in fchmod()
176 …public static void fchown(FileDescriptor fd, int uid, int gid) throws ErrnoException { Libcore.os.… in fchown()
181 …escriptor fd, int cmd, int arg) throws ErrnoException { return Libcore.os.fcntlInt(fd, cmd, arg); } in fcntlInt()
[all …]
/libcore/ojluni/src/main/native/
DFileDispatcherImpl.c69 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 …]
DEPollPort.c52 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()
DFileInputStream.c79 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
DDatagramDispatcher.c54 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
/libcore/luni/src/test/java/libcore/libcore/io/
DFdsanTest.java35 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/luni/src/main/native/
DAsynchronousCloseMonitor.h54 explicit AsynchronousCloseMonitor(int fd) { in AsynchronousCloseMonitor()
68 static void signalBlockedThreads(int fd) { in signalBlockedThreads()
DAsynchronousCloseMonitor.cpp91 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/ojluni/src/main/java/sun/misc/
DJavaIOFileDescriptorAccess.java34 public void set(FileDescriptor obj, int fd); in set()
35 public int get(FileDescriptor fd); in get()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DFileDescriptorTest.java43 FileDescriptor fd = fos.getFD(); in test_sync() local
79 FileDescriptor fd = fos.getFD(); in test_valid() local

12345