/base/update/updater/services/script/script_instruction/ |
D | script_instructionhelper.cpp | 94 …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 …]
|
D | script_instructionhelper.h | 37 int32_t AddInstruction(const std::string &instrName, const UScriptInstructionPtr instr);
|
/base/update/updater/test/unittest/script/script_instruction/user_instruction/ |
D | user_instruction.cpp | 53 … 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()
|
D | user_instruction_invalid.cpp | 41 …virtual int32_t CreateInstructionInstance(UScriptInstructionPtr& instr, const std::string& name) o… in CreateInstructionInstance() argument
|
/base/update/updater/services/updater_binary/ |
D | update_processor.cpp | 78 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()
|
D | update_processor.h | 46 … virtual int32_t CreateInstructionInstance(UScriptInstructionPtr& instr, const std::string& name);
|
/base/update/updater/test/unittest/script/ |
D | script_unittest.cpp | 119 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/ |
D | command_function.cpp | 47 void CommandFunctionFactory::ReleaseCommandFunction(std::unique_ptr<CommandFunction> &instr) in ReleaseCommandFunction() argument 49 instr.reset(); in ReleaseCommandFunction()
|
/base/update/updater/services/include/applypatch/ |
D | command_function.h | 30 static void ReleaseCommandFunction(std::unique_ptr<CommandFunction> &instr);
|
/base/update/updater/test/unittest/script/script_instruction/ |
D | script_instructionhelper_unittest.cpp | 69 … 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() 78 … instr = new (std::nothrow) BasicInstruction::UScriptInstructionAbort(); // mock reserved error in CreateInstructionInstance()
|
/base/update/updater/services/script/script_manager/ |
D | script_managerImpl.cpp | 112 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/ |
D | extractandexecutescript_fuzzer.cpp | 79 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/ |
D | script_instruction.h | 118 …virtual int32_t CreateInstructionInstance(UScriptInstructionPtr &instr, const std::string &name) =…
|