summaryrefslogtreecommitdiffstats
path: root/applypatch/include/applypatch/imgdiff_image.h
diff options
context:
space:
mode:
authorTianjie Xu <xunchang@google.com>2017-09-27 02:06:45 +0200
committerandroid-build-merger <android-build-merger@google.com>2017-09-27 02:06:45 +0200
commit448af2aa77bb5d3349b75aa730347d64618df9cb (patch)
treef5a6ad41984836a3ee94a96e273208f99368bfff /applypatch/include/applypatch/imgdiff_image.h
parentMerge "update the recovery background image with new translation" am: c0123e0c3a (diff)
parentMerge "Output split information for imgdiff when handling large apks" (diff)
downloadandroid_bootable_recovery-448af2aa77bb5d3349b75aa730347d64618df9cb.tar
android_bootable_recovery-448af2aa77bb5d3349b75aa730347d64618df9cb.tar.gz
android_bootable_recovery-448af2aa77bb5d3349b75aa730347d64618df9cb.tar.bz2
android_bootable_recovery-448af2aa77bb5d3349b75aa730347d64618df9cb.tar.lz
android_bootable_recovery-448af2aa77bb5d3349b75aa730347d64618df9cb.tar.xz
android_bootable_recovery-448af2aa77bb5d3349b75aa730347d64618df9cb.tar.zst
android_bootable_recovery-448af2aa77bb5d3349b75aa730347d64618df9cb.zip
Diffstat (limited to 'applypatch/include/applypatch/imgdiff_image.h')
-rw-r--r--applypatch/include/applypatch/imgdiff_image.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/applypatch/include/applypatch/imgdiff_image.h b/applypatch/include/applypatch/imgdiff_image.h
index 9fb844b24..491043dc1 100644
--- a/applypatch/include/applypatch/imgdiff_image.h
+++ b/applypatch/include/applypatch/imgdiff_image.h
@@ -132,6 +132,9 @@ class PatchChunk {
// Update the source start with the new offset within the source range.
void UpdateSourceOffset(const SortedRangeSet& src_range);
+ // Return the total size (header + data) of the patch.
+ size_t PatchSize() const;
+
static bool WritePatchDataToFd(const std::vector<PatchChunk>& patch_chunks, int patch_fd);
private:
@@ -241,7 +244,8 @@ class ZipModeImage : public Image {
static bool GeneratePatches(const std::vector<ZipModeImage>& split_tgt_images,
const std::vector<ZipModeImage>& split_src_images,
const std::vector<SortedRangeSet>& split_src_ranges,
- const std::string& patch_name, const std::string& debug_dir);
+ const std::string& patch_name, const std::string& split_info_file,
+ const std::string& debug_dir);
// Split the tgt chunks and src chunks based on the size limit.
static bool SplitZipModeImageWithLimit(const ZipModeImage& tgt_image,