/test/testfwk/developer_test/aw/cxx/distributed/ |
H A D | distributed_major.cpp | 291 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 D | distributed_major.h | 46 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 ¬ifyType, const std::string &msg, int msgLen);
|
H A D | distributed_agent.h | 53 virtual int OnProcessMsg(const std::string &strMsg, int msgLen, std::string &strReturnValue, int returnBufLen);
54 virtual int OnNotify(const std::string ¬ifyType, const std::string &msg, int msgLen);
|
H A D | distributed_agent.cpp | 306 int DistributedAgent::OnProcessMsg(const std::string &strMsg, int msgLen,
in OnProcessMsg() argument 403 int DistributedAgent::OnNotify(const std::string ¬ifyType, 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 D | crypto_framework_verify_test.cpp | 591 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 D | crypto_framework_sym_cipher_test.cpp | 225 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 D | wlan_callback_impl.c | 97 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 D | crypto_framework_sym_cipher_test.h | 36 uint32_t msgLen; member
|
H A D | crypto_framework_verify_test.h | 25 int32_t msgLen; member
|
/test/xts/device_attest_lite/services/core/network/ |
H A D | attest_coap.c | 352 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 D | attest_network.c | 891 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 D | attest_network.c | 839 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 D | ActsNetTest.cpp | 1138 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()
|