Searched refs:source_fd (Results 1 – 5 of 5) sorted by relevance
/system/core/fs_mgr/libvbmeta/ |
D | builder.cpp | 62 unique_fd source_fd(TEMP_FAILURE_RETRY(open(file.c_str(), O_RDONLY | O_CLOEXEC))); in ReadVBMetaImageFromFile() local 63 if (source_fd < 0) { in ReadVBMetaImageFromFile() 67 Result<uint64_t> file_size = GetFileSize(source_fd); in ReadVBMetaImageFromFile() 77 if (!android::base::ReadFully(source_fd, buffer.get(), file_size.value())) { in ReadVBMetaImageFromFile()
|
/system/extras/partition_tools/ |
D | lpadd.cc | 175 int source_fd = -1; in AddPartition() local 188 source_fd = temp_image ? temp_image->fd : raw_image_fd.get(); in AddPartition() 190 auto size = lseek(source_fd, 0, SEEK_END); in AddPartition() 191 if (size < 0 || lseek(source_fd, 0, SEEK_SET) < 0) { in AddPartition() 211 if (source_fd >= 0 && !WritePartition(source_fd, file_size, partition_name)) { in AddPartition()
|
/system/core/fs_mgr/liblp/ |
D | images.cpp | 446 unique_fd source_fd = GetControlFileOrOpen(file.c_str(), O_RDONLY | O_CLOEXEC | O_BINARY); in OpenImageFile() local 447 if (source_fd < 0) { in OpenImageFile() 452 SparsePtr source(sparse_file_import(source_fd, true, true), sparse_file_destroy); in OpenImageFile() 454 int fd = source_fd.get(); in OpenImageFile() 455 temp_fds_.push_back(std::move(source_fd)); in OpenImageFile()
|
/system/update_engine/payload_consumer/ |
D | delta_performer.cc | 1067 const FileDescriptorPtr source_fd, in ValidateSourceHash() argument 1095 LogMountHistory(source_fd); in ValidateSourceHash() 1370 FileDescriptorPtr source_fd = ChooseSourceFD(operation, error); in PerformSourceBsdiffOperation() local 1371 TEST_AND_RETURN_FALSE(source_fd != nullptr); in PerformSourceBsdiffOperation() 1375 reader->Init(source_fd, operation.src_extents(), block_size_)); in PerformSourceBsdiffOperation() 1477 FileDescriptorPtr source_fd = ChooseSourceFD(operation, error); in PerformPuffDiffOperation() local 1478 TEST_AND_RETURN_FALSE(source_fd != nullptr); in PerformPuffDiffOperation() 1482 reader->Init(source_fd, operation.src_extents(), block_size_)); in PerformPuffDiffOperation()
|
D | delta_performer.h | 186 const FileDescriptorPtr source_fd,
|