Lines Matching refs:fd_
43 fd_ = TEMP_FAILURE_RETRY(::android::base::utf8::open(path.c_str(), mode)); in FileInputStream()
44 if (fd_ == -1) { in FileInputStream()
52 : fd_(fd), should_close_(true), buffer_capacity_(buffer_capacity) { in FileInputStream()
53 if (fd_ < 0) { in FileInputStream()
61 : fd_(fd.get()), should_close_(false), buffer_capacity_(buffer_capacity) { in FileInputStream()
63 if (fd_ < 0) { in FileInputStream()
85 ssize_t n = TEMP_FAILURE_RETRY(read(fd_, buffer_.get(), buffer_capacity_)); in Next()
88 if (fd_ != -1) { in Next()
90 close(fd_); in Next()
92 fd_ = -1; in Next()
120 return fd_ == -1; in HadError()
128 return base::ReadFullyAtOffset(fd_, data, byte_count, offset); in ReadFullyAtOffset()
135 fd_ = owned_fd_.get(); in FileOutputStream()
136 if (fd_ < 0) { in FileOutputStream()
149 : fd_(fd), buffer_capacity_(buffer_capacity) { in FileOutputStream()
150 if (fd_ < 0) { in FileOutputStream()
201 ssize_t n = TEMP_FAILURE_RETRY(write(fd_, buffer_.get(), buffer_offset_)); in FlushImpl()
205 fd_ = -1; in FlushImpl()
215 return fd_ == -1; in HadError()