Home
last modified time | relevance | path

Searched refs:cJsonStr (Results 1 – 9 of 9) sorted by relevance

/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/
H A Dcjson_serializer.cpp31 char *cJsonStr = cJSON_Print(dataObj); in Serialize() local
32 if (cJsonStr != nullptr) { in Serialize()
33 jsonString = std::string(cJsonStr); in Serialize()
34 cJSON_free(cJsonStr); in Serialize()
/ohos5.0/base/customization/enterprise_device_management/test/unittest/interface/plugin_kits/utils/
H A Dcjson_serializer_test.cpp48 char* cJsonStr = cJSON_Print(root); variable
49 if (cJsonStr != nullptr) {
50 jsonString = std::string(cJsonStr);
51 cJSON_free(cJsonStr);
/ohos5.0/base/customization/enterprise_device_management/services/edm_plugin/src/utils/
H A Dpassword_policy_serializer.cpp59 char *cJsonStr = cJSON_Print(root); in Serialize() local
60 if (cJsonStr != nullptr) { in Serialize()
61 jsonString = std::string(cJsonStr); in Serialize()
62 cJSON_free(cJsonStr); in Serialize()
H A Darray_usb_device_type_serializer.cpp106 char *cJsonStr = cJSON_Print(root); in Serialize() local
107 if (cJsonStr != nullptr) { in Serialize()
108 jsonString = std::string(cJsonStr); in Serialize()
109 cJSON_free(cJsonStr); in Serialize()
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/src/
H A Dtrans_auth_message.c110 int32_t TransAuthChannelErrorPack(int32_t errcode, const char *errMsg, char *cJsonStr, int32_t maxL… in TransAuthChannelErrorPack() argument
112 if (errMsg == NULL || cJsonStr == NULL) { in TransAuthChannelErrorPack()
133 if (memcpy_s(cJsonStr, maxLen, data, strlen(data)) != EOK) { in TransAuthChannelErrorPack()
H A Dtrans_auth_manager.c865 char cJsonStr[ERR_MSG_MAX_LEN] = {0}; in TransPostAuthChannelErrMsg() local
866 int32_t ret = TransAuthChannelErrorPack(errcode, errMsg, cJsonStr, ERR_MSG_MAX_LEN); in TransPostAuthChannelErrMsg()
875 .len = strlen(cJsonStr) + 1, in TransPostAuthChannelErrMsg()
876 .data = (const uint8_t *)cJsonStr, in TransPostAuthChannelErrMsg()
/ohos5.0/foundation/communication/dsoftbus/tests/core/transmission/trans_channel/auth_channel/
H A Dtrans_auth_channel_test.cpp749 char cJsonStr[ERR_MSG_MAX_LEN] = {0}; variable
751 ret = TransAuthChannelErrorPack(SOFTBUS_INVALID_PARAM, g_errMsg, cJsonStr, ERR_MSG_MAX_LEN);
753 OnRecvAuthChannelRequest(TRANS_TEST_AUTH_ID, cJsonStr, strlen(cJsonStr));
1064 char cJsonStr[ERR_MSG_MAX_LEN] = {0}; variable
1066 ret = TransAuthChannelErrorPack(SOFTBUS_INVALID_PARAM, g_errMsg, cJsonStr, ERR_MSG_MAX_LEN);
1068 OnRecvAuthChannelReply(TRANS_TEST_AUTH_ID, cJsonStr, strlen(cJsonStr));
1073 OnRecvAuthChannelReply(TRANS_TEST_AUTH_ID, cJsonStr, strlen(cJsonStr));
1076 OnRecvAuthChannelReply(TRANS_TEST_AUTH_ID, cJsonStr, strlen(cJsonStr));
H A Dtrans_auth_message_test.cpp82 char cJsonStr[ERR_MSG_MAX_LEN] = {0}; variable
83 ret = TransAuthChannelErrorPack(SOFTBUS_INVALID_PARAM, NULL, cJsonStr, ERR_MSG_MAX_LEN);
/ohos5.0/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/include/
H A Dtrans_auth_message.h32 int32_t TransAuthChannelErrorPack(int32_t errcode, const char *errMsg, char *cJsonStr, int32_t maxL…