Home
last modified time | relevance | path

Searched refs:patchName (Results 1 - 6 of 6) sorted by relevance

/base/update/updater/services/diffpatch/diff/
H A Dimage_diff.cpp51 int32_t ImageDiff::MakePatch(const std::string &patchName) in MakePatch() argument
53 PATCH_LOGI("ImageDiff::MakePatch %s limit_:%d", patchName.c_str(), limit_); in MakePatch()
85 return DiffImage(patchName); in MakePatch()
208 int32_t ImageDiff::DiffImage(const std::string &patchName) in DiffImage() argument
211 std::ofstream patchFile(patchName, std::ios::out | std::ios::trunc | std::ios::binary); in DiffImage()
213 PATCH_LOGE("Failed to open %s", patchName.c_str()); in DiffImage()
231 blockPatchFile.open(patchName + ".bspatch", std::ios::in | std::ios::out | std::ios::trunc | std::ios::binary); in DiffImage()
233 PATCH_LOGE("Failed to open bspatch %s", patchName.c_str()); in DiffImage()
254 PATCH_LOGI("DiffImage success patchOffset %zu %s", static_cast<size_t>(patchFile.tellp()), patchName.c_str()); in DiffImage()
259 int32_t CompressedImageDiff::MakePatch(const std::string &patchName) in MakePatch() argument
[all...]
H A Dimage_diff.h46 virtual int32_t MakePatch(const std::string &patchName);
52 int32_t DiffImage(const std::string &patchName);
71 int32_t MakePatch(const std::string &patchName) override;
/base/update/updater/test/unittest/diffpatch/
H A Ddiffpatch_unittest.cpp79 int32_t TestApplyPatch(const std::string &patchName, const std::string &oldName, in TestApplyPatch() argument
82 PATCH_DEBUG("UpdateApplyPatch::ApplyPatch : %s ", patchName.c_str()); in TestApplyPatch()
86 int32_t ret = PatchMapFile(patchName, patchData); in TestApplyPatch()
142 int32_t TestApplyBlockPatch(const std::string &patchName, in TestApplyBlockPatch() argument
145 PATCH_DEBUG("UpdateApplyPatch::ApplyPatch : %s ", patchName.c_str()); in TestApplyBlockPatch()
149 int32_t ret = PatchMapFile(patchName, patchData); in TestApplyBlockPatch()
/base/update/updater/services/updater_binary/
H A Dupdate_image_patch.cpp127 std::string patchName = para.patchFile; in CreatePatchStream() local
128 const FileInfo *info = env.GetPkgManager()->GetFileInfo(patchName); in CreatePatchStream()
131 patchName = para.partName; in CreatePatchStream()
132 info = env.GetPkgManager()->GetFileInfo(patchName); in CreatePatchStream()
146 ret = env.GetPkgManager()->ExtractFile(patchName, patchStream); in CreatePatchStream()
/base/update/updater/services/include/patch/
H A Dupdate_patch.h68 static int32_t ApplyPatch(const std::string &patchName, const std::string &oldfile, const std::string &newFile);
/base/update/updater/services/diffpatch/patch/
H A Dupdate_patch.cpp223 int32_t UpdateApplyPatch::ApplyPatch(const std::string &patchName, in ApplyPatch() argument
226 PATCH_DEBUG("UpdatePatch::ApplyPatch : %s ", patchName.c_str()); in ApplyPatch()
230 if (PatchMapFile(patchName, patchData) != 0) { in ApplyPatch()

Completed in 4 milliseconds