Home
last modified time | relevance | path

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

/ohos5.0/base/notification/common_event_service/tools/cem/src/
H A Dcommon_event_command.cpp63 PublishCmdInfo cmdInfo; in RunAsPublishCommand() local
77 want.SetAction(cmdInfo.action); in RunAsPublishCommand()
80 commonEventData.SetCode(cmdInfo.code); in RunAsPublishCommand()
114 cmdInfo.action = optarg; in SetPublishCmdInfo()
117 cmdInfo.isSticky = true; in SetPublishCmdInfo()
120 cmdInfo.isOrdered = true; in SetPublishCmdInfo()
123 cmdInfo.code = atoi(optarg); in SetPublishCmdInfo()
126 cmdInfo.data = optarg; in SetPublishCmdInfo()
172 DumpCmdInfo cmdInfo; in RunAsDumpCommand() local
182 static_cast<int32_t>(cmdInfo.eventType), cmdInfo.action, cmdInfo.userId, dumpResults); in RunAsDumpCommand()
[all …]
/ohos5.0/drivers/hdf_core/adapter/khdf/linux/platform/mipi_dsi/
H A Dmipi_tx_hi35xx.c737 if (cmdInfo == NULL) { in MipiTxDrvSetCmdInfo()
752 ret = LinuxCopyToKernel(cmd, cmdInfo->cmdSize, cmdInfo->cmd, cmdInfo->cmdSize); in MipiTxDrvSetCmdInfo()
1146 if (cmdInfo->devno != 0) { in MipiTxCheckSetCmdInfo()
1163 if (cmdInfo == NULL) { in MipiTxSetCmd()
1177 CmdInfoTag cmdInfo; in Hi35xxSetCmd() local
1184 cmdInfo.devno = 0; in Hi35xxSetCmd()
1196 cmdInfo.cmd = NULL; in Hi35xxSetCmd()
1200 cmdInfo.cmd = NULL; in Hi35xxSetCmd()
1248 GetCmdInfoTag cmdInfo; in Hi35xxGetCmd() local
1255 cmdInfo.devno = 0; in Hi35xxGetCmd()
[all …]
/ohos5.0/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.data(), cmdInfo.size(), &percentage, sizeof(percentage)); in TestFlashProgress()
114 … const_cast<uint8_t *>(reinterpret_cast<const uint8_t *>(cmdInfo.data())), cmdInfo.size()); in TestFlashProgress()
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audioeffect/src/
H A Daudio_effect_chain.cpp159 AudioEffectTransInfo cmdInfo = {sizeof(AudioEffectConfig), &ioBufferConfig_}; in SetEffectParamToHandle() local
205 AudioEffectTransInfo cmdInfo = {sizeof(AudioEffectConfig), &ioBufferConfig_}; in AddEffectHandle() local
207 ret = (*handle)->command(handle, EFFECT_CMD_INIT, &cmdInfo, &replyInfo); in AddEffectHandle()
210 ret = (*handle)->command(handle, EFFECT_CMD_ENABLE, &cmdInfo, &replyInfo); in AddEffectHandle()
218 cmdInfo = {sizeof(AudioEffectConfig), &ioBufferConfig_}; in AddEffectHandle()
223 ret = (*handle)->command(handle, EFFECT_CMD_GET_CONFIG, &cmdInfo, &cmdInfo); in AddEffectHandle()
263 AudioEffectTransInfo cmdInfo = {sizeof(HeadPostureData), &imuData}; in ApplyEffectChain() local
274 (*handle)->command(handle, EFFECT_CMD_SET_IMU, &cmdInfo, &replyInfo); in ApplyEffectChain()
314 AudioEffectTransInfo cmdInfo = {sizeof(AudioEffectConfig), &ioBufferConfig_}; in UpdateMultichannelIoBufferConfig() local
324 ret = (*preHandle)->command(preHandle, EFFECT_CMD_GET_CONFIG, &cmdInfo, &cmdInfo); in UpdateMultichannelIoBufferConfig()
[all …]
H A Daudio_enhance_chain.cpp114 AudioEffectTransInfo cmdInfo = {}; in AddEnhanceHandle() local
117 ret = (*handle)->command(handle, EFFECT_CMD_INIT, &cmdInfo, &replyInfo); in AddEnhanceHandle()
128 AudioEffectTransInfo cmdInfo = {}; in SetHandleConfig() local
130 cmdInfo.data = static_cast<void *>(&desc); in SetHandleConfig()
131 cmdInfo.size = sizeof(desc); in SetHandleConfig()
133 ret = (*handle)->command(handle, EFFECT_CMD_SET_CONFIG, &cmdInfo, &replyInfo); in SetHandleConfig()
/ohos5.0/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()
509 INIT_CMD_INFO cmdInfo; in DoInitGlobalKey() local
510 cmdInfo.cmdName = "init_global_key"; in DoInitGlobalKey()
511 cmdInfo.cmdContent = (const char *)&ret; in DoInitGlobalKey()
512 cmdInfo.reserved = NULL; in DoInitGlobalKey()
526 INIT_CMD_INFO cmdInfo; in DoInitMainUser() local
527 cmdInfo.cmdName = "init_main_user"; in DoInitMainUser()
[all …]
/ohos5.0/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()
86 ret = cmdInfo->process(argc, argv); in main()
/ohos5.0/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()
/ohos5.0/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()
514 size_t nameLen = strlen(cmdInfo->name) + 1; in BShellEnvRegisterCmd()
517 cmd->executer = cmdInfo->executer; in BShellEnvRegisterCmd()
521 ret = strcpy_s(cmd->name, nameLen, cmdInfo->name); in BShellEnvRegisterCmd()
525 if (cmdInfo->desc != NULL) { in BShellEnvRegisterCmd()
526 cmd->desc = strdup(cmdInfo->desc); in BShellEnvRegisterCmd()
529 if (cmdInfo->help != NULL) { in BShellEnvRegisterCmd()
530 cmd->help = strdup(cmdInfo->help); in BShellEnvRegisterCmd()
534 if (cmdInfo->multikey != NULL && strlen(cmdInfo->multikey) > nameLen) { in BShellEnvRegisterCmd()
[all …]
H A Dshell.h96 int BShellEnvRegisterCmd(BShellHandle handle, const CmdInfo *cmdInfo);
/ohos5.0/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);
/ohos5.0/foundation/multimedia/audio_framework/services/audio_service/client/src/
H A Daudio_spatial_channel_converter.cpp257 AudioEffectTransInfo cmdInfo = {sizeof(AudioEffectConfig), &ioBufferConfig_}; in Init() local
259 ret = (*handle_)->command(handle_, EFFECT_CMD_INIT, &cmdInfo, &replyInfo); in Init()
261 ret = (*handle_)->command(handle_, EFFECT_CMD_ENABLE, &cmdInfo, &replyInfo); in Init()
264 ret = (*handle_)->command(handle_, EFFECT_CMD_SET_CONFIG, &cmdInfo, &replyInfo); in Init()
288 AudioEffectTransInfo cmdInfo = {sizeof(AudioEffectConfig), &ioBufferConfig_}; in FlushAlgo() local
290 ret = (*handle_)->command(handle_, EFFECT_CMD_ENABLE, &cmdInfo, &replyInfo); in FlushAlgo()
/ohos5.0/drivers/peripheral/input/hal/src/
H A Dinput_controller.c448 static int32_t RunExtraCommand(uint32_t devIndex, InputExtraCmd *cmdInfo) in RunExtraCommand() argument
454 if ((devIndex >= MAX_INPUT_DEV_NUM) || (cmdInfo == NULL) || (cmdInfo->cmdCode == NULL) || in RunExtraCommand()
455 (cmdInfo->cmdValue == NULL)) { in RunExtraCommand()
466 if (IoServiceOps(pos->service, RUN_EXTRA_CMD, cmdInfo, NULL, 0)) { in RunExtraCommand()
/ohos5.0/drivers/peripheral/input/hdi_service/
H A Dinput_interfaces_impl.cpp430 InputExtraCmd cmdInfo; in RunExtraCommand() local
431 cmdInfo.cmdCode = cmd.cmdCode.c_str(); in RunExtraCommand()
432 cmdInfo.cmdValue = cmd.cmdValue.c_str(); in RunExtraCommand()
440 int32_t ret = inputInterface_->iInputController->RunExtraCommand(devIndex, &cmdInfo); in RunExtraCommand()
/ohos5.0/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()
/ohos5.0/foundation/multimedia/audio_framework/interfaces/inner_api/native/audiocommon/include/
H A Daudio_effect.h326 AudioEffectTransInfo *cmdInfo, AudioEffectTransInfo *replyInfo);
/ohos5.0/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()