Lines Matching defs:fd
58 private FileDescriptor fd;
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) {
92 if (fd == null) {
93 throw new NullPointerException("fd == null");
95 this.fd = fd;
110 return IoBridge.available(fd);
121 IoUtils.close(fd);
123 // An owned fd has been invalidated by IoUtils.close, but
124 // we need to explicitly stop using an unowned fd (http://b/4361076).
125 fd = new FileDescriptor();
161 channel = NioUtils.newFileChannel(this, fd, O_RDONLY);
171 return fd;
179 return IoBridge.read(fd, buffer, byteOffset, byteCount);
190 Libcore.os.lseek(fd, byteCount, SEEK_CUR);