Home
last modified time | relevance | path

Searched refs:oldInfo (Results 1 – 12 of 12) sorted by relevance

/base/update/updater/services/diffpatch/diff/
Dblocks_diff.cpp81 BlockBuffer oldInfo = {oldBuffer.memory, oldBuffer.length}; in MakePatch() local
84 ret = blockdiff->MakePatch(newInfo, oldInfo, patchSize); in MakePatch()
96 const BlockBuffer &oldInfo, std::vector<uint8_t> &patchData, size_t offset, size_t &patchSize) in MakePatch() argument
102 int32_t ret = blockdiff->MakePatch(newInfo, oldInfo, patchSize); in MakePatch()
117 const BlockBuffer &oldInfo, std::fstream &patchFile, size_t &patchSize) in MakePatch() argument
121 int32_t ret = blockdiff->MakePatch(newInfo, oldInfo, patchSize); in MakePatch()
131 int32_t BlocksDiff::MakePatch(const BlockBuffer &newInfo, const BlockBuffer &oldInfo, size_t &patch… in MakePatch() argument
139 suffixArray_->Init(oldInfo); in MakePatch()
143 int32_t ret = GetCtrlDatas(newInfo, oldInfo, controlDatas); in MakePatch()
275 const BlockBuffer &oldInfo, int64_t &oldScore, int64_t &matchLen) in ComputeOldScore() argument
[all …]
Dblocks_diff.h34 void Init(const BlockBuffer &oldInfo);
36 const BlockBuffer &oldInfo, int64_t start, int64_t end, int64_t &pos) const;
38 void InitBuckets(const BlockBuffer &oldInfo,
55 … const BlockBuffer &oldInfo, std::vector<uint8_t> &patchData, size_t offset, size_t &patchSize);
57 const BlockBuffer &oldInfo, std::fstream &patchFile, size_t &patchSize);
59 int32_t MakePatch(const BlockBuffer &newInfo, const BlockBuffer &oldInfo, size_t &patchSize);
67 const BlockBuffer &oldInfo, std::vector<ControlData> &controlDatas);
75 const BlockBuffer &oldInfo, int64_t &oldScore, int64_t &matchLen);
77 const BlockBuffer &oldInfo, int64_t &lengthFront, int64_t &lengthBack);
Dimage_diff.cpp77 PatchBuffer oldInfo = { olduffer.buffer, 0, olduffer.length }; in MakePatch() local
79 ret = SplitImage(oldInfo, newInfo); in MakePatch()
88 int32_t ImageDiff::SplitImage(const PatchBuffer &oldInfo, const PatchBuffer &newInfo) in SplitImage() argument
91 size_t oldBlockSize = oldInfo.length / blockCount; in SplitImage()
93 int32_t type = (oldInfo.length == 0) ? BLOCK_RAW : BLOCK_NORMAL; in SplitImage()
99 { oldInfo.buffer, oldInfo.start + oldBlockSize * i, oldBlockSize }, in SplitImage()
107 …{ oldInfo.buffer, oldInfo.start + oldBlockSize * i, oldInfo.length - (oldInfo.start + oldBlockSize… in SplitImage()
121 … BlockBuffer oldInfo = { block.oldInfo.buffer + block.oldInfo.start, block.oldInfo.length }; in WriteHeader() local
122 ret = MakeBlockPatch(block, blockPatchFile, newInfo, oldInfo, patchSize); in WriteHeader()
129 … block.oldInfo.start, block.oldInfo.length, block.newInfo.start, block.newInfo.length, in WriteHeader()
[all …]
Dimage_diff.h28 PatchBuffer oldInfo; member
51 int32_t SplitImage(const PatchBuffer &oldInfo, const PatchBuffer &newInfo);
54 const BlockBuffer &newInfo, const BlockBuffer &oldInfo, size_t &patchSize) const;
/base/update/updater/services/diffpatch/patch/
Dupdate_patch.cpp120 const BlockBuffer &oldInfo, std::vector<uint8_t> &newData) in ApplyBlockPatch() argument
122 …ue_ptr<BlocksBufferPatch> patch = std::make_unique<BlocksBufferPatch>(patchInfo, oldInfo, newData); in ApplyBlockPatch()
131 const BlockBuffer &oldInfo, UpdatePatchWriterPtr writer) in ApplyBlockPatch() argument
140 int32_t ret = pkgManager->CreatePkgStream(stream, "", {oldInfo.buffer, oldInfo.length}); in ApplyBlockPatch()
162 const BlockBuffer &oldInfo, ImageProcessor writer, const std::string& expected) in ApplyBlockPatch() argument
186 ret = pkgManager->CreatePkgStream(stream, "", {oldInfo.buffer, oldInfo.length}); in ApplyBlockPatch()
262 BlockBuffer oldInfo = {oldData.memory, oldData.length}; in ApplyPatch() local
263 ret = ApplyBlockPatch(patchInfo, oldInfo, writer.get()); in ApplyPatch()
Dblocks_patch.h53 …BlocksBufferPatch(const PatchBuffer &patchInfo, const BlockBuffer &oldInfo, std::vector<uint8_t> &… in BlocksBufferPatch() argument
54 : BlocksPatch(patchInfo), oldInfo_(oldInfo), newData_(newData) {} in BlocksBufferPatch()
Dimage_patch.cpp52 BlockBuffer oldInfo = {param.oldBuff + srcStart, srcLen}; in ApplyImagePatch() local
53 int32_t ret = UpdateApplyPatch::ApplyBlockPatch(patchInfo, oldInfo, writer_); in ApplyImagePatch()
/base/update/updater/services/include/patch/
Dupdate_patch.h61 const BlockBuffer &oldInfo, UpdatePatchWriterPtr writer);
63 const BlockBuffer &oldInfo, ImageProcessor writer, const std::string& expected);
65 const BlockBuffer &oldInfo, std::vector<uint8_t> &newData);
/base/useriam/user_auth_framework/test/unittest/services/src/
Denrollment_impl_test.cpp112 HdiCredentialInfo oldInfo = { in __anon7a96922c0102() local
122 .oldInfo = oldInfo, in __anon7a96922c0102()
130 HdiCredentialInfo oldInfo = {}; variable
131 …::shared_ptr<CredentialInfoInterface> info = std::make_shared<CredentialInfoImpl>(userId, oldInfo);
/base/useriam/user_auth_framework/services/ipc/src/
Duser_idm_service.cpp425 std::shared_ptr<CredentialInfoInterface> oldInfo; in DelCredential() local
426 …o ret = UserIdmDatabase::Instance().DeleteCredentialInfo(userId, credentialId, authToken, oldInfo); in DelCredential()
432 if (oldInfo != nullptr) { in DelCredential()
433 contextCallback->SetTraceAuthType(oldInfo->GetAuthType()); in DelCredential()
437 std::vector<std::shared_ptr<CredentialInfoInterface>> list = {oldInfo}; in DelCredential()
/base/update/updater/test/unittest/diffpatch/
Ddiffpatch_unittest.cpp162 UpdatePatch::BlockBuffer oldInfo = {oldData.memory, oldData.length}; in TestApplyBlockPatch() local
165 ret = UpdatePatch::UpdateApplyPatch::ApplyBlockPatch(patchInfo, oldInfo, newData); in TestApplyBlockPatch()
185 ret = UpdatePatch::UpdateApplyPatch::ApplyBlockPatch(patchInfo, oldInfo, writer.get()); in TestApplyBlockPatch()
/base/useriam/user_auth_framework/services/core/src/
Denrollment_impl.cpp183 info = Common::MakeShared<CredentialInfoImpl>(userId_, resultInfo.oldInfo); in Update()