Home
last modified time | relevance | path

Searched refs:msgLen (Results 1 – 17 of 17) sorted by relevance

/base/security/device_security_level/baselib/msglib/src/standard/
Dmessenger_device_session_manager.c52 uint32_t msgLen; member
60 uint32_t msgLen; member
96 if (queueData->msgLen + sizeof(QueueMsgData) != len) { in ProcessSessionMessageReceived()
107 messageReceiver(&queueData->srcIdentity, queueData->msgData, queueData->msgLen); in ProcessSessionMessageReceived()
111 …tic void OnSessionMessageReceived(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLen) in OnSessionMessageReceived() argument
124 uint32_t queueDataLen = sizeof(QueueMsgData) + msgLen; in OnSessionMessageReceived()
136 ret = (uint32_t)memcpy_s(queueData->msgData, msgLen, msg, msgLen); in OnSessionMessageReceived()
142 queueData->msgLen = msgLen; in OnSessionMessageReceived()
217 int sent = SendBytes(sessionId, msgData->msgData, msgData->msgLen); in MessengerOnSessionOpened()
386 …taToPendingList(uint32_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLen) in PushMsgDataToPendingList() argument
[all …]
Dmessenger_device_session_manager.h34 …engerSendMsgTo(uint64_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLen);
Dmessenger_impl.c97 uint32_t msgLen) in SendMsgToImpl() argument
103 MessengerSendMsgTo(transNo, devId, msg, msgLen); in SendMsgToImpl()
/base/security/device_security_level/test/dslm_unit_test/
Ddslm_msg_interface_mock.cpp56 const uint8_t *msg, uint32_t msgLen) { in MakeMsgLoopback() argument
57 this->MakeMsgReceivedFrom(devId, msg, msgLen); in MakeMsgLoopback()
84 …ceMock::MakeMsgReceivedFrom(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLen) const in MakeMsgReceivedFrom()
86 auto msgBuffer = std::make_shared<std::vector<uint8_t>>(msg, msg + msgLen); in MakeMsgReceivedFrom()
109 uint32_t msgLen) in SendMsgToImpl() argument
111 return GetDslmMsgInterface()->SendMsgTo(messenger, transNo, devId, msg, msgLen); in SendMsgToImpl()
Ddslm_msg_interface_mock.h37 const uint8_t *msg, uint32_t msgLen) = 0;
52 const uint8_t *msg, uint32_t msgLen));
61 … void MakeMsgReceivedFrom(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLen) const;
Ddslm_test.cpp1355 uint32_t msgLen = 2; variable
1360 SendMsgToDevice(transNo, &devId, msg, msgLen);
1373 uint32_t msgLen = 3; variable
1375 EXPECT_EQ(false, CheckMessage(msg, msgLen));
/base/security/device_security_level/baselib/msglib/src/
Dmessenger.c35 uint32_t msgLen) in SendMsgTo() argument
37 SendMsgToImpl(messenger, transNo, devId, msg, msgLen); in SendMsgTo()
Dmessenger_impl.h30 uint32_t msgLen) __attribute__((weak));
/base/startup/appspawn_lite/services/include/
Dappspawn_message.h33 int SplitMessage(const char* msg, unsigned int msgLen, MessageSt* msgSt);
/base/security/device_security_level/baselib/msglib/include/
Dmessenger.h34 …int32_t (*DeviceMessageReceiver)(const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLen);
82 uint32_t msgLen);
/base/security/device_security_level/services/msg/
Ddslm_messenger_wrapper.c75 …SendMsgToDevice(uint64_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLen) in SendMsgToDevice() argument
82 SendMsgTo(g_messenger, transNo, devId, msg, msgLen); in SendMsgToDevice()
/base/startup/appspawn_lite/services/src/
Dappspawn_message.c152 int SplitMessage(const char* msg, unsigned int msgLen, MessageSt* msgSt) in SplitMessage() argument
158 if (msg == NULL || msgLen == 0) { in SplitMessage()
163 cJSON* rootJ = cJSON_ParseWithLength(msg, msgLen); in SplitMessage()
/base/startup/appspawn/lite/
Dappspawn_message.c154 int SplitMessage(const char *msg, unsigned int msgLen, MessageSt *msgSt) in SplitMessage() argument
160 if (msg == NULL || msgLen == 0) { in SplitMessage()
165 cJSON *rootJ = cJSON_ParseWithLength(msg, msgLen); in SplitMessage()
Dappspawn_message.h48 int SplitMessage(const char *msg, unsigned int msgLen, MessageSt *msgSt);
/base/hiviewdfx/hilog/services/hilogd/
Dkmsg_parser.cpp167 auto msgLen = sizeof(HilogMsg) + tagLen + len + 1; in ParseKmsg() local
168 HilogMsgWrapper msgWrap((std::vector<char>(msgLen, '\0'))); in ParseKmsg()
170 msg.len = msgLen; in ParseKmsg()
/base/security/device_security_level/services/include/
Ddslm_messenger_wrapper.h39 …endMsgToDevice(uint64_t transNo, const DeviceIdentify *devId, const uint8_t *msg, uint32_t msgLen);
/base/security/device_auth/common_lib/impl/src/
Dhc_tlv_parser.c302 int32_t msgLen = ParseTlvNode(msg, parcel, strict); in DecodeTlvMessage() local
303 if (msgLen > MAX_TLV_LENGTH) { in DecodeTlvMessage()
306 if ((int32_t)(msg->length + sizeof(msg->length) + sizeof(msg->tag)) != msgLen) { in DecodeTlvMessage()