Home
last modified time | relevance | path

Searched refs:GetPkgManager (Results 1 – 8 of 8) sorted by relevance

/base/update/updater/services/updater_binary/
Dupdate_partitions.cpp114 const FileInfo *info = env.GetPkgManager()->GetFileInfo(filePath); in Execute()
121 ret = env.GetPkgManager()->CreatePkgStream(outStream, in Execute()
125 ret = env.GetPkgManager()->ExtractFile(filePath, outStream); in Execute()
127 env.GetPkgManager()->ClosePkgStream(outStream); return USCRIPT_ERROR_EXECUTE); in Execute()
131 env.GetPkgManager()->ClosePkgStream(outStream); in Execute()
138 env.GetPkgManager()->ClosePkgStream(outStream); in Execute()
144 env.GetPkgManager()->ClosePkgStream(outStream); in Execute()
149 env.GetPkgManager()->ClosePkgStream(outStream); in Execute()
153 env.GetPkgManager()->ClosePkgStream(outStream); in Execute()
Dupdate_image_block.cpp96 const FileInfo *file = env->GetPkgManager()->GetFileInfo(info->newPatch); in UnpackNewData()
109 … int32_t ret = env->GetPkgManager()->CreatePkgStream(stream, info->newPatch, ExtractNewData, info); in UnpackNewData()
120 ret = env->GetPkgManager()->ExtractFile(info->newPatch, stream); in UnpackNewData()
121 env->GetPkgManager()->ClosePkgStream(stream); in UnpackNewData()
251 const FileInfo *info = env.GetPkgManager()->GetFileInfo(infos.partitionName); in ExtractDiffPackageAndLoad()
257 int32_t ret = env.GetPkgManager()->CreatePkgStream(outStream, in ExtractDiffPackageAndLoad()
264 ret = env.GetPkgManager()->ExtractFile(infos.partitionName, outStream); in ExtractDiffPackageAndLoad()
267 env.GetPkgManager()->ClosePkgStream(outStream); in ExtractDiffPackageAndLoad()
270 env.GetPkgManager()->ClosePkgStream(outStream); in ExtractDiffPackageAndLoad()
278 …ret = env.GetPkgManager()->LoadPackage(diffPackageZip, Updater::Utils::GetCertName(), diffPackageC… in ExtractDiffPackageAndLoad()
[all …]
Dupdate_processor.cpp143 …UPDATER_ERROR_CHECK(env.GetPkgManager() != nullptr, "Error to get pkg manager", return USCRIPT_ERR… in Execute()
160 const FileInfo *info = env.GetPkgManager()->GetFileInfo(partitionName); in Execute()
170 ret = env.GetPkgManager()->CreatePkgStream(outStream, in Execute()
175 ret = env.GetPkgManager()->ExtractFile(partitionName, outStream); in Execute()
177 env.GetPkgManager()->ClosePkgStream(outStream); in Execute()
182 env.GetPkgManager()->ClosePkgStream(outStream); in Execute()
Dupdate_image_patch.cpp118 if (env.GetPkgManager() == nullptr) { in GetPatchFile()
123 const FileInfo *info = env.GetPkgManager()->GetFileInfo(para.partName); in GetPatchFile()
131 int32_t ret = env.GetPkgManager()->CreatePkgStream(outStream, in GetPatchFile()
138 ret = env.GetPkgManager()->ExtractFile(para.partName, outStream); in GetPatchFile()
139 env.GetPkgManager()->ClosePkgStream(outStream); in GetPatchFile()
/base/update/updater/services/script/script_manager/
Dscript_managerImpl.cpp88 PkgManager::PkgManagerPtr manager = scriptEnv_->GetPkgManager(); in Init()
142 PkgManager::PkgManagerPtr manager = scriptEnv_->GetPkgManager(); in ExecuteScript()
188 PkgManager::PkgManagerPtr manager = scriptEnv_->GetPkgManager(); in AddScript()
/base/update/updater/services/include/script/
Dscript_instruction.h36 Hpackage::PkgManager::PkgManagerPtr GetPkgManager() in GetPkgManager() function
/base/update/updater/test/unittest/script/
Dscript_unittest.cpp109 if (env.GetPkgManager() == nullptr) { in Execute()
/base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/
Dextractandexecutescript_fuzzer.cpp70 if (env.GetPkgManager() == nullptr) { in Execute()