/bootable/recovery/tests/component/ |
D | imgdiff_test.cpp | 84 static void GenerateTarget(const std::string& src, const std::string& patch, std::string* patched) { in GenerateTarget() argument 86 ASSERT_EQ(0, ApplyImagePatch(reinterpret_cast<const unsigned char*>(src.data()), src.size(), in GenerateTarget() 94 static void verify_patched_image(const std::string& src, const std::string& patch, in verify_patched_image() argument 97 GenerateTarget(src, patch, &patched); in verify_patched_image() 119 const std::string src("abcdefg"); in TEST() local 121 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST() 146 verify_patched_image(src, patch, tgt); in TEST() 181 std::string src; in TEST() local 182 ASSERT_TRUE(android::base::ReadFileToString(src_file.path, &src)); in TEST() 195 verify_patched_image(src, patch, tgt); in TEST() [all …]
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 477 static int ReadBlocks(const RangeSet& src, std::vector<uint8_t>* buffer, int fd) { in ReadBlocks() argument 479 for (const auto& [begin, end] : src) { in ReadBlocks() 579 RangeSet src = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks() local 580 if (!src) { in PrintHashForCorruptedSourceBlocks() 589 locs = RangeSet(std::vector<Range>{ Range{ 0, src.blocks() } }); in PrintHashForCorruptedSourceBlocks() 596 CHECK_EQ(src.blocks(), locs.blocks()); in PrintHashForCorruptedSourceBlocks() 599 LOG(INFO) << "printing hash in hex for " << src.blocks() << " source blocks"; in PrintHashForCorruptedSourceBlocks() 600 for (size_t i = 0; i < src.blocks(); i++) { in PrintHashForCorruptedSourceBlocks() 601 size_t block_num = src.GetBlockNumber(i); in PrintHashForCorruptedSourceBlocks() 616 const RangeSet& src) { in PrintHashForCorruptedStashedBlocks() argument [all …]
|
/bootable/recovery/applypatch/ |
D | imgdiff.cpp | 332 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() 927 const ImageChunk* src = src_image.FindChunkByName(tgt->GetEntryName(), true); in SplitZipModeImageWithLimit() local 928 if (src == nullptr) { in SplitZipModeImageWithLimit() 934 size_t src_offset = src->GetStartOffset(); in SplitZipModeImageWithLimit() 935 size_t src_length = src->GetRawDataLength(); in SplitZipModeImageWithLimit() [all …]
|
/bootable/recovery/tools/recovery_l10n/ |
D | Android.bp | 21 "src/**/*.java",
|
/bootable/recovery/updater_sample/ |
D | Android.bp | 20 srcs: ["src/**/*.java"],
|
/bootable/recovery/updater_sample/tests/ |
D | Android.bp | 40 srcs: ["src/**/*.java"],
|
/bootable/recovery/applypatch/include/applypatch/ |
D | imgdiff_image.h | 99 static bool MakePatch(const ImageChunk& tgt, const ImageChunk& src, 123 PatchChunk(const ImageChunk& tgt, const ImageChunk& src, std::vector<uint8_t> data);
|
/bootable/recovery/tests/unit/ |
D | commands_test.cpp | 442 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()
|