Home
last modified time | relevance | path

Searched refs:GetJsonObjectStringItem (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/src/
H A Dtrans_auth_message.c79 … if (!GetJsonObjectStringItem(obj, "DEVICE_ID", appInfo->peerData.deviceId, DEVICE_ID_SIZE_MAX) || in TransAuthChannelMsgUnpack()
80 !GetJsonObjectStringItem(obj, "PKG_NAME", appInfo->peerData.pkgName, PKG_NAME_SIZE_MAX) || in TransAuthChannelMsgUnpack()
81 …!GetJsonObjectStringItem(obj, "SRC_BUS_NAME", appInfo->peerData.sessionName, SESSION_NAME_SIZE_MAX… in TransAuthChannelMsgUnpack()
82 …!GetJsonObjectStringItem(obj, "DST_BUS_NAME", appInfo->myData.sessionName, SESSION_NAME_SIZE_MAX) … in TransAuthChannelMsgUnpack()
83 !GetJsonObjectStringItem(obj, "REQ_ID", appInfo->reqId, REQ_ID_SIZE_MAX)) { in TransAuthChannelMsgUnpack()
88 …if (!GetJsonObjectStringItem(obj, "PEER_NETWORK_ID", appInfo->peerNetWorkId, DEVICE_ID_SIZE_MAX)) { in TransAuthChannelMsgUnpack()
99 if (!GetJsonObjectStringItem(obj, "LOCAL_HML_RAW_IP", appInfo->peerData.addr, IP_LEN) || in TransAuthChannelMsgUnpack()
100 !GetJsonObjectStringItem(obj, "PEER_HML_RAW_IP", appInfo->myData.addr, IP_LEN)) { in TransAuthChannelMsgUnpack()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/
H A Dtrans_udp_negotiation_exchange.c79 (void)GetJsonObjectStringItem(msg, "PKG_NAME", appInfo->peerData.pkgName, PKG_NAME_SIZE_MAX); in TransUnpackReplyUdpInfo()
94 …(void)GetJsonObjectStringItem(msg, "MY_IP", appInfo->peerData.addr, sizeof(appInfo->peerData.addr)… in TransUnpackReplyUdpInfo()
107 (void)GetJsonObjectStringItem(msg, "PKG_NAME", appInfo->peerData.pkgName, PKG_NAME_SIZE_MAX); in TransGetCommonUdpInfoFromJson()
108 …(void)GetJsonObjectStringItem(msg, "BUS_NAME", appInfo->myData.sessionName, SESSION_NAME_SIZE_MAX); in TransGetCommonUdpInfoFromJson()
109 …(void)GetJsonObjectStringItem(msg, "CLIENT_BUS_NAME", appInfo->peerData.sessionName, SESSION_NAME_… in TransGetCommonUdpInfoFromJson()
110 (void)GetJsonObjectStringItem(msg, "GROUP_ID", appInfo->groupId, GROUP_ID_SIZE_MAX); in TransGetCommonUdpInfoFromJson()
128 …(void)GetJsonObjectStringItem(msg, "SESSION_KEY", (char*)encodeSessionKey, BASE64_SESSION_KEY_LEN); in TransUnpackRequestUdpInfo()
147 …(void)GetJsonObjectStringItem(msg, "MY_IP", appInfo->peerData.addr, sizeof(appInfo->peerData.addr)… in TransUnpackRequestUdpInfo()
156 …(void)GetJsonObjectStringItem(msg, "MY_IP", appInfo->peerData.addr, sizeof(appInfo->peerData.addr)… in TransUnpackRequestUdpInfo()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/common/src/
H A Dsoftbus_message_open_channel.c185 … if (!GetJsonObjectStringItem(json, FIRST_DATA, (char *)encodeFastData, BASE64_FAST_DATA_LEN)) { in UnpackFirstData()
213 …if (!GetJsonObjectStringItem(msg, BUS_NAME, (appInfo->myData.sessionName), SESSION_NAME_SIZE_MAX) … in ParseMessageToAppInfo()
214 !GetJsonObjectStringItem(msg, GROUP_ID, (appInfo->groupId), GROUP_ID_SIZE_MAX) || in ParseMessageToAppInfo()
215 !GetJsonObjectStringItem(msg, SESSION_KEY, sessionKey, sizeof(sessionKey))) { in ParseMessageToAppInfo()
269 if (!GetJsonObjectStringItem(msg, PKG_NAME, (appInfo->peerData.pkgName), PKG_NAME_SIZE_MAX) || in UnpackRequest()
270 …!GetJsonObjectStringItem(msg, CLIENT_BUS_NAME, (appInfo->peerData.sessionName), SESSION_NAME_SIZE_… in UnpackRequest()
271 … !GetJsonObjectStringItem(msg, AUTH_STATE, (appInfo->peerData.authState), AUTH_STATE_SIZE_MAX)) { in UnpackRequest()
365 if (!GetJsonObjectStringItem(msg, DEVICE_ID, uuid, DEVICE_ID_SIZE_MAX)) { in UnpackReply()
393 … if (!GetJsonObjectStringItem(msg, PKG_NAME, (appInfo->peerData.pkgName), PKG_NAME_SIZE_MAX) || in UnpackReply()
394 … !GetJsonObjectStringItem(msg, AUTH_STATE, (appInfo->peerData.authState), AUTH_STATE_SIZE_MAX)) { in UnpackReply()
/ohos5.0/foundation/communication/dsoftbus/core/discovery/coap/common/src/
H A Ddisc_coap_parser.c40 if (!GetJsonObjectStringItem(udidJson, DEVICE_UDID, tmpUdid, DISC_MAX_DEVICE_ID_LEN)) { in DiscCoapParseDeviceUdid()
62 …if (!GetJsonObjectStringItem(data, JSON_WLAN_IP, device->addr[0].info.ip.ip, sizeof(device->addr[0… in DiscCoapParseWifiIpAddr()
120 if (!GetJsonObjectStringItem(data, JSON_SERVICE_DATA, serviceData, sizeof(serviceData))) { in DiscCoapParseServiceData()
141 if (!GetJsonObjectStringItem(data, JSON_HW_ACCOUNT, tmpAccount, MAX_ACCOUNT_HASH_LEN)) { in DiscCoapParseHwAccountHash()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/
H A Dsoftbus_proxychannel_message.c644 !GetJsonObjectStringItem(root, JSON_KEY_DEVICE_ID, chanInfo->appInfo.peerData.deviceId, in TransProxyUnpackHandshakeAckMsg()
681 if (!GetJsonObjectStringItem(root, JSON_KEY_PKG_NAME, chanInfo->appInfo.peerData.pkgName, in TransProxyUnpackHandshakeAckMsg()
736 !GetJsonObjectStringItem(root, JSON_KEY_PKG_NAME, appInfo->peerData.pkgName, in TransProxyUnpackNormalHandshakeMsg()
738 !GetJsonObjectStringItem(root, JSON_KEY_SESSION_KEY, sessionKey, keyLen)) { in TransProxyUnpackNormalHandshakeMsg()
779 if (!GetJsonObjectStringItem(root, JSON_KEY_REQUEST_ID, appInfo->reqId, REQ_ID_SIZE_MAX)) { in TransProxyUnpackAuthHandshakeMsg()
783 if (!GetJsonObjectStringItem(root, JSON_KEY_PKG_NAME, in TransProxyUnpackAuthHandshakeMsg()
793 if (!GetJsonObjectStringItem(root, JSON_KEY_SESSION_KEY, sessionKey, keyLen)) { in TransProxyUnpackInnerHandshakeMsg()
818 !GetJsonObjectStringItem(root, JSON_KEY_DEVICE_ID, appInfo->peerData.deviceId, in TransProxyUnpackHandshakeMsg()
820 !GetJsonObjectStringItem(root, JSON_KEY_SRC_BUS_NAME, appInfo->peerData.sessionName, in TransProxyUnpackHandshakeMsg()
822 !GetJsonObjectStringItem(root, JSON_KEY_DST_BUS_NAME, appInfo->myData.sessionName, in TransProxyUnpackHandshakeMsg()
[all …]
/ohos5.0/foundation/communication/dsoftbus/core/common/security/permission/common/
H A Dpermission_entry.c197 if (GetJsonObjectStringItem(object, APP_INFO_TYPE_STR, mapKey, TEMP_STR_MAX_LEN)) { in ProcessAppInfo()
205 if (GetJsonObjectStringItem(object, APP_INFO_UID_STR, mapKey, TEMP_STR_MAX_LEN)) { in ProcessAppInfo()
208 if (GetJsonObjectStringItem(object, APP_INFO_ACTION_STR, mapKey, TEMP_STR_MAX_LEN)) { in ProcessAppInfo()
250 …if (!GetJsonObjectStringItem(object, SESSION_NAME_STR, permissionEntry->sessionName, SESSION_NAME_… in ProcessPermissionEntry()
254 if (GetJsonObjectStringItem(object, REGEXP_STR, mapKey, TEMP_STR_MAX_LEN)) { in ProcessPermissionEntry()
257 if (GetJsonObjectStringItem(object, DEVID_STR, mapKey, TEMP_STR_MAX_LEN)) { in ProcessPermissionEntry()
260 if (GetJsonObjectStringItem(object, SEC_LEVEL_STR, mapKey, TEMP_STR_MAX_LEN)) { in ProcessPermissionEntry()
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/
H A Dauth_net_ledger_mock.h63 virtual bool GetJsonObjectStringItem(const cJSON *json, const char * const string, char *target,
99 …MOCK_METHOD(bool, GetJsonObjectStringItem, (const cJSON *json, const char * const string, char *ta…
H A Dauth_net_ledger_mock.cpp173 bool GetJsonObjectStringItem(const cJSON *json, const char * const string, char *target, in GetJsonObjectStringItem() function
176 return GetNetLedgerInterface()->GetJsonObjectStringItem(json, string, target, targetLen); in GetJsonObjectStringItem()
H A Dauth_hichain_test.cpp92 EXPECT_CALL(ledgermock, GetJsonObjectStringItem)
218 EXPECT_CALL(ledgermock, GetJsonObjectStringItem)
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/json_utils/fuzztest/jsonutils_fuzzer/
H A Djsonutils_fuzzer.cpp38 GetJsonObjectStringItem(object, data, name, sizeof(name)); in DoJsonUtilsFuzz()
/ohos5.0/foundation/communication/dsoftbus/core/common/include/
H A Dsoftbus_json_utils.h32 bool GetJsonObjectStringItem(const cJSON *json, const char * const string, char *target, uint32_t t…
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/
H A Dauth_hichain_adapter.c179 if (!GetJsonObjectStringItem(devItem, AUTH_ID, authId, UDID_BUF_LEN)) { in IsTrustedDeviceInAGroup()
235 if (!GetJsonObjectStringItem(groupItem, GROUP_ID, groupId, UDID_BUF_LEN)) { in HasTrustedRelationWithLocalDevice()
H A Dauth_hichain.c359 if (!GetJsonObjectStringItem(msg, FIELD_GROUP_ID, groupInfo->groupId, GROUPID_BUF_LEN)) { in ParseGroupInfo()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/
H A Dtrans_tcp_direct_json.c91 !GetJsonObjectStringItem(json, P2P_IP, ip, ipLen)) { in VerifyP2pUnPack()
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/json_utils/uttest/
H A Dsoftbus_json_utils_test.cpp154 ret = GetJsonObjectStringItem(nullptr, JSON_KEY1, result, ARRAY_LEN);
156 ret = GetJsonObjectStringItem(json, nullptr, result, ARRAY_LEN);
158 ret = GetJsonObjectStringItem(json, JSON_KEY1, nullptr, ARRAY_LEN);
160 ret = GetJsonObjectStringItem(json, JSON_KEY1, result, 0); // 0 is less then ARRAY_LEN
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/session/src/
H A Dclient_trans_session_service.c316 if (GetJsonObjectStringItem(obj, "ETH_IP", addrInfo->info.ip.ip, IP_STR_MAX_LEN) && in ConvertAddrStr()
325 if (GetJsonObjectStringItem(obj, "WIFI_IP", addrInfo->info.ip.ip, IP_STR_MAX_LEN) && in ConvertAddrStr()
334 if (GetJsonObjectStringItem(obj, "BR_MAC", addrInfo->info.br.brMac, BT_MAC_LEN)) { in ConvertAddrStr()
339 if (GetJsonObjectStringItem(obj, "BLE_MAC", addrInfo->info.ble.bleMac, BT_MAC_LEN)) { in ConvertAddrStr()
341 if (GetJsonObjectStringItem(obj, "deviceId", udidHash, UDID_HASH_LEN)) { in ConvertAddrStr()
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/
H A Dlnn_topo_manager.c477 if (!GetJsonObjectStringItem(item, JSON_KEY_UDID, udid, UDID_BUF_LEN) || in ProcessTopoUpdateInfo()
478 !GetJsonObjectStringItem(item, JSON_KEY_PEER_UDID, peerUdid, UDID_BUF_LEN)) { in ProcessTopoUpdateInfo()
H A Dlnn_network_info.c451 if (!GetJsonObjectStringItem(subItem, "IF", interface, sizeof(interface))) { in IsSupportApCoexist()
H A Dlnn_net_builder.c829 !GetJsonObjectStringItem(json, JSON_KEY_NODE_ADDR, addr->nodeAddr, SHORT_ADDRESS_MAX_LEN) || in LnnUnpackNodeAddr()
/ohos5.0/foundation/communication/dsoftbus/core/common/json_utils/
H A Dsoftbus_json_utils.c49 bool GetJsonObjectStringItem(const cJSON *json, const char * const string, char *target, in GetJsonObjectStringItem() function
/ohos5.0/foundation/communication/dsoftbus/core/connection/ble/src/
H A Dsoftbus_conn_ble_connection.c684 if (!GetJsonObjectStringItem(json, BASIC_INFO_KEY_DEVID, baseInfo->devId, DEVID_BUFF_LEN) || in ParsePeerBasicInfoInner()
/ohos5.0/foundation/communication/dsoftbus/core/discovery/ble/softbus_ble/src/
H A Ddisc_ble.c680 …if (!GetJsonObjectStringItem(json, g_capabilityMap[CASTPLUS_CAPABILITY_BITMAP].capability, custDat… in DiscBleGetCustData()