Searched defs:fd (Results 1 - 25 of 43) sorted by last modified time

12

/libcore/dalvik/src/main/java/dalvik/system/
H A DVMDebug.java184 FileDescriptor fd, int bufferSize, int flags)
186 if (traceFileName == null || fd == null) {
190 startMethodTracingNative(traceFileName, fd, bufferSize, flags);
206 FileDescriptor fd, int bufferSize, int flags);
316 * @param fileName Name of output file. If fd is non-null, the
318 * @param fd Descriptor of open file that will receive the output.
321 public static native void dumpHprofData(String fileName, FileDescriptor fd) argument
183 startMethodTracing(String traceFileName, FileDescriptor fd, int bufferSize, int flags) argument
205 startMethodTracingNative(String traceFileName, FileDescriptor fd, int bufferSize, int flags) argument
/libcore/include/
H A DScopedFd.h22 // A smart pointer that closes the given fd on going out of scope.
23 // Use this when the fd is incidental to the purpose of your function,
27 explicit ScopedFd(int fd) : fd(fd) { argument
31 close(fd);
35 return fd;
39 int fd; member in class:ScopedFd
/libcore/luni/src/main/java/java/io/
H A DFileDescriptor.java91 * Returns the int fd. It's highly unlikely you should be calling this. Please discuss
100 * Sets the int fd. It's highly unlikely you should be calling this. Please discuss
104 public final void setInt$(int fd) { argument
105 this.descriptor = fd;
H A DFileInputStream.java58 private FileDescriptor fd; field in class:FileInputStream
78 this.fd = IoBridge.open(file.getAbsolutePath(), O_RDONLY);
84 * Constructs a new {@code FileInputStream} that reads from {@code fd}.
86 * @param fd
89 * if {@code fd} is {@code null}.
91 public FileInputStream(FileDescriptor fd) { argument
92 if (fd == null) {
93 throw new NullPointerException("fd == null");
95 this.fd = fd;
[all...]
H A DFileOutputStream.java55 private FileDescriptor fd; field in class:FileOutputStream
88 this.fd = IoBridge.open(file.getAbsolutePath(), mode);
94 * Constructs a new {@code FileOutputStream} that writes to {@code fd}.
96 * @throws NullPointerException if {@code fd} is null.
98 public FileOutputStream(FileDescriptor fd) { argument
99 if (fd == null) {
100 throw new NullPointerException("fd == null");
102 this.fd = fd;
105 this.channel = NioUtils.newFileChannel(this, fd, mod
[all...]
H A DFileReader.java46 * Construct a new FileReader on the given FileDescriptor {@code fd}. Since
50 * @param fd
53 public FileReader(FileDescriptor fd) { argument
54 super(new FileInputStream(fd));
H A DFileWriter.java62 * Creates a FileWriter using the existing FileDescriptor {@code fd}.
64 * @param fd
67 public FileWriter(FileDescriptor fd) { argument
68 super(new FileOutputStream(fd));
H A DRandomAccessFile.java46 private FileDescriptor fd; field in class:RandomAccessFile
118 this.fd = IoBridge.open(file.getAbsolutePath(), flags);
123 fd.sync();
166 IoUtils.close(fd);
193 channel = NioUtils.newFileChannel(this, fd, mode);
208 return fd;
223 return Libcore.os.lseek(fd, 0L, SEEK_CUR);
238 return Libcore.os.fstat(fd).st_size;
290 return IoBridge.read(fd, buffer, byteOffset, byteCount);
604 Libcore.os.lseek(fd, offse
[all...]
/libcore/luni/src/main/java/java/lang/
H A DProcessManager.java342 /** Automatically closes fd when collected. */
345 private FileDescriptor fd; field in class:ProcessManager.ProcessInputStream
347 private ProcessInputStream(FileDescriptor fd) { argument
348 super(fd);
349 this.fd = fd;
359 IoUtils.close(fd);
361 fd = null;
368 /** Automatically closes fd when collected. */
371 private FileDescriptor fd; field in class:ProcessManager.ProcessOutputStream
373 ProcessOutputStream(FileDescriptor fd) argument
[all...]
H A DSecurityManager.java79 public void checkRead(FileDescriptor fd) { } argument
97 public void checkWrite(FileDescriptor fd) { } argument
/libcore/luni/src/main/java/java/net/
H A DDatagramSocketImpl.java32 protected FileDescriptor fd; field in class:DatagramSocketImpl
81 return fd;
88 return IoBridge.getSocketLocalAddress(fd);
H A DPlainDatagramSocketImpl.java55 public PlainDatagramSocketImpl(FileDescriptor fd, int localPort) { argument
56 this.fd = fd;
58 if (fd.valid()) {
64 fd = new FileDescriptor();
68 IoBridge.bind(fd, address, port);
72 localPort = IoBridge.getSocketLocalPort(fd);
84 IoBridge.closeSocket(fd);
91 this.fd = IoBridge.socket(false);
106 return IoBridge.getSocketOption(fd, optio
[all...]
H A DPlainServerSocketImpl.java32 public PlainServerSocketImpl(FileDescriptor fd) { argument
33 super(fd);
H A DPlainSocketImpl.java62 public PlainSocketImpl(FileDescriptor fd) { argument
63 this.fd = fd;
64 if (fd.valid()) {
78 public PlainSocketImpl(FileDescriptor fd, int localport, InetAddress addr, int port) { argument
79 this.fd = fd;
83 if (fd.valid()) {
98 FileDescriptor clientFd = Libcore.os.accept(fd, peerAddress);
100 // TODO: we can't just set newImpl.fd t
[all...]
H A DSocketImpl.java49 protected FileDescriptor fd; field in class:SocketImpl
141 return fd;
148 return fd;
/libcore/luni/src/main/java/java/nio/
H A DDatagramChannelImpl.java49 // The fd to interact with native code
50 private final FileDescriptor fd; field in class:DatagramChannelImpl
75 fd = IoBridge.socket(false);
84 fd = new FileDescriptor();
95 socket = new DatagramSocketAdapter(new PlainDatagramSocketImpl(fd, localPort), this);
104 return IoBridge.getSocketLocalAddress(fd);
131 IoBridge.connect(fd, inetSocketAddress.getAddress(), inetSocketAddress.getPort());
156 Libcore.os.connect(fd, InetAddress.UNSPECIFIED, 0);
209 received = IoBridge.recvfrom(false, fd, receivePacket.getData(), receivePacket.getOffset(), receivePacket.getLength(), 0, receivePacket, isConnected());
232 received = IoBridge.recvfrom(false, fd, targe
[all...]
H A DFileChannelImpl.java55 private final FileDescriptor fd; field in class:FileChannelImpl
63 * fd and operates in the specified mode.
65 public FileChannelImpl(Object stream, FileDescriptor fd, int mode) { argument
66 this.fd = fd;
122 success = (Libcore.os.fcntlFlock(fd, wait ? F_SETLKW64 : F_SETLK64, flock) != -1);
194 Libcore.os.fcntlFlock(fd, F_SETLKW64, flock);
207 Libcore.os.fsync(fd);
209 Libcore.os.fdatasync(fd);
237 Libcore.os.ftruncate(fd, positio
[all...]
H A DIoVec.java72 int doTransfer(FileDescriptor fd) throws IOException { argument
75 int result = Libcore.os.readv(fd, ioBuffers, offsets, byteCounts);
81 return Libcore.os.writev(fd, ioBuffers, offsets, byteCounts);
H A DMemoryBlock.java95 public static MemoryBlock mmap(FileDescriptor fd, long offset, long size, MapMode mapMode) throws IOException { argument
117 int address = (int) Libcore.os.mmap(0L, size, prot, flags, fd, offset);
H A DNioUtils.java71 public static FileChannel newFileChannel(Object stream, FileDescriptor fd, int mode) { argument
72 return new FileChannelImpl(stream, fd, mode);
H A DPipeImpl.java61 private final FileDescriptor fd; field in class:PipeImpl.PipeSourceChannel
64 private PipeSourceChannel(SelectorProvider selectorProvider, FileDescriptor fd) throws IOException { argument
66 this.fd = fd;
67 this.channel = new SocketChannelImpl(selectorProvider, fd);
91 return fd;
96 private final FileDescriptor fd; field in class:PipeImpl.PipeSinkChannel
99 private PipeSinkChannel(SelectorProvider selectorProvider, FileDescriptor fd) throws IOException { argument
101 this.fd = fd;
[all...]
H A DSelectorImpl.java147 // Blocks until some fd is ready.
199 private void setPollFd(int i, FileDescriptor fd, int events, Object object) { argument
201 pollFd.fd = fd;
247 if (pollFd.fd == null) {
253 pollFd.fd = null;
H A DSocketChannelImpl.java69 private final FileDescriptor fd; field in class:SocketChannelImpl
102 fd = (connect ? IoBridge.socket(true) : new FileDescriptor());
111 fd = existingFd;
128 socket = new SocketAdapter(new PlainSocketImpl(fd, localPort, addr, port), this);
177 finished = IoBridge.connect(fd, normalAddr, port);
215 sa = Libcore.os.getsockname(fd);
246 finished = IoBridge.isConnected(fd, inetAddress, port, 0, 0); // Return immediately.
314 readCount = IoBridge.recvfrom(true, fd, dst, 0, null, false);
378 writeCount = IoBridge.sendto(fd, src, 0, null, 0);
453 IoBridge.closeSocket(fd);
[all...]
/libcore/luni/src/main/java/java/util/zip/
H A DInflater.java312 synchronized int setFileInput(FileDescriptor fd, long offset, int byteCount) { argument
315 inLength = setFileInputImpl(fd, offset, byteCount, streamHandle);
319 private native int setFileInputImpl(FileDescriptor fd, long offset, int byteCount, long handle); argument
/libcore/luni/src/main/java/libcore/io/
H A DAsynchronousCloseMonitor.java25 public static native void signalBlockedThreads(FileDescriptor fd); argument

Completed in 369 milliseconds

12