/foundation/distributedhardware/device_manager/services/implementation/src/authentication/ |
H A D | auth_message_processor.cpp | 43 void AuthMessageProcessor::GetJsonObj(nlohmann::json &jsonObj) in GetJsonObj() 86 nlohmann::json jsonObj; in CreateAuthRequestMessage() 92 nlohmann::json jsonThumbnailObj; in CreateAuthRequestMessage() 112 nlohmann::json jsonObj; in CreateSimpleMessage() 144 void AuthMessageProcessor::CreatePublicKeyMessageExt(nlohmann::json &json) in CreatePublicKeyMessageExt() argument 146 json[TAG_PUBLICKEY] = authResponseContext_->publicKey; in CreatePublicKeyMessageExt() 149 void AuthMessageProcessor::CreateResponseAuthMessageExt(nlohmann::json &json) in CreateResponseAuthMessageExt() argument 151 json[TAG_REPL in CreateResponseAuthMessageExt() 157 CreateNegotiateMessage(nlohmann::json &json) CreateNegotiateMessage() argument 186 CreateRespNegotiateMessage(nlohmann::json &json) CreateRespNegotiateMessage() argument 219 CreateSyncGroupMessage(nlohmann::json &json) CreateSyncGroupMessage() argument 225 CreateResponseAuthMessage(nlohmann::json &json) CreateResponseAuthMessage() argument 253 CreateResponseFinishMessage(nlohmann::json &json) CreateResponseFinishMessage() argument 302 ParsePublicKeyMessageExt(nlohmann::json &json) ParsePublicKeyMessageExt() argument 309 ParseAuthResponseMessageExt(nlohmann::json &json) ParseAuthResponseMessageExt() argument 326 ParseResponseFinishMessage(nlohmann::json &json) ParseResponseFinishMessage() argument 336 GetAuthReqMessage(nlohmann::json &json) GetAuthReqMessage() argument 369 ParseAuthRequestMessage(nlohmann::json &json) ParseAuthRequestMessage() argument 411 ParseAuthResponseMessage(nlohmann::json &json) ParseAuthResponseMessage() argument 444 ParsePkgNegotiateMessage(const nlohmann::json &json) ParsePkgNegotiateMessage() argument 494 ParseNegotiateMessage(const nlohmann::json &json) ParseNegotiateMessage() argument 531 ParseRespNegotiateMessage(const nlohmann::json &json) ParseRespNegotiateMessage() argument [all...] |
/foundation/bundlemanager/bundle_framework/interfaces/inner_api/appexecfwk_base/include/ |
H A D | json_serializer.h | 32 #include "nlohmann/json.hpp" 42 * form_json and to_json is global static overload method, which need callback by json library, 45 void to_json(nlohmann::json &jsonObject, const CustomizeData &customizeData); 46 void from_json(const nlohmann::json &jsonObject, CustomizeData &customizeData); 47 void to_json(nlohmann::json &jsonObject, const MetaData &metaData); 48 void from_json(const nlohmann::json &jsonObject, MetaData &metaData); 49 void to_json(nlohmann::json &jsonObject, const HnpPackage &hnpPackage); 50 void from_json(const nlohmann::json &jsonObject, HnpPackage &hnpPackage); 51 void to_json(nlohmann::json &jsonObject, const Metadata &metadata); 52 void from_json(const nlohmann::json [all...] |
/foundation/graphic/graphic_3d/lume/scenewidgetplugin/plugin/src/ |
H A D | json_util.h | 27 #include <core/json/json.h> 33 return CORE_NS::json::unescape(str); in JsonUnescape() 38 const CORE_NS::json::value& jsonData, const BASE_NS::string_view element, BASE_NS::string& error, T& output) in SafeGetJsonValue() 56 const CORE_NS::json::value& jsonData, const BASE_NS::string_view element, BASE_NS::string& error, T& output) in SafeGetJsonValue() 70 inline bool FromJson(const CORE_NS::json::value& jsonIn, T& output) in FromJson() 80 inline bool FromJson(const CORE_NS::json::value& jsonIn, T& output) in FromJson() 89 inline bool FromJson(const CORE_NS::json::value& jsonIn, bool& output) in FromJson() 98 inline bool FromJson(const CORE_NS::json::value& jsonIn, BASE_NS::Uid& output) in FromJson() 109 inline bool FromJsonArray(const CORE_NS::json 180 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 189 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 199 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 209 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 220 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 231 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 243 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local [all...] |
/foundation/communication/dsoftbus/tests/core/common/json_utils/uttest/ |
H A D | softbus_json_utils_test.cpp | 54 * @tc.desc: When the json parameter is nullptr, the return value is SOFTBUS_INVALID_PARAM
73 cJSON *json = cJSON_CreateObject();
in HWTEST_F() local 75 int32_t ret = GetStringItemByJsonObject(json, nullptr, target, ARRAY_LEN);
in HWTEST_F() 77 cJSON_Delete(json);
in HWTEST_F() 88 cJSON *json = cJSON_CreateObject();
in HWTEST_F() local 89 int32_t ret = GetStringItemByJsonObject(json, "string", nullptr, ARRAY_LEN);
in HWTEST_F() 91 cJSON_Delete(json);
in HWTEST_F() 96 * @tc.desc: Test returns SOFTBUS_PARSE_JSON_ERR when the specified string does not exist in the json object
102 cJSON *json = cJSON_CreateObject();
in HWTEST_F() local 104 int32_t ret = GetStringItemByJsonObject(json, "strin in HWTEST_F() 117 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 134 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 150 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 173 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 210 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 225 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 239 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 254 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 284 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 299 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 313 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 328 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 345 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 382 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 397 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 411 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 427 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 443 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 473 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 487 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 502 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 517 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 534 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 571 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 585 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 600 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 614 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 634 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 652 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 684 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 699 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 731 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 745 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 759 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 775 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 803 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 818 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 834 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 851 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 884 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 900 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 916 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 933 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 963 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 978 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 992 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 1007 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 1023 cJSON *json = cJSON_CreateObject(); HWTEST_F() local [all...] |
/foundation/distributedhardware/device_manager/services/implementation/include/authentication/ |
H A D | auth_message_processor.h | 24 #include "nlohmann/json.hpp" 92 void CreateResponseAuthMessageExt(nlohmann::json &json); 93 void ParseAuthResponseMessageExt(nlohmann::json &json); 96 std::string CreateRequestAuthMessage(nlohmann::json &json); 97 void CreateNegotiateMessage(nlohmann::json &json); 98 void CreateRespNegotiateMessage(nlohmann::json [all...] |
/foundation/communication/netmanager_ext/test/vpnmanager/unittest/vpn_manager_ext_test/ |
H A D | networkvpn_service_ext_test.cpp | 102 cJSON *json = cJSON_CreateObject(); in HWTEST_F() local 103 if (json != nullptr) { in HWTEST_F() 104 instance_->ConvertNetAddrToJson(sourAddr, json); in HWTEST_F() 105 instance_->ConvertNetAddrToConfig(destAddr, json); in HWTEST_F() 106 cJSON_Delete(json); in HWTEST_F() 107 json = nullptr; in HWTEST_F() 115 cJSON *json = cJSON_CreateObject(); in HWTEST_F() local 116 if (json != nullptr) { in HWTEST_F() 117 instance_->ConvertNetAddrToConfig(destAddr, json); in HWTEST_F() 118 cJSON_Delete(json); in HWTEST_F() 128 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 149 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 172 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 184 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 205 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 225 cJSON *json = cJSON_CreateObject(); HWTEST_F() local [all...] |
/foundation/graphic/graphic_3d/lume/LumeEcsSerializer/Util/include/util/ |
H A D | json_util.h | 28 #include <core/json/json.h> 36 return CORE_NS::json::unescape(str); in JsonUnescape() 41 const CORE_NS::json::value& jsonData, const ::string_view element, ::string& error, T& output) in SafeGetJsonValue() 59 const CORE_NS::json::value& jsonData, const ::string_view element, ::string& error, T& output) in SafeGetJsonValue() 73 inline bool FromJson(const CORE_NS::json::value& jsonIn, T& output) in FromJson() 83 inline bool FromJson(const CORE_NS::json::value& jsonIn, T& output) in FromJson() 92 inline bool FromJson(const CORE_NS::json::value& jsonIn, bool& output) in FromJson() 101 inline bool FromJson(const CORE_NS::json::value& jsonIn, ::Uid& output) in FromJson() 112 inline bool FromJsonArray(const CORE_NS::json 183 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 191 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 200 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 209 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 219 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 229 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local 240 CORE_NS::json::standalone_value json = CORE_NS::json::standalone_value::array(); ToJson() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_layout_property.cpp | 20 V2::ItemDivider ItemDividerFromJson(const std::unique_ptr<JsonValue>& json) in ItemDividerFromJson() argument 23 divider.strokeWidth = Dimension::FromString(json->GetString("strokeWidth")); in ItemDividerFromJson() 24 divider.startMargin = Dimension::FromString(json->GetString("startMargin")); in ItemDividerFromJson() 25 divider.endMargin = Dimension::FromString(json->GetString("endMargin")); in ItemDividerFromJson() 26 divider.color = Color::ColorFromString(json->GetString("color")); in ItemDividerFromJson() 31 void ListLayoutProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const in ToJsonValue() argument 33 LayoutProperty::ToJsonValue(json, filter); in ToJsonValue() 36 ScrollSnapPropToJsonValue(json, filter); in ToJsonValue() 39 json->PutExtAttr("space", propSpace_.value_or(Dimension(0, DimensionUnit::VP)).ToString().c_str(), filter); in ToJsonValue() 40 json in ToJsonValue() 83 ScrollSnapPropToJsonValue( std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ScrollSnapPropToJsonValue() argument 103 FromJson(const std::unique_ptr<JsonValue>& json) FromJson() argument [all...] |
/foundation/ability/ability_runtime/frameworks/simulator/ability_simulator/include/bundle_parser/ |
H A D | json_serializer.h | 24 #include "nlohmann/json.hpp" 29 * form_json and to_json is global static overload method, which need callback by json library, 32 void to_json(nlohmann::json &jsonObject, const CustomizeData &customizeData); 33 void to_json(nlohmann::json &jsonObject, const MetaData &metaData); 34 void to_json(nlohmann::json &jsonObject, const Metadata &metadata); 35 void to_json(nlohmann::json &jsonObject, const AbilityInfo &abilityInfo); 36 void from_json(const nlohmann::json &jsonObject, CustomizeData &customizeData); 37 void from_json(const nlohmann::json &jsonObject, MetaData &metaData); 38 void from_json(const nlohmann::json &jsonObject, Metadata &metadata); 39 void from_json(const nlohmann::json [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentloader/src/ |
H A D | component_loader_test.cpp | 459 cJSON *json = cJSON_CreateObject(); in HWTEST_F() local 460 if (json == nullptr) { in HWTEST_F() 463 cJSON_AddNumberToObject(json, COMP_NAME.c_str(), 4801); in HWTEST_F() 465 from_json(json, cfg); in HWTEST_F() 466 cJSON_Delete(json); in HWTEST_F() 479 cJSON *json = cJSON_CreateObject(); in HWTEST_F() local 480 if (json == nullptr) { in HWTEST_F() 483 cJSON_AddStringToObject(json, COMP_NAME.c_str(), "name"); in HWTEST_F() 484 cJSON_AddNumberToObject(json, COMP_TYPE.c_str(), 0x02); in HWTEST_F() 486 from_json(json, cf in HWTEST_F() 500 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 522 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 545 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 569 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 594 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 620 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 647 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 675 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 704 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 727 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 740 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 754 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 769 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 796 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 829 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 861 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 901 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 914 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 928 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 943 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 959 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 975 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 988 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 1002 cJSON *json = cJSON_CreateObject(); HWTEST_F() local 1017 cJSON *json = cJSON_CreateObject(); HWTEST_F() local [all...] |
/foundation/communication/dsoftbus/adapter/common/json/nlohmann/ |
H A D | softbus_adapter_json.cpp | 21 #include "nlohmann/json.hpp" 33 nlohmann::json *json = new (std::nothrow) nlohmann::json(); in JSON_CreateObject() local 34 if (json == nullptr) { in JSON_CreateObject() 40 obj->context = reinterpret_cast<void *>(json); in JSON_CreateObject() 50 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_Delete() local 51 if (json ! in JSON_Delete() 73 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_PrintUnformatted() local 100 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_Parse() local 125 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_AddBoolToObject() local 140 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_GetBoolFromOject() local 161 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_AddIntegerToObject() local 177 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_GetIntegerFromObject() local 239 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_AddStringToObject() local 254 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_GetStringFromOject() local 279 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_AddStringArrayToObject() local 298 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_GetStringArrayFromOject() local 338 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_AddBytesToObject() local 353 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_GetBytesFromObject() local 381 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); JSON_IsArrayExist() local [all...] |
/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
H A D | trans_tcp_direct_json.c | 36 cJSON *json = cJSON_CreateObject(); in VerifyP2pPackError() local 37 if (json == NULL) { in VerifyP2pPackError() 41 if (!AddNumberToJsonObject(json, MSG_CODE, code) || in VerifyP2pPackError() 42 !AddNumberToJsonObject(json, ERR_CODE, errCode) || in VerifyP2pPackError() 43 !AddStringToJsonObject(json, ERR_DESC, errDesc)) { in VerifyP2pPackError() 44 cJSON_Delete(json); in VerifyP2pPackError() 47 char *data = cJSON_PrintUnformatted(json); in VerifyP2pPackError() 48 cJSON_Delete(json); in VerifyP2pPackError() 58 cJSON *json = cJSON_CreateObject(); in VerifyP2pPack() local 59 if (json in VerifyP2pPack() 78 VerifyP2pUnPack(const cJSON *json, char *ip, uint32_t ipLen, int32_t *port) VerifyP2pUnPack() argument [all...] |
/foundation/communication/dsoftbus/core/common/dfx/statistics/include/ |
H A D | bt_statistic.h | 32 int32_t GetBtStatisticInfo(cJSON *json); 35 void GetGattClientDeviceInfo(cJSON *json); 36 void GetGattServerDeviceInfo(cJSON *json); 37 void GetBleAdvertiserDeviceInfo(cJSON *json); 38 void GetBleCentralDeviceInfo(cJSON *json); 39 void GetBleGattDeviceInfo(cJSON *json); 40 void GetA2dpSrcDeviceInfo(cJSON *json); 41 void GetA2dpSinkDeviceInfo(cJSON *json); 42 void GetAvrCTDeviceInfo(cJSON *json); 43 void GetAvrTGDeviceInfo(cJSON *json); [all...] |
/foundation/distributeddatamgr/relational_store/interfaces/inner_api/appdatafwk/include/ |
H A D | serializable.h | 25 #include <nlohmann/json.hpp> 32 using json = nlohmann::json; 33 using size_type = nlohmann::json::size_type; 35 API_EXPORT json Marshall() const; 39 json root; in Marshall() 50 API_EXPORT static json ToJson(const std::string &jsonStr); 52 virtual bool Marshal(json &node) const = 0; 53 virtual bool Unmarshal(const json &node) = 0; 54 API_EXPORT static bool GetValue(const json [all...] |
/foundation/distributedhardware/distributed_input/services/sink/transport/test/sinktransunittest/ |
H A D | distributed_input_sinktrans_test.h | 39 nlohmann::json jsonStr_; 40 nlohmann::json jsonStr1_; 41 nlohmann::json jsonStr2_; 42 nlohmann::json jsonStr3_; 43 nlohmann::json jsonStr4_; 44 nlohmann::json jsonStr5_; 45 nlohmann::json jsonStr6_; 46 nlohmann::json jsonStr7_; 47 nlohmann::json jsonStr8_; 48 nlohmann::json jsonStr9 [all...] |
/foundation/communication/dsoftbus/core/common/include/ |
H A D | softbus_json_utils.h | 30 int32_t GetStringItemByJsonObject(const cJSON *json, const char * const string, char *target, uint32_t targetLen); 32 bool GetJsonObjectStringItem(const cJSON *json, const char * const string, char *target, uint32_t targetLen); 34 bool GetJsonObjectNumber16Item(const cJSON *json, const char * const string, uint16_t *target); 36 bool GetJsonObjectNumberItem(const cJSON *json, const char * const string, int32_t *target); 38 bool GetJsonObjectSignedNumberItem(const cJSON *json, const char * const string, int32_t *target); 40 bool GetJsonObjectNumber64Item(const cJSON *json, const char * const string, int64_t *target); 42 bool GetJsonObjectSignedNumber64Item(const cJSON *json, const char * const string, int64_t *target); 44 bool GetJsonObjectDoubleItem(const cJSON *json, const char * const string, double *target); 46 bool GetJsonObjectBoolItem(const cJSON *json, const char * const string, bool *target); 48 bool AddStringToJsonObject(cJSON *json, cons [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | render_property.cpp | 79 auto json##name = JsonUtil::Create(true); \ 81 json##name->Put("x", prop##name->GetX().ToString().c_str()); \ 82 json##name->Put("y", prop##name->GetY().ToString().c_str()); \ 84 json##name->Put("x", "0.0px"); \ 85 json##name->Put("y", "0.0px"); \ 89 auto json##name = JsonUtil::Create(true); \ 91 json##name->Put("x", prop##name->GetX().ToString().c_str()); \ 92 json##name->Put("y", prop##name->GetY().ToString().c_str()); \ 94 json##name->Put("x", ""); \ 95 json##nam 98 ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValue() argument 124 ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValue() argument 216 ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValue() argument 245 ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValue() argument 260 ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValue() argument 281 ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValue() argument 310 ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValue() argument 335 ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValue() argument 385 ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValue() argument 402 ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValue() argument 416 ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValue() argument [all...] |
/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | render_property_test_ng.cpp | 105 auto json = JsonUtil::Create(true); in HWTEST_F() local 110 renderPositionProperty.ToJsonValue(json, filter); in HWTEST_F() 115 EXPECT_EQ(json->GetValue("position")->GetString("x"), ""); in HWTEST_F() 116 EXPECT_EQ(json->GetValue("position")->GetString("y"), ""); in HWTEST_F() 117 EXPECT_EQ(json->GetValue("offset")->GetString("x"), ZERO_STRING); in HWTEST_F() 118 EXPECT_EQ(json->GetValue("offset")->GetString("y"), ZERO_STRING); in HWTEST_F() 119 EXPECT_EQ(json->GetValue("markAnchor")->GetString("x"), ZERO_STRING); in HWTEST_F() 120 EXPECT_EQ(json->GetValue("markAnchor")->GetString("y"), ZERO_STRING); in HWTEST_F() 158 auto json = JsonUtil::Create(true); in HWTEST_F() local 164 graphicsProperty.ToJsonValue(json, filte in HWTEST_F() 188 auto json = JsonUtil::Create(true); HWTEST_F() local 262 auto json = JsonUtil::Create(true); HWTEST_F() local 296 auto json = JsonUtil::Create(true); HWTEST_F() local 324 auto json = JsonUtil::Create(true); HWTEST_F() local 357 auto json = JsonUtil::Create(true); HWTEST_F() local 399 auto json = JsonUtil::Create(true); HWTEST_F() local 448 auto json = JsonUtil::Create(true); HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/versioninfomanager/versioninfo/src/ |
H A D | version_info_test.cpp | 104 cJSON* json = cJSON_CreateObject(); in HWTEST_F() local 105 if (json == nullptr) { in HWTEST_F() 108 cJSON_AddStringToObject(json, DH_ID, "dh_id"); in HWTEST_F() 109 cJSON_AddStringToObject(json, DEV_ID, "dev_id"); in HWTEST_F() 110 cJSON_AddStringToObject(json, DEV_NAME, "dev_name"); in HWTEST_F() 111 cJSON_AddStringToObject(json, DEV_TYPE, "dev_type"); in HWTEST_F() 112 cJSON_AddStringToObject(json, DH_TYPE, "dh_type"); in HWTEST_F() 113 cJSON_AddStringToObject(json, DH_ATTRS, "dh_attrs"); in HWTEST_F() 114 char* cjson = cJSON_PrintUnformatted(json); in HWTEST_F() 116 cJSON_Delete(json); in HWTEST_F() 140 cJSON* json = cJSON_CreateObject(); HWTEST_F() local [all...] |
/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/serializable/ |
H A D | serializable.cpp | 19 Serializable::json Serializable::Marshall() const in Marshall() 21 json root; in Marshall() 28 json jsonObj = json::parse(jsonStr, nullptr, false); in Unmarshall() 34 jsonObj = json::parse(jsonStr.substr(1), nullptr, false); // drop first char to adapt A's value; in Unmarshall() 42 Serializable::json Serializable::ToJson(const std::string &jsonStr) in ToJson() 44 json jsonObj = json::parse(jsonStr, nullptr, false); in ToJson() 50 jsonObj = json::parse(jsonStr.substr(1), nullptr, false); // drop first char to adapt A's value; in ToJson() 60 if (!json in IsJson() [all...] |
/foundation/distributeddatamgr/pasteboard/framework/framework/include/serializable/ |
H A D | serializable.h | 33 using json = cJSON *; 36 virtual bool Marshal(json &node) const = 0; 37 virtual bool Unmarshal(const json &node) = 0; 38 API_EXPORT static bool GetValue(const json node, const std::string &name, std::string &value); 39 API_EXPORT static bool GetValue(const json node, const std::string &name, uint8_t &value); 40 API_EXPORT static bool GetValue(const json node, const std::string &name, uint16_t &value); 41 API_EXPORT static bool GetValue(const json node, const std::string &name, uint32_t &value); 42 API_EXPORT static bool GetValue(const json node, const std::string &name, uint64_t &value); 43 API_EXPORT static bool GetValue(const json node, const std::string &name, int32_t &value); 44 API_EXPORT static bool GetValue(const json nod [all...] |
/foundation/CastEngine/castengine_cast_framework/service/src/session/src/stream/src/ |
H A D | cast_stream_manager_server.cpp | 36 { ACTION_LOAD, [this](const json &data) { return ProcessActionLoad(data); } }, in CastStreamManagerServer() 37 { ACTION_PLAY, [this](const json &data) { return ProcessActionPlay(data); } }, in CastStreamManagerServer() 38 { ACTION_PAUSE, [this](const json &data) { return ProcessActionPause(data); } }, in CastStreamManagerServer() 39 { ACTION_RESUME, [this](const json &data) { return ProcessActionResume(data); } }, in CastStreamManagerServer() 40 { ACTION_STOP, [this](const json &data) { return ProcessActionStop(data); } }, in CastStreamManagerServer() 41 { ACTION_NEXT, [this](const json &data) { return ProcessActionNext(data); } }, in CastStreamManagerServer() 42 { ACTION_PREVIOUS, [this](const json &data) { return ProcessActionPrevious(data); } }, in CastStreamManagerServer() 43 { ACTION_SEEK, [this](const json &data) { return ProcessActionSeek(data); } }, in CastStreamManagerServer() 44 { ACTION_FAST_FORWARD, [this](const json &data) { return ProcessActionFastForward(data); } }, in CastStreamManagerServer() 45 { ACTION_FAST_REWIND, [this](const json in CastStreamManagerServer() [all...] |
/foundation/CastEngine/castengine_cast_plus_stream/src/stream/src/ |
H A D | cast_stream_manager_server.cpp | 36 { ACTION_LOAD, [this](const json &data) { return ProcessActionLoad(data); } }, in CastStreamManagerServer() 37 { ACTION_PLAY, [this](const json &data) { return ProcessActionPlay(data); } }, in CastStreamManagerServer() 38 { ACTION_PAUSE, [this](const json &data) { return ProcessActionPause(data); } }, in CastStreamManagerServer() 39 { ACTION_RESUME, [this](const json &data) { return ProcessActionResume(data); } }, in CastStreamManagerServer() 40 { ACTION_STOP, [this](const json &data) { return ProcessActionStop(data); } }, in CastStreamManagerServer() 41 { ACTION_NEXT, [this](const json &data) { return ProcessActionNext(data); } }, in CastStreamManagerServer() 42 { ACTION_PREVIOUS, [this](const json &data) { return ProcessActionPrevious(data); } }, in CastStreamManagerServer() 43 { ACTION_SEEK, [this](const json &data) { return ProcessActionSeek(data); } }, in CastStreamManagerServer() 44 { ACTION_FAST_FORWARD, [this](const json &data) { return ProcessActionFastForward(data); } }, in CastStreamManagerServer() 45 { ACTION_FAST_REWIND, [this](const json in CastStreamManagerServer() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/ |
H A D | text_layout_property.cpp | 72 void TextLayoutProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const in ToJsonValue() argument 74 LayoutProperty::ToJsonValue(json, filter); in ToJsonValue() 75 json->PutFixedAttr("content", GetContent().value_or("").c_str(), filter, FIXED_ATTR_CONTENT); in ToJsonValue() 80 json->PutExtAttr("fontColor", in ToJsonValue() 82 json->PutExtAttr("fontStyle", GetFontStyleInJson(GetItalicFontStyle()).c_str(), filter); in ToJsonValue() 83 json->PutExtAttr("fontWeight", GetFontWeightInJson(GetFontWeight()).c_str(), filter); in ToJsonValue() 84 json->PutExtAttr("fontFamily", GetFontFamilyInJson(GetFontFamily()).c_str(), filter); in ToJsonValue() 85 json->PutExtAttr("renderingStrategy", in ToJsonValue() 87 json->PutExtAttr("effectStrategy", GetSymbolEffectStrategyInJson(GetSymbolEffectStrategy()).c_str(), filter); in ToJsonValue() 88 json in ToJsonValue() 120 ToJsonValueForOption(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const ToJsonValueForOption() argument 144 FromJson(const std::unique_ptr<JsonValue>& json) FromJson() argument [all...] |
/foundation/communication/dsoftbus/core/bus_center/lnn/net_builder/src/ |
H A D | lnn_p2p_info.c | 47 cJSON *json = cJSON_CreateObject(); in LnnGetP2pInfoMsg() local 48 if (json == NULL) { in LnnGetP2pInfoMsg() 49 LNN_LOGE(LNN_BUILDER, "create p2p info json fail"); in LnnGetP2pInfoMsg() 52 if (!AddNumberToJsonObject(json, JSON_KEY_P2P_ROLE, info->p2pRole)) { in LnnGetP2pInfoMsg() 54 cJSON_Delete(json); in LnnGetP2pInfoMsg() 57 if (!AddStringToJsonObject(json, JSON_KEY_WIFI_CFG, info->wifiCfg)) { in LnnGetP2pInfoMsg() 59 cJSON_Delete(json); in LnnGetP2pInfoMsg() 62 if (!AddStringToJsonObject(json, JSON_KEY_CHAN_LIST_5G, info->chanList5g)) { in LnnGetP2pInfoMsg() 64 cJSON_Delete(json); in LnnGetP2pInfoMsg() 67 if (!AddNumberToJsonObject(json, JSON_KEY_STA_FREQUENC in LnnGetP2pInfoMsg() 92 cJSON *json = cJSON_CreateObject(); LnnGetWifiDirectAddrMsg() local 112 JsonObj *json = JSON_Parse((char *)msg, len); LnnParseP2pInfoMsg() local 153 JsonObj *json = JSON_Parse((char *)msg, len); LnnParseWifiDirectAddrMsg() local [all...] |