Home
last modified time | relevance | path

Searched refs:tlvs (Results 1 - 25 of 51) sorted by relevance

123

/foundation/communication/netstack/utils/tlv_utils/src/
H A Dtlv_utils.cpp122 uint32_t TlvUtils::GenerateTlv(DfxMessage &msg, TlvCommon *tlvs, uint32_t *tlvCount) in GenerateTlv() argument
125 tlvs[index++] = TlvCommon{U64, sizeof(msg.requestBeginTime_), &msg.requestBeginTime_}; in GenerateTlv()
126 tlvs[index++] = TlvCommon{U64, sizeof(msg.dnsEndTime_), &msg.dnsEndTime_}; in GenerateTlv()
127 tlvs[index++] = TlvCommon{U64, sizeof(msg.tcpConnectEndTime_), &msg.tcpConnectEndTime_}; in GenerateTlv()
128 tlvs[index++] = TlvCommon{U64, sizeof(msg.tlsHandshakeEndTime_), &msg.tlsHandshakeEndTime_}; in GenerateTlv()
129 tlvs[index++] = TlvCommon{U64, sizeof(msg.firstSendTime_), &msg.firstSendTime_}; in GenerateTlv()
130 tlvs[index++] = TlvCommon{U64, sizeof(msg.firstRecvTime_), &msg.firstRecvTime_}; in GenerateTlv()
131 tlvs[index++] = TlvCommon{U64, sizeof(msg.requestEndTime_), &msg.requestEndTime_}; in GenerateTlv()
132 tlvs[index++] = TlvCommon{STRING, static_cast<uint32_t>(msg.requestId_.size()), in GenerateTlv()
134 tlvs[inde in GenerateTlv()
157 Parse(DfxMessage &msg, TlvCommon *tlvs, uint32_t tlvCount) Parse() argument
202 auto *tlvs = static_cast<TlvCommon *>(tlvsTemp); Encode() local
235 auto *tlvs = static_cast<TlvCommon *>(tlvsTemp); Decode() local
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/
H A Dwifi_p2p_service_request_list.cpp101 bool WifiP2pServiceRequestList::ParseTlvs2ReqList(const std::vector<unsigned char> &tlvs) in ParseTlvs2ReqList() argument
103 std::size_t leftLength = tlvs.size(); in ParseTlvs2ReqList()
117 unsigned short length = tlvs[pos] + (tlvs[pos + 1] << CHAR_BIT); in ParseTlvs2ReqList()
119 int protocolType = tlvs[pos + SERVICE_TLV_LENGTH_SIZE]; in ParseTlvs2ReqList()
120 unsigned char transId = tlvs[pos + SERVICE_TLV_LENGTH_SIZE + PROTOCOL_SIZE]; in ParseTlvs2ReqList()
130 query.push_back(tlvs[pos + i]); in ParseTlvs2ReqList()
H A Dwifi_p2p_service_request_list.h136 * @param tlvs TLVS data packet
140 virtual bool ParseTlvs2ReqList(const std::vector<unsigned char> &tlvs);
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/
H A Dwifi_hal_callback.c666 if (info->tlvs != NULL) { // deep copy in P2pHalCbServiceDiscoveryResponse()
667 unsigned len = strlen(info->tlvs) + 1; in P2pHalCbServiceDiscoveryResponse()
673 pCbkMsg->msg.serverInfo.tlvs = (char *)calloc(len, sizeof(char)); in P2pHalCbServiceDiscoveryResponse()
674 if (pCbkMsg->msg.serverInfo.tlvs == NULL) { in P2pHalCbServiceDiscoveryResponse()
679 if (strncpy_s(pCbkMsg->msg.serverInfo.tlvs, len, info->tlvs, len - 1) != EOK) { in P2pHalCbServiceDiscoveryResponse()
680 free(pCbkMsg->msg.serverInfo.tlvs); in P2pHalCbServiceDiscoveryResponse()
681 pCbkMsg->msg.serverInfo.tlvs = NULL; in P2pHalCbServiceDiscoveryResponse()
742 if (info->tlvs != NULL) { // deep copy in P2pHalCbServDiscReq()
743 unsigned len = strlen(info->tlvs) in P2pHalCbServDiscReq()
[all...]
H A Dwifi_hal_crpc_server.c662 if (cbmsg->msg.serverInfo.tlvs != NULL) { in DealP2pServerInfoCbk()
663 WriteInt(context, strlen(cbmsg->msg.serverInfo.tlvs)); in DealP2pServerInfoCbk()
664 WriteStr(context, cbmsg->msg.serverInfo.tlvs); in DealP2pServerInfoCbk()
665 free(cbmsg->msg.serverInfo.tlvs); in DealP2pServerInfoCbk()
666 cbmsg->msg.serverInfo.tlvs = NULL; in DealP2pServerInfoCbk()
682 if (cbmsg->msg.serDiscReqInfo.tlvs != NULL) { in DealP2pServerDiscReqCbk()
683 WriteInt(context, strlen(cbmsg->msg.serDiscReqInfo.tlvs)); in DealP2pServerDiscReqCbk()
684 WriteStr(context, cbmsg->msg.serDiscReqInfo.tlvs); in DealP2pServerDiscReqCbk()
685 free(cbmsg->msg.serDiscReqInfo.tlvs); in DealP2pServerDiscReqCbk()
686 cbmsg->msg.serDiscReqInfo.tlvs in DealP2pServerDiscReqCbk()
[all...]
H A Dwifi_hal_p2p_struct.h78 char *tlvs; member
107 char *tlvs; member
H A Dwifi_hal_crpc_p2p.c750 info.tlvs = (char *)calloc(tlvsLen + 1, sizeof(char)); in RpcP2pRespServerDiscovery()
751 if (info.tlvs == NULL) { in RpcP2pRespServerDiscovery()
754 if (ReadStr(context, info.tlvs, tlvsLen + 1) != 0) { in RpcP2pRespServerDiscovery()
755 free(info.tlvs); in RpcP2pRespServerDiscovery()
756 info.tlvs = NULL; in RpcP2pRespServerDiscovery()
763 free(info.tlvs); in RpcP2pRespServerDiscovery()
764 info.tlvs = NULL; in RpcP2pRespServerDiscovery()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/idl_client/idl_interface/
H A Di_wifi.c652 unsigned char *tlvs = NULL; in IdlCbP2pServDiscRespEvent() local
654 tlvs = (unsigned char *)calloc(tlvsLength + 1, sizeof(unsigned char)); in IdlCbP2pServDiscRespEvent()
655 if (tlvs == NULL) { in IdlCbP2pServDiscRespEvent()
658 if (ReadStr(context, (char *)tlvs, tlvsLength + 1) != 0) { in IdlCbP2pServDiscRespEvent()
659 free(tlvs); in IdlCbP2pServDiscRespEvent()
660 tlvs = NULL; in IdlCbP2pServDiscRespEvent()
663 if (NumStrToNumArry(tlvs, &tlvsLength) < 0) { in IdlCbP2pServDiscRespEvent()
664 LOGE("Failed to convert tlvs hex string to byte list."); in IdlCbP2pServDiscRespEvent()
665 free(tlvs); in IdlCbP2pServDiscRespEvent()
666 tlvs in IdlCbP2pServDiscRespEvent()
[all...]
H A Di_wifi_event_p2p_callback.h46 const char *srcAddress, short updateIndicator, const unsigned char *tlvs, size_t tlvsLength);
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/
H A Dwifi_p2p_hal_interface_test.cpp119 const std::string &srcAddress, short updateIndicator, const std::vector<unsigned char> &tlvs) in onServiceDiscoveryResponse()
124 tlvs.size()); in onServiceDiscoveryResponse()
442 std::vector<unsigned char> tlvs; in HWTEST_F() local
445 WifiP2PHalInterface::GetInstance().ReqServiceDiscovery(macAddr, tlvs, reqID)); in HWTEST_F()
448 WifiP2PHalInterface::GetInstance().ReqServiceDiscovery(macAddr, tlvs, reqID)); in HWTEST_F()
449 tlvs.push_back('a'); in HWTEST_F()
451 WifiErrorNo::WIFI_HAL_OPT_OK, WifiP2PHalInterface::GetInstance().ReqServiceDiscovery(macAddr, tlvs, reqID)); in HWTEST_F()
494 std::vector<unsigned char> tlvs; in HWTEST_F() local
496 WifiP2PHalInterface::GetInstance().RespServiceDiscovery(device, frequency, dialogToken, tlvs)); in HWTEST_F()
497 tlvs in HWTEST_F()
118 onServiceDiscoveryResponse( const std::string &srcAddress, short updateIndicator, const std::vector<unsigned char> &tlvs) onServiceDiscoveryResponse() argument
[all...]
H A Dmock_wifi_hal_service.c692 info.tlvs = (char *)calloc(256, sizeof(char)); in P2pReqServiceDiscovery()
693 if (info.tlvs == NULL || strcpy_s(info.tlvs, 256, "0123456789abcdefABCDEF") != EOK) { in P2pReqServiceDiscovery()
694 free(info.tlvs); in P2pReqServiceDiscovery()
698 free(info.tlvs); in P2pReqServiceDiscovery()
H A Dwifi_idl_inner_interface_test.cpp163 const std::string &srcAddress, short updateIndicator, const std::vector<unsigned char> &tlvs) in OnServiceDiscoveryResponseMock()
752 unsigned char tlvs[] = "test"; in HWTEST_F() local
754 OnP2pServiceDiscoveryResponse(srcAdd, updateIndicator, tlvs, tlvsLength); in HWTEST_F()
759 OnP2pServiceDiscoveryResponse(srcAddress, updateIndicator, tlvs, tlvsLength); in HWTEST_F()
762 OnP2pServiceDiscoveryResponse(srcAddress, updateIndicator, tlvs, tlvsLength); in HWTEST_F()
819 if (memcpy_s(infomation.tlvs, WIFI_MAX_MAC_ADDR_LENGTH, "AABBCCDDEEFFGGHH", LENTH) != EOK) { in HWTEST_F()
162 OnServiceDiscoveryResponseMock( const std::string &srcAddress, short updateIndicator, const std::vector<unsigned char> &tlvs) OnServiceDiscoveryResponseMock() argument
H A Dwifi_idl_client_test.cpp1349 std::vector<unsigned char> tlvs; in HWTEST_F() local
1351 EXPECT_TRUE(mClient.ReqP2pReqServiceDiscovery(deviceAddress, tlvs, reqID) == WIFI_HAL_OPT_INVALID_PARAM); in HWTEST_F()
1353 EXPECT_TRUE(mClient.ReqP2pReqServiceDiscovery(deviceAddress, tlvs, reqID) == WIFI_HAL_OPT_INVALID_PARAM); in HWTEST_F()
1354 tlvs.push_back(1); in HWTEST_F()
1355 mClient.ReqP2pReqServiceDiscovery(deviceAddress, tlvs, reqID); in HWTEST_F()
1357 EXPECT_TRUE(mClient.ReqP2pReqServiceDiscovery(deviceAddress, tlvs, reqID) == WIFI_HAL_OPT_FAILED); in HWTEST_F()
1382 std::vector<unsigned char> tlvs; in HWTEST_F() local
1383 EXPECT_TRUE(mClient.ReqRespServiceDiscovery(device, frequency, dialogToken, tlvs) == WIFI_HAL_OPT_INVALID_PARAM); in HWTEST_F()
1384 tlvs.push_back(1); in HWTEST_F()
1385 mClient.ReqRespServiceDiscovery(device, frequency, dialogToken, tlvs); in HWTEST_F()
[all...]
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/idl_client/
H A Dwifi_idl_inner_interface.cpp394 const char *srcAddress, short updateIndicator, const unsigned char *tlvs, size_t tlvsLength) in OnP2pServiceDiscoveryResponse()
402 if (tlvs != nullptr) { in OnP2pServiceDiscoveryResponse()
403 OHOS::Wifi::Char2Vec(tlvs, tlvsLength, tlvList); in OnP2pServiceDiscoveryResponse()
451 if (info->tlvsLength > 0 && info->tlvs != nullptr) { in OnP2pServDiscReq()
452 OHOS::Wifi::Char2Vec(info->tlvs, info->tlvsLength, cbInfo.tlvList); in OnP2pServDiscReq()
393 OnP2pServiceDiscoveryResponse( const char *srcAddress, short updateIndicator, const unsigned char *tlvs, size_t tlvsLength) OnP2pServiceDiscoveryResponse() argument
H A Dwifi_idl_inner_interface.h96 const char *srcAddress, short updateIndicator, const unsigned char *tlvs, size_t tlvsLength);
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/wifi_hal_interface/
H A Dwifi_p2p_hal_interface.cpp440 const std::string &deviceAddress, const std::vector<unsigned char> &tlvs, std::string &reqID) const in ReqServiceDiscovery()
444 return mHdiWpaClient->ReqP2pReqServiceDiscovery(deviceAddress, tlvs, reqID); in ReqServiceDiscovery()
447 return mIdlClient->ReqP2pReqServiceDiscovery(deviceAddress, tlvs, reqID); in ReqServiceDiscovery()
496 const WifiP2pDevice &device, int frequency, int dialogToken, const std::vector<unsigned char> &tlvs) const in RespServiceDiscovery()
500 return mHdiWpaClient->ReqRespServiceDiscovery(device, frequency, dialogToken, tlvs); in RespServiceDiscovery()
503 return mIdlClient->ReqRespServiceDiscovery(device, frequency, dialogToken, tlvs); in RespServiceDiscovery()
439 ReqServiceDiscovery( const std::string &deviceAddress, const std::vector<unsigned char> &tlvs, std::string &reqID) const ReqServiceDiscovery() argument
H A Dwifi_p2p_hal_interface.h333 const std::string &deviceAddress, const std::vector<unsigned char> &tlvs, std::string &reqID) const;
374 * @param tlvs
379 const WifiP2pDevice &device, int frequency, int dialogToken, const std::vector<unsigned char> &tlvs) const;
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_hal/unittest/
H A Dwifi_hal_wpa_p2p_test.cpp369 char tlvs[256] = {0}; in HWTEST_F() local
373 mInterface->wpaP2pCliCmdServDiscReq(mInterface, peerBssid, tlvs, retSeq, size) != P2P_SUP_ERRCODE_SUCCESS); in HWTEST_F()
374 StrSafeCopy(tlvs, sizeof(tlvs), "hex_type_tlv_string"); in HWTEST_F()
377 mInterface->wpaP2pCliCmdServDiscReq(mInterface, peerBssid, tlvs, retSeq, size) != P2P_SUP_ERRCODE_SUCCESS); in HWTEST_F()
380 mInterface->wpaP2pCliCmdServDiscReq(mInterface, peerBssid, tlvs, retSeq, size) != P2P_SUP_ERRCODE_SUCCESS); in HWTEST_F()
383 mInterface->wpaP2pCliCmdServDiscReq(mInterface, peerBssid, tlvs, retSeq, size) == P2P_SUP_ERRCODE_SUCCESS); in HWTEST_F()
582 info.tlvs = (char *)calloc(256, sizeof(char)); in HWTEST_F()
583 ASSERT_TRUE(info.tlvs != NULL); in HWTEST_F()
584 StrSafeCopy(info.tlvs, 25 in HWTEST_F()
[all...]
H A Dwifi_hal_callback_test.cpp257 info.tlvs = buff; in HWTEST_F()
275 info.tlvs = buff; in HWTEST_F()
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_p2p/test/Mock/
H A Dmock_wifi_p2p_hal_interface.h67 const std::string &deviceAddress, const std::vector<unsigned char> &tlvs, std::string &reqID) const = 0;
74 const WifiP2pDevice &device, int frequency, int dialogToken, const std::vector<unsigned char> &tlvs) const = 0;
131 WifiErrorNo(const std::string &deviceAddress, const std::vector<unsigned char> &tlvs, std::string &reqID));
138 const std::vector<unsigned char> &tlvs));
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/
H A Dwifi_hdi_wpa_callback_test.cpp204 servDiscReqInfoParam.tlvs = new uint8_t[servDiscReqInfoParam.tlvsLen]; in HWTEST_F()
205 memcpy_s(servDiscReqInfoParam.tlvs, servDiscReqInfoParam.tlvsLen, "x01x02x03x04", 4); in HWTEST_F()
213 delete[] servDiscReqInfoParam.tlvs; in HWTEST_F()
468 servDiscRespParam.tlvs = nullptr; in HWTEST_F()
H A Dwifi_hdi_wpa_client_test.cpp1204 std::vector<unsigned char> tlvs = { 0x01, 0x02, 0x03 }; in HWTEST_F() local
1206 WifiErrorNo result = wifiHdiWpaClient->ReqP2pReqServiceDiscovery(deviceAddress, tlvs, reqID); in HWTEST_F()
1214 std::vector<unsigned char> tlvs = { 0x01, 0x02, 0x03 }; in HWTEST_F() local
1216 WifiErrorNo result = wifiHdiWpaClient->ReqP2pReqServiceDiscovery(deviceAddress, tlvs, reqID); in HWTEST_F()
1224 std::vector<unsigned char> tlvs; in HWTEST_F() local
1226 WifiErrorNo result = wifiHdiWpaClient->ReqP2pReqServiceDiscovery(deviceAddress, tlvs, reqID); in HWTEST_F()
1272 std::vector<unsigned char> tlvs; in HWTEST_F() local
1273 WifiErrorNo result = wifiHdiWpaClient->ReqRespServiceDiscovery(device, frequency, dialogToken, tlvs); in HWTEST_F()
1276 tlvs = { 0x01, 0x02, 0x03 }; in HWTEST_F()
1277 result = wifiHdiWpaClient->ReqRespServiceDiscovery(device, frequency, dialogToken, tlvs); in HWTEST_F()
[all...]
/foundation/communication/netstack/utils/tlv_utils/include/
H A Dtlv_utils.h81 static uint32_t Parse(DfxMessage &msg, TlvCommon *tlvs, uint32_t tlvCount);
/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Ddhd_debug.h292 tlv_log *tlvs; member
315 tlv_log *tlvs; member
323 tlv_log *tlvs; member
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_native/client/hdi_client/
H A Dwifi_hdi_wpa_client.h686 const std::string &deviceAddress, const std::vector<unsigned char> &tlvs, std::string &reqID) const;
726 * @param tlvs
731 const WifiP2pDevice &device, int frequency, int dialogToken, const std::vector<unsigned char> &tlvs) const;

Completed in 25 milliseconds

123