Home
last modified time | relevance | path

Searched refs:fd_ (Results 1 – 6 of 6) sorted by relevance

/bootable/recovery/minadbd/
Dfuse_adb_provider.h27 : FuseDataProvider(file_size, block_size), fd_(fd) {} in FuseAdbDataProvider()
33 return fd_ != -1; in Valid()
38 int fd_;
Dfuse_adb_provider.cpp28 if (!WriteFdFmt(fd_, "%08u", start_block)) { in ReadBlockAlignedData()
33 if (!ReadFdExactly(fd_, buffer, fetch_size)) { in ReadBlockAlignedData()
/bootable/recovery/fuse_sideload/
Dfuse_provider.cpp43 fd_.reset(open(path.c_str(), O_RDONLY)); in FuseFileDataProvider()
44 if (fd_ == -1) { in FuseFileDataProvider()
68 if (!android::base::ReadFullyAtOffset(fd_, buffer, fetch_size, offset)) { in ReadBlockAlignedData()
78 fd_.reset(); in Close()
85 fd_(std::move(fd)), in FuseBlockDataProvider()
112 if (!android::base::ReadFullyAtOffset(fd_, next_out, bytes_to_read, bytes_start)) { in ReadBlockAlignedData()
126 if (!android::base::ReadFullyAtOffset(fd_, next_out, tailing_bytes, tailing_offset)) { in ReadBlockAlignedData()
154 fd_.reset(); in Close()
/bootable/recovery/fuse_sideload/include/
Dfuse_provider.h72 return fd_ != -1; in Valid()
79 android::base::unique_fd fd_;
97 return fd_ != -1; in Valid()
106 android::base::unique_fd fd_; variable
/bootable/recovery/install/
Dpackage.cpp113 android::base::unique_fd fd_; // The underlying fd to the open package. member in FilePackage
217 : fd_(std::move(fd)), package_size_(file_size), path_(path), zip_handle_(nullptr) { in FilePackage()
234 if (!android::base::ReadFullyAtOffset(fd_.get(), buffer, byte_count, offset)) { in ReadFullyAtOffset()
272 if (auto err = OpenArchiveFd(fd_.get(), path_.c_str(), &zip_handle_, false); err != 0) { in GetZipArchiveHandle()
/bootable/recovery/updater/
Dblockimg.cpp236 : fd_(fd), in RangeSinkWriter()
271 if (!android::base::WriteFully(fd_, data, write_now)) { in Write()
310 if (!discard_blocks(fd_, offset, current_range_left_)) { in SeekToOutputRange()
313 if (!check_lseek(fd_, offset, SEEK_SET)) { in SeekToOutputRange()
320 int fd_; member in RangeSinkWriter