/ohos5.0/foundation/communication/dsoftbus/tests/core/common/json_utils/uttest/ |
H A D | softbus_json_utils_test.cpp | 73 cJSON *json = cJSON_CreateObject(); variable 88 cJSON *json = cJSON_CreateObject(); variable 102 cJSON *json = cJSON_CreateObject(); variable 117 cJSON *json = cJSON_CreateObject(); variable 134 cJSON *json = cJSON_CreateObject(); variable 150 cJSON *json = cJSON_CreateObject(); variable 173 cJSON *json = cJSON_CreateObject(); variable 210 cJSON *json = cJSON_CreateObject(); variable 225 cJSON *json = cJSON_CreateObject(); variable 239 cJSON *json = cJSON_CreateObject(); variable [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/statistics/instant/ |
H A D | bt_statistic.cpp | 75 int32_t BtStatistic::GetBtStatisticInfo(cJSON *json) in GetBtStatisticInfo() 158 void BtStatistic::GetBleGattDeviceInfo(cJSON *json) in GetBleGattDeviceInfo() 163 void BtStatistic::GetA2dpSrcDeviceInfo(cJSON *json) in GetA2dpSrcDeviceInfo() 177 void BtStatistic::GetAvrCTDeviceInfo(cJSON *json) in GetAvrCTDeviceInfo() 184 void BtStatistic::GetAvrTGDeviceInfo(cJSON *json) in GetAvrTGDeviceInfo() 191 void BtStatistic::GetHfpAGDeviceInfo(cJSON *json) in GetHfpAGDeviceInfo() 198 void BtStatistic::GetHfpHFDeviceInfo(cJSON *json) in GetHfpHFDeviceInfo() 205 void BtStatistic::GetMapMseDeviceInfo(cJSON *json) in GetMapMseDeviceInfo() 212 void BtStatistic::GetPbapPseDeviceInfo(cJSON *json) in GetPbapPseDeviceInfo() 226 void BtStatistic::GetOppDeviceInfo(cJSON *json) in GetOppDeviceInfo() [all …]
|
H A D | wifi_statistic.cpp | 37 int32_t WifiStatistic::GetWifiStatisticInfo(cJSON *json) in GetWifiStatisticInfo() 49 int32_t WifiStatistic::GetStaInfo(cJSON *json) in GetStaInfo() 78 int32_t WifiStatistic::GetSoftApInfo(cJSON *json) in GetSoftApInfo() 121 int32_t WifiStatistic::GetP2PInfo(cJSON *json) in GetP2PInfo()
|
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/test/unittest/common/componentloader/src/ |
H A D | component_loader_test.cpp | 338 cJSON *json = cJSON_CreateObject(); variable 358 cJSON *json = cJSON_CreateObject(); variable 379 cJSON *json = cJSON_CreateObject(); variable 401 cJSON *json = cJSON_CreateObject(); variable 424 cJSON *json = cJSON_CreateObject(); variable 448 cJSON *json = cJSON_CreateObject(); variable 473 cJSON *json = cJSON_CreateObject(); variable 499 cJSON *json = cJSON_CreateObject(); variable 526 cJSON *json = cJSON_CreateObject(); variable 554 cJSON *json = cJSON_CreateObject(); variable [all …]
|
/ohos5.0/foundation/distributedhardware/device_manager/services/implementation/src/authentication/ |
H A D | auth_message_processor.cpp | 144 void AuthMessageProcessor::CreateSyncDeleteMessageExt(nlohmann::json &json) in CreateSyncDeleteMessageExt() 151 void AuthMessageProcessor::CreatePublicKeyMessageExt(nlohmann::json &json) in CreatePublicKeyMessageExt() 164 void AuthMessageProcessor::CreateNegotiateMessage(nlohmann::json &json) in CreateNegotiateMessage() 193 void AuthMessageProcessor::CreateRespNegotiateMessage(nlohmann::json &json) in CreateRespNegotiateMessage() 226 void AuthMessageProcessor::CreateSyncGroupMessage(nlohmann::json &json) in CreateSyncGroupMessage() 232 void AuthMessageProcessor::CreateResponseAuthMessage(nlohmann::json &json) in CreateResponseAuthMessage() 313 void AuthMessageProcessor::ParseSyncDeleteMessageExt(nlohmann::json &json) in ParseSyncDeleteMessageExt() 326 void AuthMessageProcessor::ParsePublicKeyMessageExt(nlohmann::json &json) in ParsePublicKeyMessageExt() 350 void AuthMessageProcessor::ParseResponseFinishMessage(nlohmann::json &json) in ParseResponseFinishMessage() 360 void AuthMessageProcessor::GetAuthReqMessage(nlohmann::json &json) in GetAuthReqMessage() [all …]
|
/ohos5.0/commonlibrary/rust/ylong_json/tests/ |
H A D | ylong_json_sdv_test.rs | 269 let json = JsonValue::from_text(RFC7159_EXAMPLE1).unwrap(); in sdv_json_parse() localVariable 272 let json = JsonValue::from_text(RFC7159_EXAMPLE2).unwrap(); in sdv_json_parse() localVariable 275 let json = JsonValue::from_text(JSON_PARSE_TEST).unwrap(); in sdv_json_parse() localVariable 281 let mut json = JsonValue::from_text(json_text).unwrap(); in sdv_json_modify() localVariable 329 let mut json = JsonValue::from_text(RFC7159_EXAMPLE1).unwrap(); in sdv_json_output() localVariable 346 let mut json = JsonValue::from_text(RFC7159_EXAMPLE2).unwrap(); in sdv_json_output() localVariable 363 let mut json = JsonValue::from_text(JSON_PARSE_TEST).unwrap(); in sdv_json_output() localVariable
|
/ohos5.0/foundation/communication/dsoftbus/core/common/json_utils/ |
H A D | softbus_json_utils.c | 24 int32_t GetStringItemByJsonObject(const cJSON *json, const char * const string, char *target, in GetStringItemByJsonObject() 49 bool GetJsonObjectStringItem(const cJSON *json, const char * const string, char *target, in GetJsonObjectStringItem() 74 bool GetJsonObjectNumberItem(const cJSON *json, const char * const string, int32_t *target) in GetJsonObjectNumberItem() 104 bool GetJsonObjectDoubleItem(const cJSON *json, const char * const string, double *target) in GetJsonObjectDoubleItem() 164 bool GetJsonObjectInt32Item(const cJSON *json, const char * const string, int32_t *target) in GetJsonObjectInt32Item() 179 bool GetJsonObjectBoolItem(const cJSON *json, const char * const string, bool *target) in GetJsonObjectBoolItem() 194 bool AddStringToJsonObject(cJSON *json, const char * const string, const char *value) in AddStringToJsonObject() 232 bool AddNumber16ToJsonObject(cJSON *json, const char * const string, uint16_t num) in AddNumber16ToJsonObject() 251 bool AddNumberToJsonObject(cJSON *json, const char * const string, int32_t num) in AddNumberToJsonObject() 270 bool AddNumber64ToJsonObject(cJSON *json, const char * const string, int64_t num) in AddNumber64ToJsonObject() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/text_input/ |
H A D | text_input_decoration_test.cpp | 43 auto json = JsonUtil::Create(true); variable 84 auto json = JsonUtil::Create(true); variable 125 auto json = JsonUtil::Create(true); variable 166 auto json = JsonUtil::Create(true); variable 207 auto json = JsonUtil::Create(true); variable 248 auto json = JsonUtil::Create(true); variable 289 auto json = JsonUtil::Create(true); variable 330 auto json = JsonUtil::Create(true); variable 371 auto json = JsonUtil::Create(true); variable 413 auto json = JsonUtil::Create(true); variable [all …]
|
H A D | text_area_decoration_test.cpp | 217 auto json = JsonUtil::Create(true); variable 259 auto json = JsonUtil::Create(true); variable 301 auto json = JsonUtil::Create(true); variable 343 auto json = JsonUtil::Create(true); variable 385 auto json = JsonUtil::Create(true); variable 427 auto json = JsonUtil::Create(true); variable 469 auto json = JsonUtil::Create(true); variable 511 auto json = JsonUtil::Create(true); variable 553 auto json = JsonUtil::Create(true); variable 595 auto json = JsonUtil::Create(true); variable [all …]
|
/ohos5.0/base/hiviewdfx/hisysevent/frameworks/native/ |
H A D | json_flatten_parser.cpp | 51 JsonFlattenParser::JsonFlattenParser(const std::string& json) in JsonFlattenParser() 57 void JsonFlattenParser::Parse(const std::string& json) in Parse() 74 std::string json = "{"; in Print() local 85 std::string JsonFlattenParser::ParseKey(const std::string& json) in ParseKey() 100 std::string JsonFlattenParser::ParseValue(const std::string& json) in ParseValue() 131 std::string JsonFlattenParser::ParseNumer(const std::string& json) in ParseNumer() 144 std::string JsonFlattenParser::ParseString(const std::string& json) in ParseString() 160 std::string JsonFlattenParser::ParseBrackets(const std::string& json, char leftBracket) in ParseBrackets()
|
/ohos5.0/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/creds_manager/ |
H A D | creds_manager_test.cpp | 126 CJson *json = CreateJson(); in OnBindRequest() local 138 CJson *json = CreateJson(); in OnAuthRequest() local 371 CJson *json = CreateJson(); in CreateDemoIdenticalAccountGroup() local 399 CJson *json = CreateJson(); in CreateClientSymIdenticalAccountGroup() local 427 CJson *json = CreateJson(); in CreateServerSymIdenticalAccountGroup() local 606 CJson *json = CreateJson(); variable 614 CJson *json = CreateJson(); variable 625 CJson *json = CreateJson(); variable 635 CJson *json = CreateJson(); variable 647 CJson *json = CreateJson(); variable [all …]
|
/ohos5.0/base/security/device_auth/test/fuzztest/creds_manager/credsmanager_fuzzer/ |
H A D | credsmanager_fuzzer.cpp | 123 CJson *json = CreateJson(); in OnBindRequest() local 135 CJson *json = CreateJson(); in OnAuthRequest() local 361 CJson *json = CreateJson(); in CreateDemoIdenticalAccountGroup() local 387 CJson *json = CreateJson(); in CreateClientSymIdenticalAccountGroup() local 410 CJson *json = CreateJson(); in CreateServerSymIdenticalAccountGroup() local 554 CJson *json = CreateJson(); in CredsManagerTest01() local 564 CJson *json = CreateJson(); in CredsManagerTest02() local 574 CJson *json = CreateJson(); in CredsManagerTest03() local 583 CJson *json = CreateJson(); in CredsManagerTest04() local 594 CJson *json = CreateJson(); in CredsManagerTest05() local [all …]
|
/ohos5.0/base/hiviewdfx/hiview/base/utility/ |
H A D | cjson_util.cpp | 36 int64_t GetIntValue(const cJSON* json, const std::string& key, int64_t defaultValue) in GetIntValue() 48 double GetDoubleValue(cJSON* json, const std::string& key, double defaultValue) in GetDoubleValue() 60 std::string GetStringValue(cJSON* json, const std::string& key) in GetStringValue() 72 void GetStringArray(cJSON* json, const std::string& key, std::vector<std::string>& dest) in GetStringArray() 94 cJSON* GetObjectValue(const cJSON* json, const std::string& key) in GetObjectValue() 106 cJSON* GetArrayValue(const cJSON* json, const std::string& key) in GetArrayValue() 118 bool GetBoolValue(const cJSON* json, const std::string& key, bool& value) in GetBoolValue()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_layout_property.cpp | 24 V2::ItemDivider ItemDividerFromJson(const std::unique_ptr<JsonValue>& json) in ItemDividerFromJson() 35 void ListLayoutProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filte… in ToJsonValue() 88 std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const in ScrollSnapPropToJsonValue() 107 void ListLayoutProperty::FromJson(const std::unique_ptr<JsonValue>& json) in FromJson()
|
/ohos5.0/foundation/communication/dsoftbus/adapter/common/json/nlohmann/ |
H A D | softbus_adapter_json.cpp | 33 nlohmann::json *json = new (std::nothrow) nlohmann::json(); in JSON_CreateObject() local 50 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_Delete() local 73 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_PrintUnformatted() local 100 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_Parse() local 125 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_AddBoolToObject() local 140 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_GetBoolFromOject() local 161 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_AddIntegerToObject() local 177 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_GetIntegerFromObject() local 239 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_AddStringToObject() local 254 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj->context); in JSON_GetStringFromOject() local [all …]
|
/ohos5.0/foundation/communication/dsoftbus/tests/core/connection/br/ |
H A D | connection_br_mock.cpp | 39 bool GetJsonObjectSignedNumberItem(const cJSON *json, const char * const string, int *target) in GetJsonObjectSignedNumberItem() 44 bool GetJsonObjectNumber64Item(const cJSON *json, const char * const string, int64_t *target) in GetJsonObjectNumber64Item() 49 bool AddNumberToJsonObject(cJSON *json, const char * const string, int num) in AddNumberToJsonObject() 54 bool AddNumber64ToJsonObject(cJSON *json, const char * const string, int64_t num) in AddNumber64ToJsonObject() 64 bool GetJsonObjectNumberItem(const cJSON *json, const char * const string, int *target) in GetJsonObjectNumberItem()
|
/ohos5.0/base/security/security_component_manager/frameworks/security_component/src/ |
H A D | sec_comp_base.cpp | 77 bool SecCompBase::ParseColor(const nlohmann::json& json, const std::string& tag, SecCompColor& res) in ParseColor() 88 bool SecCompBase::ParseBool(const nlohmann::json& json, const std::string& tag, bool& res) in ParseBool() 99 bool SecCompBase::ParseString(const nlohmann::json& json, const std::string& tag, std::string& res) in ParseString() 110 bool SecCompBase::ParsePadding(const nlohmann::json& json, const std::string& tag, PaddingSize& res) in ParsePadding() 133 bool SecCompBase::ParseColors(const nlohmann::json& json, const std::string& tag) in ParseColors() 152 bool SecCompBase::ParseBorders(const nlohmann::json& json, const std::string& tag) in ParseBorders() 162 bool SecCompBase::ParseSize(const nlohmann::json& json, const std::string& tag) in ParseSize() 189 bool SecCompBase::ParseParent(const nlohmann::json& json, const std::string& tag) in ParseParent() 220 bool SecCompBase::ParseRect(const nlohmann::json& json, const std::string& tag, SecCompRect& rect) in ParseRect() 360 nlohmann::json json; in ToJsonStr() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | render_property.cpp | 98 void RenderPositionProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& f… in ToJsonValue() 124 void GraphicsProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter)… in ToJsonValue() 210 void BackgroundProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filte… in ToJsonValue() 239 void CustomBackgroundProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter&… in ToJsonValue() 254 void ForegroundProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filte… in ToJsonValue() 275 void ClipProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) con… in ToJsonValue() 304 void GradientProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter)… in ToJsonValue() 329 void TransformProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter… in ToJsonValue() 379 void BorderProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) c… in ToJsonValue() 396 void OuterBorderProperty::ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filt… in ToJsonValue() [all …]
|
/ohos5.0/base/startup/appspawn/util/include/ |
H A D | json_utils.h | 34 __attribute__((always_inline)) inline char *GetStringFromJsonObj(const cJSON *json, const char *key) in GetStringFromJsonObj() 44 __attribute__((always_inline)) inline bool GetBoolValueFromJsonObj(const cJSON *json, const char *k… in GetBoolValueFromJsonObj() 55 __attribute__((always_inline)) inline uint32_t GetIntValueFromJsonObj(const cJSON *json, const char… in GetIntValueFromJsonObj()
|
/ohos5.0/base/security/appverify/interfaces/innerkits/appverify/src/init/ |
H A D | json_parser_utils.cpp | 55 bool JsonParserUtils::GetJsonString(const cJSON* json, const std::string& key, std::string& value) in GetJsonString() 67 bool JsonParserUtils::GetJsonInt(const cJSON* json, const std::string& key, int& value) in GetJsonInt() 79 bool JsonParserUtils::GetJsonStringVec(const cJSON* json, const std::string& key, StringVec& value) in GetJsonStringVec() 97 bool JsonParserUtils::ParseJsonToObjVec(const cJSON* json, const std::string& key, JsonObjVec& json… in ParseJsonToObjVec() 115 void JsonParserUtils::ParseJsonToMap(const cJSON* json, JsonMap& jsonMap) in ParseJsonToMap()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/render/ |
H A D | render_context_test_ng.cpp | 204 auto json = JsonUtil::Create(true); variable 235 auto json = JsonUtil::Create(true); variable 263 auto json = JsonUtil::Create(true); variable 298 auto json = JsonUtil::Create(true); variable 327 auto json = JsonUtil::Create(true); variable 387 auto json = JsonUtil::Create(true); variable 415 auto json = JsonUtil::Create(true); variable
|
H A D | render_property_test_ng.cpp | 105 auto json = JsonUtil::Create(true); variable 158 auto json = JsonUtil::Create(true); variable 188 auto json = JsonUtil::Create(true); variable 262 auto json = JsonUtil::Create(true); variable 296 auto json = JsonUtil::Create(true); variable 324 auto json = JsonUtil::Create(true); variable 357 auto json = JsonUtil::Create(true); variable 399 auto json = JsonUtil::Create(true); variable 448 auto json = JsonUtil::Create(true); variable
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/divider/ |
H A D | divider_layout_property.h | 49 void ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const override in ToJsonValue() 66 void FromJson(const std::unique_ptr<JsonValue>& json) override in FromJson()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/render_node/ |
H A D | render_node_layout_property.h | 43 void ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const override in ToJsonValue() 57 void FromJson(const std::unique_ptr<JsonValue>& json) override in FromJson()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stack/ |
H A D | stack_layout_property.h | 43 void ToJsonValue(std::unique_ptr<JsonValue>& json, const InspectorFilter& filter) const override in ToJsonValue() 57 void FromJson(const std::unique_ptr<JsonValue>& json) override in FromJson()
|