Home
last modified time | relevance | path

Searched refs:patch_fd (Results 1 – 2 of 2) sorted by relevance

/bootable/recovery/applypatch/
Dimgdiff.cpp355 android::base::unique_fd patch_fd(open(ptemp, O_RDONLY)); in MakePatch() local
356 if (patch_fd == -1) { in MakePatch()
361 if (fstat(patch_fd, &st) != 0) { in MakePatch()
369 if (!android::base::ReadFully(patch_fd, patch_data->data(), sz)) { in MakePatch()
545 bool PatchChunk::WritePatchDataToFd(const std::vector<PatchChunk>& patch_chunks, int patch_fd) { in WritePatchDataToFd() argument
556 if (!android::base::WriteStringToFd("IMGDIFF" + std::to_string(VERSION), patch_fd)) { in WritePatchDataToFd()
561 Write4(patch_fd, static_cast<int32_t>(patch_chunks.size())); in WritePatchDataToFd()
564 offset = patch_chunks[i].WriteHeaderToFd(patch_fd, offset, i); in WritePatchDataToFd()
572 if (!android::base::WriteFully(patch_fd, patch.data_.data(), patch.data_.size())) { in WritePatchDataToFd()
1149 android::base::unique_fd patch_fd( in GeneratePatches() local
[all …]
/bootable/recovery/applypatch/include/applypatch/
Dimgdiff_image.h137 static bool WritePatchDataToFd(const std::vector<PatchChunk>& patch_chunks, int patch_fd);