Home
last modified time | relevance | path

Searched refs:msgBuf (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/drivers/hdf_core/framework/model/audio/common/src/
H A Daudio_codec_base.c493 uint8_t *msgBuf = NULL; in CodecI2cMsgFill() local
512 msgBuf = OsalMemCalloc(i2cTransferParam->i2cRegDataLen + 1); in CodecI2cMsgFill()
513 if (msgBuf == NULL) { in CodecI2cMsgFill()
517 msgBuf[0] = regs[0]; in CodecI2cMsgFill()
519 msgBuf[1] = (uint8_t)regAttr->value; in CodecI2cMsgFill()
521 msgBuf[1] = (regAttr->value >> COMM_SHIFT_8BIT); // High 8 bit in CodecI2cMsgFill()
522 msgBuf[I2C_MSG_BUF_SIZE_2] = (uint8_t)(regAttr->value & COMM_MASK_FF); // Low 8 bit in CodecI2cMsgFill()
527 msgs[0].buf = msgBuf; in CodecI2cMsgFill()
530 msgBuf = OsalMemCalloc(i2cTransferParam->i2cRegDataLen); in CodecI2cMsgFill()
531 if (msgBuf == NULL) { in CodecI2cMsgFill()
[all …]
H A Daudio_platform_base.c1329 char msgBuf[AUDIO_PNP_MSG_LEN] = {0}; in AudioCapSilenceThresholdEvent() local
1336 ret = snprintf_s(msgBuf, AUDIO_PNP_MSG_LEN, AUDIO_PNP_MSG_LEN - 1, in AudioCapSilenceThresholdEvent()
1342 if (HdfDeviceObjectSetServInfo(device, msgBuf) != HDF_SUCCESS) { in AudioCapSilenceThresholdEvent()
/ohos5.0/foundation/distributeddatamgr/relational_store/test/native/rdb/distributedtest/rdb_store_impl_test/
H A Ddistributed_test.cpp161 std::string msgBuf = "recall function message test."; variable
162 …ret = SendMessage(AGENT_NO::ONE, msgBuf, MSG_LENGTH, [&](const std::string &szreturnbuf, int rlen)… in __anonf13e8b530202()
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
H A Dp2p_state_machine.cpp715 std::any msgBuf = msg; in NotifyUserInvitationSentMessage() local
733 std::any msgBuf = msg; in NotifyUserProvDiscShowPinRequestMessage() local
756 std::any msgBuf = msg; in NotifyUserInvitationReceivedMessage() local
/ohos5.0/docs/zh-cn/contribute/
H A DOpenHarmony-c-cpp-secure-coding-guide.md2656 char msgBuf[MAX_MSG_SIZE];
2657 errno_t ret = strcpy(msgBuf, "No msg yet."); // 初始化消息内容
2663 ret = strcpy(msgBuf, "signal SIGINT received.");
H A DOpenHarmony-c-coding-style-guide.md202 char *msgBuf;
/ohos5.0/docs/en/contribute/
H A DOpenHarmony-c-cpp-secure-coding-guide.md2725 char msgBuf[MAX_MSG_SIZE];
2726 errno_t ret = strcpy(msgBuf, "No msg yet."); // Initialize message content.
2732 ret = strcpy(msgBuf, "signal SIGINT received.");
H A DOpenHarmony-c-coding-style-guide.md239 char *msgBuf;