/base/update/updater/services/applypatch/ |
H A D | command.cpp | 23 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 D | command_process.h | 26 CommandResult Execute(const Command ¶ms) override;
33 CommandResult Execute(const Command ¶ms) override;
40 CommandResult Execute(const Command ¶ms) override;
47 CommandResult Execute(const Command ¶ms) override;
54 CommandResult Execute(const Command ¶ms) override;
61 CommandResult Execute(const Command ¶ms) override;
62 virtual int32_t WriteDiffToBlock(const Command ¶ms, std::vector<uint8_t> &srcBuffer,
|
H A D | command_process.cpp | 38 CommandResult AbortCommandFn::Execute(const Command ¶ms)
in Execute() 43 CommandResult NewCommandFn::Execute(const Command ¶ms)
in Execute() 72 CommandResult ZeroAndEraseCommandFn::Execute(const Command ¶ms)
in Execute() 103 bool LoadTarget(const Command ¶ms, size_t &pos, std::vector<uint8_t> &buffer,
in LoadTarget() 143 int32_t DiffAndMoveCommandFn::WriteDiffToBlock(const Command ¶ms, std::vector<uint8_t> &srcBuffer,
in WriteDiffToBlock() 150 CommandResult DiffAndMoveCommandFn::Execute(const Command ¶ms)
in Execute() 194 CommandResult FreeCommandFn::Execute(const Command ¶ms)
in Execute() 204 CommandResult StashCommandFn::Execute(const Command ¶ms)
in Execute()
|
H A D | transfer_manager.cpp | 36 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 D | block_set.cpp | 251 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 D | command.cpp | 20 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 D | dump_helper.cpp | 28 void DumpHelper::RegisterCommand(std::shared_ptr<Command> &cmd) in RegisterCommand()
|
H A D | screenlock_system_ability.cpp | 649 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 D | command.cpp | 18 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 D | dump_helper.h | 30 void RegisterCommand(std::shared_ptr<Command> &cmd); 34 std::map<std::string, std::shared_ptr<Command>> cmdHandler_;
|
H A D | command.h | 22 class Command { class 25 Command(const std::vector<std::string> &argsFormat, const std::string &help, const Action &action);
|
H A D | dump_helper.cpp | 30 void DumpHelper::RegisterCommand(std::shared_ptr<Command> &cmd) in RegisterCommand()
|
/base/customization/enterprise_device_management/services/edm_plugin/include/ |
H A D | iptables_rule_plugin.h | 46 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 D | command.h | 24 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 D | dump_helper.h | 31 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 D | command.h | 31 class Command {
class 33 explicit Command(TransferParams* transferParams):transferParams_(transferParams) {}
in Command() function in Updater::Command 34 virtual ~Command();
|
H A D | block_set.h | 34 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 D | command_function.h | 25 virtual CommandResult Execute(const Command ¶ms) = 0;
|
H A D | transfer_manager.h | 79 bool CommandsExecute(int fd, Command &cmd);
|
/base/update/updater/test/unittest/applypatch_test/ |
H A D | commandsfunction_unittest.cpp | 37 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 D | commands_unittest.cpp | 59 Command *cmd = new Command(transferParams.get());
in HWTEST_F() 77 Command *cmd = new Command(transferParams.get());
in HWTEST_F()
|
H A D | blockset_unittest.cpp | 125 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 D | wallpaper_service.cpp | 180 auto cmd = std::make_shared<Command>(std::vector<std::string>({ "-all" }), "Show all", in OnStart()
|