Home
last modified time | relevance | path

Searched refs:bonus_data (Results 1 – 5 of 5) sorted by relevance

/bootable/recovery/applypatch/
Dapplypatch.cpp50 const Value& patch, const Value* bonus_data, bool backup_source);
329 const Value& patch, const Value* bonus_data, bool backup_source) { in GenerateTarget() argument
378 ApplyImagePatch(source_file.data.data(), source_file.data.size(), patch, sink, bonus_data); in GenerateTarget()
398 if (bonus_data != nullptr) { in GenerateTarget()
400 SHA1(reinterpret_cast<const uint8_t*>(bonus_data->data.data()), bonus_data->data.size(), in GenerateTarget()
402 LOG(ERROR) << "bonus size " << bonus_data->data.size() << " SHA-1 " in GenerateTarget()
Dimgpatch.cpp143 const Value* bonus_data) { in ApplyImagePatch() argument
236 size_t bonus_size = (i == 1 && bonus_data != nullptr) ? bonus_data->data.size() : 0; in ApplyImagePatch()
274 memcpy(expanded_source.data() + (expanded_len - bonus_size), bonus_data->data.data(), in ApplyImagePatch()
Dimgdiff.cpp305 bool ImageChunk::SetBonusData(const std::vector<uint8_t>& bonus_data) { in SetBonusData() argument
309 uncompressed_data_.insert(uncompressed_data_.end(), bonus_data.begin(), bonus_data.end()); in SetBonusData()
1360 bool ImageModeImage::SetBonusData(const std::vector<uint8_t>& bonus_data) { in SetBonusData() argument
1362 if (chunks_.size() < 2 || !chunks_[1].SetBonusData(bonus_data)) { in SetBonusData()
1368 LOG(INFO) << " using " << bonus_data.size() << " bytes of bonus data"; in SetBonusData()
1476 std::vector<uint8_t> bonus_data; in imgdiff() local
1504 bonus_data.resize(bonus_size); in imgdiff()
1505 if (!android::base::ReadFully(fd, bonus_data.data(), bonus_size)) { in imgdiff()
1604 if (!bonus_data.empty() && !src_image.SetBonusData(bonus_data)) { in imgdiff()
/bootable/recovery/applypatch/include/applypatch/
Dapplypatch.h118 const Value* bonus_data);
Dimgdiff_image.h70 bool SetBonusData(const std::vector<uint8_t>& bonus_data);
295 bool SetBonusData(const std::vector<uint8_t>& bonus_data);