/bootable/recovery/tests/unit/host/ |
D | imgdiff_test.cpp | 83 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 …]
|
D | update_simulator_test.cpp | 71 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/ |
D | blockimg.cpp | 482 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/ |
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() 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/ |
D | Android.bp | 21 "src/**/*.java",
|
/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()
|
/bootable/recovery/updater_sample/ |
D | Android.bp | 19 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/updater_sample/tests/ |
D | Android.bp | 40 srcs: ["src/**/*.java"],
|
/bootable/recovery/ |
D | Android.bp | 107 src: "etc/init.rc",
|
/bootable/recovery/tests/testdata/ |
D | recovery_body | 166 #<src> <mnt_point> <type> <mnt_flags and options> <fs_mg… 2777 #<src> <mnt_point> <type> <mnt_flags and options> <fs_mg…
|