Home
last modified time | relevance | path

Searched refs:Hpackage (Results 1 – 25 of 127) sorted by relevance

123456

/base/update/updater/test/unittest/updater_binary/
Dupdate_binary_unittest.h25 …explicit UTestBinaryEnv(Hpackage::PkgManager::PkgManagerPtr pkgManager) : Uscript::UScriptEnv(pkgM… in UTestBinaryEnv()
56 class TestPkgMgr : public Hpackage::TestScriptPkgManager {
58 int32_t ExtractFile(const std::string &fileId, Hpackage::PkgManager::StreamPtr output) override in ExtractFile()
60 return Hpackage::PKG_SUCCESS; in ExtractFile()
62 const Hpackage::FileInfo *GetFileInfo(const std::string &fileId) override in GetFileInfo()
64 static Hpackage::FileInfo fileInfo {}; in GetFileInfo()
72 class TestPkgMgrStream1 : public Hpackage::TestScriptPkgManager {
74 …int32_t CreatePkgStream(Hpackage::PkgManager::StreamPtr &stream, const std::string &fileName, size… in CreatePkgStream()
77 return Hpackage::PKG_ERROR_BASE; in CreatePkgStream()
81 class TestPkgMgrStream2 : public Hpackage::TestScriptPkgManager {
[all …]
/base/update/updater/services/ptable_parse/
Dptable_process.cpp21 using namespace Hpackage;
45Hpackage::PkgManager::PkgManagerPtr pkgManager = Hpackage::PkgManager::CreatePackageInstance(); in PtableProcess()
52 if (ret != Hpackage::PKG_SUCCESS) { in PtableProcess()
54 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in PtableProcess()
63 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in PtableProcess()
69 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in PtableProcess()
75 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in PtableProcess()
78 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in PtableProcess()
Dptable_manager.h34 virtual void LoadPartitionInfo([[maybe_unused]] Hpackage::PkgManager *pkgManager = nullptr) = 0;
35 void ReloadDevicePartition(Hpackage::PkgManager *pkgManager);
71 void LoadPartitionInfo([[maybe_unused]] Hpackage::PkgManager *pkgManager = nullptr) override;
75 … bool GetPtableBufferFromPkg(Hpackage::PkgManager *pkgManager, uint8_t *&imageBuf, uint32_t size);
89 void LoadPartitionInfo([[maybe_unused]] Hpackage::PkgManager *pkgManager = nullptr) override;
Dptable_manager.cpp54 void PtableManager::ReloadDevicePartition(Hpackage::PkgManager *pkgManager) in ReloadDevicePartition()
228 void PackagePtable::LoadPartitionInfo([[maybe_unused]] Hpackage::PkgManager *pkgManager) in LoadPartitionInfo()
267 bool PackagePtable::GetPtableBufferFromPkg(Hpackage::PkgManager *pkgManager, uint8_t *&imageBuf, ui… in GetPtableBufferFromPkg()
274 const Hpackage::FileInfo *info = pkgManager->GetFileInfo(PtableManager::ptbImgTag_); in GetPtableBufferFromPkg()
283 Hpackage::PkgManager::StreamPtr outStream = nullptr; in GetPtableBufferFromPkg()
285 Hpackage::PkgStream::PkgStreamType_MemoryMap); in GetPtableBufferFromPkg()
291 if (pkgManager->ExtractFile(PtableManager::ptbImgTag_, outStream) != Hpackage::PKG_SUCCESS) { in GetPtableBufferFromPkg()
312 void DevicePtable::LoadPartitionInfo([[maybe_unused]] Hpackage::PkgManager *pkgManager) in LoadPartitionInfo()
/base/update/updater/services/flow_update/update_bin/
Dbin_process.h34 Hpackage::PkgManager::StreamPtr stream);
35 int32_t ComponentProcess(Uscript::UScriptEnv &env, Hpackage::PkgManager::StreamPtr stream,
41 Hpackage::PkgManager::StreamPtr stream);
42 int32_t UnCompressDataProducer(const Hpackage::PkgBuffer &buffer, size_t size, size_t start,
45 bool ReadFromBinFile(Hpackage::PkgBuffer &buffer, size_t start, size_t &readLen);
48 Hpackage::PkgBuffer stashBuffer_ {};
/base/update/updater/services/include/updater/
Dupdater_preprocess.h23 typedef int32_t (*PreProcessFunc)(Hpackage::PkgManager::PkgManagerPtr pkgManager);
26 int CheckBoardId(Hpackage::PkgManager::PkgManagerPtr pkgManager, PackagesInfoPtr pkginfomanager);
27 int CheckVersion(Hpackage::PkgManager::PkgManagerPtr pkgManager, PackagesInfoPtr pkginfomanager);
28 int32_t UpdatePreProcess(Hpackage::PkgManager::PkgManagerPtr pkgManager);
37 int32_t DoUpdatePreProcess(Hpackage::PkgManager::PkgManagerPtr pkgManager);
Dupdater.h71 int32_t ExtractUpdaterBinary(Hpackage::PkgManager::PkgManagerPtr manager, std::string &packagePath,
78 UpdaterStatus DoInstallUpdaterPackage(Hpackage::PkgManager::PkgManagerPtr pkgManager,
81 UpdaterStatus StartUpdaterProc(Hpackage::PkgManager::PkgManagerPtr pkgManager,
84 int GetUpdatePackageInfo(Hpackage::PkgManager::PkgManagerPtr pkgManager, const std::string& path);
86 int ExecUpdate(Hpackage::PkgManager::PkgManagerPtr pkgManager, int retry, const std::string &pkgPat…
/base/update/updater/test/unittest/package/
Dpkg_test.h34 using Hpackage::PkgManager;
35 using Hpackage::PkgManagerImpl;
36 using Hpackage::PkgStream;
37 using Hpackage::PkgAlgorithmFactory;
38 using Hpackage::DigestAlgorithm;
39 using Hpackage::ComponentInfo;
40 using Hpackage::FileInfo;
41 using Hpackage::ZipFileInfo;
42 using Hpackage::PkgInfo;
86 Hpackage::PkgBuffer buff(buffSize); in BuildFileDigest()
[all …]
Dpkg_manager_unittest.cpp35 using namespace Hpackage;
366 void TestDecompressLz4plus(Hpackage::Lz4FileInfo &lz4Info) in TestDecompressLz4plus()
379 int CheckDataIntegrityLz4(Hpackage::Lz4FileInfo &lz4Info, size_t fileSize, in CheckDataIntegrityLz4()
384 Hpackage::PkgBuffer buffer(static_cast<uint8_t*>(mappedData) + addrOffset, fileSize); in CheckDataIntegrityLz4()
401 int TestDecompressLz4(Hpackage::Lz4FileInfo &lz4Info, in TestDecompressLz4()
430 …std::unique_ptr<Hpackage::PkgStream, std::function<void(Hpackage::PkgManager::StreamPtr)>> outStre… in TestDecompressLz4()
431 [&](Hpackage::PkgManager::StreamPtr stream) { in TestDecompressLz4()
452 void TestDecompressGzipInitFile(Hpackage::ZipFileInfo &zipInfo, size_t &offset, in TestDecompressGzipInitFile()
489 int CheckDataIntegrityGzip(Hpackage::ZipFileInfo &zipInfo, size_t fileSize, in CheckDataIntegrityGzip()
496 Hpackage::PkgBuffer data(reinterpret_cast<uint8_t*>(mappedData) + offset, fileSize); in CheckDataIntegrityGzip()
[all …]
/base/update/updater/services/diffpatch/patch/
Dimage_patch.h74 virtual std::unique_ptr<Hpackage::FileInfo> GetFileInfo() const = 0;
76 …int32_t DecompressData(Hpackage::PkgManager::PkgManagerPtr &pkgManager, Hpackage::PkgBuffer buffer,
77 Hpackage::PkgManager::StreamPtr &stream, bool memory, size_t expandedLen) const;
90 std::unique_ptr<Hpackage::FileInfo> GetFileInfo() const override;
107 std::unique_ptr<Hpackage::FileInfo> GetFileInfo() const override;
119 CompressedFileRestore(Hpackage::PkgManager::FileInfoPtr fileInfo, UpdatePatchWriterPtr writer) in CompressedFileRestore()
133 Hpackage::PkgManager::FileInfoPtr fileInfo_ { nullptr };
Dimage_patch.cpp26 using namespace Hpackage;
113 Hpackage::PkgManager::PkgManagerPtr pkgManager = Hpackage::PkgManager::CreatePackageInstance(); in ApplyImagePatch()
114 Hpackage::PkgManager::StreamPtr stream = nullptr; in ApplyImagePatch()
118 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyImagePatch()
122 std::unique_ptr<Hpackage::FileInfo> info = GetFileInfo(); in ApplyImagePatch()
125 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyImagePatch()
133 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyImagePatch()
140 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyImagePatch()
150 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyImagePatch()
154 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyImagePatch()
[all …]
Dupdate_patch.cpp25 using namespace Hpackage;
133 PkgManager* pkgManager = Hpackage::PkgManager::CreatePackageInstance(); in ApplyBlockPatch()
139 Hpackage::PkgManager::StreamPtr stream = nullptr; in ApplyBlockPatch()
144 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyBlockPatch()
152 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyBlockPatch()
157 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyBlockPatch()
179 PkgManager* pkgManager = Hpackage::PkgManager::CreatePackageInstance(); in ApplyBlockPatch()
185 Hpackage::PkgManager::StreamPtr stream = nullptr; in ApplyBlockPatch()
190 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyBlockPatch()
199 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyBlockPatch()
[all …]
/base/update/sys_installer/services/ab_update/src/
Dab_update.cpp37 Hpackage::PkgManager::PkgManagerPtr pkgManager = Hpackage::PkgManager::CreatePackageInstance(); in StartABUpdate()
54 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in StartABUpdate()
62 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in StartABUpdate()
/base/update/updater/services/script/script_manager/
Dscript_manager_impl.h34 explicit ScriptManagerImpl(UScriptEnv *env, const Hpackage::HashDataVerifier *verifier) in ScriptManagerImpl()
40 int32_t ExtractAndExecuteScript(Hpackage::PkgManager::PkgManagerPtr manager,
53 const Hpackage::HashDataVerifier *scriptVerifier_ = nullptr;
/base/update/updater/services/package/pkg_verify/
Dzip_pkg_parse.h22 namespace Hpackage {
32 int32_t ParseZipPkg(Hpackage::PkgStreamPtr pkgStream, PkgSignComment &pkgSignComment) const;
Dpkg_verify_util.h23 namespace Hpackage {
30 int32_t VerifyPackageSign(const Hpackage::PkgStreamPtr PkgStream) const;
Dopenssl_util.h24 namespace Hpackage {
35 int32_t CalcSha256Digest(const Hpackage::PkgStreamPtr srcData, const size_t dataLen, std::vector<ui…
/base/update/updater/services/include/package/
Dpackages_info.h47 std::vector<std::string> GetOTAVersion(Hpackage::PkgManager::PkgManagerPtr manager,
56 …std::vector<std::string> GetBoardID(Hpackage::PkgManager::PkgManagerPtr manager, const std::string…
/base/update/updater/services/diffpatch/diff/
Dupdate_diff.cpp22 using namespace Hpackage;
31 Hpackage::PkgManager::ReleasePackageInstance(pkgManager_); in ~ImageParser()
38 Hpackage::PkgBuffer pkgBuffer {}; in GetPkgBuffer()
47 const Hpackage::FileInfo *ImageParser::GetFileInfo(const std::string &fileName) const in GetFileInfo()
57 pkgManager_ = Hpackage::PkgManager::CreatePackageInstance(); in Parse()
103 Hpackage::PkgManager::StreamPtr outStream = nullptr; in Extract()
Dupdate_diff.h42 const Hpackage::FileInfo *GetFileInfo(const std::string &fileName) const;
47 Hpackage::PkgManager::StreamPtr stream_ { nullptr };
48 Hpackage::PkgManager::PkgManagerPtr pkgManager_ { nullptr };
/base/update/updater/services/script/script_interpreter/
Dscanner.h53 void SetPkgStream(Hpackage::PkgManager::StreamPtr pkgStream) in SetPkgStream()
59 Hpackage::PkgManager::StreamPtr pkgStream_ = nullptr;
/base/update/updater/services/include/script/
Dscript_instruction.h32 UScriptEnv(Hpackage::PkgManager::PkgManagerPtr pkgManager) : pkgManager_(pkgManager) {} in UScriptEnv()
36 Hpackage::PkgManager::PkgManagerPtr GetPkgManager() in GetPkgManager()
50 Hpackage::PkgManager::PkgManagerPtr pkgManager_ = nullptr;
/base/update/updater/services/diffpatch/bzip2/
Dlz4_adapter.h36 …Lz4Adapter(UpdatePatchWriterPtr outStream, size_t offset, const Hpackage::PkgManager::FileInfoPtr …
54 … const Hpackage::PkgManager::FileInfoPtr fileInfo) : Lz4Adapter(outStream, offset, fileInfo) {} in Lz4FrameAdapter()
75 …const Hpackage::PkgManager::FileInfoPtr fileInfo) : Lz4FrameAdapter(outStream, offset, fileInfo) {} in Lz4BlockAdapter()
Dzip_adapter.cpp21 using namespace Hpackage;
27 const Hpackage::ZipFileInfo *info = (const Hpackage::ZipFileInfo *)fileInfo; in ZipAdapter()
/base/update/updater/services/package/pkg_manager/
Dpkg_stream.h25 namespace Hpackage {
229 class FlowDataStream : public Hpackage::PkgStreamImpl {
231 FlowDataStream(Hpackage::PkgManager::PkgManagerPtr pkgManager, const std::string fileName,
237 … int32_t Read(Hpackage::PkgBuffer &data, size_t start, size_t needRead, size_t &readLen) override;
239 int32_t Write(const Hpackage::PkgBuffer &data, size_t size, size_t start) override;
245 return Hpackage::PKG_INVALID_STREAM; in Seek()
261 return Hpackage::PKG_INVALID_STREAM; in Flush()

123456