/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/ |
H A D | trans_udp_negotiation_exchange.c | 80 (void)GetJsonObjectNumberItem(msg, "UID", &(appInfo->peerData.uid)); in TransUnpackReplyUdpInfo() 81 (void)GetJsonObjectNumberItem(msg, "PID", &(appInfo->peerData.pid)); in TransUnpackReplyUdpInfo() 82 (void)GetJsonObjectNumberItem(msg, "BUSINESS_TYPE", (int*)&(appInfo->businessType)); in TransUnpackReplyUdpInfo() 85 (void)GetJsonObjectNumberItem(msg, "CODE", &code); in TransUnpackReplyUdpInfo() 93 (void)GetJsonObjectNumberItem(msg, "MY_PORT", &(appInfo->peerData.port)); in TransUnpackReplyUdpInfo() 113 (void)GetJsonObjectNumberItem(msg, "PID", &(appInfo->peerData.pid)); in TransGetCommonUdpInfoFromJson() 114 (void)GetJsonObjectNumberItem(msg, "UID", &(appInfo->peerData.uid)); in TransGetCommonUdpInfoFromJson() 116 (void)GetJsonObjectNumberItem(msg, "STREAM_TYPE", (int32_t *)&(appInfo->streamType)); in TransGetCommonUdpInfoFromJson() 118 (void)GetJsonObjectNumberItem(msg, "UDP_CONN_TYPE", (int32_t *)&(appInfo->udpConnType)); in TransGetCommonUdpInfoFromJson() 139 (void)GetJsonObjectNumberItem(msg, "CODE", &code); in TransUnpackRequestUdpInfo() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/common/src/ |
H A D | softbus_message_open_channel.c | 219 if (!GetJsonObjectNumberItem(msg, MTU_SIZE, (int32_t *)&(appInfo->peerData.dataConfig))) { in ParseMessageToAppInfo() 224 (void)GetJsonObjectNumberItem(msg, UID, &appInfo->peerData.uid); in ParseMessageToAppInfo() 225 (void)GetJsonObjectNumberItem(msg, PID, &appInfo->peerData.pid); in ParseMessageToAppInfo() 258 (void)GetJsonObjectNumberItem(msg, API_VERSION, &apiVersion); in UnpackRequest() 277 if (GetJsonObjectNumberItem(msg, MSG_ROUTE_TYPE, &routeType) != SOFTBUS_OK) { in UnpackRequest() 282 if (!GetJsonObjectNumberItem(msg, BUSINESS_TYPE, (int32_t *)&appInfo->businessType)) { in UnpackRequest() 286 (void)GetJsonObjectNumberItem(msg, AUTO_CLOSE_TIME, (int32_t *)&appInfo->autoCloseTime); in UnpackRequest() 287 (void)GetJsonObjectNumberItem(msg, TRANS_FLAGS, &transFlag); in UnpackRequest() 378 (void)GetJsonObjectNumberItem(msg, API_VERSION, &apiVersion); in UnpackReply() 382 (void)GetJsonObjectNumberItem(msg, UID, &appInfo->peerData.uid); in UnpackReply() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/ |
H A D | softbus_proxychannel_message.c | 664 if (!GetJsonObjectNumberItem(root, JSON_KEY_UID, &chanInfo->appInfo.peerData.uid) || in TransProxyUnpackHandshakeAckMsg() 665 !GetJsonObjectNumberItem(root, JSON_KEY_PID, &chanInfo->appInfo.peerData.pid) || in TransProxyUnpackHandshakeAckMsg() 666 !GetJsonObjectNumberItem(root, JSON_KEY_ENCRYPT, &chanInfo->appInfo.encrypt) || in TransProxyUnpackHandshakeAckMsg() 668 !GetJsonObjectNumberItem(root, JSON_KEY_CRC, &chanInfo->appInfo.crc) || in TransProxyUnpackHandshakeAckMsg() 734 if (!GetJsonObjectNumberItem(root, JSON_KEY_UID, &(appInfo->peerData.uid)) || in TransProxyUnpackNormalHandshakeMsg() 735 !GetJsonObjectNumberItem(root, JSON_KEY_PID, &(appInfo->peerData.pid)) || in TransProxyUnpackNormalHandshakeMsg() 742 if (!GetJsonObjectNumberItem(root, JSON_KEY_ENCRYPT, &appInfo->encrypt) || in TransProxyUnpackNormalHandshakeMsg() 743 !GetJsonObjectNumberItem(root, JSON_KEY_ALGORITHM, &appInfo->algorithm) || in TransProxyUnpackNormalHandshakeMsg() 744 !GetJsonObjectNumberItem(root, JSON_KEY_CRC, &appInfo->crc)) { in TransProxyUnpackNormalHandshakeMsg() 816 if (!GetJsonObjectNumberItem(root, JSON_KEY_TYPE, (int32_t *)&(appInfo->appType)) || in TransProxyUnpackHandshakeMsg() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/br/ |
H A D | connection_br_mock.cpp | 64 bool GetJsonObjectNumberItem(const cJSON *json, const char * const string, int *target) in GetJsonObjectNumberItem() function 66 return GetConnectionBrInterface()->GetJsonObjectNumberItem(json, string, target); in GetJsonObjectNumberItem()
|
H A D | connection_br_mock.h | 37 …virtual bool GetJsonObjectNumberItem(const cJSON *json, const char * const string, int *target) = … 50 MOCK_METHOD3(GetJsonObjectNumberItem, bool (const cJSON *, const char * const, int *));
|
H A D | connection_br_connection_test.cpp | 869 EXPECT_CALL(brMock, GetJsonObjectNumberItem).WillRepeatedly(Return(false)); 872 EXPECT_CALL(brMock, GetJsonObjectNumberItem).WillRepeatedly(Return(true));
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/src/ |
H A D | trans_auth_message.c | 91 if (!GetJsonObjectNumberItem(obj, "MTU_SIZE", (int32_t *)&(appInfo->peerData.dataConfig))) { in TransAuthChannelMsgUnpack() 94 if (!GetJsonObjectNumberItem(obj, "ROUTE_TYPE", (int32_t *)&(appInfo->routeType))) { in TransAuthChannelMsgUnpack() 97 if (GetJsonObjectNumberItem(obj, "LANE_LINK_TYPE", (int32_t *)&(appInfo->linkType)) in TransAuthChannelMsgUnpack()
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_topo_manager.c | 486 (void)GetJsonObjectNumberItem(item, JSON_KEY_WLAN_RELATION, &value); in ProcessTopoUpdateInfo() 488 (void)GetJsonObjectNumberItem(item, JSON_KEY_BR_RELATION, &value); in ProcessTopoUpdateInfo() 490 (void)GetJsonObjectNumberItem(item, JSON_KEY_BLE_RELATION, &value); in ProcessTopoUpdateInfo() 492 (void)GetJsonObjectNumberItem(item, JSON_KEY_ETH_RELATION, &value); in ProcessTopoUpdateInfo() 523 if (!GetJsonObjectNumberItem(json, JSON_KEY_TYPE, &topoMsgType) || in OnReceiveTopoUpdateMsg() 524 !GetJsonObjectNumberItem(json, JSON_KEY_SEQ, &seq) || in OnReceiveTopoUpdateMsg() 525 !GetJsonObjectNumberItem(json, JSON_KEY_COMPLETE, &complete)) { in OnReceiveTopoUpdateMsg()
|
H A D | lnn_battery_info.c | 74 if (!GetJsonObjectNumberItem(json, JSON_KEY_BATTERY_LEAVEL, &level) || in OnReceiveBatteryInfo()
|
H A D | lnn_net_builder.c | 828 if (!GetJsonObjectNumberItem(json, JSON_KEY_NODE_CODE, &addr->code) || in LnnUnpackNodeAddr() 830 !GetJsonObjectNumberItem(json, JSON_KEY_NODE_PROXY_PORT, &addr->proxyPort) || in LnnUnpackNodeAddr() 831 !GetJsonObjectNumberItem(json, JSON_KEY_NODE_SESSION_PORT, &addr->sessionPort)) { in LnnUnpackNodeAddr()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/json_utils/fuzztest/jsonutils_fuzzer/ |
H A D | jsonutils_fuzzer.cpp | 40 GetJsonObjectNumberItem(object, data, &ageS32); in DoJsonUtilsFuzz()
|
/ohos5.0/foundation/communication/dsoftbus/core/common/include/ |
H A D | softbus_json_utils.h | 36 bool GetJsonObjectNumberItem(const cJSON *json, const char * const string, int32_t *target);
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
H A D | trans_tcp_direct_json.c | 90 if (!GetJsonObjectNumberItem(json, P2P_PORT, port) || in VerifyP2pUnPack()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/json_utils/uttest/ |
H A D | softbus_json_utils_test.cpp | 177 ret = GetJsonObjectNumberItem(nullptr, JSON_KEY1, &result); 179 ret = GetJsonObjectNumberItem(json, nullptr, &result); 181 ret = GetJsonObjectNumberItem(json, JSON_KEY1, nullptr); 183 ret = GetJsonObjectNumberItem(json, JSON_KEY1, &result);
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_hichain_adapter.c | 230 …if ((GetJsonObjectNumberItem(groupItem, GROUP_TYPE, &groupType) && groupType == SAME_ACCOUNT_GROUY… in HasTrustedRelationWithLocalDevice()
|
H A D | auth_hichain.c | 365 if (!GetJsonObjectNumberItem(msg, FIELD_GROUP_TYPE, &groupType)) { in ParseGroupInfo()
|
/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/src/ |
H A D | softbus_conn_ble_connection.c | 685 !GetJsonObjectNumberItem(json, BASIC_INFO_KEY_ROLE, &(baseInfo->type))) { in ParsePeerBasicInfoInner() 691 if (!GetJsonObjectNumberItem(json, BASIC_INFO_KEY_DEVTYPE, &(baseInfo->deviceType))) { in ParsePeerBasicInfoInner() 696 if (!GetJsonObjectNumberItem(json, BASIC_INFO_KEY_FEATURE, &(baseInfo->feature))) { in ParsePeerBasicInfoInner()
|
H A D | softbus_conn_ble_manager.c | 993 if (!GetJsonObjectNumberItem(json, CTRL_MSG_KEY_METHOD, &method)) { in ReceivedControlData()
|
/ohos5.0/foundation/communication/dsoftbus/core/common/json_utils/ |
H A D | softbus_json_utils.c | 74 bool GetJsonObjectNumberItem(const cJSON *json, const char * const string, int32_t *target) in GetJsonObjectNumberItem() function
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/src/ |
H A D | client_trans_session_service.c | 317 GetJsonObjectNumberItem(obj, "ETH_PORT", &port)) { in ConvertAddrStr() 326 GetJsonObjectNumberItem(obj, "WIFI_PORT", &port)) { in ConvertAddrStr()
|
/ohos5.0/foundation/communication/dsoftbus/core/connection/br/src/ |
H A D | softbus_conn_br_manager.c | 855 if (!GetJsonObjectNumberItem(json, KEY_METHOD, &method)) { in ReceivedControlData()
|