Home
last modified time | relevance | path

Searched refs:GetJsonObjectNumberItem (Results 1 – 21 of 21) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/
H A Dtrans_udp_negotiation_exchange.c80 (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 Dsoftbus_message_open_channel.c219 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 Dsoftbus_proxychannel_message.c664 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 Dconnection_br_mock.cpp64 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 Dconnection_br_mock.h37 …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 Dconnection_br_connection_test.cpp869 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 Dtrans_auth_message.c91 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 Dlnn_topo_manager.c486 (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 Dlnn_battery_info.c74 if (!GetJsonObjectNumberItem(json, JSON_KEY_BATTERY_LEAVEL, &level) || in OnReceiveBatteryInfo()
H A Dlnn_net_builder.c828 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 Djsonutils_fuzzer.cpp40 GetJsonObjectNumberItem(object, data, &ageS32); in DoJsonUtilsFuzz()
/ohos5.0/foundation/communication/dsoftbus/core/common/include/
H A Dsoftbus_json_utils.h36 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 Dtrans_tcp_direct_json.c90 if (!GetJsonObjectNumberItem(json, P2P_PORT, port) || in VerifyP2pUnPack()
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/json_utils/uttest/
H A Dsoftbus_json_utils_test.cpp177 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 Dauth_hichain_adapter.c230 …if ((GetJsonObjectNumberItem(groupItem, GROUP_TYPE, &groupType) && groupType == SAME_ACCOUNT_GROUY… in HasTrustedRelationWithLocalDevice()
H A Dauth_hichain.c365 if (!GetJsonObjectNumberItem(msg, FIELD_GROUP_TYPE, &groupType)) { in ParseGroupInfo()
/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/src/
H A Dsoftbus_conn_ble_connection.c685 !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 Dsoftbus_conn_ble_manager.c993 if (!GetJsonObjectNumberItem(json, CTRL_MSG_KEY_METHOD, &method)) { in ReceivedControlData()
/ohos5.0/foundation/communication/dsoftbus/core/common/json_utils/
H A Dsoftbus_json_utils.c74 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 Dclient_trans_session_service.c317 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 Dsoftbus_conn_br_manager.c855 if (!GetJsonObjectNumberItem(json, KEY_METHOD, &method)) { in ReceivedControlData()