Lines Matching defs:patch

16 #include "patch/update_patch.h"

36 PATCH_LOGE("ApplyImagePatch : Failed to create patch writer");
41 PATCH_LOGE("ApplyImagePatch : Failed to init patch writer");
46 PATCH_LOGE("ApplyImagePatch : Failed to apply image patch");
59 PATCH_LOGE("patch too short to contain header ");
62 if (memcmp(param.patch, PKGDIFF_MAGIC, std::char_traits<char>::length(PKGDIFF_MAGIC)) != 0) {
63 PATCH_LOGE("corrupt patch file header (magic number) ");
76 int32_t numChunks = ImagePatch::ReadLE<int32_t>(param.patch + offset);
86 int32_t type = ImagePatch::ReadLE<int32_t>(param.patch + offset);
107 PATCH_LOGE("Failed to creareimg patch ");
112 PATCH_LOGE("Apply image patch fail ");
122 std::unique_ptr<BlocksBufferPatch> patch = std::make_unique<BlocksBufferPatch>(patchInfo, oldInfo, newData);
123 if (patch == nullptr) {
124 PATCH_LOGE("Failed to creare patch ");
127 return patch->ApplyPatch();
148 std::unique_ptr<BlocksStreamPatch> patch = std::make_unique<BlocksStreamPatch>(patchInfo, stream, writer);
149 if (patch == nullptr) {
150 PATCH_LOGE("Failed to creare patch ");
155 ret = patch->ApplyPatch();
170 PATCH_LOGE("ApplyBlockPatch : Failed to create patch writer");
175 PATCH_LOGE("ApplyBlockPatch : Failed to init patch writer");
194 std::unique_ptr<BlocksStreamPatch> patch = std::make_unique<BlocksStreamPatch>(patchInfo,
196 if (patch == nullptr) {
197 PATCH_LOGE("Failed to creare patch ");
202 ret = patch->ApplyPatch();
206 PATCH_LOGE("Failed to applay patch ");
215 std::unique_ptr<BlocksStreamPatch> patch = std::make_unique<BlocksStreamPatch>(patchInfo, stream, writer);
216 if (patch == nullptr) {
217 PATCH_LOGE("Failed to creare patch ");
220 return patch->ApplyPatch();
231 PATCH_LOGE("ApplyPatch : Failed to read patch file");
246 // check if image patch
253 param.patch = patchData.memory;
258 PATCH_LOGE("Failed to apply image patch file");
265 PATCH_LOGE("Failed to apply block patch");
269 PATCH_LOGE("Invalid patch file");