Home
last modified time | relevance | path

Searched refs:instr (Results 1 – 13 of 13) sorted by relevance

/base/update/updater/services/script/script_instruction/
Dscript_instructionhelper.cpp94 …tInstructionHelper::AddInstruction(const std::string &instrName, const UScriptInstructionPtr instr) in AddInstruction() argument
100 return scriptManager_->AddInstruction(instrName, instr); in AddInstruction()
137 UScriptInstructionPtr instr = nullptr; in RegisterUserInstruction() local
138 int32_t ret = factory->CreateInstructionInstance(instr, instrName); in RegisterUserInstruction()
139 if (ret != USCRIPT_SUCCESS || instr == nullptr) { in RegisterUserInstruction()
144 ret = AddInstruction(instrName, instr); in RegisterUserInstruction()
148 delete instr; in RegisterUserInstruction()
149 instr = nullptr; in RegisterUserInstruction()
164 UScriptInstructionPtr instr = nullptr; in RegisterUserInstruction() local
165 int32_t ret = factory->CreateInstructionInstance(instr, instrName); in RegisterUserInstruction()
[all …]
Dscript_instructionhelper.h37 int32_t AddInstruction(const std::string &instrName, const UScriptInstructionPtr instr);
/base/update/updater/test/unittest/script/script_instruction/user_instruction/
Duser_instruction.cpp53 … int32_t CreateInstructionInstance(UScriptInstructionPtr& instr, const std::string& name) override in CreateInstructionInstance() argument
56 instr = new (std::nothrow) UserInstruction1(); // 为何不加nothrow??? in CreateInstructionInstance()
58 instr = new (std::nothrow) UserInstruction2(); in CreateInstructionInstance()
60 instr = nullptr; // mock new failed scene in CreateInstructionInstance()
62 instr = new (std::nothrow) UserInstructionAbort(); // mock reserved error in CreateInstructionInstance()
Duser_instruction_invalid.cpp41 …virtual int32_t CreateInstructionInstance(UScriptInstructionPtr& instr, const std::string& name) o… in CreateInstructionInstance() argument
/base/update/updater/services/updater_binary/
Dupdate_processor.cpp78 int32_t UpdaterInstructionFactory::CreateInstructionInstance(UScriptInstructionPtr& instr, in CreateInstructionInstance() argument
82 instr = new UScriptInstructionShaCheck(); in CreateInstructionInstance()
84 instr = new UScriptInstructionBlockCheck(); in CreateInstructionInstance()
86 instr = new UScriptInstructionBlockUpdate(); in CreateInstructionInstance()
88 instr = new UScriptInstructionRawImageWrite(); in CreateInstructionInstance()
90 instr = new UpdatePartitions(); in CreateInstructionInstance()
92 instr = new USInstrImagePatch(); in CreateInstructionInstance()
94 instr = new USInstrImageShaCheck(); in CreateInstructionInstance()
Dupdate_processor.h46 … virtual int32_t CreateInstructionInstance(UScriptInstructionPtr& instr, const std::string& name);
/base/update/updater/test/unittest/script/
Dscript_unittest.cpp119 virtual int32_t CreateInstructionInstance(UScriptInstructionPtr& instr, const std::string& name) in CreateInstructionInstance() argument
122 instr = new TestScriptInstructionSparseImageWrite(); in CreateInstructionInstance()
126 virtual void DestoryInstructionInstance(UScriptInstructionPtr& instr) in DestoryInstructionInstance() argument
128 delete instr; in DestoryInstructionInstance()
129 instr = nullptr; in DestoryInstructionInstance()
/base/update/updater/services/applypatch/
Dcommand_function.cpp47 void CommandFunctionFactory::ReleaseCommandFunction(std::unique_ptr<CommandFunction> &instr) in ReleaseCommandFunction() argument
49 instr.reset(); in ReleaseCommandFunction()
/base/update/updater/services/include/applypatch/
Dcommand_function.h30 static void ReleaseCommandFunction(std::unique_ptr<CommandFunction> &instr);
/base/update/updater/test/unittest/script/script_instruction/
Dscript_instructionhelper_unittest.cpp69 … int32_t CreateInstructionInstance(UScriptInstructionPtr& instr, const std::string& name) override in CreateInstructionInstance() argument
72 instr = new (std::nothrow) TestInstruction1(); in CreateInstructionInstance()
74 instr = new (std::nothrow) TestInstruction2(); in CreateInstructionInstance()
76 instr = nullptr; // mock new memory for Instruction failed scene in CreateInstructionInstance()
78instr = new (std::nothrow) BasicInstruction::UScriptInstructionAbort(); // mock reserved error in CreateInstructionInstance()
/base/update/updater/services/script/script_manager/
Dscript_managerImpl.cpp112 UScriptInstructionPtr instr = nullptr; in RegisterInstruction() local
113 int32_t ret = factory->CreateInstructionInstance(instr, instrName); in RegisterInstruction()
115 helper.AddInstruction(instrName, instr); in RegisterInstruction()
/base/update/updater/test/fuzztest/extractandexecutescript_fuzzer/
Dextractandexecutescript_fuzzer.cpp79 virtual int32_t CreateInstructionInstance(UScriptInstructionPtr& instr, const std::string& name) in CreateInstructionInstance() argument
82 instr = new TestScriptInstructionSparseImageWrite(); in CreateInstructionInstance()
86 virtual void DestoryInstructionInstance(UScriptInstructionPtr& instr) in DestoryInstructionInstance() argument
88 delete instr; in DestoryInstructionInstance()
/base/update/updater/services/include/script/
Dscript_instruction.h118 …virtual int32_t CreateInstructionInstance(UScriptInstructionPtr &instr, const std::string &name) =…