/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/src/ |
H A D | trans_auth_message.c | 40 !AddStringToJsonObject(msg, "DEVICE_ID", appInfo->myData.deviceId) || in TransAuthChannelMsgPack() 41 !AddStringToJsonObject(msg, "PEER_NETWORK_ID", appInfo->peerNetWorkId) || in TransAuthChannelMsgPack() 42 !AddStringToJsonObject(msg, "PKG_NAME", appInfo->myData.pkgName) || in TransAuthChannelMsgPack() 43 !AddStringToJsonObject(msg, "SRC_BUS_NAME", appInfo->myData.sessionName) || in TransAuthChannelMsgPack() 44 !AddStringToJsonObject(msg, "DST_BUS_NAME", appInfo->peerData.sessionName) || in TransAuthChannelMsgPack() 45 !AddStringToJsonObject(msg, "REQ_ID", appInfo->reqId) || in TransAuthChannelMsgPack() 53 !AddStringToJsonObject(msg, "LOCAL_HML_RAW_IP", appInfo->myData.addr) || in TransAuthChannelMsgPack() 54 !AddStringToJsonObject(msg, "PEER_HML_RAW_IP", appInfo->peerData.addr)) { in TransAuthChannelMsgPack() 122 !AddStringToJsonObject(obj, "ERR_DESC", errMsg)) { in TransAuthChannelErrorPack()
|
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/statistics/instant/ |
H A D | wifi_statistic.cpp | 68 (void)AddStringToJsonObject(staJson, "Name", wifiLinkedInfo.ssid.c_str()); in GetStaInfo() 69 (void)AddStringToJsonObject(staJson, "Mac", in GetStaInfo() 111 (void)AddStringToJsonObject(stationJson, "Name", stationList[i].deviceName.c_str()); in GetSoftApInfo() 112 (void)AddStringToJsonObject(stationJson, "Mac", in GetSoftApInfo() 144 (void)AddStringToJsonObject(goJson, "Name", groupInfo.GetOwner().GetDeviceName().c_str()); in GetP2PInfo() 145 (void)AddStringToJsonObject(goJson, "Mac", in GetP2PInfo() 156 (void)AddStringToJsonObject(gcJson, "Name", gcList[i].GetDeviceName().c_str()); in GetP2PInfo() 157 (void)AddStringToJsonObject(gcJson, "Mac", in GetP2PInfo()
|
H A D | bt_statistic.cpp | 105 (void)AddStringToJsonObject(deviceJson, "Name", devices[i].GetDeviceName().c_str()); in AddDevicesToArray() 106 (void)AddStringToJsonObject(deviceJson, "Mac", in AddDevicesToArray() 110 (void)AddStringToJsonObject(deviceJson, "IsPlaying", in AddDevicesToArray() 113 (void)AddStringToJsonObject(deviceJson, "IsPlaying", in AddDevicesToArray() 116 (void)AddStringToJsonObject(deviceJson, "ScoState", in AddDevicesToArray() 119 (void)AddStringToJsonObject(deviceJson, "ScoState", in AddDevicesToArray()
|
H A D | instant_statistics.cpp | 96 (void)AddStringToJsonObject(json, key, WifiDirectAnonymizeDeviceId(str).c_str()); in InstPackAndAnonymizeStringIfNotNull() 98 (void)AddStringToJsonObject(json, key, WifiDirectAnonymizeMac(str).c_str()); in InstPackAndAnonymizeStringIfNotNull() 799 (void)AddStringToJsonObject(channelJson, "socketName", channelInfo->socketName.c_str()); in InstPackChannelInfo()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/udp_negotiation/src/ |
H A D | trans_udp_negotiation_exchange.c | 179 (void)AddStringToJsonObject(msg, "MY_IP", appInfo->myData.addr); in TransPackRequestUdpInfo() 186 (void)AddStringToJsonObject(msg, "MY_IP", appInfo->myData.addr); in TransPackRequestUdpInfo() 200 (void)AddStringToJsonObject(msg, "SESSION_KEY", encodeSessionKey); in TransPackRequestUdpInfo() 211 (void)AddStringToJsonObject(msg, "BUS_NAME", appInfo->peerData.sessionName); in TransPackRequestUdpInfo() 212 (void)AddStringToJsonObject(msg, "CLIENT_BUS_NAME", appInfo->myData.sessionName); in TransPackRequestUdpInfo() 213 (void)AddStringToJsonObject(msg, "GROUP_ID", appInfo->groupId); in TransPackRequestUdpInfo() 214 (void)AddStringToJsonObject(msg, "PKG_NAME", appInfo->myData.pkgName); in TransPackRequestUdpInfo() 231 (void)AddStringToJsonObject(msg, "MY_IP", appInfo->myData.addr); in TransPackReplyUdpInfo() 241 (void)AddStringToJsonObject(msg, "PKG_NAME", appInfo->myData.pkgName); in TransPackReplyUdpInfo() 259 (void)AddStringToJsonObject(msg, ERR_DESC, errDesc); in TransPackReplyErrInfo()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/auth_channel/ |
H A D | trans_auth_message_test.cpp | 114 res = AddStringToJsonObject(msg, "DEVICE_ID", g_deviceId); 122 res = AddStringToJsonObject(msg, "PKG_NAME", g_pkgName); 129 res = AddStringToJsonObject(msg, "SRC_BUS_NAME", g_sessionName); 136 res = AddStringToJsonObject(msg, "DST_BUS_NAME", g_sessionName); 144 res = AddStringToJsonObject(msg, "REQ_ID", g_reqId); 172 res = AddStringToJsonObject(msg, "ERR_DESC", g_errMsg);
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/common/src/ |
H A D | softbus_message_open_channel.c | 43 !AddStringToJsonObject(json, ERR_DESC, errDesc)) { in PackError() 87 if (!AddStringToJsonObject(json, FIRST_DATA, (char *)encodeFastData)) { in PackFirstData() 102 !AddStringToJsonObject(json, BUS_NAME, appInfo->peerData.sessionName) || in JsonObjectPackRequestEx() 103 !AddStringToJsonObject(json, GROUP_ID, appInfo->groupId) || in JsonObjectPackRequestEx() 106 !AddStringToJsonObject(json, SESSION_KEY, (char *)encodeSessionKey) || in JsonObjectPackRequestEx() 112 …if (appInfo->myData.apiVersion != API_V1 && (!AddStringToJsonObject(json, PKG_NAME, appInfo->myDat… in JsonObjectPackRequestEx() 113 !AddStringToJsonObject(json, CLIENT_BUS_NAME, appInfo->myData.sessionName) || in JsonObjectPackRequestEx() 114 !AddStringToJsonObject(json, AUTH_STATE, authState) || in JsonObjectPackRequestEx() 300 … TRANS_CHECK_AND_RETURN_RET_LOGE(AddStringToJsonObject(json, DEVICE_ID, appInfo->myData.deviceId), in AddItemsToJsonObject() 334 if (!AddStringToJsonObject(json, PKG_NAME, appInfo->myData.pkgName) || in PackReply() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
H A D | trans_tcp_direct_json.c | 44 !AddStringToJsonObject(json, ERR_DESC, errDesc)) { in VerifyP2pPackError() 65 AddStringToJsonObject(json, PEER_IP, peerIp); in VerifyP2pPack() 68 !AddStringToJsonObject(json, P2P_IP, myIp) || in VerifyP2pPack()
|
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/proxy/src/ |
H A D | softbus_proxychannel_message.c | 435 !AddStringToJsonObject(root, JSON_KEY_GROUP_ID, appInfo->groupId) || in PackHandshakeMsgForNormal() 436 !AddStringToJsonObject(root, JSON_KEY_PKG_NAME, appInfo->myData.pkgName) || in PackHandshakeMsgForNormal() 492 !AddStringToJsonObject(root, JSON_KEY_IDENTITY, info->identity) || in TransProxyPackHandshakeMsg() 493 !AddStringToJsonObject(root, JSON_KEY_DEVICE_ID, appInfo->myData.deviceId) || in TransProxyPackHandshakeMsg() 508 if (!AddStringToJsonObject(root, JSON_KEY_REQUEST_ID, appInfo->reqId)) { in TransProxyPackHandshakeMsg() 511 if (!AddStringToJsonObject(root, JSON_KEY_PKG_NAME, appInfo->myData.pkgName)) { in TransProxyPackHandshakeMsg() 548 if (!AddStringToJsonObject(root, JSON_KEY_IDENTITY, chan->identity) || in TransProxyPackHandshakeAckMsg() 549 !AddStringToJsonObject(root, JSON_KEY_DEVICE_ID, appInfo->myData.deviceId)) { in TransProxyPackHandshakeAckMsg() 563 !AddStringToJsonObject(root, JSON_KEY_PKG_NAME, appInfo->myData.pkgName) || in TransProxyPackHandshakeAckMsg() 575 if (!AddStringToJsonObject(root, JSON_KEY_PKG_NAME, appInfo->myData.pkgName)) { in TransProxyPackHandshakeAckMsg() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_p2p_info.c | 58 if (!AddStringToJsonObject(json, JSON_KEY_WIFI_CFG, info->wifiCfg)) { in LnnGetP2pInfoMsg() 63 if (!AddStringToJsonObject(json, JSON_KEY_CHAN_LIST_5G, info->chanList5g)) { in LnnGetP2pInfoMsg() 73 if (!AddStringToJsonObject(json, JSON_KEY_P2P_MAC, info->p2pMac)) { in LnnGetP2pInfoMsg() 78 if (!AddStringToJsonObject(json, JSON_KEY_GO_MAC, info->goMac)) { in LnnGetP2pInfoMsg() 98 if (!AddStringToJsonObject(json, JSON_KEY_WIFIDIRECT_ADDR, info->wifiDirectAddr)) { in LnnGetWifiDirectAddrMsg()
|
H A D | lnn_topo_manager.c | 272 if (!AddStringToJsonObject(item, JSON_KEY_UDID, udid) || in PackTopoInfo() 273 !AddStringToJsonObject(item, JSON_KEY_PEER_UDID, peerUdid)) { in PackTopoInfo()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/common/softbus_message_open_channel_test/ |
H A D | softbus_message_open_channel_test.cpp | 94 if (!AddStringToJsonObject(msg, "DEVICE_ID", appInfo->myData.deviceId) || in TestTransAuthChannelMsgPack() 95 !AddStringToJsonObject(msg, "PKG_NAME", appInfo->myData.pkgName) || in TestTransAuthChannelMsgPack() 96 !AddStringToJsonObject(msg, "SRC_BUS_NAME", appInfo->myData.sessionName) || in TestTransAuthChannelMsgPack() 98 !AddStringToJsonObject(msg, "DST_BUS_NAME", appInfo->peerData.sessionName) || in TestTransAuthChannelMsgPack() 99 …!AddStringToJsonObject(msg, "FIRST_DATA", reinterpret_cast<const char *>(appInfo->fastTransData)) … in TestTransAuthChannelMsgPack()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/authentication/unittest/ |
H A D | auth_net_ledger_mock.cpp | 215 if (!AddStringToJsonObject(obj, CMD_TAG.c_str(), CMD_GET_AUTH_INFO.c_str())) { in Pack() 220 if (!AddStringToJsonObject(obj, CMD_TAG.c_str(), CMD_RET_AUTH_INFO.c_str())) { in Pack() 225 if (!AddStringToJsonObject(obj, DATA_TAG.c_str(), uuid) || in Pack() 226 !AddStringToJsonObject(obj, DEVICE_ID_TAG.c_str(), udid) || in Pack()
|
/ohos5.0/foundation/communication/dsoftbus/core/authentication/src/ |
H A D | auth_hichain.c | 74 if (!AddStringToJsonObject(msg, FIELD_PEER_CONN_DEVICE_ID, udid) || in GenDeviceLevelParam() 75 !AddStringToJsonObject(msg, FIELD_SERVICE_PKG_NAME, AUTH_APPID) || in GenDeviceLevelParam() 86 if (!AddStringToJsonObject(msg, FIELD_UID_HASH, uid)) { in GenDeviceLevelParam() 291 !AddStringToJsonObject(msg, FIELD_SERVICE_PKG_NAME, AUTH_APPID) || in OnRequest() 292 !AddStringToJsonObject(msg, FIELD_PEER_CONN_DEVICE_ID, udid) || in OnRequest() 293 !AddStringToJsonObject(msg, FIELD_DEVICE_ID, localUdid) || in OnRequest()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/json_utils/uttest/ |
H A D | softbus_json_utils_test.cpp | 152 bool ret = AddStringToJsonObject(json, JSON_KEY1, INPUT_STRING); 615 bool ret = AddStringToJsonObject(nullptr, JSON_KEY1, INPUT_STRING); 617 ret = AddStringToJsonObject(json, nullptr, INPUT_STRING); 619 ret = AddStringToJsonObject(json, JSON_KEY1, nullptr); 621 ret = AddStringToJsonObject(json, JSON_KEY1, INPUT_STRING);
|
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/statistics/ |
H A D | trans_network_statistics.c | 280 if (!AddStringToJsonObject(json, "laneId", laneId) || in PackNetworkStatistics() 281 !AddStringToJsonObject(json, "localUdid", info->resource.localUdid) || in PackNetworkStatistics() 282 !AddStringToJsonObject(json, "peerUdid", info->resource.peerUdid)) { in PackNetworkStatistics()
|
/ohos5.0/foundation/communication/dsoftbus/sdk/transmission/trans_channel/statistics/src/ |
H A D | client_trans_statistics.c | 153 if (!AddStringToJsonObject(json, "laneId", laneId) || in PackStatistics() 154 !AddStringToJsonObject(json, "socketName", resource->socketName)) { in PackStatistics()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/common/json_utils/fuzztest/jsonutils_fuzzer/ |
H A D | jsonutils_fuzzer.cpp | 47 AddStringToJsonObject(object, "name", data); in DoJsonUtilsFuzz()
|
/ohos5.0/foundation/communication/dsoftbus/core/common/include/ |
H A D | softbus_json_utils.h | 48 bool AddStringToJsonObject(cJSON *json, const char * const string, const char *value);
|
/ohos5.0/foundation/communication/dsoftbus/tests/sdk/transmission/session/ |
H A D | client_trans_session_test.cpp | 426 bool res = AddStringToJsonObject(msg, "ETH_IP", TRANS_TEST_CONN_IP); 436 res = AddStringToJsonObject(msg, "WIFI_IP", TRANS_TEST_CONN_IP); 446 res = AddStringToJsonObject(msg, "BR_MAC", TRANS_TEST_BR_MAC); 454 res = AddStringToJsonObject(msg, "BLE_MAC", TRANS_TEST_BR_MAC); 493 bool res = AddStringToJsonObject(msg, "BLE_MAC", TRANS_TEST_BR_MAC); 508 res = AddStringToJsonObject(msg, "WIFI_IP", TRANS_TEST_CONN_IP);
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/proxy_channel/ |
H A D | softbus_proxychannel_message_test.cpp | 1152 (void)AddStringToJsonObject(msg, "PKG_NAME", TEST_PKGNAME); 1155 (void)AddStringToJsonObject(msg, "SESSION_KEY", TEST_SESSION_KEY); 1194 (void)AddStringToJsonObject(msg, "REQUEST_ID", TEST_REQUEST_ID); 1197 (void)AddStringToJsonObject(msg, "PKG_NAME", TEST_PKGNAME); 1216 (void)AddStringToJsonObject(msg, "SESSION_KEY", TEST_SESSION_KEY);
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_net_builder_deps_mock.cpp | 195 bool AddStringToJsonObject(cJSON *json, const char * const string, const char *value) in AddStringToJsonObject() function 197 return GetNetBuilderDepsInterface()->AddStringToJsonObject(json, string, value); in AddStringToJsonObject()
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/bus_center/lnn/net_builder/include/ |
H A D | lnn_net_builder_deps_mock.h | 91 virtual bool AddStringToJsonObject(cJSON *json, const char * const string, const char *value); 231 MOCK_METHOD3(AddStringToJsonObject, bool (cJSON *, const char * const, const char *));
|
/ohos5.0/foundation/communication/dsoftbus/core/common/json_utils/ |
H A D | softbus_json_utils.c | 194 bool AddStringToJsonObject(cJSON *json, const char * const string, const char *value) in AddStringToJsonObject() function
|
/ohos5.0/foundation/communication/dsoftbus/core/discovery/ble/softbus_ble/src/ |
H A D | disc_ble_utils.c | 313 if (!AddStringToJsonObject(custJson, g_capabilityMap[CASTPLUS_CAPABILITY_BITMAP].capability, in ParseCustData()
|