Home
last modified time | relevance | path

Searched refs:tgt_image (Results 1 – 3 of 3) sorted by relevance

/bootable/recovery/applypatch/
Dimgdiff.cpp863 bool ZipModeImage::CheckAndProcessChunks(ZipModeImage* tgt_image, ZipModeImage* src_image) { in CheckAndProcessChunks() argument
864 for (auto& tgt_chunk : *tgt_image) { in CheckAndProcessChunks()
892 if (tgt_image->limit_ == 0) { in CheckAndProcessChunks()
893 tgt_image->MergeAdjacentNormalChunks(); in CheckAndProcessChunks()
894 tgt_image->DumpChunks(); in CheckAndProcessChunks()
903 bool ZipModeImage::SplitZipModeImageWithLimit(const ZipModeImage& tgt_image, in SplitZipModeImageWithLimit() argument
908 CHECK_EQ(tgt_image.limit_, src_image.limit_); in SplitZipModeImageWithLimit()
909 size_t limit = tgt_image.limit_; in SplitZipModeImageWithLimit()
912 LOG(INFO) << "Splitting " << tgt_image.NumOfChunks() << " tgt chunks..."; in SplitZipModeImageWithLimit()
925 for (auto tgt = tgt_image.cbegin(); tgt != tgt_image.cend(); tgt++) { in SplitZipModeImageWithLimit()
[all …]
/bootable/recovery/applypatch/include/applypatch/
Dimgdiff_image.h234 static bool CheckAndProcessChunks(ZipModeImage* tgt_image, ZipModeImage* src_image);
237 static bool GeneratePatches(const ZipModeImage& tgt_image, const ZipModeImage& src_image,
250 static bool SplitZipModeImageWithLimit(const ZipModeImage& tgt_image,
271 static bool AddSplitImageFromChunkList(const ZipModeImage& tgt_image,
280 static bool GeneratePatchesInternal(const ZipModeImage& tgt_image, const ZipModeImage& src_image,
299 static bool CheckAndProcessChunks(ImageModeImage* tgt_image, ImageModeImage* src_image);
303 static bool GeneratePatches(const ImageModeImage& tgt_image, const ImageModeImage& src_image,
/bootable/recovery/tests/unit/host/
Dimgdiff_test.cpp748 ZipModeImage tgt_image(false, 4096 * 10); in TEST() local
756 tgt_image.Initialize(std::move(tgt_chunks), in TEST()
759 tgt_image.DumpChunks(); in TEST()
776 ZipModeImage::SplitZipModeImageWithLimit(tgt_image, src_image, &split_tgt_images, in TEST()
860 ZipModeImage tgt_image(false, 10 * 4096); in TEST() local
862 ASSERT_TRUE(tgt_image.Initialize(tgt_path)); in TEST()
863 ASSERT_TRUE(ZipModeImage::CheckAndProcessChunks(&tgt_image, &src_image)); in TEST()
866 tgt_image.DumpChunks(); in TEST()
871 ZipModeImage::SplitZipModeImageWithLimit(tgt_image, src_image, &split_tgt_images, in TEST()