Home
last modified time | relevance | path

Searched refs:PATCH_CHECK (Results 1 – 10 of 10) sorted by relevance

/base/update/updater/services/diffpatch/patch/
Dimage_patch.cpp94 PATCH_CHECK(ret == 0, return -1, "failed to read header"); in ApplyImagePatch()
97PATCH_CHECK(header.srcStart + header.srcLength <= param.oldSize, return -1, "Failed to check patch… in ApplyImagePatch()
103 PATCH_CHECK(ret == 0, return -1, "Failed to decompress data"); in ApplyImagePatch()
107 PATCH_CHECK(info != nullptr, return -1, "Failed to get file info"); in ApplyImagePatch()
111 PATCH_CHECK(zipWriter != nullptr, return -1, "Failed to create zip writer"); in ApplyImagePatch()
112 PATCH_CHECK(zipWriter->Init() == 0, return -1, "Failed to create zip writer"); in ApplyImagePatch()
117 PATCH_CHECK(ret == 0, return -1, "Failed to apply bsdiff patch"); in ApplyImagePatch()
124 PATCH_CHECK(originalSize == header.targetSize, return -1, "Failed to apply bsdiff patch"); in ApplyImagePatch()
132 PATCH_CHECK(expandedLen > 0, return 0, "Decompress data is null"); in DecompressData()
135 PATCH_CHECK(pkgManager != nullptr, return -1, "Failed to get pkg manager"); in DecompressData()
[all …]
Dupdate_patch.cpp55 PATCH_CHECK(writer != nullptr, return -1, "check param fail "); in ApplyImagePatch()
56PATCH_CHECK(param.patchSize >= (std::char_traits<char>::length(PKGDIFF_MAGIC) + sizeof(int32_t)), in ApplyImagePatch()
58PATCH_CHECK(memcmp(param.patch, PKGDIFF_MAGIC, std::char_traits<char>::length(PKGDIFF_MAGIC)) == 0, in ApplyImagePatch()
67PATCH_CHECK((offset + sizeof(int32_t)) <= param.patchSize, return -1, "Failed to read chunk record… in ApplyImagePatch()
88 PATCH_CHECK(imagePatch != nullptr, return -1, "Failed to creareimg patch "); in ApplyImagePatch()
90 PATCH_CHECK(ret == 0, return -1, "Apply image patch fail "); in ApplyImagePatch()
Dblocks_patch.cpp145PATCH_CHECK(diffDataSize >= 0 && (diffDataSize + controlDataSize) <= static_cast<int64_t>(patchInf… in ReadHeader()
155PATCH_CHECK(controlDataReader_ != nullptr && diffDataReader_ != nullptr && extraDataReader_ != nul… in ReadHeader()
/base/update/updater/test/unittest/diffpatch/
Ddiffpatch_unittest.cpp87 PATCH_CHECK(ret == 0, return -1, "Failed to read patch file"); in TestApplyPatch()
89 PATCH_CHECK(ret == 0, return -1, "Failed to read old file"); in TestApplyPatch()
101 PATCH_CHECK(ret == 0, return -1, "Failed to apply image patch file"); in TestApplyPatch()
116 PATCH_CHECK(writer != nullptr, return -1, "Failed to create writer"); in ImgageDiffPatchFileTest2()
138 PATCH_CHECK(ret == 0, return -1, "Failed to read patch file"); in TestApplyBlockPatch()
140 PATCH_CHECK(ret == 0, return -1, "Failed to read old file"); in TestApplyBlockPatch()
148 PATCH_CHECK(ret == 0, return -1, "Failed to apply block patch file"); in TestApplyBlockPatch()
150 PATCH_CHECK(!stream.fail(), return -1, "Failed to open %s", newName.c_str()); in TestApplyBlockPatch()
155 PATCH_CHECK(writer != nullptr, return -1, "Failed to create writer"); in TestApplyBlockPatch()
Dbzip2_unittest.cpp184 PATCH_CHECK(pkgManager != nullptr, return -1, "Can not get manager "); in CompressData()
198 PATCH_CHECK(ret == 0, return -1, "Can not Compress buff "); in CompressData()
208 PATCH_CHECK(testPatchWriter != nullptr, return -1, "Failed to create data writer"); in DeflateAdapterTest()
212 PATCH_CHECK(ret == 0, return -1, "Failed to map file"); in DeflateAdapterTest()
218 PATCH_CHECK(ret == 0, return -1, "Failed to compress file"); in DeflateAdapterTest()
230 PATCH_CHECK(deflateAdapter != nullptr, return -1, "Failed to create deflate adapter"); in DeflateAdapterTest()
239 PATCH_CHECK(ret == 0, return -1, "Failed to compress data"); in DeflateAdapterTest()
/base/update/updater/services/diffpatch/diff/
Dimage_diff.cpp279 PATCH_CHECK(ret == 0, return -1, "Failed to split imgage"); in MakePatch()
289 PATCH_CHECK(ret == 0, break, "Failed to generate patch"); in MakePatch()
314 PATCH_CHECK((ret == 0 && ret1 == 0), return -1, "Failed to get pkgbuffer"); in DiffFile()
320 PATCH_CHECK(ret == 0 && newFileInfo != nullptr, return -1, "Failed to get new data"); in DiffFile()
322 PATCH_CHECK(limit_ == 0 || newFileInfo->unpackedSize < limit_, return PATCH_EXCEED_LIMIT, in DiffFile()
336 PATCH_CHECK(oldFileInfo != nullptr, return -1, "Failed to get file info"); in DiffFile()
341 PATCH_CHECK(ret == 0, return -1, "Failed to test zip config"); in DiffFile()
444 PATCH_CHECK(ret == 0, return -1, "Can not Compress buff "); in TestAndSetConfig()
500 PATCH_CHECK(fileInfo != nullptr, return -1, "Failed to get file info"); in TestAndSetConfig()
511 PATCH_CHECK(ret == 0, return -1, "Failed to get pkgbuffer"); in TestAndSetConfig()
[all …]
Dupdate_diff.cpp164 PATCH_CHECK(imageDiff != nullptr, return -1, "Failed to diff file"); in MakePatch()
182 PATCH_CHECK(imageDiff != nullptr, return -1, "Failed to diff file"); in MakePatch()
Dblocks_diff.cpp157 PATCH_CHECK(ret == BZ_OK, return ret, "Failed to write diff data"); in MakePatch()
163 PATCH_CHECK(ret == BZ_OK, return ret, "Failed to write diff data"); in MakePatch()
168 PATCH_CHECK(ret == BZ_OK, return ret, "Failed to write extra data"); in MakePatch()
/base/update/updater/services/diffpatch/
Ddiffpatch.h40 #define PATCH_CHECK(retCode, exper, ...) \ macro
/base/update/updater/services/diffpatch/bzip2/
Dlz4_adapter.cpp89 PATCH_CHECK(ret == 0, return -1, "Failed to deflate data"); in Open()