/ohos5.0/base/customization/enterprise_device_management/interfaces/inner_api/plugin_kits/src/utils/ |
H A D | cjson_serializer.cpp | 31 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 D | cjson_serializer_test.cpp | 48 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 D | password_policy_serializer.cpp | 59 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 D | array_usb_device_type_serializer.cpp | 106 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 D | trans_auth_message.c | 110 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 D | trans_auth_manager.c | 865 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 D | trans_auth_channel_test.cpp | 749 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 D | trans_auth_message_test.cpp | 82 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 D | trans_auth_message.h | 32 int32_t TransAuthChannelErrorPack(int32_t errcode, const char *errMsg, char *cJsonStr, int32_t maxL…
|