Home
last modified time | relevance | path

Searched refs:patch_data (Results 1 – 7 of 7) sorted by relevance

/system/update_engine/lz4diff/
Dlz4patch.cc124 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 …]
Dlz4patch.h26 std::string_view patch_data,
30 std::string_view patch_data,
32 bool Lz4Patch(const Blob& src_data, const Blob& patch_data, Blob* output);
Dlz4diff.cc200 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/
Dvabc_partition_writer_unittest.cc230 std::string patch_data; in GetNoopBSDIFF() local
231 if (!utils::ReadFile(patch_file.path, &patch_data)) { in GetNoopBSDIFF()
234 return patch_data; in GetNoopBSDIFF()
288 const auto patch_data = GetNoopBSDIFF(kBlockSize * 5); in TEST_F() local
289 ASSERT_GT(patch_data.size(), 0UL); in TEST_F()
291 *install_op, nullptr, patch_data.data(), patch_data.size())); in TEST_F()
Dinstall_operation_executor_unittest.cc242 std::vector<uint8_t> patch_data = target_data_; // Fake the full operation in TEST_F() local
247 {{InstallOperation::ZUCCHINI, 1024 * BLOCK_SIZE}}, &aop, &patch_data)); in TEST_F()
257 op, std::move(writer), source_fd_, patch_data.data(), patch_data.size())); in TEST_F()
/system/update_engine/payload_generator/
Ddelta_diff_utils.h159 const brillo::Blob& patch_data) { in PopulateXorOps() argument
160 return PopulateXorOps(aop, patch_data.data(), patch_data.size()); in PopulateXorOps()
Ddelta_diff_utils_unittest.cc736 std::string patch_data; in TEST_F() local
737 utils::ReadFile(patch_file.path(), &patch_data); in TEST_F()
745 reinterpret_cast<const uint8_t*>(patch_data.data()), in TEST_F()
746 patch_data.size()); in TEST_F()
768 std::string patch_data; in TEST_F() local
769 utils::ReadFile(patch_file.path(), &patch_data); in TEST_F()
777 reinterpret_cast<const uint8_t*>(patch_data.data()), in TEST_F()
778 patch_data.size()); in TEST_F()
800 std::string patch_data; in TEST_F() local
801 utils::ReadFile(patch_file.path(), &patch_data); in TEST_F()
[all …]