Searched refs:src (Results 1 – 5 of 5) sorted by relevance
/bootable/recovery/tests/component/ |
D | imgdiff_test.cpp | 78 static void verify_patched_image(const std::string& src, const std::string& patch, in verify_patched_image() argument 81 ASSERT_EQ(0, ApplyImagePatch(reinterpret_cast<const unsigned char*>(src.data()), src.size(), in verify_patched_image() 108 const std::string src("abcdefg"); in TEST() local 110 ASSERT_TRUE(android::base::WriteStringToFile(src, src_file.path)); in TEST() 135 verify_patched_image(src, patch, tgt); in TEST() 170 std::string src; in TEST() local 171 ASSERT_TRUE(android::base::ReadFileToString(src_file.path, &src)); in TEST() 184 verify_patched_image(src, patch, tgt); in TEST() 219 std::string src; in TEST() local 220 ASSERT_TRUE(android::base::ReadFileToString(src_file.path, &src)); in TEST() [all …]
|
D | applypatch_test.cpp | 108 static void cp(const std::string& src, const std::string& tgt) { in cp() argument 109 std::string cmd = "cp " + src + " " + tgt; in cp()
|
/bootable/recovery/applypatch/ |
D | imgdiff.cpp | 284 void ImageChunk::SetSourceInfo(const ImageChunk& src) { in SetSourceInfo() argument 285 source_start_ = src.start_; in SetSourceInfo() 287 source_len_ = src.raw_data_len_; in SetSourceInfo() 289 source_len_ = src.raw_data_len_; in SetSourceInfo() 290 source_uncompressed_len_ = src.uncompressed_data_.size(); in SetSourceInfo() 749 static bool MakePatch(const ImageChunk* src, ImageChunk* tgt, std::vector<uint8_t>* patch_data, in MakePatch() argument 771 int r = bsdiff::bsdiff(src->DataForPatch(), src->DataLengthForPatch(), tgt->DataForPatch(), in MakePatch() 805 tgt->SetSourceInfo(*src); in MakePatch() 954 ImageChunk* src = FindChunkByName(tgt_chunks[i].GetEntryName(), src_chunks); in imgdiff() local 955 if (src != nullptr) { in imgdiff() [all …]
|
/bootable/recovery/updater/ |
D | blockimg.cpp | 387 static int ReadBlocks(const RangeSet& src, std::vector<uint8_t>& buffer, int fd) { in ReadBlocks() argument 389 for (const auto& range : src) { in ReadBlocks() 484 RangeSet src = RangeSet::Parse(params.tokens[pos++]); in PrintHashForCorruptedSourceBlocks() local 490 locs = RangeSet(std::vector<Range>{ Range{ 0, src.blocks() } }); in PrintHashForCorruptedSourceBlocks() 497 CHECK_EQ(src.blocks(), locs.blocks()); in PrintHashForCorruptedSourceBlocks() 500 LOG(INFO) << "printing hash in hex for " << src.blocks() << " source blocks"; in PrintHashForCorruptedSourceBlocks() 501 for (size_t i = 0; i < src.blocks(); i++) { in PrintHashForCorruptedSourceBlocks() 502 size_t block_num = src.GetBlockNumber(i); in PrintHashForCorruptedSourceBlocks() 517 const RangeSet& src) { in PrintHashForCorruptedStashedBlocks() argument 519 CHECK_EQ(src.blocks() * BLOCKSIZE, buffer.size()); in PrintHashForCorruptedStashedBlocks() [all …]
|
/bootable/recovery/tools/recovery_l10n/ |
D | Android.mk | 10 LOCAL_SRC_FILES := $(call all-java-files-under, src)
|