| /base/update/updater/test/unittest/diffpatch/ |
| D | diffpatch_unittest.cpp | 40 UpdatePatch::MemMapInfo data {}; in GeneraterHash() 43 return UpdatePatch::GeneraterBufferHash({data.memory, data.length}); in GeneraterHash() 49 int32_t ret = UpdatePatch::UpdateDiff::DiffBlock(TEST_PATH_FROM + oldFile, in BlockDiffPatchTest() 52 ret = UpdatePatch::UpdateApplyPatch::ApplyPatch(TEST_PATH_FROM + patchFile, in BlockDiffPatchTest() 65 int32_t ret = UpdatePatch::UpdateDiff::DiffImage(limit, TEST_PATH_FROM + oldFile, in ImgageDiffPatchFileTest() 68 ret = UpdatePatch::UpdateApplyPatch::ApplyPatch(TEST_PATH_FROM + patchFile, in ImgageDiffPatchFileTest() 80 const std::string &expected, UpdatePatch::UpdateApplyPatch::ImageProcessor writer) const in TestApplyPatch() 84 UpdatePatch::MemMapInfo patchData {}; in TestApplyPatch() 85 UpdatePatch::MemMapInfo oldData {}; in TestApplyPatch() 99 if (memcmp(patchData.memory, UpdatePatch::PKGDIFF_MAGIC, in TestApplyPatch() [all …]
|
| /base/update/updater/services/updater_binary/ |
| D | update_image_patch.cpp | 81 UpdatePatch::MemMapInfo mapBuffer {}; in GetFileHash() 82 if (PatchMapFile(file, mapBuffer) != UpdatePatch::PATCH_SUCCESS) { in GetFileHash() 86 UpdatePatch::BlockBuffer data = { mapBuffer.memory, mapBuffer.length }; in GetFileHash() 87 std::string resultSha = UpdatePatch::GeneraterBufferHash(data); in GetFileHash() 92 int32_t USInstrImagePatch::ApplyPatch(const ImagePatchPara ¶, const UpdatePatch::MemMapInfo &sr… in ApplyPatch() 96 UpdatePatch::PatchParam patchParam = { in ApplyPatch() 106 int32_t ret = UpdatePatch::UpdateApplyPatch::ApplyImagePatch(patchParam, empty, in ApplyPatch() 107 [&](size_t start, const UpdatePatch::BlockBuffer &data, size_t size) -> int { in ApplyPatch() 197 UpdatePatch::MemMapInfo srcData {}; in ExecuteImagePatch() 198 ret = UpdatePatch::PatchMapFile(srcFile, srcData); in ExecuteImagePatch() [all …]
|
| D | update_image_patch.h | 45 int32_t ApplyPatch(const ImagePatchPara ¶, const UpdatePatch::MemMapInfo &srcData,
|
| /base/update/updater/services/diffpatch/ |
| D | diff_main.cpp | 61 UpdatePatch::UpdateDiff::DiffImage( in main() 67 UpdatePatch::UpdateDiff::DiffBlock( in main()
|
| D | diffpatch.cpp | 28 namespace UpdatePatch { namespace
|
| D | diffpatch.h | 30 namespace UpdatePatch {
|
| /base/update/updater/test/unittest/applypatch_test/ |
| D | imagepatch_unittest.cpp | 72 UpdatePatch::PatchParam param = { in TestZipModeImagePatch() 89 UpdatePatch::PatchParam param = { in TestNormalModeImagePatch() 105 UpdatePatch::PatchParam param = { in TestGZipModeImagePatch() 122 UpdatePatch::PatchParam param = { in TestLZ4ModeImagePatch()
|
| D | imagepatch_unittest.h | 72 int RunImageApplyPatch(UpdatePatch::PatchParam ¶m, const std::string &target, in RunImageApplyPatch() 84 int32_t ret = UpdatePatch::UpdateApplyPatch::ApplyImagePatch(param, empty, in RunImageApplyPatch() 85 [&](size_t start, const UpdatePatch::BlockBuffer &data, size_t size) -> int { in RunImageApplyPatch()
|
| /base/update/updater/interfaces/kits/diff_patch/ |
| D | diff_patch_interface.cpp | 22 return UpdatePatch::UpdateApplyPatch::ApplyPatch(patchFile, oldfile, newFile); in ApplyPatch()
|
| /base/update/updater/services/diffpatch/bzip2/ |
| D | deflate_adapter.h | 21 namespace UpdatePatch {
|
| D | zip_adapter.h | 26 namespace UpdatePatch {
|
| D | lz4_adapter.h | 28 namespace UpdatePatch {
|
| D | bzip2_adapter.h | 25 namespace UpdatePatch {
|
| D | zip_adapter.cpp | 23 namespace UpdatePatch { namespace
|
| D | bzip2_adapter.cpp | 21 namespace UpdatePatch { namespace
|
| D | lz4_adapter.cpp | 26 namespace UpdatePatch { namespace
|
| /base/update/updater/services/applypatch/ |
| D | block_set.cpp | 393 UpdatePatch::PatchParam patchParam = { in WriteDiffToBlock() 401 int32_t ret = UpdatePatch::UpdateApplyPatch::ApplyImagePatch(patchParam, empty, in WriteDiffToBlock() 402 [&](size_t start, const UpdatePatch::BlockBuffer &data, size_t size) -> int { in WriteDiffToBlock() 412 UpdatePatch::PatchBuffer patchInfo = {patchBuff, 0, length}; in WriteDiffToBlock() 418 …auto ret = UpdatePatch::UpdateApplyPatch::ApplyBlockPatch(patchInfo, {srcBuffer.data(), srcBuffSiz… in WriteDiffToBlock() 419 [&](size_t start, const UpdatePatch::BlockBuffer &data, size_t size) -> int { in WriteDiffToBlock()
|
| /base/update/updater/services/diffpatch/diff/ |
| D | update_diff.h | 25 namespace UpdatePatch {
|
| D | blocks_diff.h | 27 namespace UpdatePatch {
|
| D | image_diff.h | 24 namespace UpdatePatch {
|
| D | update_diff.cpp | 24 namespace UpdatePatch { namespace
|
| /base/update/updater/services/diffpatch/patch/ |
| D | blocks_patch.h | 26 namespace UpdatePatch {
|
| D | update_patch.cpp | 26 namespace UpdatePatch { namespace 255 ret = UpdatePatch::UpdateApplyPatch::ApplyImagePatch(param, writer.get(), empty); in ApplyPatch()
|
| D | image_patch.h | 26 namespace UpdatePatch {
|
| /base/update/updater/services/include/patch/ |
| D | update_patch.h | 23 namespace UpdatePatch {
|