Home
last modified time | relevance | path

Searched refs:src (Results 1 – 11 of 11) sorted by relevance

/bootable/recovery/tests/unit/host/
Dimgdiff_test.cpp83 static void GenerateTarget(const std::string& src, const std::string& patch, std::string* patched) { in GenerateTarget() argument
85 ASSERT_EQ(0, ApplyImagePatch(reinterpret_cast<const unsigned char*>(src.data()), src.size(), in GenerateTarget()
93 static void verify_patched_image(const std::string& src, const std::string& patch, in verify_patched_image() argument
96 GenerateTarget(src, patch, &patched); in verify_patched_image()
118 const std::string src("abcdefg"); in TEST() local
120 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST()
145 verify_patched_image(src, patch, tgt); in TEST()
180 std::string src; in TEST() local
181 ASSERT_TRUE(android::base::ReadFileToString(src_file.path, &src)); in TEST()
194 verify_patched_image(src, patch, tgt); in TEST()
[all …]
Dupdate_simulator_test.cpp71 static void CreateBsdiffPatch(const string& src, const string& tgt, string* patch) { in CreateBsdiffPatch() argument
73 ASSERT_EQ(0, bsdiff::bsdiff(reinterpret_cast<const uint8_t*>(src.data()), src.size(), in CreateBsdiffPatch()
/bootable/recovery/updater/
Dblockimg.cpp482 static int ReadBlocks(const RangeSet& src, std::vector<uint8_t>* buffer, int fd) { in ReadBlocks() argument
484 for (const auto& [begin, end] : src) { in ReadBlocks()
584 RangeSet src = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks() local
585 if (!src) { in PrintHashForCorruptedSourceBlocks()
594 locs = RangeSet(std::vector<Range>{ Range{ 0, src.blocks() } }); in PrintHashForCorruptedSourceBlocks()
601 CHECK_EQ(src.blocks(), locs.blocks()); in PrintHashForCorruptedSourceBlocks()
604 LOG(INFO) << "printing hash in hex for " << src.blocks() << " source blocks"; in PrintHashForCorruptedSourceBlocks()
605 for (size_t i = 0; i < src.blocks(); i++) { in PrintHashForCorruptedSourceBlocks()
606 size_t block_num = src.GetBlockNumber(i); in PrintHashForCorruptedSourceBlocks()
621 const RangeSet& src) { in PrintHashForCorruptedStashedBlocks() argument
[all …]
/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()
444 PatchChunk::PatchChunk(const ImageChunk& tgt, const ImageChunk& src, std::vector<uint8_t> data) in PatchChunk() argument
446 source_start_(src.GetStartOffset()), in PatchChunk()
447 source_len_(src.GetRawDataLength()), in PatchChunk()
448 source_uncompressed_len_(src.DataLengthForPatch()), in PatchChunk()
926 const ImageChunk* src = src_image.FindChunkByName(tgt->GetEntryName(), true); in SplitZipModeImageWithLimit() local
927 if (src == nullptr) { in SplitZipModeImageWithLimit()
933 size_t src_offset = src->GetStartOffset(); in SplitZipModeImageWithLimit()
934 size_t src_length = src->GetRawDataLength(); in SplitZipModeImageWithLimit()
[all …]
/bootable/recovery/tools/recovery_l10n/
DAndroid.bp21 "src/**/*.java",
/bootable/recovery/tests/unit/
Dcommands_test.cpp442 auto block_reader = [](const RangeSet& src, std::vector<uint8_t>* block_buffer) -> int { in TEST() argument
443 std::fill_n(block_buffer->begin(), src.blocks() * kBlockSize, 'a'); in TEST()
461 auto block_reader = [](const RangeSet& src, std::vector<uint8_t>* block_buffer) -> int { in TEST() argument
462 std::fill_n(block_buffer->begin(), src.blocks() * kBlockSize, 'a'); in TEST()
/bootable/recovery/updater_sample/
DAndroid.bp19 srcs: ["src/**/*.java"],
/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);
/bootable/recovery/updater_sample/tests/
DAndroid.bp40 srcs: ["src/**/*.java"],
/bootable/recovery/
DAndroid.bp107 src: "etc/init.rc",
/bootable/recovery/tests/testdata/
Drecovery_body166 #<src> <mnt_point> <type> <mnt_flags and options> <fs_mg…
2777 #<src> <mnt_point> <type> <mnt_flags and options> <fs_mg…