Home
last modified time | relevance | path

Searched refs:msgLen (Results 1 - 13 of 13) sorted by relevance

/test/testfwk/developer_test/aw/cxx/distributed/
H A Ddistributed_major.cpp291 bool DistributeTestEnvironment::SendMessage(size_t devNo, const std::string &strMsg, int msgLen, in SendMessage() argument
295 if ((msgLen + DST_COMMAND_HEAD_LEN) <= MAX_BUFF_LEN) { in SendMessage()
299 errno_t ret = memcpy_s(pCmdTest->alignmentCmd, MAX_BUFF_LEN - DST_COMMAND_HEAD_LEN, strMsg.c_str(), msgLen); in SendMessage()
303 pCmdTest->len = msgLen; in SendMessage()
304 breturn = SendToAgent(devNo, DST_COMMAND_MSG, pCmdTest, msgLen, onProcessReturnMsg); in SendMessage()
311 bool DistributeTestEnvironment::Notify(size_t devNo, const std::string &strMsg, int msgLen) in Notify() argument
314 if (msgLen < 0 || msgLen >= dstMax) { in Notify()
319 if ((msgLen + DST_COMMAND_HEAD_LEN) <= MAX_BUFF_LEN) { in Notify()
323 errno_t ret = memcpy_s(pCmdTest->alignmentCmd, dstMax, strMsg.c_str(), msgLen); in Notify()
[all...]
H A Ddistributed_major.h46 bool SendMessage(size_t devNo, const std::string &strMsg, int msgLen,
49 bool Notify(size_t devNo, const std::string &strMsg, int msgLen);
90 bool Notify(AGENT_NO devNo, const std::string &notifyType, const std::string &msg, int msgLen);
H A Ddistributed_agent.h53 virtual int OnProcessMsg(const std::string &strMsg, int msgLen, std::string &strReturnValue, int returnBufLen);
54 virtual int OnNotify(const std::string &notifyType, const std::string &msg, int msgLen);
H A Ddistributed_agent.cpp306 int DistributedAgent::OnProcessMsg(const std::string &strMsg, int msgLen, in OnProcessMsg() argument
403 int DistributedAgent::OnNotify(const std::string &notifyType, const std::string &msg, int msgLen) in OnNotify() argument
408 if (msgLen < 0) { in OnNotify()
409 HiLog::Error(DistributedAgent::LABEL, "msgLen < 0."); in OnNotify()
/test/xts/acts/security/crypto_framework_napi_BasicTest/src/
H A Dcrypto_framework_verify_test.cpp591 int32_t msgLen = verifyData.msgLen; in HWTEST_P() local
600 ASSERT_EQ(randomObj->generateRandom(randomObj, msgLen, &msgBlob), HCF_SUCCESS); in HWTEST_P()
654 int32_t msgLen = verifyData.msgLen; in HWTEST_P() local
662 ASSERT_EQ(randomObj->generateRandom(randomObj, msgLen, &msgBlob), HCF_SUCCESS); in HWTEST_P()
734 int32_t msgLen = verifyData.msgLen; in HWTEST_P() local
742 ASSERT_EQ(randomObj->generateRandom(randomObj, msgLen, &msgBlob), HCF_SUCCESS); in HWTEST_P()
778 int32_t msgLen in HWTEST_P() local
822 int32_t msgLen = verifyData.msgLen; HWTEST_P() local
972 int32_t msgLen = OH_CRYPTO_SHA1_DIGESTSIZE; HWTEST_F() local
1178 int32_t msgLen = OH_CRYPTO_MD5_DIGESTSIZE; HWTEST_F() local
1220 int32_t msgLen = 16; HWTEST_F() local
1264 int32_t msgLen = OH_CRYPTO_MD5_DIGESTSIZE; HWTEST_F() local
1307 int32_t msgLen = OH_CRYPTO_SHA1_DIGESTSIZE; HWTEST_F() local
1349 int32_t msgLen = OH_CRYPTO_SHA224_DIGESTSIZE; HWTEST_F() local
1391 int32_t msgLen = 64; HWTEST_F() local
1444 int32_t msgLen = 20; HWTEST_F() local
1543 int32_t msgLen = 16; HWTEST_F() local
1630 int32_t msgLen = 16; HWTEST_F() local
1675 int32_t msgLen = 32; HWTEST_F() local
1717 int32_t msgLen = 32; HWTEST_F() local
1760 int32_t msgLen = 64; HWTEST_F() local
[all...]
H A Dcrypto_framework_sym_cipher_test.cpp225 int32_t randomLen = symCipherData.msgLen; in HWTEST_P()
285 int32_t randomLen = symCipherAEADData.msgLen; in HWTEST_P()
352 int32_t randomLen = symCipherAEADData.msgLen; in HWTEST_P()
/test/xts/hats/hdf/wlan/hdi_service/
H A Dwlan_callback_impl.c97 static int32_t WlanCallbackNetlinkMessage(struct IWlanCallback *self, const uint8_t *msg, uint32_t msgLen) in WlanCallbackNetlinkMessage() argument
107 for (i = 0; i < msgLen; i++) { in WlanCallbackNetlinkMessage()
/test/xts/acts/security/crypto_framework_napi_BasicTest/include/
H A Dcrypto_framework_sym_cipher_test.h36 uint32_t msgLen; member
H A Dcrypto_framework_verify_test.h25 int32_t msgLen; member
/test/xts/device_attest_lite/services/core/network/
H A Dattest_coap.c352 size_t msgLen = 0; in CoapCopyMessage() local
358 if ((ret = CoapGetExtensionLen(len, &msgLen)) != 0) { in CoapCopyMessage()
371 pkt->len = buf->len + msgLen; in CoapCopyMessage()
H A Dattest_network.c891 uint8_t msgLen = ((msgLenTkl[0] & 0xF0) >> COAP_BITS_HEADER_LEN); in DecodeLenTkl() local
893 coapPkt->hdr.len = msgLen; in DecodeLenTkl()
898 if ((ret = CoapGetExtensionLen(msgLen, &extendedLengthSize)) != 0) { in DecodeLenTkl()
901 if ((ret = DecodeExtendedLength(session, msgLen, extendedLengthSize, &extendedLength)) != 0) { in DecodeLenTkl()
/test/xts/device_attest/services/core/network/
H A Dattest_network.c839 uint32_t msgLen = headerLen + bodyLen + 1; in BuildHttpsMsg() local
840 char *msg = (char *)ATTEST_MEM_MALLOC(msgLen); in BuildHttpsMsg()
846 int32_t ret = memcpy_s(msg, msgLen, header, headerLen); in BuildHttpsMsg()
852 ret = memcpy_s(msg + headerLen, msgLen - headerLen, body, bodyLen); in BuildHttpsMsg()
/test/xts/acts/kernel_lite/net_posix/src/
H A DActsNetTest.cpp1138 unsigned int msgLen = strlen(msg); in HWTEST_F() local
1139 ret = sendto(udpFd, msg, msgLen, 0, (struct sockaddr*)&clnAddr, (socklen_t)sizeof(clnAddr)); in HWTEST_F()
1141 EXPECT_EQ(msgLen, (unsigned int)ret); in HWTEST_F()
1145 EXPECT_EQ(msgLen, (unsigned int)bytes); in HWTEST_F()

Completed in 21 milliseconds