Home
last modified time | relevance | path

Searched refs:scriptName (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/base/update/updater/services/script/script_manager/
H A Dscript_managerImpl.cpp166 const std::string &scriptName) in ExtractAndExecuteScript() argument
171 const FileInfo *info = manager->GetFileInfo(scriptName); in ExtractAndExecuteScript()
177 int32_t ret = manager->CreatePkgStream(outStream, path + "/" + scriptName, in ExtractAndExecuteScript()
180 USCRIPT_LOGE("Failed to create script stream %s", scriptName.c_str()); in ExtractAndExecuteScript()
184 ret = manager->ExtractFile(scriptName, outStream); in ExtractAndExecuteScript()
187 USCRIPT_LOGE("Failed to extract script stream %s", scriptName.c_str()); in ExtractAndExecuteScript()
200 USCRIPT_LOGE("Failed to ExecuteScript %s", scriptName.c_str()); in ExtractAndExecuteScript()
257 int32_t ScriptManagerImpl::AddScript(const std::string &scriptName, int32_t priority) in AddScript() argument
273 if (manager->GetFileInfo(scriptName) == nullptr) { in AddScript()
274 USCRIPT_LOGE("Failed to access script %s", scriptName.c_str()); in AddScript()
[all …]
H A Dscript_manager_impl.h41 const std::string &scriptName);
42 int32_t AddScript(const std::string &scriptName, int32_t priority);
/ohos5.0/base/update/updater/services/script/script_instruction/
H A Dscript_loadscript.cpp34 std::string scriptName; in Execute() local
36 int32_t ret = context.GetParam(0, scriptName); in Execute()
48 USCRIPT_LOGI("ScriptLoadScript %s priority:%d", scriptName.c_str(), priority); in Execute()
49 return helper->AddScript(scriptName, priority); in Execute()
H A Dscript_instructionhelper.cpp85 bool ScriptInstructionHelper::IsReservedInstruction(const std::string &scriptName) const in IsReservedInstruction()
87 if (g_reservedInstructions.find(scriptName) != g_reservedInstructions.end()) { in IsReservedInstruction()
93 int32_t ScriptInstructionHelper::AddScript(const std::string &scriptName, int32_t priority) const in AddScript() argument
95 return scriptManager_->AddScript(scriptName, priority); in AddScript()
H A Dscript_instructionhelper.h33 bool IsReservedInstruction(const std::string &scriptName) const;
35 int32_t AddScript(const std::string &scriptName, int32_t priority) const;