Home
last modified time | relevance | path

Searched refs:cmdInfo (Results 1 – 7 of 7) sorted by relevance

/base/notification/common_event_service/tools/cem/src/
Dcommon_event_command.cpp75 PublishCmdInfo cmdInfo; in RunAsPublishCommand() local
77 SetPublishCmdInfo(cmdInfo, result, hasOption); in RunAsPublishCommand()
83 if (result == ERR_OK && resultReceiver_.empty() && cmdInfo.action.empty()) { in RunAsPublishCommand()
89 want.SetAction(cmdInfo.action); in RunAsPublishCommand()
92 commonEventData.SetCode(cmdInfo.code); in RunAsPublishCommand()
93 commonEventData.SetData(cmdInfo.data); in RunAsPublishCommand()
95 publishInfo.SetSticky(cmdInfo.isSticky); in RunAsPublishCommand()
96 publishInfo.SetOrdered(cmdInfo.isOrdered); in RunAsPublishCommand()
99 cmdInfo.userId); in RunAsPublishCommand()
111 void CommonEventCommand::SetPublishCmdInfo(PublishCmdInfo &cmdInfo, ErrCode &result, bool &hasOptio… in SetPublishCmdInfo() argument
[all …]
/base/update/updater/test/unittest/flashd_test/
Dflash_host_unittest.cpp94 std::string cmdInfo = ""; in TestFlashProgress() local
96 … const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(cmdInfo.data())), cmdInfo.size()); in TestFlashProgress()
105 cmdInfo.resize(sizeof(percentage)); in TestFlashProgress()
106 (void)memcpy_s(cmdInfo.data(), cmdInfo.size(), &percentage, sizeof(percentage)); in TestFlashProgress()
108 … const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(cmdInfo.data())), cmdInfo.size()); in TestFlashProgress()
111 cmdInfo.resize(sizeof(percentage)); in TestFlashProgress()
112 (void)memcpy_s(cmdInfo.data(), cmdInfo.size(), &percentage, sizeof(percentage)); in TestFlashProgress()
114 … const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(cmdInfo.data())), cmdInfo.size()); in TestFlashProgress()
/base/notification/common_event_service/tools/cem/include/
Dcommon_event_command.h87 void SetPublishCmdInfo(PublishCmdInfo &cmdInfo, ErrCode &result, bool &hasOption);
89 void SetDumpCmdInfo(DumpCmdInfo &cmdInfo, ErrCode &result, bool &hasOption);
90 void CheckDumpEventType(DumpCmdInfo &cmdInfo, ErrCode &result);
/base/startup/init/services/init/standard/
Dinit_cmds.c315 INIT_CMD_INFO cmdInfo; in DoRestorecon() local
316 cmdInfo.cmdName = "restorecon"; in DoRestorecon()
317 cmdInfo.cmdContent = ctx->argv[0]; in DoRestorecon()
318 cmdInfo.reserved = NULL; in DoRestorecon()
324 …ret = HookMgrExecute(GetBootStageHookMgr(), INIT_RESTORECON, (void*)(&cmdInfo), (void*)(&options)); in DoRestorecon()
462 INIT_CMD_INFO cmdInfo; in DoInitGlobalKey() local
463 cmdInfo.cmdName = "init_global_key"; in DoInitGlobalKey()
464 cmdInfo.cmdContent = (const char *)&ret; in DoInitGlobalKey()
465 cmdInfo.reserved = NULL; in DoInitGlobalKey()
466 HookMgrExecute(GetBootStageHookMgr(), INIT_POST_DATA_UNENCRYPT, (void*)(&cmdInfo), NULL); in DoInitGlobalKey()
[all …]
/base/startup/init/services/begetctl/shell/
Dshell_bas.c506 int32_t BShellEnvRegisterCmd(BShellHandle handle, const CmdInfo *cmdInfo) in BShellEnvRegisterCmd() argument
509 … BSH_CHECK(cmdInfo != NULL && cmdInfo->name != NULL, return BSH_INVALID_PARAM, "Invalid cmd name"); in BShellEnvRegisterCmd()
510 BSH_CHECK(cmdInfo->executer != NULL, return BSH_INVALID_PARAM, "Invalid cmd executer"); in BShellEnvRegisterCmd()
512 size_t nameLen = strlen(cmdInfo->name) + 1; in BShellEnvRegisterCmd()
514 BSH_CHECK(cmd != NULL, return BSH_INVALID_PARAM, "Failed to alloc cmd name %s", cmdInfo->name); in BShellEnvRegisterCmd()
515 cmd->executer = cmdInfo->executer; in BShellEnvRegisterCmd()
519 ret = strcpy_s(cmd->name, nameLen, cmdInfo->name); in BShellEnvRegisterCmd()
520 BSH_CHECK(ret == 0, break, "Failed to copy name %s", cmdInfo->name); in BShellEnvRegisterCmd()
523 if (cmdInfo->desc != NULL) { in BShellEnvRegisterCmd()
524 cmd->desc = strdup(cmdInfo->desc); in BShellEnvRegisterCmd()
[all …]
Dshell.h96 int BShellEnvRegisterCmd(BShellHandle handle, const CmdInfo *cmdInfo);
/base/security/device_auth/services/session_manager/src/session/v2/
Ddev_session_v2.c343 static int32_t AddCmdInfoToJsonArray(const CmdProcessor *cmdInfo, CJson *array, bool isTodoCmd) in AddCmdInfoToJsonArray() argument
350 if (AddIntToJson(cmd, FIELD_ID, cmdInfo->id) != HC_SUCCESS) { in AddCmdInfoToJsonArray()
355 if (isTodoCmd && AddIntToJson(cmd, FIELD_TYPE, cmdInfo->strategy) != HC_SUCCESS) { in AddCmdInfoToJsonArray()