Searched refs:patch_data (Results 1 – 7 of 7) sorted by relevance
/system/update_engine/lz4diff/ |
D | lz4patch.cc | 124 bool ParseLz4DifffPatch(std::string_view patch_data, Lz4diffPatch* output) { in ParseLz4DifffPatch() argument 126 if (!android::base::StartsWith(patch_data, kLz4diffMagic)) { in ParseLz4DifffPatch() 128 << HexEncode(patch_data.substr(0, kLz4diffMagic.size())) in ParseLz4DifffPatch() 133 std::memcpy(patch.magic, patch_data.data(), kLz4diffMagic.size()); in ParseLz4DifffPatch() 135 patch_data.data() + kLz4diffMagic.size(), in ParseLz4DifffPatch() 144 patch_data.data() + kLz4diffMagic.size() + sizeof(patch.version), in ParseLz4DifffPatch() 148 patch_data.data() + kLz4diffHeaderSize, patch.pb_header_size)); in ParseLz4DifffPatch() 150 patch_data.substr(kLz4diffHeaderSize + patch.pb_header_size); in ParseLz4DifffPatch() 155 std::string_view patch_data, in bspatch() argument 159 CHECK_GT(patch_data.size(), 0UL); in bspatch() [all …]
|
D | lz4patch.h | 26 std::string_view patch_data, 30 std::string_view patch_data, 32 bool Lz4Patch(const Blob& src_data, const Blob& patch_data, Blob* output);
|
D | lz4diff.cc | 200 Blob patch_data; in Lz4Diff() local 202 TryBsdiff(decompressed_src, decompressed_dst, &patch_data)); in Lz4Diff() 211 puffdiff_delta.size() < patch_data.size()) { in Lz4Diff() 212 patch_data = std::move(puffdiff_delta); in Lz4Diff() 230 return ConstructLz4diffPatch(std::move(patch_data), header, output); in Lz4Diff()
|
/system/update_engine/payload_consumer/ |
D | vabc_partition_writer_unittest.cc | 223 std::string patch_data; in GetNoopBSDIFF() local 224 if (!utils::ReadFile(patch_file.path, &patch_data)) { in GetNoopBSDIFF() 227 return patch_data; in GetNoopBSDIFF() 277 const auto patch_data = GetNoopBSDIFF(kBlockSize * 5); in TEST_F() local 278 ASSERT_GT(patch_data.size(), 0UL); in TEST_F() 280 *install_op, nullptr, patch_data.data(), patch_data.size())); in TEST_F()
|
D | install_operation_executor_unittest.cc | 247 std::vector<uint8_t> patch_data = target_data_; // Fake the full operation in TEST_F() local 252 {{InstallOperation::ZUCCHINI, 1024 * BLOCK_SIZE}}, &aop, &patch_data)); in TEST_F() 262 op, std::move(writer), source_fd_, patch_data.data(), patch_data.size())); in TEST_F()
|
/system/update_engine/payload_generator/ |
D | delta_diff_utils_unittest.cc | 738 std::string patch_data; in TEST_F() local 739 utils::ReadFile(patch_file.path(), &patch_data); in TEST_F() 747 reinterpret_cast<const uint8_t*>(patch_data.data()), in TEST_F() 748 patch_data.size()); in TEST_F() 770 std::string patch_data; in TEST_F() local 771 utils::ReadFile(patch_file.path(), &patch_data); in TEST_F() 779 reinterpret_cast<const uint8_t*>(patch_data.data()), in TEST_F() 780 patch_data.size()); in TEST_F() 802 std::string patch_data; in TEST_F() local 803 utils::ReadFile(patch_file.path(), &patch_data); in TEST_F() [all …]
|
D | delta_diff_utils.h | 159 const brillo::Blob& patch_data) { in PopulateXorOps() argument 160 return PopulateXorOps(aop, patch_data.data(), patch_data.size()); in PopulateXorOps()
|