Home
last modified time | relevance | path

Searched refs:tgt (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/tests/unit/host/
Dimgdiff_test.cpp95 const std::string& tgt) { in verify_patched_image() argument
98 ASSERT_EQ(tgt, patched); in verify_patched_image()
123 const std::string tgt("abcdefgxyz"); in TEST() local
125 ASSERT_TRUE(android::base::WriteStringToFile(tgt, tgt_file.path)); in TEST()
146 verify_patched_image(src, patch, tgt); in TEST()
179 std::string tgt; in TEST() local
180 ASSERT_TRUE(android::base::ReadFileToString(tgt_file.path, &tgt)); in TEST()
195 verify_patched_image(src, patch, tgt); in TEST()
233 std::string tgt; in TEST() local
234 ASSERT_TRUE(android::base::ReadFileToString(tgt_file.path, &tgt)); in TEST()
[all …]
Dupdate_simulator_test.cpp71 static void CreateBsdiffPatch(const string& src, const string& tgt, string* patch) { in CreateBsdiffPatch() argument
74 reinterpret_cast<const uint8_t*>(tgt.data()), tgt.size(), in CreateBsdiffPatch()
/bootable/recovery/applypatch/
Dimgdiff.cpp332 bool ImageChunk::MakePatch(const ImageChunk& tgt, const ImageChunk& src, in MakePatch() argument
348 int r = bsdiff::bsdiff(src.DataForPatch(), src.DataLengthForPatch(), tgt.DataForPatch(), in MakePatch()
349 tgt.DataLengthForPatch(), ptemp, bsdiff_cache); in MakePatch()
444 PatchChunk::PatchChunk(const ImageChunk& tgt, const ImageChunk& src, std::vector<uint8_t> data) in PatchChunk() argument
445 : type_(tgt.GetType()), in PatchChunk()
449 target_start_(tgt.GetStartOffset()), in PatchChunk()
450 target_len_(tgt.GetRawDataLength()), in PatchChunk()
451 target_uncompressed_len_(tgt.DataLengthForPatch()), in PatchChunk()
452 target_compress_level_(tgt.GetCompressLevel()), in PatchChunk()
456 PatchChunk::PatchChunk(const ImageChunk& tgt) in PatchChunk() argument
[all …]
/bootable/recovery/updater/
Dblockimg.cpp235 RangeSinkWriter(int fd, const RangeSet& tgt) in RangeSinkWriter() argument
237 tgt_(tgt), in RangeSinkWriter()
241 CHECK_NE(tgt.size(), static_cast<size_t>(0)); in RangeSinkWriter()
502 static int WriteBlocks(const RangeSet& tgt, const std::vector<uint8_t>& buffer, int fd) { in WriteBlocks() argument
504 for (const auto& [begin, end] : tgt) { in WriteBlocks()
993 static int LoadSourceBlocks(CommandParameters& params, const RangeSet& tgt, size_t* src_blocks, in LoadSourceBlocks() argument
1014 *overlap = src.Overlaps(tgt); in LoadSourceBlocks()
1082 static int LoadSrcTgtVersion3(CommandParameters& params, RangeSet* tgt, size_t* src_blocks, in LoadSrcTgtVersion3() argument
1112 *tgt = RangeSet::Parse(params.tokens[params.cpos++]); in LoadSrcTgtVersion3()
1113 CHECK(static_cast<bool>(*tgt)); in LoadSrcTgtVersion3()
[all …]
/bootable/recovery/applypatch/include/applypatch/
Dimgdiff_image.h99 static bool MakePatch(const ImageChunk& tgt, const ImageChunk& src,
123 PatchChunk(const ImageChunk& tgt, const ImageChunk& src, std::vector<uint8_t> data);
126 explicit PatchChunk(const ImageChunk& tgt);
129 static bool RawDataIsSmaller(const ImageChunk& tgt, size_t patch_size);