Home
last modified time | relevance | path

Searched refs:Command (Results 1 - 23 of 23) sorted by relevance

/base/update/updater/services/applypatch/
H A Dcommand.cpp23 bool Command::Init(const std::string &cmdLine) in Init()
34 Command::~Command() in ~Command()
39 CommandType Command::GetCommandType() const in GetCommandType()
44 std::string Command::GetCommandHead() const in GetCommandHead()
49 std::string Command::GetArgumentByPos(size_t pos) const in GetArgumentByPos()
57 std::string Command::GetCommandLine() const in GetCommandLine()
62 void Command::SetFileDescriptor(int fd) in SetFileDescriptor()
67 int Command::GetFileDescriptor() const in GetFileDescriptor()
72 TransferParams* Command
[all...]
H A Dcommand_process.h26 CommandResult Execute(const Command &params) override;
33 CommandResult Execute(const Command &params) override;
40 CommandResult Execute(const Command &params) override;
47 CommandResult Execute(const Command &params) override;
54 CommandResult Execute(const Command &params) override;
61 CommandResult Execute(const Command &params) override;
62 virtual int32_t WriteDiffToBlock(const Command &params, std::vector<uint8_t> &srcBuffer,
H A Dcommand_process.cpp38 CommandResult AbortCommandFn::Execute(const Command &params) in Execute()
43 CommandResult NewCommandFn::Execute(const Command &params) in Execute()
72 CommandResult ZeroAndEraseCommandFn::Execute(const Command &params) in Execute()
103 bool LoadTarget(const Command &params, size_t &pos, std::vector<uint8_t> &buffer, in LoadTarget()
143 int32_t DiffAndMoveCommandFn::WriteDiffToBlock(const Command &params, std::vector<uint8_t> &srcBuffer, in WriteDiffToBlock()
150 CommandResult DiffAndMoveCommandFn::Execute(const Command &params) in Execute()
194 CommandResult FreeCommandFn::Execute(const Command &params) in Execute()
204 CommandResult StashCommandFn::Execute(const Command &params) in Execute()
H A Dtransfer_manager.cpp36 bool TransferManager::CommandsExecute(int fd, Command &cmd) in CommandsExecute()
51 static bool JudgeBlockVerifyCmdType(Command &cmd) in JudgeBlockVerifyCmdType()
100 std::unique_ptr<Command> cmd = std::make_unique<Command>(transferParams_.get()); in CommandsParser()
113 LOG(INFO) << "Retry: Command " << *ct << " passed"; in CommandsParser()
H A Dblock_set.cpp251 int32_t BlockSet::LoadSourceBuffer(const Command &cmd, size_t &pos, std::vector<uint8_t> &sourceBuffer, in LoadSourceBuffer()
296 __attribute__((weak)) int32_t BlockVerify(const Command &cmd, std::vector<uint8_t> &buffer, in BlockVerify()
303 int32_t BlockSet::LoadTargetBuffer(const Command &cmd, std::vector<uint8_t> &buffer, size_t &blockSize, in LoadTargetBuffer()
383 int32_t BlockSet::WriteDiffToBlock(const Command &cmd, std::vector<uint8_t> &sourceBuffer, uint8_t *patchBuffer, in WriteDiffToBlock()
/base/theme/screenlock_mgr/services/src/
H A Dcommand.cpp20 Command::Command(const std::vector<std::string> &argsFormat, const std::string &help, const Command::Action &action) in Command() function in OHOS::ScreenLock::Command
25 Command::Command(const std::vector<std::string> &argsFormat, const std::string &help) : format(argsFormat), help(help) in Command() function in OHOS::ScreenLock::Command
29 std::string Command::ShowHelp() in ShowHelp()
34 bool Command::DoAction(const std::vector<std::string> &input, std::string &output) in DoAction()
39 std::string Command::GetOption() in GetOption()
44 std::string Command::GetFormat() in GetFormat()
H A Ddump_helper.cpp28 void DumpHelper::RegisterCommand(std::shared_ptr<Command> &cmd) in RegisterCommand()
H A Dscreenlock_system_ability.cpp649 auto cmd = std::make_shared<Command>(std::vector<std::string>{ "-all" }, "dump all screenlock information", in RegisterDumpCommand()
/base/theme/wallpaper_mgr/utils/dfx/hidumper_adapter/
H A Dcommand.cpp18 Command::Command(const std::vector<std::string> &argsFormat, const std::string &help, const Command::Action &action) in Command() function in OHOS::MiscServices::Command
23 std::string Command::ShowHelp() const in ShowHelp()
28 bool Command::DoAction(const std::vector<std::string> &input, std::string &output) in DoAction()
33 std::string Command::GetOption() in GetOption()
38 std::string Command::GetFormat() in GetFormat()
H A Ddump_helper.h30 void RegisterCommand(std::shared_ptr<Command> &cmd);
34 std::map<std::string, std::shared_ptr<Command>> cmdHandler_;
H A Dcommand.h22 class Command { class
25 Command(const std::vector<std::string> &argsFormat, const std::string &help, const Action &action);
H A Ddump_helper.cpp30 void DumpHelper::RegisterCommand(std::shared_ptr<Command> &cmd) in RegisterCommand()
/base/customization/enterprise_device_management/services/edm_plugin/include/
H A Diptables_rule_plugin.h46 bool ConvertAddFilterToIptablesCommand(const IPTABLES::AddFilter &addFilter, std::string &Command);
51 std::string &Command);
52 void ConvertIpAddressCommand(const std::string &ipAddress, const bool isSourceIp, std::string &Command);
53 void ConvertPortCommand(const std::string &port, const bool isSourcePort, std::string &Command);
54 void ConvertProtocolCommand(const IPTABLES::Protocol &protocol, std::string &Command);
55 bool ConvertActionCommand(const IPTABLES::Action &action, std::string &Command);
56 void ConvertRuleNoCommand(const IPTABLES::AddMethod &method, uint32_t ruleNo, std::string &Command);
57 void ConvertUidCommand(const std::string &uid, std::string &Command);
/base/theme/screenlock_mgr/services/include/
H A Dcommand.h24 class Command { class
27 explicit Command() = default;
28 Command(const std::vector<std::string> &argsFormat, const std::string &help, const Action &action);
29 Command(const std::vector<std::string> &argsFormat, const std::string &help);
30 virtual ~Command() = default;
H A Ddump_helper.h31 void RegisterCommand(std::shared_ptr<Command> &cmd);
35 std::map<std::string, std::shared_ptr<Command>> cmdHandler;
/base/update/updater/services/include/applypatch/
H A Dcommand.h31 class Command { class
33 explicit Command(TransferParams* transferParams):transferParams_(transferParams) {} in Command() function in Updater::Command
34 virtual ~Command();
H A Dblock_set.h34 class Command;
88 int32_t LoadTargetBuffer(const Command &cmd, std::vector<uint8_t> &buffer, size_t &blockSize, size_t pos,
92 int32_t WriteDiffToBlock(const Command &cmd, std::vector<uint8_t> &sourceBuffer, uint8_t *patchBuffer,
109 int32_t LoadSourceBuffer(const Command &cmd, size_t &pos, std::vector<uint8_t> &sourceBuffer,
118 int32_t BlockVerify(const Command &cmd, std::vector<uint8_t> &buffer,
H A Dcommand_function.h25 virtual CommandResult Execute(const Command &params) = 0;
H A Dtransfer_manager.h79 bool CommandsExecute(int fd, Command &cmd);
/base/update/updater/test/unittest/applypatch_test/
H A Dcommandsfunction_unittest.cpp37 CommandResult TestCommandFnExec(std::shared_ptr<Command> cmd, std::string cmdLine) in TestCommandFnExec()
41 CommandResult ret = cf->Execute(const_cast<Command &>(*cmd.get())); in TestCommandFnExec()
66 std::shared_ptr<Command> cmd = std::make_shared<Command>(transferParams.get()); in HWTEST_F()
H A Dcommands_unittest.cpp59 Command *cmd = new Command(transferParams.get()); in HWTEST_F()
77 Command *cmd = new Command(transferParams.get()); in HWTEST_F()
H A Dblockset_unittest.cpp125 Command *cmd = new Command(transferParams.get()); in HWTEST_F()
133 int ret = targetBlock.WriteDiffToBlock(const_cast<const Command &>(*cmd), in HWTEST_F()
137 ret = targetBlock.WriteDiffToBlock(const_cast<const Command &>(*cmd), in HWTEST_F()
/base/theme/wallpaper_mgr/services/src/
H A Dwallpaper_service.cpp180 auto cmd = std::make_shared<Command>(std::vector<std::string>({ "-all" }), "Show all", in OnStart()

Completed in 10 milliseconds