/base/startup/init/services/init/standard/ |
D | init_cmdexecutor.c | 29 int AddCmdExecutor(const char *cmdName, CmdExecutor execCmd) in AddCmdExecutor() argument 31 INIT_ERROR_CHECK(cmdName != NULL, return -1, "Invalid input param"); in AddCmdExecutor() 32 INIT_LOGV("Add command '%s' executor.", cmdName); in AddCmdExecutor() 34 InitGroupNode *groupNode = GetGroupNode(NODE_TYPE_CMDS, cmdName); in AddCmdExecutor() 36 groupNode = AddGroupNode(NODE_TYPE_CMDS, cmdName); in AddCmdExecutor() 60 void RemoveCmdExecutor(const char *cmdName, int id) in RemoveCmdExecutor() argument 62 INIT_ERROR_CHECK(cmdName != NULL, return, "Invalid input param"); in RemoveCmdExecutor() 63 InitGroupNode *groupNode = GetGroupNode(NODE_TYPE_CMDS, cmdName); in RemoveCmdExecutor() 65 return, "Can not find cmd %s", cmdName); in RemoveCmdExecutor() 81 DelGroupNode(NODE_TYPE_CMDS, cmdName); in RemoveCmdExecutor() [all …]
|
/base/startup/init/interfaces/innerkits/init_module_engine/include/ |
D | init_module_engine.h | 41 int AddCmdExecutor(const char *cmdName, CmdExecutor execCmd); 43 void RemoveCmdExecutor(const char *cmdName, int id);
|
D | init_cmdexecutor.h | 47 int AddCmdExecutor(const char *cmdName, CmdExecutor execCmd);
|
D | bootstage.h | 106 const char *cmdName; /* cmd name */ member
|
/base/startup/init/test/unittest/innerkits/ |
D | modulemgr_unittest.cpp | 63 const char *cmdName = PluginGetCmdIndex(cmdContent, &cmdIndex); variable 64 ASSERT_EQ(strcmp(cmdName, testName), 0); 65 printf("TestCmdExecutor cmdIndex 0x%04x, name %s \n", cmdIndex, cmdName); 70 PluginExecCmdByName(cmdName, cmdContent); 72 PluginExecCmdByName(cmdName, nullptr); 73 PluginExecCmdByName(cmdName, cmdContentNotValid);
|
/base/startup/init/services/modules/reboot/ |
D | reboot_static.c | 69 char *cmdName = Dup2String(REBOOT_CMD_PREFIX, cmd); in CheckParamCmdExist() local 70 PLUGIN_CHECK(cmdName != NULL, return 0, "Failed to copy %s", cmd); in CheckParamCmdExist() 72 if (strcmp(g_rebootParamCmdInfos[i].cmd, cmdName) == 0) { in CheckParamCmdExist() 73 free(cmdName); in CheckParamCmdExist() 77 free(cmdName); in CheckParamCmdExist()
|
/base/update/updater/services/flashd/daemon/ |
D | commander.h | 46 void SetCmdName(const std::string &cmdName) in SetCmdName() argument 48 cmdName_ = cmdName; in SetCmdName()
|
/base/update/updater/services/include/applypatch/ |
D | apply_patch.h | 24 std::string cmdName; /* bsdiff, imgdiff, new, move etc. */ member
|
/base/startup/init/services/init/ |
D | init_common_cmds.c | 48 static void InitCmdHookExecute(const char *cmdName, const char *cmdContent, INIT_TIMING_STAT *cmdTi… in InitCmdHookExecute() argument 52 context.cmdName = cmdName; in InitCmdHookExecute() 756 const char *cmdName = NULL; in DoCmdByIndex() local 758 cmdName = commCmds[index].name; in DoCmdByIndex() 764 cmdName = cmds[index - cmdCnt].name; in DoCmdByIndex() 768 cmdName = GetPluginCmdNameByIndex(index); in DoCmdByIndex() 769 if (cmdName == NULL) { in DoCmdByIndex() 770 cmdName = "Unknown"; in DoCmdByIndex() 777 InitCmdHookExecute(cmdName, cmdContent, &cmdTimer); in DoCmdByIndex() 779 …INIT_LOGV("Execute command \"%s %s\" took %lld ms", cmdName, cmdContent, diff / 1000); // 1000 is … in DoCmdByIndex()
|
/base/startup/init/services/init/include/ |
D | init_cmdexecutor.h | 47 int AddCmdExecutor(const char *cmdName, CmdExecutor execCmd);
|
/base/startup/init/services/param/manager/ |
D | param_manager.c | 272 int ret = strcpy_s((*ctrlInfo)->cmdName, sizeof((*ctrlInfo)->cmdName), cmd); in CreateCtrlInfo() 370 …serviceInfo->realKey, serviceInfo->cmdName, (char *)serviceInfo->realKey + serviceInfo->valueOffse… in CheckParameterSet() 371 DoCmdByName(serviceInfo->cmdName, (char *)serviceInfo->realKey + serviceInfo->valueOffset); in CheckParameterSet()
|
/base/startup/init/services/param/include/ |
D | param_manager.h | 85 char cmdName[32]; member
|
/base/startup/init/services/begetctl/shell/ |
D | shell_bas.c | 575 const char *cmdName = GetRealCmdName(argv[0]); in BShellEnvGetCmd() local 576 BSH_LOGV("BShellEnvGetCmd %s cmd %s", argv[0], cmdName); in BShellEnvGetCmd() 580 if (strcmp(cmd->name, cmdName) != 0) { in BShellEnvGetCmd() 594 tmp = (char *)cmdName; in BShellEnvGetCmd()
|
/base/startup/init/services/modules/bootevent/ |
D | bootevent.c | 422 const char *bootEventArgv[] = {"cmd", cmdCtx->cmdName, cmdCtx->cmdContent, cmdCtx->reserved}; in RecordInitCmd()
|