Home
last modified time | relevance | path

Searched refs:cmd (Results 1 - 25 of 284) sorted by relevance

12345678910>>...12

/base/hiviewdfx/hievent_lite/command/
H A Dhievent_lite_command.c34 static boolean CheckCmdStr(const char *cmd);
36 static void HieventSetProc(const char *cmd);
39 void HieventCmdProc(const char *cmd) in HieventCmdProc() argument
41 if (cmd == NULL) { in HieventCmdProc()
45 int32 len = strnlen(cmd, CMD_MAX_LEN + 1); in HieventCmdProc()
46 if ((len < CMD_MIN_LEN) || (len > CMD_MAX_LEN) || (CheckCmdStr(cmd) == FALSE)) { in HieventCmdProc()
51 if (*cmd != OPTION_TAG) { in HieventCmdProc()
56 switch (*(++cmd)) { in HieventCmdProc()
61 HieventSetProc(++cmd); in HieventCmdProc()
76 static void HieventSetProc(const char *cmd) in HieventSetProc() argument
92 CheckCmdStr(const char *cmd) CheckCmdStr() argument
[all...]
/base/customization/enterprise_device_management/test/unittest/tools/src/
H A Dedm_command_test.cpp45 EdmCommand cmd(argc, argv); in HWTEST_F()
46 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG); in HWTEST_F()
62 EdmCommand cmd(argc, argv); in HWTEST_F()
63 EXPECT_EQ(cmd.ExecCommand(), cmd.GetMessageFromCode(ERR_EDM_TOOLS_COMMAND_NO_OPTION) + HELP_MSG_ENABLE_ADMIN); in HWTEST_F()
80 EdmCommand cmd(argc, argv); in HWTEST_F()
81 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_ENABLE_ADMIN); in HWTEST_F()
98 EdmCommand cmd(argc, argv); in HWTEST_F()
99 EXPECT_EQ(cmd.ExecCommand(), cmd in HWTEST_F()
[all...]
/base/notification/common_event_service/tools/test/unittest/cem/
H A Dcommon_event_command_dump_test.cpp46 void SetMockObjects(const CommonEventCommand &cmd) const;
68 void CemCommandDumpTest::SetMockObjects(const CommonEventCommand &cmd) const in SetMockObjects()
98 CommonEventCommand cmd(argc, argv); in HWTEST_F()
101 SetMockObjects(cmd); in HWTEST_F()
103 EXPECT_EQ(cmd.ExecCommand(), Concatenate(HELP_MSG_NO_OPTION, HELP_MSG_DUMP)); in HWTEST_F()
121 CommonEventCommand cmd(argc, argv); in HWTEST_F()
123 SetMockObjects(cmd); in HWTEST_F()
125 EXPECT_EQ(cmd.ExecCommand(), Concatenate(HELP_MSG_NO_OPTION, HELP_MSG_DUMP)); in HWTEST_F()
143 CommonEventCommand cmd(argc, argv); in HWTEST_F()
146 SetMockObjects(cmd); in HWTEST_F()
[all...]
H A Dcommon_event_command_publish_test.cpp48 void SetMockObjects(const CommonEventCommand &cmd) const;
70 void CemCommandPublishTest::SetMockObjects(const CommonEventCommand &cmd) const in SetMockObjects()
87 CommonEventCommand cmd(argc, argv); in HWTEST_F()
88 EXPECT_EQ(cmd.ExecCommand(), Concatenate(HELP_MSG_NO_OPTION, HELP_MSG_PUBLISH)); in HWTEST_F()
106 CommonEventCommand cmd(argc, argv); in HWTEST_F()
107 EXPECT_EQ(cmd.ExecCommand(), Concatenate(HELP_MSG_NO_OPTION, HELP_MSG_PUBLISH)); in HWTEST_F()
125 CommonEventCommand cmd(argc, argv); in HWTEST_F()
126 EXPECT_EQ(cmd.ExecCommand(), Concatenate("error: unknown option.\n", HELP_MSG_PUBLISH)); in HWTEST_F()
144 CommonEventCommand cmd(argc, argv); in HWTEST_F()
145 EXPECT_EQ(cmd in HWTEST_F()
[all...]
H A Dcommon_event_command_test.cpp72 CommonEventCommand cmd(argc, argv); in HWTEST_F()
73 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG); in HWTEST_F()
90 CommonEventCommand cmd(argc, argv); in HWTEST_F()
91 EXPECT_EQ(cmd.ExecCommand(), Concatenate("cem: 'xxx' is not a valid cem command. See 'cem help'.\n", HELP_MSG)); in HWTEST_F()
108 CommonEventCommand cmd(argc, argv); in HWTEST_F()
109 EXPECT_EQ(cmd.ExecCommand(), cmd.GetCommandErrorMsg() + HELP_MSG); in HWTEST_F()
126 CommonEventCommand cmd(argc, argv); in HWTEST_F()
127 EXPECT_EQ(cmd.ExecCommand(), Concatenate(cmd in HWTEST_F()
[all...]
/base/startup/init/services/init/standard/
H A Dinit_cmdexecutor.c33 PluginCmd *cmd = NULL; in AddCmdExecutor_() local
39 cmd = groupNode->data.cmd; in AddCmdExecutor_()
40 if (cmd == NULL) { in AddCmdExecutor_()
41 cmd = (PluginCmd *)calloc(1, sizeof(PluginCmd)); in AddCmdExecutor_()
42 INIT_ERROR_CHECK(cmd != NULL, return -1, "Failed to create cmd condition"); in AddCmdExecutor_()
43 groupNode->data.cmd = cmd; in AddCmdExecutor_()
44 cmd in AddCmdExecutor_()
78 PluginCmd *cmd = groupNode->data.cmd; RemoveCmdExecutor() local
96 PluginExecCmd_(PluginCmd *cmd, const char *cmdContent) PluginExecCmd_() argument
125 PluginCmd *cmd = groupNode->data.cmd; PluginExecCmdByName() local
136 PluginCmd *cmd = groupNode->data.cmd; PluginExecCmd() local
154 PluginCmd *cmd = groupNode->data.cmd; CompareCmdId() local
176 PluginCmd *cmd = GetPluginCmdByIndex(index); GetPluginCmdNameByIndex() local
185 PluginCmd *cmd = GetPluginCmdByIndex(index); PluginExecCmdByCmdIndex() local
218 PluginCmd *cmd = groupNode->data.cmd; PluginGetCmdIndex() local
[all...]
/base/hiviewdfx/hidumper/test/unittest/common/
H A Dmemory_dumper_test.cpp65 std::string cmd = "hidumper --mem"; in HWTEST_F() local
67 ASSERT_TRUE(HidumperTestUtils::GetInstance().IsExistInCmdResult(cmd, str)); in HWTEST_F()
78 std::string cmd = "hidumper --mem"; in HWTEST_F() local
80 ASSERT_TRUE(HidumperTestUtils::GetInstance().IsExistInCmdResult(cmd, str)); in HWTEST_F()
91 std::string cmd = "hidumper --mem 1"; in HWTEST_F() local
93 ASSERT_TRUE(HidumperTestUtils::GetInstance().IsExistInCmdResult(cmd, str)); in HWTEST_F()
95 ASSERT_TRUE(HidumperTestUtils::GetInstance().IsExistInCmdResult(cmd, str)); in HWTEST_F()
97 ASSERT_TRUE(HidumperTestUtils::GetInstance().IsExistInCmdResult(cmd, str)); in HWTEST_F()
99 ASSERT_TRUE(HidumperTestUtils::GetInstance().IsExistInCmdResult(cmd, str)); in HWTEST_F()
110 std::string cmd in HWTEST_F() local
123 std::string cmd = "hidumper --mem"; HWTEST_F() local
140 std::string cmd = "hidumper --mem"; HWTEST_F() local
153 std::string cmd = "hidumper --mem --zip"; HWTEST_F() local
169 std::string cmd = "hidumper --mem " + std::to_string(pid); HWTEST_F() local
202 std::string cmd = "hidumper --mem " + std::to_string(pid); HWTEST_F() local
223 std::string cmd = "hidumper --mem " + std::to_string(pid); HWTEST_F() local
277 const std::string cmd = "ps -ef"; HWTEST_F() local
290 std::string cmd = "hidumper --mem-smaps 1"; HWTEST_F() local
308 std::string cmd = "hidumper --mem-smaps 100000"; HWTEST_F() local
[all...]
H A Dsa_dumper_test.cpp51 std::string cmd = "hidumper -s 1201 -a '-p Faultlogger'"; in HWTEST_F() local
53 ASSERT_TRUE(HidumperTestUtils::GetInstance().IsExistInCmdResult(cmd, str)); in HWTEST_F()
65 std::string cmd = "hidumper -s WindowManagerService -a -a"; in HWTEST_F() local
67 ASSERT_TRUE(HidumperTestUtils::GetInstance().IsExistInCmdResult(cmd, str)); in HWTEST_F()
78 std::string cmd = "hidumper -s 10 -a allInfo"; in HWTEST_F() local
80 ASSERT_TRUE(HidumperTestUtils::GetInstance().IsExistInCmdResult(cmd, str)); in HWTEST_F()
91 std::string cmd = "hidumper -s 1904 -a -a"; in HWTEST_F() local
93 ASSERT_TRUE(HidumperTestUtils::GetInstance().IsExistInCmdResult(cmd, str)); in HWTEST_F()
103 std::string cmd = "hidumper -s AbilityManagerService -a -l"; in HWTEST_F() local
105 ASSERT_TRUE(HidumperTestUtils::GetInstance().IsExistInCmdResult(cmd, st in HWTEST_F()
116 std::string cmd = "hidumper -s DisplayManagerService -a '-s -a'"; HWTEST_F() local
129 std::string cmd = "hidumper -s ScreenlockService -a -all"; HWTEST_F() local
142 std::string cmd = "hidumper -s MultimodalInput -a -w"; HWTEST_F() local
156 std::string cmd = "hidumper -s 10 -a -h > " + path; HWTEST_F() local
170 std::string cmd = "hidumper -s 10 -a -h --zip"; HWTEST_F() local
183 std::string cmd = "hidumper -s AbilityManagerService -a '-a'"; HWTEST_F() local
[all...]
/base/security/device_auth/services/session_manager/src/session/v2/expand_sub_session/expand_process_lib/
H A Dmk_agree.c83 static int32_t ThrowException(BaseCmd *cmd, const CJson *in, CJson **out) in ThrowException() argument
86 (void)cmd; in ThrowException()
92 static int32_t AddEventByState(const BaseCmd *cmd, CJson *sendData) in AddEventByState() argument
94 if (cmd->curState == CLIENT_INIT_STATE) { in AddEventByState()
96 } else if (cmd->curState == SERVER_WAIT_REQUEST_STATE) { in AddEventByState()
104 static int32_t ProcessMkAgreeTask(BaseCmd *cmd, const CJson *in, CJson **out) in ProcessMkAgreeTask() argument
106 LOGI("process mk agree task, current state is: %d", cmd->curState); in ProcessMkAgreeTask()
112 MkAgreeCmd *impl = (MkAgreeCmd *)cmd; in ProcessMkAgreeTask()
119 if (cmd->curState == CLIENT_WAIT_RESPONSE_STATE) { in ProcessMkAgreeTask()
135 res = AddEventByState(cmd, *ou in ProcessMkAgreeTask()
171 SwitchState(BaseCmd *cmd, const CJson *in, CJson **out, CmdState *returnState) SwitchState() argument
192 StartMkAgreeCmd(BaseCmd *cmd, CJson **out) StartMkAgreeCmd() argument
206 ProcessMkAgreeCmd(BaseCmd *cmd, const CJson *in, CJson **out, CmdState *returnState) ProcessMkAgreeCmd() argument
219 DestroyMkAgreeCmd(BaseCmd *cmd) DestroyMkAgreeCmd() argument
232 InitMkAgreeTask(MkAgreeCmd *cmd, const MkAgreeParams *params, bool isClient) InitMkAgreeTask() argument
267 InitMkAgreeCmd(MkAgreeCmd *cmd, const MkAgreeParams *params, bool isClient, int32_t strategy) InitMkAgreeCmd() argument
294 MkAgreeCmd *cmd = (MkAgreeCmd *)HcMalloc(sizeof(MkAgreeCmd), 0); CreateMkAgreeCmd() local
[all...]
/base/notification/distributed_notification_service/tools/test/unittest/dump/
H A Dnotification_shell_command_dump_test.cpp187 NotificationShellCommand cmd(argc, argv); in HWTEST_F()
189 EXPECT_EQ(cmd.ExecCommand(), g_dumpHelpMsg); in HWTEST_F()
207 NotificationShellCommand cmd(argc, argv); in HWTEST_F()
209 cmd.ExecCommand(); in HWTEST_F()
229 NotificationShellCommand cmd(argc, argv); in HWTEST_F()
231 cmd.ExecCommand(); in HWTEST_F()
252 NotificationShellCommand cmd(argc, argv); in HWTEST_F()
254 EXPECT_EQ(cmd.ExecCommand(), g_dumpActiveBound); in HWTEST_F()
274 NotificationShellCommand cmd(argc, argv); in HWTEST_F()
276 cmd in HWTEST_F()
[all...]
/base/hiviewdfx/hilog/test/unittest/common/
H A Dhilogtool_test.cpp29 static int GetCmdLinesFromPopen(const std::string& cmd) in GetCmdLinesFromPopen() argument
31 if (cmd.empty()) { in GetCmdLinesFromPopen()
34 FILE* fp = popen(cmd.c_str(), "r"); in GetCmdLinesFromPopen()
52 static std::string GetCmdResultFromPopen(const std::string& cmd) in GetCmdResultFromPopen() argument
54 if (cmd.empty()) { in GetCmdResultFromPopen()
57 FILE* fp = popen(cmd.c_str(), "r"); in GetCmdResultFromPopen()
76 static bool IsExistInCmdResult(const std::string &cmd, const std::string &str) in IsExistInCmdResult() argument
78 if (cmd.empty()) { in IsExistInCmdResult()
81 FILE* fp = popen(cmd.c_str(), "r"); in IsExistInCmdResult()
113 /* help cmd suffi
141 std::string cmd = ""; HWTEST_F() local
167 std::string cmd = "hilog -b " + level; HWTEST_F() local
193 std::string cmd = "hilog -b " + level + " -D " + Uint2HexStr(domain); HWTEST_F() local
218 std::string cmd = "hilog -b " + level + " -T " + tag; HWTEST_F() local
245 std::string cmd = "hilog -G 512K"; HWTEST_F() local
272 std::string cmd = "hilog -g"; HWTEST_F() local
293 std::string cmd = "hilog -k on"; HWTEST_F() local
322 std::string cmd = "hilog -p on"; HWTEST_F() local
353 std::string cmd = "hilog -Q pidon"; HWTEST_F() local
394 std::string cmd = "hilog -a " + std::to_string(lines); HWTEST_F() local
431 std::string cmd = "hilog -r"; HWTEST_F() local
462 std::string cmd = "hilog -r -t app"; HWTEST_F() local
495 std::string cmd = "hilog -w start"; HWTEST_F() local
554 std::string cmd = "hilog -x -e "; HWTEST_F() local
584 std::string cmd = "hilog -a 10 -L "; HWTEST_F() local
619 std::string cmd = "hilog -a 10 -P "; HWTEST_F() local
654 std::string cmd = "hilog -s"; HWTEST_F() local
692 std::string cmd = "hilog -v time -z 5"; HWTEST_F() local
879 std::string cmd = "hilog -w clear"; HWTEST_F() local
[all...]
/base/startup/init/services/modules/reboot/
H A Dreboot_static.c66 static int CheckParamCmdExist(const char *cmd) in CheckParamCmdExist() argument
71 char *cmdName = Dup2String(REBOOT_CMD_PREFIX, cmd); in CheckParamCmdExist()
72 PLUGIN_CHECK(cmdName != NULL, return 0, "Failed to copy %s", cmd); in CheckParamCmdExist()
74 if (strcmp(g_rebootParamCmdInfos[i].cmd, cmdName) == 0) { in CheckParamCmdExist()
83 static int SetParamCmdInfo(ParamCmdInfo *currInfo, CmdExecutor executor, const char *cmd) in SetParamCmdInfo() argument
86 currInfo->name = Dup2String(REBOOT_NAME_PREFIX, cmd); in SetParamCmdInfo()
87 PLUGIN_CHECK(currInfo->name != NULL, break, "Failed to copy %s", cmd); in SetParamCmdInfo()
88 currInfo->replace = Dup2String(REBOOT_REPLACE_PREFIX, cmd); in SetParamCmdInfo()
89 PLUGIN_CHECK(currInfo->replace != NULL, break, "Failed to copy %s", cmd); in SetParamCmdInfo()
90 currInfo->cmd in SetParamCmdInfo()
115 AddRebootCmdExecutor_(const char *cmd, CmdExecutor executor) AddRebootCmdExecutor_() argument
138 AddRebootCmdExecutor(const char *cmd, CmdExecutor executor) AddRebootCmdExecutor() argument
[all...]
/base/telephony/core_service/services/sim/include/
H A Dsim_data_type.h60 ControllerToFileMsg(const FileToControllerMsg *cmd, const IccFileData *fd) in ControllerToFileMsg()
62 if (cmd != nullptr) { in ControllerToFileMsg()
63 arg1 = cmd->arg1; in ControllerToFileMsg()
64 arg2 = cmd->arg2; in ControllerToFileMsg()
65 iccLoader = cmd->iccLoader; in ControllerToFileMsg()
89 explicit EfLinearResult(const FileToControllerMsg *cmd) in EfLinearResult()
91 if (cmd != nullptr) { in EfLinearResult()
92 arg1 = cmd->arg1; in EfLinearResult()
93 arg2 = cmd->arg2; in EfLinearResult()
94 iccLoader = cmd in EfLinearResult()
[all...]
/base/update/updater/test/unittest/applypatch_test/
H A Dcommands_unittest.cpp59 Command *cmd = new Command(transferParams.get()); in HWTEST_F() local
60 cmd->Init(cmdLine); in HWTEST_F()
61 auto type = cmd->GetCommandType(); in HWTEST_F()
63 auto sha256 = cmd->GetArgumentByPos(10); in HWTEST_F()
64 sha256 = cmd->GetArgumentByPos(1); in HWTEST_F()
66 EXPECT_EQ(cmd->GetCommandLine(), cmdLine); in HWTEST_F()
67 delete cmd; in HWTEST_F()
77 Command *cmd = new Command(transferParams.get()); in HWTEST_F() local
78 EXPECT_EQ(cmd->Init(cmdLine), true); in HWTEST_F()
80 EXPECT_EQ(cmd in HWTEST_F()
[all...]
H A Dcommandsfunction_unittest.cpp37 CommandResult TestCommandFnExec(std::shared_ptr<Command> cmd, std::string cmdLine) in TestCommandFnExec() argument
39 cmd->Init(cmdLine); in TestCommandFnExec()
40 CommandFunction* cf = CommandFunctionFactory::GetInstance().GetCommandFunction(cmd->GetCommandHead()); 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() local
77 cmd->SetFileDescriptor(fd); in HWTEST_F()
79 CommandResult ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLine); in HWTEST_F()
82 ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLine); in HWTEST_F()
87 ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLine); in HWTEST_F()
94 ret = CommandFunctionUnitTest::TestCommandFnExec(cmd, cmdLin in HWTEST_F()
[all...]
/base/account/os_account/tools/test/unittest/acm/
H A Daccount_command_create_test.cpp95 AccountCommand cmd(argc, argv); in HWTEST_F()
96 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_CREATE); in HWTEST_F()
116 AccountCommand cmd(argc, argv); in HWTEST_F()
117 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_CREATE); in HWTEST_F()
137 AccountCommand cmd(argc, argv); in HWTEST_F()
138 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_UNKNOWN_OPTION + "\n" + HELP_MSG_CREATE); in HWTEST_F()
158 AccountCommand cmd(argc, argv); in HWTEST_F()
159 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_UNKNOWN_OPTION + "\n" + HELP_MSG_CREATE); in HWTEST_F()
179 AccountCommand cmd(argc, argv); in HWTEST_F()
180 EXPECT_EQ(cmd in HWTEST_F()
[all...]
H A Daccount_command_test.cpp77 AccountCommand cmd(argc, argv); in HWTEST_F()
78 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG); in HWTEST_F()
96 AccountCommand cmd(argc, argv); in HWTEST_F()
97 EXPECT_EQ(cmd.ExecCommand(), cmd.GetCommandErrorMsg() + HELP_MSG); in HWTEST_F()
115 AccountCommand cmd(argc, argv); in HWTEST_F()
116 EXPECT_EQ(cmd.ExecCommand(), cmd.GetCommandErrorMsg() + HELP_MSG); in HWTEST_F()
134 AccountCommand cmd(argc, argv); in HWTEST_F()
135 EXPECT_EQ(cmd in HWTEST_F()
[all...]
H A Daccount_command_switch_test.cpp89 AccountCommand cmd(argc, argv); in HWTEST_F()
90 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_SWITCH); in HWTEST_F()
109 AccountCommand cmd(argc, argv); in HWTEST_F()
110 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_SWITCH); in HWTEST_F()
129 AccountCommand cmd(argc, argv); in HWTEST_F()
130 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_UNKNOWN_OPTION + "\n" + HELP_MSG_SWITCH); in HWTEST_F()
149 AccountCommand cmd(argc, argv); in HWTEST_F()
150 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_UNKNOWN_OPTION + "\n" + HELP_MSG_SWITCH); in HWTEST_F()
169 AccountCommand cmd(argc, argv); in HWTEST_F()
170 EXPECT_EQ(cmd in HWTEST_F()
[all...]
H A Daccount_command_delete_test.cpp89 AccountCommand cmd(argc, argv); in HWTEST_F()
90 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_DELETE); in HWTEST_F()
109 AccountCommand cmd(argc, argv); in HWTEST_F()
110 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_DELETE); in HWTEST_F()
129 AccountCommand cmd(argc, argv); in HWTEST_F()
130 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_UNKNOWN_OPTION + "\n" + HELP_MSG_DELETE); in HWTEST_F()
149 AccountCommand cmd(argc, argv); in HWTEST_F()
150 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_UNKNOWN_OPTION + "\n" + HELP_MSG_DELETE); in HWTEST_F()
169 AccountCommand cmd(argc, argv); in HWTEST_F()
170 EXPECT_EQ(cmd in HWTEST_F()
[all...]
H A Daccount_command_set_test.cpp93 AccountCommand cmd(argc, argv); in HWTEST_F()
94 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_SET); in HWTEST_F()
113 AccountCommand cmd(argc, argv); in HWTEST_F()
114 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_SET); in HWTEST_F()
133 AccountCommand cmd(argc, argv); in HWTEST_F()
134 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_UNKNOWN_OPTION + "\n" + HELP_MSG_SET); in HWTEST_F()
153 AccountCommand cmd(argc, argv); in HWTEST_F()
154 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_UNKNOWN_OPTION + "\n" + HELP_MSG_SET); in HWTEST_F()
173 AccountCommand cmd(argc, argv); in HWTEST_F()
174 EXPECT_EQ(cmd in HWTEST_F()
[all...]
H A Daccount_command_dump_test.cpp89 AccountCommand cmd(argc, argv); in HWTEST_F()
90 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_DUMP); in HWTEST_F()
109 AccountCommand cmd(argc, argv); in HWTEST_F()
110 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_NO_OPTION + "\n" + HELP_MSG_DUMP); in HWTEST_F()
129 AccountCommand cmd(argc, argv); in HWTEST_F()
130 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_UNKNOWN_OPTION + "\n" + HELP_MSG_DUMP); in HWTEST_F()
149 AccountCommand cmd(argc, argv); in HWTEST_F()
150 EXPECT_EQ(cmd.ExecCommand(), HELP_MSG_UNKNOWN_OPTION + "\n" + HELP_MSG_DUMP); in HWTEST_F()
169 AccountCommand cmd(argc, argv); in HWTEST_F()
170 EXPECT_EQ(cmd in HWTEST_F()
[all...]
/base/update/updater/services/applypatch/
H A Dtransfer_manager.cpp36 bool TransferManager::CommandsExecute(int fd, Command &cmd) in CommandsExecute() argument
38 cmd.SetFileDescriptor(fd); in CommandsExecute()
39 CommandFunction* cf = CommandFunctionFactory::GetInstance().GetCommandFunction(cmd.GetCommandHead()); in CommandsExecute()
41 LOG(ERROR) << "Failed to get cmd exec"; in CommandsExecute()
44 CommandResult ret = cf->Execute(cmd); in CommandsExecute()
45 if (!CheckResult(ret, cmd.GetCommandLine(), cmd.GetCommandType())) { in CommandsExecute()
51 static bool JudgeBlockVerifyCmdType(Command &cmd) in JudgeBlockVerifyCmdType() argument
53 if (cmd.GetCommandType() == CommandType::NEW || in JudgeBlockVerifyCmdType()
54 cmd in JudgeBlockVerifyCmdType()
100 std::unique_ptr<Command> cmd = std::make_unique<Command>(transferParams_.get()); CommandsParser() local
148 RegisterForRetry(const std::string &cmd) RegisterForRetry() argument
174 std::string cmd = ""; ReloadForRetry() local
182 CheckResult(const CommandResult result, const std::string &cmd, const CommandType &type) CheckResult() argument
[all...]
/base/startup/init/services/begetctl/shell/
H A Dshell_bas.c48 static void BShellCmdOutputCmdHelp(BShellHandle handle, BShellCommand *cmd) in BShellCmdOutputCmdHelp() argument
51 int32_t spaceLength = BShellEnvOutputString(handle, cmd->help); in BShellCmdOutputCmdHelp()
58 BShellEnvOutputString(handle, cmd->desc); in BShellCmdOutputCmdHelp()
69 BShellCommand *cmd = shell->command; in BShellCmdHelp() local
70 while (cmd != NULL) { in BShellCmdHelp()
72 (strncmp(argv[0], cmd->name, strlen(argv[0])) == 0) && in BShellCmdHelp()
74 BShellCmdOutputCmdHelp(handle, cmd); in BShellCmdHelp()
77 cmd = cmd->next; in BShellCmdHelp()
82 cmd in BShellCmdHelp()
196 BShellEnvExcuteCmd(BShellEnv *shell, BShellCommand *cmd) BShellEnvExcuteCmd() argument
232 BShellCommand *cmd = BShellEnvGetCmd(handle, (uint32_t)shell->argc, shell->args); BShellEnvHandleEnter() local
460 BShellCmdFree(BShellCommand *cmd) BShellCmdFree() argument
482 BShellCommand *cmd = shell->command; BShellEnvDestory() local
515 BShellCommand *cmd = (BShellCommand *)calloc(1, sizeof(BShellCommand) + nameLen); BShellEnvRegisterCmd() local
580 BShellCommand *cmd = shell->command; BShellEnvGetCmd() local
746 BShellCommand *cmd = BShellEnvGetCmd(handle, argc, args); BShellEnvDirectExecute() local
[all...]
/base/update/packaging_tools/
H A Dscript_generator.py43 def add_command(self, cmd=None):
46 :param cmd: command content
49 self.script.append(cmd)
112 cmd = ('sha_check("/{partition}", "{ranges_str}", '
116 return cmd
127 cmd = ('image_sha_check("/{partition}", '
132 return cmd
140 cmd = 'first_block_check("/{partition}")'.format(
142 return cmd
150 cmd
[all...]
/base/startup/init/services/begetctl/
H A Ddump_service.c32 static int SendAppspawnCmdMessage(const CmdAgent *agent, uint16_t type, const char *cmd, const char *ptyName) in SendAppspawnCmdMessage() argument
35 if ((agent == NULL) || (cmd == NULL) || (ptyName == NULL)) { in SendAppspawnCmdMessage()
42 if (strcmp(cmd, "dump_appspawn") == 0) { in SendAppspawnCmdMessage()
44 } else if (strcmp(cmd, "dump_nwebspawn") == 0) { in SendAppspawnCmdMessage()
69 static void DumpAppspawnClientInit(const char *cmd, CallbackSendMsgProcess sendMsg) in DumpAppspawnClientInit() argument
71 if (cmd == NULL) { in DumpAppspawnClientInit()
77 int ret = InitPtyInterface(&agent, ACTION_DUMP, cmd, sendMsg); in DumpAppspawnClientInit()
79 BEGET_LOGE("App with pid=%s does not support entering sandbox environment", cmd); in DumpAppspawnClientInit()
99 char *cmd = (char *)calloc(1, serviceNameLen); in main_cmd() local
100 BEGET_ERROR_CHECK(cmd ! in main_cmd()
[all...]

Completed in 11 milliseconds

12345678910>>...12