Home
last modified time | relevance | path

Searched refs:cmdInfo (Results 1 - 11 of 11) sorted by relevance

/base/notification/common_event_service/tools/cem/src/
H A Dcommon_event_command.cpp63 PublishCmdInfo cmdInfo; in RunAsPublishCommand() local
65 SetPublishCmdInfo(cmdInfo, result, hasOption); in RunAsPublishCommand()
71 if (result == ERR_OK && resultReceiver_.empty() && cmdInfo.action.empty()) { in RunAsPublishCommand()
77 want.SetAction(cmdInfo.action); in RunAsPublishCommand()
80 commonEventData.SetCode(cmdInfo.code); in RunAsPublishCommand()
81 commonEventData.SetData(cmdInfo.data); in RunAsPublishCommand()
83 publishInfo.SetSticky(cmdInfo.isSticky); in RunAsPublishCommand()
84 publishInfo.SetOrdered(cmdInfo.isOrdered); in RunAsPublishCommand()
87 commonEventData, publishInfo, nullptr, cmdInfo.userId); in RunAsPublishCommand()
99 void CommonEventCommand::SetPublishCmdInfo(PublishCmdInfo &cmdInfo, ErrCod argument
172 DumpCmdInfo cmdInfo; RunAsDumpCommand() local
198 SetDumpCmdInfo(DumpCmdInfo &cmdInfo, ErrCode &result, bool &hasOption) SetDumpCmdInfo() argument
242 CheckDumpEventType(DumpCmdInfo &cmdInfo, ErrCode &result) CheckDumpEventType() argument
[all...]
/base/startup/appspawn/service/devicedebug/
H A Ddevicedebug_main.c67 DeviceDebugManagerCmdInfo *cmdInfo = NULL; in main() local
77 cmdInfo = DeviceDebugCmdCheck(argv[DEVICEDEBUG_NUM_1]); in main()
78 if (cmdInfo == NULL) { in main()
84 ret = cmdInfo->process(argc, argv); in main()
/base/startup/appspawn/service/hnp/
H A Dhnp_main.c86 NativeManagerCmdInfo *cmdInfo = NULL; in main() local
96 cmdInfo = HnpCmdCheck(argv[HNP_INDEX_1]); in main()
97 if (cmdInfo == NULL) { in main()
103 ret = cmdInfo->process(argc, argv); in main()
H A Dhnpcli_main.c77 NativeManagerCmdInfo *cmdInfo = NULL; in main() local
87 cmdInfo = HnpCmdCheck(argv[HNP_INDEX_1]); in main()
88 if (cmdInfo == NULL) { in main()
94 ret = cmdInfo->process(argc, argv); in main()
/base/update/updater/test/unittest/flashd_test/
H A 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 in TestFlashProgress()
[all...]
/base/startup/init/services/init/standard/
H A Dinit_cmds.c321 INIT_CMD_INFO cmdInfo; in DoRestorecon() local
322 cmdInfo.cmdName = "restorecon"; in DoRestorecon()
323 cmdInfo.cmdContent = ctx->argv[0]; in DoRestorecon()
324 cmdInfo.reserved = NULL; in DoRestorecon()
327 cmdInfo.cmdContent = ctx->argv[1]; in DoRestorecon()
330 cmdInfo.reserved = ctx->argv[ctx->argc - 1]; in DoRestorecon()
338 ret = HookMgrExecute(GetBootStageHookMgr(), INIT_RESTORECON, (void*)(&cmdInfo), (void*)(&options)); in DoRestorecon()
509 INIT_CMD_INFO cmdInfo; in DoInitGlobalKey() local
510 cmdInfo.cmdName = "init_global_key"; in DoInitGlobalKey()
511 cmdInfo in DoInitGlobalKey()
526 INIT_CMD_INFO cmdInfo; DoInitMainUser() local
[all...]
/base/notification/common_event_service/tools/cem/include/
H A Dcommon_event_command.h88 void SetPublishCmdInfo(PublishCmdInfo &cmdInfo, ErrCode &result, bool &hasOption);
90 void SetDumpCmdInfo(DumpCmdInfo &cmdInfo, ErrCode &result, bool &hasOption);
91 void CheckDumpEventType(DumpCmdInfo &cmdInfo, ErrCode &result);
/base/startup/init/services/begetctl/shell/
H A Dshell_bas.c508 int32_t BShellEnvRegisterCmd(BShellHandle handle, const CmdInfo *cmdInfo) in BShellEnvRegisterCmd() argument
511 BSH_CHECK(cmdInfo != NULL && cmdInfo->name != NULL, return BSH_INVALID_PARAM, "Invalid cmd name"); in BShellEnvRegisterCmd()
512 BSH_CHECK(cmdInfo->executer != NULL, return BSH_INVALID_PARAM, "Invalid cmd executer"); in BShellEnvRegisterCmd()
514 size_t nameLen = strlen(cmdInfo->name) + 1; in BShellEnvRegisterCmd()
516 BSH_CHECK(cmd != NULL, return BSH_INVALID_PARAM, "Failed to alloc cmd name %s", cmdInfo->name); in BShellEnvRegisterCmd()
517 cmd->executer = cmdInfo->executer; in BShellEnvRegisterCmd()
521 ret = strcpy_s(cmd->name, nameLen, cmdInfo->name); in BShellEnvRegisterCmd()
522 BSH_CHECK(ret == 0, break, "Failed to copy name %s", cmdInfo->name); in BShellEnvRegisterCmd()
525 if (cmdInfo in BShellEnvRegisterCmd()
[all...]
H A Dshell.h96 int BShellEnvRegisterCmd(BShellHandle handle, const CmdInfo *cmdInfo);
/base/startup/init/services/begetctl/
H A Dparam_cmd.c540 static bool IsDebugCmd(const CmdInfo *cmdInfo) in IsDebugCmd() argument
542 if (strcmp(cmdInfo->multikey, "param dump") == 0 || strcmp(cmdInfo->multikey, "param shell") == 0) { in IsDebugCmd()
/base/security/device_auth/services/session_manager/src/session/v2/
H A Ddev_session_v2.c395 static int32_t AddCmdInfoToJsonArray(const CmdProcessor *cmdInfo, CJson *array, bool isTodoCmd) in AddCmdInfoToJsonArray() argument
402 if (AddIntToJson(cmd, FIELD_ID, cmdInfo->id) != HC_SUCCESS) { in AddCmdInfoToJsonArray()
407 if (isTodoCmd && AddIntToJson(cmd, FIELD_TYPE, cmdInfo->strategy) != HC_SUCCESS) { in AddCmdInfoToJsonArray()

Completed in 9 milliseconds