Home
last modified time | relevance | path

Searched refs:pkgManager (Results 1 – 25 of 40) sorted by relevance

12

/base/update/updater/services/
Dupdater_preprocess.cpp49 int32_t PreProcess::DoUpdatePreProcess(PkgManager::PkgManagerPtr pkgManager) in DoUpdatePreProcess() argument
55 return helper_(pkgManager); in DoUpdatePreProcess()
63 int CheckVersion(PkgManager::PkgManagerPtr pkgManager, PackagesInfoPtr pkginfomanager) in CheckVersion() argument
66 if (pkgManager == nullptr || pkginfomanager == nullptr) { in CheckVersion()
76 …std::vector<std::string> targetVersions = pkginfomanager->GetOTAVersion(pkgManager, "version_list"… in CheckVersion()
78 targetVersions = pkginfomanager->GetOTAVersion(pkgManager, "/version_list", ""); in CheckVersion()
90 int CheckBoardId(PkgManager::PkgManagerPtr pkgManager, PackagesInfoPtr pkginfomanager) in CheckBoardId() argument
93 if (pkgManager == nullptr || pkginfomanager == nullptr) { in CheckBoardId()
100 std::vector<std::string> boardIdList = pkginfomanager->GetBoardID(pkgManager, "board_list", ""); in CheckBoardId()
102 boardIdList = pkginfomanager->GetBoardID(pkgManager, "/board_list", ""); in CheckBoardId()
[all …]
Dupdater.cpp88 int GetUpdatePackageInfo(PkgManager::PkgManagerPtr pkgManager, const std::string &path) in GetUpdatePackageInfo() argument
91 if (pkgManager == nullptr) { in GetUpdatePackageInfo()
95 int32_t ret = pkgManager->LoadPackage(path, Utils::GetCertName(), components); in GetUpdatePackageInfo()
130 PkgManager::PkgManagerPtr pkgManager = Hpackage::PkgManager::CreatePackageInstance(); in GetStashSizeList() local
131 if (pkgManager == nullptr) { in GetStashSizeList()
138 int ret = pkgManager->LoadPackageWithoutUnPack(path, fileIds); in GetStashSizeList()
141 PkgManager::ReleasePackageInstance(pkgManager); in GetStashSizeList()
146 const FileInfo *info = pkgManager->GetFileInfo(maxStashFileName); in GetStashSizeList()
150 PkgManager::ReleasePackageInstance(pkgManager); in GetStashSizeList()
155 ret = pkgManager->CreatePkgStream(outStream, maxStashFileName, info->unpackedSize, in GetStashSizeList()
[all …]
/base/update/updater/test/unittest/updater_test/
Dupdater_unittest.cpp73 PkgManager::PkgManagerPtr pkgManager = PkgManager::CreatePackageInstance(); variable
76 status = StartUpdaterProc(pkgManager, packagePath, 0, maxTemperature);
80 status = StartUpdaterProc(pkgManager, packagePath, 0, maxTemperature);
85 int32_t ret = pkgManager->LoadPackage(packagePath, GetTestCertName(), components);
87 status = StartUpdaterProc(pkgManager, packagePath, 0, maxTemperature);
91 status = StartUpdaterProc(pkgManager, packagePath, 1, maxTemperature);
95 status = StartUpdaterProc(pkgManager, packagePath, 1, maxTemperature);
96 PkgManager::ReleasePackageInstance(pkgManager);
103 PkgManager::PkgManagerPtr pkgManager = PkgManager::CreatePackageInstance(); variable
105 int ret = GetUpdatePackageInfo(pkgManager, nonExistPackagePath);
[all …]
/base/update/updater/services/ptable_parse/
Dptable_process.cpp45 … Hpackage::PkgManager::PkgManagerPtr pkgManager = Hpackage::PkgManager::CreatePackageInstance(); in PtableProcess() local
47 if (pkgManager == nullptr) { in PtableProcess()
51 int32_t ret = pkgManager->LoadPackage(path, Utils::GetCertName(), components); in PtableProcess()
54 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in PtableProcess()
60 packagePtb.LoadPartitionInfo(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.cpp54 void PtableManager::ReloadDevicePartition(Hpackage::PkgManager *pkgManager) in ReloadDevicePartition() argument
56 return LoadPartitionInfo(pkgManager); in ReloadDevicePartition()
228 void PackagePtable::LoadPartitionInfo([[maybe_unused]] Hpackage::PkgManager *pkgManager) in LoadPartitionInfo() argument
230 if (pkgManager == nullptr) { in LoadPartitionInfo()
250 if (!GetPtableBufferFromPkg(pkgManager, imageBuf, imgBufSize)) { in LoadPartitionInfo()
267 bool PackagePtable::GetPtableBufferFromPkg(Hpackage::PkgManager *pkgManager, uint8_t *&imageBuf, ui… in GetPtableBufferFromPkg() argument
269 if (pkgManager == nullptr) { in GetPtableBufferFromPkg()
274 const Hpackage::FileInfo *info = pkgManager->GetFileInfo(PtableManager::ptbImgTag_); in GetPtableBufferFromPkg()
276 info = pkgManager->GetFileInfo("/ptable"); in GetPtableBufferFromPkg()
284 (void)pkgManager->CreatePkgStream(outStream, PtableManager::ptbImgTag_, info->unpackedSize, in GetPtableBufferFromPkg()
[all …]
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;
/base/update/updater/test/unittest/updater_binary/
Dupdate_partitions_unittest.cpp58 PkgManager::PkgManagerPtr pkgManager = PkgManager::CreatePackageInstance(); variable
61 int ret = pkgManager->LoadPackage(packagePath, GetTestCertName(), components);
63 UpdaterEnv* env = new UpdaterEnv(pkgManager, nullptr, false);
74 PkgManager::ReleasePackageInstance(pkgManager);
81 PkgManager::PkgManagerPtr pkgManager = PkgManager::CreatePackageInstance(); variable
84 int ret = pkgManager->LoadPackage(packagePath, GetTestCertName(), components);
86 UpdaterEnv* env = new UpdaterEnv(pkgManager, nullptr, false);
97 PkgManager::ReleasePackageInstance(pkgManager);
Dupdater_binary_unittest.cpp75 PkgManager::PkgManagerPtr pkgManager = PkgManager::CreatePackageInstance(); in BuildFileDigest() local
77 … int32_t ret = pkgManager->CreatePkgStream(stream, packagePath, 0, PkgStream::PkgStreamType_Read); in BuildFileDigest()
80 pkgManager->ClosePkgStream(stream); in BuildFileDigest()
81 PkgManager::ReleasePackageInstance(pkgManager); in BuildFileDigest()
87 pkgManager->ClosePkgStream(stream); in BuildFileDigest()
88 PkgManager::ReleasePackageInstance(pkgManager); in BuildFileDigest()
98 pkgManager->ClosePkgStream(stream); in BuildFileDigest()
99 PkgManager::ReleasePackageInstance(pkgManager); in BuildFileDigest()
110 pkgManager->ClosePkgStream(stream); in BuildFileDigest()
111 PkgManager::ReleasePackageInstance(pkgManager); in BuildFileDigest()
[all …]
Dupdate_binary_unittest.h25 …it UTestBinaryEnv(Hpackage::PkgManager::PkgManagerPtr pkgManager) : Uscript::UScriptEnv(pkgManager in UTestBinaryEnv() argument
/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.h78 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/flow_update/update_bin/
Dbin_flow_update_unittest.cpp46 PkgManager::PkgManagerPtr pkgManager = PkgManager::CreatePackageInstance(); in TestBinFlowUpdater() local
47 if (pkgManager == nullptr) { in TestBinFlowUpdater()
53 int32_t ret = pkgManager->LoadPackage(packagePath, Utils::GetCertName(), components); in TestBinFlowUpdater()
56 PkgManager::ReleasePackageInstance(pkgManager); in TestBinFlowUpdater()
60 ret = Updater::ExecUpdate(pkgManager, false, packagePath, in TestBinFlowUpdater()
64 PkgManager::ReleasePackageInstance(pkgManager); in TestBinFlowUpdater()
/base/update/updater/services/diffpatch/patch/
Dupdate_patch.cpp133 PkgManager* pkgManager = Hpackage::PkgManager::CreatePackageInstance(); in ApplyBlockPatch() local
134 if (pkgManager == nullptr) { in ApplyBlockPatch()
140 int32_t ret = pkgManager->CreatePkgStream(stream, "", {oldInfo.buffer, oldInfo.length}); in ApplyBlockPatch()
143 pkgManager->ClosePkgStream(stream); in ApplyBlockPatch()
144 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyBlockPatch()
151 pkgManager->ClosePkgStream(stream); in ApplyBlockPatch()
152 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyBlockPatch()
156 pkgManager->ClosePkgStream(stream); in ApplyBlockPatch()
157 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in ApplyBlockPatch()
179 PkgManager* pkgManager = Hpackage::PkgManager::CreatePackageInstance(); in ApplyBlockPatch() local
[all …]
Dimage_patch.cpp113 Hpackage::PkgManager::PkgManagerPtr pkgManager = Hpackage::PkgManager::CreatePackageInstance(); in ApplyImagePatch() local
116 if (DecompressData(pkgManager, oldData, stream, true, header.expandedLen) != 0) { in ApplyImagePatch()
118 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); 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()
158 int32_t CompressedImagePatch::DecompressData(Hpackage::PkgManager::PkgManagerPtr &pkgManager, PkgBu… in DecompressData() argument
166 if (pkgManager == nullptr || info == nullptr) { in DecompressData()
[all …]
/base/update/updater/test/unittest/script/script_instruction/
Dscript_registercmd_unittest.cpp54 TestPkgManager pkgManager; in TestRegisterCmd01() local
55 UTestScriptEnv env {&pkgManager}; in TestRegisterCmd01()
67 TestPkgManager pkgManager; in TestRegisterCmd02() local
68 UTestScriptEnv env {&pkgManager}; in TestRegisterCmd02()
81 TestPkgManager pkgManager; in TestRegisterCmd03() local
82 UTestScriptEnv env {&pkgManager}; in TestRegisterCmd03()
Dscript_updateprocesser_unittest.cpp34 …TestProcessorScriptEnv(Hpackage::PkgManager::PkgManagerPtr pkgManager) : UTestScriptEnv(pkgManager) in UTestProcessorScriptEnv() argument
73 TestPkgManager pkgManager; in TestUpdateProcesserSetProcess() local
74 UTestProcessorScriptEnv env {&pkgManager}; in TestUpdateProcesserSetProcess()
86 TestPkgManager pkgManager; in TestUpdateProcesserSetProcess() local
87 UTestProcessorScriptEnv env {&pkgManager}; in TestUpdateProcesserSetProcess()
106 TestPkgManager pkgManager; in TestUpdateProcesserShowProcess() local
107 UTestProcessorScriptEnv env {&pkgManager}; in TestUpdateProcesserShowProcess()
146 TestPkgManager pkgManager; in TestUpdateProcesserPrint() local
147 UTestProcessorScriptEnv env {&pkgManager}; in TestUpdateProcesserPrint()
Dscript_loadscript_unittest.cpp53 TestPkgManager pkgManager; in TestLoadScript01() local
54 UTestScriptEnv env {&pkgManager}; in TestLoadScript01()
67 TestPkgManager pkgManager; in TestLoadScript02() local
68 UTestScriptEnv env {&pkgManager}; in TestLoadScript02()
82 TestPkgManager pkgManager; in TestLoadScript03() local
83 UTestScriptEnv env {&pkgManager}; in TestLoadScript03()
Dscript_instruction_unittest.h21 explicit UTestScriptEnv(Hpackage::PkgManager::PkgManagerPtr pkgManager) : UScriptEnv(pkgManager) in UTestScriptEnv() argument
/base/update/sys_installer/services/ab_update/src/
Dab_update.cpp37 Hpackage::PkgManager::PkgManagerPtr pkgManager = Hpackage::PkgManager::CreatePackageInstance(); in StartABUpdate() local
38 if (pkgManager == nullptr) { in StartABUpdate()
50 UpdaterStatus updateRet = DoInstallUpdaterPackage(pkgManager, upParams, HOTA_UPDATE); in StartABUpdate()
54 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in StartABUpdate()
62 Hpackage::PkgManager::ReleasePackageInstance(pkgManager); in StartABUpdate()
/base/update/updater/services/updater_binary/
Dupdate_processor.cpp297 PkgManager::PkgManagerPtr pkgManager = env.GetPkgManager(); in Execute() local
298 if (pkgManager == nullptr) { in Execute()
310 …ret = pkgManager->CreatePkgStream(outStream, upgradeFileName, UnCompressDataProducer, &ringBuffer); in Execute()
316 ret = pkgManager->ExtractFile(upgradeFileName, outStream); in Execute()
319 pkgManager->ClosePkgStream(outStream); in Execute()
322 pkgManager->ClosePkgStream(outStream); in Execute()
364 int ExecUpdate(PkgManager::PkgManagerPtr pkgManager, int retry, const std::string &pkgPath, in ExecUpdate() argument
367 Hpackage::HashDataVerifier scriptVerifier {pkgManager}; in ExecUpdate()
373 UpdaterEnv* env = new (std::nothrow) UpdaterEnv(pkgManager, postMessage, retry); in ExecUpdate()
452 PkgManager::PkgManagerPtr pkgManager = PkgManager::CreatePackageInstance(); in ProcessUpdater() local
[all …]
/base/update/updater/services/package/pkg_manager/
Dpkg_stream.h28 explicit PkgStreamImpl(PkgManager::PkgManagerPtr pkgManager, const std::string fileName) in PkgStreamImpl() argument
29 : fileName_(fileName), refCount_(0), pkgManager_(pkgManager) {} in PkgStreamImpl()
91 …FileStream(PkgManager::PkgManagerPtr pkgManager, const std::string fileName, FILE *stream, int32_t… in FileStream() argument
92 … : PkgStreamImpl(pkgManager, fileName), stream_(stream), fileLength_(0), streamType_(streamType) {} in FileStream()
119 …MemoryMapStream(PkgManager::PkgManagerPtr pkgManager, const std::string fileName, const PkgBuffer …
120 …int32_t streamType = PkgStreamType_MemoryMap) : PkgStreamImpl(pkgManager, fileName), memMap_(buffe… in PkgStreamImpl() argument
168 ProcessorStream(PkgManager::PkgManagerPtr pkgManager, const std::string fileName, in ProcessorStream() argument
170 : PkgStreamImpl(pkgManager, fileName), processor_(processor), context_(context) {} in ProcessorStream()
231 FlowDataStream(Hpackage::PkgManager::PkgManagerPtr pkgManager, const std::string fileName,
233 PkgStreamType_FlowData) : PkgStreamImpl(pkgManager, fileName), fileLength_(fileSize), in PkgStreamImpl() argument
/base/update/updater/services/flow_update/update_bin/
Dbin_process.cpp46 PkgManager::PkgManagerPtr pkgManager = env.GetPkgManager(); in Execute() local
47 if (pkgManager == nullptr) { in Execute()
61 ret = pkgManager->CreatePkgStream(binFlowStream, upgradeFileName, &ringBuffer); in Execute()
95 PkgManager::PkgManagerPtr pkgManager = env.GetPkgManager(); in ExtractBinFile() local
96 if (pkgManager == nullptr) { in ExtractBinFile()
106 ret = pkgManager->CreatePkgStream(processStream, upgradeFileName, processor, stream); in ExtractBinFile()
112 ret = pkgManager->ExtractFile(upgradeFileName, processStream); in ExtractBinFile()
115 pkgManager->ClosePkgStream(processStream); in ExtractBinFile()
118 pkgManager->ClosePkgStream(processStream); in ExtractBinFile()
/base/update/updater/services/include/applypatch/
Dupdater_env.h34 …UpdaterEnv(Hpackage::PkgManager::PkgManagerPtr pkgManager, PostMessageFunction postMessage, bool r… in UpdaterEnv() argument
35 : UScriptEnv(pkgManager), postMessage_(postMessage), isRetry_(retry) {} in UpdaterEnv()
/base/update/updater/test/unittest/package/
Dpkg_package_unittest.cpp44 explicit TestFile(PkgManager::PkgManagerPtr pkgManager, PkgStreamPtr stream) in TestFile() argument
45 : PkgFileImpl(pkgManager, stream, PKG_TYPE_MAX) {} in TestFile()
191 PkgManager::PkgManagerPtr pkgManager = PkgManager::CreatePackageInstance(); in TestUpdaterPreProcess() local
194 int32_t ret = pkgManager->LoadPackage(packagePath, Utils::GetCertName(), components); in TestUpdaterPreProcess()
200 pkgManager, "/version_list", testPackagePath); in TestUpdaterPreProcess()
203 … std::vector<std::string> boardIdList = pkginfomanager->GetBoardID(pkgManager, "/board_list", ""); in TestUpdaterPreProcess()
206 PkgManager::ReleasePackageInstance(pkgManager); in TestUpdaterPreProcess()
/base/update/updater/services/include/script/
Dscript_instruction.h32 UScriptEnv(Hpackage::PkgManager::PkgManagerPtr pkgManager) : pkgManager_(pkgManager) {} in UScriptEnv() argument

12