Home
last modified time | relevance | path

Searched refs:jsonValue (Results 1 - 25 of 108) sorted by relevance

12345

/foundation/resourceschedule/device_standby/utils/policy/src/
H A Djson_utils.cpp33 bool JsonUtils::LoadJsonValueFromContent(nlohmann::json& jsonValue, const std::string& content) in LoadJsonValueFromContent() argument
39 jsonValue = nlohmann::json::parse(content, nullptr, false); in LoadJsonValueFromContent()
40 if (jsonValue.is_discarded()) { in LoadJsonValueFromContent()
44 if (!jsonValue.is_object()) { in LoadJsonValueFromContent()
51 bool JsonUtils::LoadJsonValueFromFile(nlohmann::json& jsonValue, const std::string& filePath) in LoadJsonValueFromFile() argument
62 jsonValue = nlohmann::json::parse(content, nullptr, false); in LoadJsonValueFromFile()
63 if (jsonValue.is_discarded()) { in LoadJsonValueFromFile()
67 if (!jsonValue.is_object()) { in LoadJsonValueFromFile()
74 bool JsonUtils::DumpJsonValueToFile(const nlohmann::json& jsonValue, const std::string& filePath) in DumpJsonValueToFile() argument
91 fout << jsonValue in DumpJsonValueToFile()
116 GetInt32FromJsonValue(const nlohmann::json& jsonValue, const std::string& key, int32_t& value) GetInt32FromJsonValue() argument
128 GetBoolFromJsonValue(const nlohmann::json& jsonValue, const std::string& key, bool& value) GetBoolFromJsonValue() argument
140 GetStringFromJsonValue(const nlohmann::json& jsonValue, const std::string& key, std::string& value) GetStringFromJsonValue() argument
152 GetObjFromJsonValue(const nlohmann::json& jsonValue, const std::string& key, nlohmann::json& value) GetObjFromJsonValue() argument
164 GetArrayFromJsonValue(const nlohmann::json& jsonValue, const std::string& key, nlohmann::json& value) GetArrayFromJsonValue() argument
176 GetStrArrFromJsonValue(const nlohmann::json& jsonValue, const std::string& key, std::vector<std::string>& strArray) GetStrArrFromJsonValue() argument
[all...]
/foundation/arkui/ace_engine/test/unittest/base/
H A Djson_util_test.cpp378 JsonValue jsonValue; in HWTEST_F() local
383 bool ret = jsonValue.Put(key, value); in HWTEST_F()
396 bool ret2 = jsonValue.Put(key2, value2); in HWTEST_F()
404 bool ret3 = jsonValue.Put(key2, value3); in HWTEST_F()
406 bool ret4 = jsonValue.Put(key, value3); in HWTEST_F()
422 JsonValue jsonValue; in HWTEST_F() local
427 bool ret = jsonValue.Put(key, value); in HWTEST_F()
444 JsonValue jsonValue; in HWTEST_F() local
449 bool ret = jsonValue.Put(key, value); in HWTEST_F()
462 bool ret2 = jsonValue in HWTEST_F()
488 JsonValue jsonValue; HWTEST_F() local
521 JsonValue jsonValue; HWTEST_F() local
542 JsonValue jsonValue; HWTEST_F() local
563 std::unique_ptr<JsonValue> jsonValue = JsonUtil::Create(false); HWTEST_F() local
604 std::unique_ptr<JsonValue> jsonValue = JsonUtil::Create(false); HWTEST_F() local
641 std::unique_ptr<JsonValue> jsonValue = JsonUtil::Create(false); HWTEST_F() local
687 std::unique_ptr<JsonValue> jsonValue = JsonUtil::Create(false); HWTEST_F() local
722 std::unique_ptr<JsonValue> jsonValue = JsonUtil::Create(false); HWTEST_F() local
761 JsonValue jsonValue; HWTEST_F() local
780 std::unique_ptr<JsonValue> jsonValue = JsonUtil::Create(false); HWTEST_F() local
866 JsonValue jsonValue; HWTEST_F() local
887 JsonValue jsonValue; HWTEST_F() local
908 JsonValue jsonValue; HWTEST_F() local
942 JsonValue jsonValue; HWTEST_F() local
962 JsonValue jsonValue; HWTEST_F() local
984 JsonValue jsonValue; HWTEST_F() local
1006 JsonValue jsonValue; HWTEST_F() local
1049 JsonValue jsonValue; HWTEST_F() local
1098 JsonValue jsonValue; HWTEST_F() local
1151 JsonValue jsonValue; HWTEST_F() local
1193 JsonValue jsonValue; HWTEST_F() local
1229 std::unique_ptr<JsonValue> jsonValue = JsonUtil::Create(false); HWTEST_F() local
1271 JsonValue jsonValue; HWTEST_F() local
[all...]
/foundation/resourceschedule/device_standby/services/test/unittest/
H A Dstandby_utils_unit_test.cpp61 nlohmann::json jsonValue {}; in HWTEST_F()
63 bool ret = JsonUtils::GetInt32FromJsonValue(jsonValue, "", value); in HWTEST_F()
65 jsonValue = nlohmann::json::parse("{\"key\":1}", nullptr, false); in HWTEST_F()
66 JsonUtils::GetInt32FromJsonValue(jsonValue, "", value); in HWTEST_F()
67 JsonUtils::GetInt32FromJsonValue(jsonValue, JSON_KEY, value); in HWTEST_F()
68 JsonUtils::GetInt32FromJsonValue(jsonValue, JSON_ERROR_KEY, value); in HWTEST_F()
69 jsonValue = nlohmann::json::parse("{\"key\":\"1\"}", nullptr, false); in HWTEST_F()
70 ret = JsonUtils::GetInt32FromJsonValue(jsonValue, JSON_ERROR_KEY, value); in HWTEST_F()
72 JsonUtils::GetInt32FromJsonValue(jsonValue, JSON_KEY, value); in HWTEST_F()
83 nlohmann::json jsonValue {}; in HWTEST_F()
196 nlohmann::json jsonValue; HWTEST_F() local
239 nlohmann::json jsonValue = nlohmann::json::parse("{\\"apps_limit\\":[\\"1\\",\\"2\\"]}", nullptr, false); HWTEST_F() local
257 nlohmann::json jsonValue = nlohmann::json::parse("{}", nullptr, false); HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
H A Dutils.cpp22 auto jsonValue = JsonUtil::Create(true); in GetTextStyleInJson() local
23 jsonValue->Put("size", textStyle.GetFontSize().ToString().c_str()); in GetTextStyleInJson()
26 jsonValue->Put("weight", "100"); in GetTextStyleInJson()
28 jsonValue->Put("weight", "200"); in GetTextStyleInJson()
30 jsonValue->Put("weight", "300"); in GetTextStyleInJson()
32 jsonValue->Put("weight", "400"); in GetTextStyleInJson()
34 jsonValue->Put("weight", "500"); in GetTextStyleInJson()
36 jsonValue->Put("weight", "600"); in GetTextStyleInJson()
38 jsonValue->Put("weight", "700"); in GetTextStyleInJson()
40 jsonValue in GetTextStyleInJson()
[all...]
H A Dinspector_composed_element.cpp457 auto jsonValue = JsonUtil::Create(true); in GetSize() local
458 jsonValue->Put("width", GetWidth().c_str()); in GetSize()
459 jsonValue->Put("height", GetHeight().c_str()); in GetSize()
460 return jsonValue; in GetSize()
474 auto jsonValue = JsonUtil::Create(true); in GetPadding() local
475 jsonValue->Put("top", top.ToString().c_str()); in GetPadding()
476 jsonValue->Put("right", right.ToString().c_str()); in GetPadding()
477 jsonValue->Put("bottom", bottom.ToString().c_str()); in GetPadding()
478 jsonValue->Put("left", left.ToString().c_str()); in GetPadding()
479 return jsonValue in GetPadding()
496 auto jsonValue = JsonUtil::Create(true); GetAllMargin() local
615 auto jsonValue = JsonUtil::Create(true); GetUnifyBorder() local
625 auto jsonValue = JsonUtil::Create(true); GetPosition() local
648 auto jsonValue = JsonUtil::Create(true); GetMarkAnchor() local
668 auto jsonValue = JsonUtil::Create(true); GetOffset() local
868 auto jsonValue = JsonUtil::Create(true); GetBackgroundColor() local
893 auto jsonValue = JsonUtil::Create(true); GetBackgroundImagePosition() local
952 auto jsonValue = JsonUtil::Create(true); GetClip() local
1013 auto jsonValue = JsonUtil::Create(true); GetRotate() local
1035 auto jsonValue = JsonUtil::Create(true); GetScale() local
1056 auto jsonValue = JsonUtil::Create(true); GetTransform() local
1079 auto jsonValue = JsonUtil::Create(true); GetTranslate() local
1179 auto jsonValue = JsonUtil::Create(true); GetWindowBlur() local
1192 auto jsonValue = JsonUtil::Create(true); GetShadow() local
1207 auto jsonValue = JsonUtil::Create(true); GetOverlay() local
1249 auto jsonValue = JsonUtil::Create(true); GetMask() local
1308 auto jsonValue = JsonUtil::Create(true); GetUseSizeType() local
1320 auto jsonValue = JsonUtil::Create(true); GetUseAlign() local
[all...]
H A Dlist_item_group_composed_element.cpp55 auto jsonValue = JsonUtil::Create(true); in GetDivider() local
78 jsonValue->Put("strokeWidth", divider->strokeWidth.ToString().c_str()); in GetDivider()
79 jsonValue->Put("color", ConvertColorToString(divider->color).c_str()); in GetDivider()
80 jsonValue->Put("startMargin", divider->startMargin.ToString().c_str()); in GetDivider()
81 jsonValue->Put("endMargin", divider->endMargin.ToString().c_str()); in GetDivider()
82 return jsonValue; in GetDivider()
84 jsonValue->Put("strokeWidth", "0.0vp"); in GetDivider()
85 jsonValue->Put("color", "#FFFFFFFF"); in GetDivider()
86 jsonValue->Put("startMargin", "0.0vp"); in GetDivider()
87 jsonValue in GetDivider()
[all...]
H A Dbadge_composed_element.cpp89 auto jsonValue = JsonUtil::Create(true); in GetBadgePosition() local
92 jsonValue->Put("x", badgeComponent->GetBadgePositionX().ToString().c_str()); in GetBadgePosition()
93 jsonValue->Put("y", badgeComponent->GetBadgePositionY().ToString().c_str()); in GetBadgePosition()
96 return jsonValue->ToString(); in GetBadgePosition()
120 auto jsonValue = JsonUtil::Create(true); in GetStyle() local
124 jsonValue->Put("color", ConvertColorToString(style->GetBadgeTextColor()).c_str()); in GetStyle()
125 jsonValue->Put("fontSize", style->GetBadgeFontSize().ToString().c_str()); in GetStyle()
126 jsonValue->Put("badgeColor", ConvertColorToString(style->GetBadgeColor()).c_str()); in GetStyle()
127 jsonValue->Put("badgeSize", style->GetBadgeCircleSize().ToString().c_str()); in GetStyle()
130 return jsonValue in GetStyle()
[all...]
H A Dtextinput_composed_element.cpp101 auto jsonValue = JsonUtil::Create(true); in GetPlaceholderFont() local
104 jsonValue->Put("size", placeHoldStyle.GetFontSize().ToString().c_str()); in GetPlaceholderFont()
107 jsonValue->Put("weight", "100"); in GetPlaceholderFont()
109 jsonValue->Put("weight", "200"); in GetPlaceholderFont()
111 jsonValue->Put("weight", "300"); in GetPlaceholderFont()
113 jsonValue->Put("weight", "400"); in GetPlaceholderFont()
115 jsonValue->Put("weight", "500"); in GetPlaceholderFont()
117 jsonValue->Put("weight", "600"); in GetPlaceholderFont()
119 jsonValue->Put("weight", "700"); in GetPlaceholderFont()
121 jsonValue in GetPlaceholderFont()
[all...]
H A Dtextarea_composed_element.cpp97 auto jsonValue = JsonUtil::Create(true); in GetPlaceholderFont() local
100 jsonValue->Put("size", placeHoldStyle.GetFontSize().ToString().c_str()); in GetPlaceholderFont()
103 jsonValue->Put("weight", "100"); in GetPlaceholderFont()
105 jsonValue->Put("weight", "200"); in GetPlaceholderFont()
107 jsonValue->Put("weight", "300"); in GetPlaceholderFont()
109 jsonValue->Put("weight", "400"); in GetPlaceholderFont()
111 jsonValue->Put("weight", "500"); in GetPlaceholderFont()
113 jsonValue->Put("weight", "600"); in GetPlaceholderFont()
115 jsonValue->Put("weight", "700"); in GetPlaceholderFont()
117 jsonValue in GetPlaceholderFont()
[all...]
H A Dlist_composed_element.cpp155 auto jsonValue = JsonUtil::Create(true); in GetDivider() local
177 jsonValue->Put("strokeWidth", divider->strokeWidth.ToString().c_str()); in GetDivider()
178 jsonValue->Put("color", ConvertColorToString(divider->color).c_str()); in GetDivider()
179 jsonValue->Put("startMargin", divider->startMargin.ToString().c_str()); in GetDivider()
180 jsonValue->Put("endMargin", divider->endMargin.ToString().c_str()); in GetDivider()
181 return jsonValue; in GetDivider()
183 jsonValue->Put("strokeWidth", "0.0vp"); in GetDivider()
184 jsonValue->Put("color", "#FFFFFFFF"); in GetDivider()
185 jsonValue->Put("startMargin", "0.0vp"); in GetDivider()
186 jsonValue in GetDivider()
[all...]
H A Dflex_composed_element.cpp58 auto jsonValue = JsonUtil::Create(true); in GetConstructor() local
59 jsonValue->Put("direction", GetFlexDirection().c_str()); in GetConstructor()
60 jsonValue->Put("wrap", GetWrap().c_str()); in GetConstructor()
61 jsonValue->Put("justifyContent", GetJustifyContent().c_str()); in GetConstructor()
62 jsonValue->Put("alignItems", GetAlignItems().c_str()); in GetConstructor()
63 jsonValue->Put("alignContent", GetAlignContent().c_str()); in GetConstructor()
64 return jsonValue; in GetConstructor()
H A Dwrap_composed_element.cpp58 auto jsonValue = JsonUtil::Create(true); in GetConstructor() local
59 jsonValue->Put("direction", GetFlexDirection().c_str()); in GetConstructor()
60 jsonValue->Put("wrap", GetWrap().c_str()); in GetConstructor()
61 jsonValue->Put("justifyContent", GetJustifyContent().c_str()); in GetConstructor()
62 jsonValue->Put("alignItems", GetAlignItems().c_str()); in GetConstructor()
63 jsonValue->Put("alignContent", GetAlignContent().c_str()); in GetConstructor()
64 return jsonValue; in GetConstructor()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dtext_style.cpp89 auto jsonValue = JsonUtil::Create(true); in ToString() local
90 JSON_STRING_PUT_STRINGABLE(jsonValue, fontSize_); in ToString()
91 JSON_STRING_PUT_STRINGABLE(jsonValue, textColor_); in ToString()
92 JSON_STRING_PUT_STRINGABLE(jsonValue, lineHeight_); in ToString()
93 JSON_STRING_PUT_STRINGABLE(jsonValue, baselineOffset_); in ToString()
94 JSON_STRING_PUT_STRINGABLE(jsonValue, wordSpacing_); in ToString()
95 JSON_STRING_PUT_STRINGABLE(jsonValue, textIndent_); in ToString()
96 JSON_STRING_PUT_STRINGABLE(jsonValue, letterSpacing_); in ToString()
97 JSON_STRING_PUT_STRINGABLE(jsonValue, lineSpacing_); in ToString()
99 JSON_STRING_PUT_INT(jsonValue, fontWeight in ToString()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/rich_editor/
H A Drich_editor_model.h151 auto jsonValue = JsonUtil::Create(true); in ToString() local
152 JSON_STRING_PUT_OPTIONAL_STRINGABLE(jsonValue, updateTextColor); in ToString()
153 JSON_STRING_PUT_OPTIONAL_STRINGABLE(jsonValue, updateFontSize); in ToString()
154 JSON_STRING_PUT_OPTIONAL_INT(jsonValue, updateItalicFontStyle); in ToString()
155 JSON_STRING_PUT_OPTIONAL_INT(jsonValue, updateFontWeight); in ToString()
156 JSON_STRING_PUT_OPTIONAL_INT(jsonValue, updateTextDecoration); in ToString()
157 JSON_STRING_PUT_OPTIONAL_STRINGABLE(jsonValue, updateTextDecorationColor); in ToString()
158 JSON_STRING_PUT_OPTIONAL_INT(jsonValue, updateTextDecorationStyle); in ToString()
159 JSON_STRING_PUT_OPTIONAL_INT(jsonValue, updateSymbolRenderingStrategy); in ToString()
160 JSON_STRING_PUT_OPTIONAL_INT(jsonValue, updateSymbolEffectStrateg in ToString()
188 auto jsonValue = JsonUtil::Create(true); ToString() local
222 auto jsonValue = JsonUtil::Create(true); ToString() local
241 auto jsonValue = JsonUtil::Create(true); ToString() local
259 auto jsonValue = JsonUtil::Create(true); ToString() local
275 auto jsonValue = JsonUtil::Create(true); ToString() local
[all...]
/foundation/arkui/ace_engine/test/unittest/core/render/
H A Drender_property_test_ng.cpp503 auto jsonValue = JsonUtil::Create(true); in HWTEST_F() local
513 renderPositionProperty.ToJsonValue(jsonValue, testFilter); in HWTEST_F()
515 EXPECT_EQ(jsonValue->GetValue("offset")->GetString("x"), "1.00px"); in HWTEST_F()
517 renderPositionProperty.ToJsonValue(jsonValue, testFilter); in HWTEST_F()
518 EXPECT_EQ(jsonValue->GetValue("offset")->GetString("x"), "1.00px"); in HWTEST_F()
533 auto jsonValue = JsonUtil::Create(true); in HWTEST_F() local
551 graphicsProperty.ToJsonValue(jsonValue, testFilter); in HWTEST_F()
552 EXPECT_EQ(jsonValue->GetValue(SHADOW_TEST)->GetString("color"), "ColoringStrategy.AVERAGE"); in HWTEST_F()
555 graphicsProperty.ToJsonValue(jsonValue, testFilter); in HWTEST_F()
556 EXPECT_EQ(jsonValue in HWTEST_F()
574 auto jsonValue = JsonUtil::Create(true); HWTEST_F() local
608 auto jsonValue = JsonUtil::Create(true); HWTEST_F() local
637 auto jsonValue = JsonUtil::Create(true); HWTEST_F() local
667 auto jsonValue = JsonUtil::Create(true); HWTEST_F() local
695 auto jsonValue = JsonUtil::Create(true); HWTEST_F() local
723 auto jsonValue = JsonUtil::Create(true); HWTEST_F() local
759 auto jsonValue = JsonUtil::Create(true); HWTEST_F() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/select_overlay/
H A Dselect_overlay_property.h114 auto jsonValue = JsonUtil::Create(true); in ToString() local
115 JSON_STRING_PUT_BOOL(jsonValue, isShow); in ToString()
116 JSON_STRING_PUT_BOOL(jsonValue, needLayout); in ToString()
117 JSON_STRING_PUT_STRINGABLE(jsonValue, paintRect); in ToString()
118 return jsonValue->ToString(); in ToString()
194 auto jsonValue = JsonUtil::Create(true); in ToString() local
195 JSON_STRING_PUT_BOOL(jsonValue, menuDisable); in ToString()
196 JSON_STRING_PUT_BOOL(jsonValue, menuIsShow); in ToString()
197 JSON_STRING_PUT_BOOL(jsonValue, singleHandleMenuIsShow); in ToString()
198 JSON_STRING_PUT_BOOL(jsonValue, showCop in ToString()
322 auto jsonValue = JsonUtil::Create(true); ToString() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/badge/
H A Dbadge_layout_property.cpp52 auto jsonValue = JsonUtil::Create(true); in ToJsonValue() local
53 jsonValue->Put("x", GetBadgePositionX().value_or(DEFAULT_POSITION_SIZE).ToString().c_str()); in ToJsonValue()
54 jsonValue->Put("y", GetBadgePositionY().value_or(DEFAULT_POSITION_SIZE).ToString().c_str()); in ToJsonValue()
56 jsonValue->Put("color", GetBadgeTextColor().value_or(DEFAULT_TEXT_COLOR).ColorToString().c_str()); in ToJsonValue()
57 jsonValue->Put("fontSize", GetBadgeFontSize().value_or(DEFAULT_FONT_SIZE).ToString().c_str()); in ToJsonValue()
58 jsonValue->Put("badgeColor", GetBadgeColor().value_or(DEFAULT_BADGE_COLOR).ColorToString().c_str()); in ToJsonValue()
59 jsonValue->Put("badgeSize", GetBadgeCircleSize().value_or(DEFAULT_CIRCLE_SIZE).ToString().c_str()); in ToJsonValue()
60 jsonValue->Put( in ToJsonValue()
62 jsonValue->Put("borderWidth", GetBadgeBorderWidth().value_or(badgeTheme->GetBadgeBorderWidth()).ToString().c_str()); in ToJsonValue()
63 jsonValue in ToJsonValue()
[all...]
/foundation/resourceschedule/device_standby/utils/policy/include/
H A Djson_utils.h33 * @param jsonValue json value from the file content
37 static bool LoadJsonValueFromFile(nlohmann::json& jsonValue, const std::string& filePath);
42 * @param jsonValue json value from the string
46 static bool LoadJsonValueFromContent(nlohmann::json& jsonValue, const std::string& content);
51 * @param jsonValue json value to be dumped to the file
55 static bool DumpJsonValueToFile(const nlohmann::json& jsonValue, const std::string& filePath);
60 * @param jsonValue json object
65 static bool GetInt32FromJsonValue(const nlohmann::json& jsonValue, const std::string& key, int32_t& value);
70 * @param jsonValue json object
75 static bool GetBoolFromJsonValue(const nlohmann::json& jsonValue, cons
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
H A Dtext_styles.h74 auto jsonValue = JsonUtil::Create(true); in ToString() local
75 JSON_STRING_PUT_OPTIONAL_STRINGABLE(jsonValue, width); in ToString()
76 JSON_STRING_PUT_OPTIONAL_STRINGABLE(jsonValue, height); in ToString()
77 return jsonValue->ToString(); in ToString()
98 auto jsonValue = JsonUtil::Create(true); in ToString() local
99 JSON_STRING_PUT_OPTIONAL_STRINGABLE(jsonValue, size); in ToString()
100 JSON_STRING_PUT_OPTIONAL_INT(jsonValue, verticalAlign); in ToString()
101 JSON_STRING_PUT_OPTIONAL_INT(jsonValue, objectFit); in ToString()
102 JSON_STRING_PUT_OPTIONAL_STRINGABLE(jsonValue, marginProp); in ToString()
103 JSON_STRING_PUT_OPTIONAL_STRINGABLE(jsonValue, borderRadiu in ToString()
114 auto jsonValue = JsonUtil::Create(true); ToString() local
130 auto jsonValue = JsonUtil::Create(true); ToString() local
[all...]
/foundation/graphic/graphic_3d/lume/LumeRender/src/nodecontext/
H A Drender_node_parser_util.h38 uint64_t GetUintValue(const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const override;
39 int64_t GetIntValue(const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const override;
40 float GetFloatValue(const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const override;
42 const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const override;
45 const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const override;
47 const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const override;
49 const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const override;
52 const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const override;
54 const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const override;
57 const CORE_NS::json::value& jsonValue, cons
[all...]
/foundation/graphic/graphic_3d/lume/LumeRender/api/render/nodecontext/
H A Dintf_render_node_parser_util.h37 * @param jsonValue Json value.
40 virtual uint64_t GetUintValue(const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const = 0;
43 * @param jsonValue Json value.
45 virtual int64_t GetIntValue(const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const = 0;
48 * @param jsonValue Json value.
50 virtual float GetFloatValue(const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const = 0;
53 * @param jsonValue Json value.
56 const CORE_NS::json::value& jsonValue, const BASE_NS::string_view name) const = 0;
59 * @param jsonValue Json value.
63 const CORE_NS::json::value& jsonValue, cons
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/linear_indicator/
H A Dlinear_indicator_layout_property.cpp37 auto jsonValue = JsonUtil::Create(true); in ToJsonValue() local
39 jsonValue->Put("space", GetSpaceValue(theme->GetDefaultSpace()).ToString().c_str()); in ToJsonValue()
40 jsonValue->Put("strokeWidth", GetStrokeWidthValue(theme->GetDefaultStrokeWidth()).ToString().c_str()); in ToJsonValue()
41 jsonValue->Put("strokeRadius", GetStrokeRadiusValue(theme->GetDefaultStrokeRadius()).ToString().c_str()); in ToJsonValue()
42 jsonValue->Put( in ToJsonValue()
44 jsonValue->Put("trackColor", GetTrackColorValue(theme->GetTrackColor()).ColorToString().c_str()); in ToJsonValue()
45 json->PutExtAttr("indicatorStyle", jsonValue->ToString().c_str(), filter); in ToJsonValue()
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Ddimension_rect.h99 auto jsonValue = JsonUtil::Create(true); in ToJsonString() local
100 jsonValue->Put("x", offset_.GetX().ToString().c_str()); in ToJsonString()
101 jsonValue->Put("y", offset_.GetY().ToString().c_str()); in ToJsonString()
102 jsonValue->Put("width", width_.ToString().c_str()); in ToJsonString()
103 jsonValue->Put("height", height_.ToString().c_str()); in ToJsonString()
104 return jsonValue->ToString(); in ToJsonString()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_helper.cpp381 auto jsonValue = JsonUtil::Create(true); in GetDotIndicatorStyle() local
382 CHECK_NULL_RETURN(jsonValue, ""); in GetDotIndicatorStyle()
383 jsonValue->Put("left", params->dimLeft.value_or(0.0_vp).ToString().c_str()); in GetDotIndicatorStyle()
384 jsonValue->Put("top", params->dimTop.value_or(0.0_vp).ToString().c_str()); in GetDotIndicatorStyle()
385 jsonValue->Put("right", params->dimRight.value_or(0.0_vp).ToString().c_str()); in GetDotIndicatorStyle()
386 jsonValue->Put("bottom", params->dimBottom.value_or(0.0_vp).ToString().c_str()); in GetDotIndicatorStyle()
387 jsonValue->Put("itemWidth", params->itemWidth.value_or(6.0_vp).ToString().c_str()); in GetDotIndicatorStyle()
388 jsonValue->Put("itemHeight", params->itemHeight.value_or(6.0_vp).ToString().c_str()); in GetDotIndicatorStyle()
389 jsonValue->Put("selectedItemWidth", params->selectedItemWidth.value_or(12.0_vp).ToString().c_str()); in GetDotIndicatorStyle()
390 jsonValue in GetDotIndicatorStyle()
403 auto jsonValue = JsonUtil::Create(true); GetDigitIndicatorStyle() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/
H A Dslider_layout_property.h73 auto jsonValue = JsonUtil::Create(true); variable
74 if (jsonValue) {
76 jsonValue->Put("width", GetBlockSize().value().Width().ToString().c_str());
77 jsonValue->Put("height", GetBlockSize().value().Height().ToString().c_str());
82 jsonValue->Put("width", themeBlockSize.ToString().c_str());
83 jsonValue->Put("height", themeBlockSize.ToString().c_str());
85 json->PutExtAttr("blockSize", jsonValue, filter);

Completed in 15 milliseconds

12345