Home
last modified time | relevance | path

Searched refs:Put (Results 1 – 25 of 529) sorted by relevance

12345678910>>...22

/foundation/arkui/ace_engine/frameworks/core/components_ng/render/
Drender_property.cpp60 json##name->Put("x", prop##name->GetX().ToString().c_str()); \
61 json##name->Put("y", prop##name->GetY().ToString().c_str()); \
63 json##name->Put("x", "0.0px"); \
64 json##name->Put("y", "0.0px"); \
71 json##name->Put("x", prop##name->GetX().ToString().c_str()); \
72 json##name->Put("y", prop##name->GetY().ToString().c_str()); \
74 json##name->Put("x", ""); \
75 json##name->Put("y", ""); \
81 json->Put("position", jsonPosition); in ToJsonValue()
87 json->Put("offset", jsonOffset); in ToJsonValue()
[all …]
Drender_context.cpp78 jsonValue->Put("type", "matrix"); in ToJsonValue()
84 jsonValue->Put("matrix", matrixString.c_str()); in ToJsonValue()
85 json->Put("transform", jsonValue); in ToJsonValue()
87 json->Put("transform", JsonUtil::Create(true)); in ToJsonValue()
89 …json->Put("backgroundColor", propBackgroundColor_.value_or(Color::TRANSPARENT).ColorToString().c_s… in ToJsonValue()
90 json->Put("zIndex", propZIndex_.value_or(0)); in ToJsonValue()
91 json->Put("opacity", propOpacity_.value_or(1)); in ToJsonValue()
93 json->Put("total", propProgressMask_.value()->GetMaxValue()); in ToJsonValue()
94 json->Put("updateProgress", propProgressMask_.value()->GetValue()); in ToJsonValue()
95 json->Put("updateColor", propProgressMask_.value()->GetColor().ColorToString().c_str()); in ToJsonValue()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
Dlist_layout_property.cpp38 json->Put("space", propSpace_.value_or(Dimension(0, DimensionUnit::VP)).ToString().c_str()); in ToJsonValue()
39 json->Put("contentStartOffset", std::to_string(propContentStartOffset_.value_or(0)).c_str()); in ToJsonValue()
40 json->Put("contentEndOffset", std::to_string(propContentEndOffset_.value_or(0)).c_str()); in ToJsonValue()
41 json->Put("initialIndex", std::to_string(propInitialIndex_.value_or(0)).c_str()); in ToJsonValue()
42 json->Put("listDirection", propListDirection_.value_or(Axis::VERTICAL) == Axis::VERTICAL in ToJsonValue()
45 json->Put("editMode", propEditMode_.value_or(false)); in ToJsonValue()
46 json->Put("chainAnimation", propChainAnimation_.value_or(false)); in ToJsonValue()
49 divider->Put("strokeWidth", propDivider_.value().strokeWidth.ToString().c_str()); in ToJsonValue()
50 divider->Put("startMargin", propDivider_.value().startMargin.ToString().c_str()); in ToJsonValue()
51 divider->Put("endMargin", propDivider_.value().endMargin.ToString().c_str()); in ToJsonValue()
[all …]
Dlist_item_layout_property.cpp27 json->Put("sticky", "Sticky.Normal"); in ToJsonValue()
29 json->Put("sticky", "Sticky.Opacity"); in ToJsonValue()
31 json->Put("sticky", "Sticky.None"); in ToJsonValue()
35 json->Put("editable", "EditMode.None"); in ToJsonValue()
37 json->Put("editable", "EditMode.Movable"); in ToJsonValue()
39 json->Put("editable", "EditMode.Deletable"); in ToJsonValue()
41 json->Put("editable", true); in ToJsonValue()
43 json->Put("editable", false); in ToJsonValue()
47 swipeAction->Put("edgeEffect", propEdgeEffect_.value() == V2::SwipeEdgeEffect::Spring ? in ToJsonValue()
49 json->Put("swipeAction", swipeAction); in ToJsonValue()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text/
Dtext_layout_property.cpp34 jsonShadow->Put("radius", std::to_string(shadow.GetBlurRadius()).c_str()); in CovertShadowToJson()
35 jsonShadow->Put("color", shadow.GetColor().ColorToString().c_str()); in CovertShadowToJson()
36 jsonShadow->Put("offsetX", std::to_string(shadow.GetOffset().GetX()).c_str()); in CovertShadowToJson()
37 jsonShadow->Put("offsetY", std::to_string(shadow.GetOffset().GetY()).c_str()); in CovertShadowToJson()
38 jsonShadow->Put("type", std::to_string(static_cast<int32_t>(shadow.GetShadowType())).c_str()); in CovertShadowToJson()
66 jsonValue->Put("style", GetFontStyleInJson(GetItalicFontStyle()).c_str()); in GetFont()
67 jsonValue->Put("size", GetFontSizeInJson(GetFontSize()).c_str()); in GetFont()
68 jsonValue->Put("weight", GetFontWeightInJson(GetFontWeight()).c_str()); in GetFont()
69 jsonValue->Put("family", GetFontFamilyInJson(GetFontFamily()).c_str()); in GetFont()
76 json->Put("content", GetContent().value_or("").c_str()); in ToJsonValue()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
Dgradient_property.cpp38 temp->Put("0", color.c_str()); in GetColorsAndRepeating()
39 temp->Put("1", value.c_str()); in GetColorsAndRepeating()
41 jsonColorArray->Put(index.c_str(), temp); in GetColorsAndRepeating()
43 resultJson->Put("colors", jsonColorArray); in GetColorsAndRepeating()
44 resultJson->Put("repeating", gradient.GetRepeat() ? "true" : "false"); in GetColorsAndRepeating()
55 resultJson->Put("angle", linearGradient_->angle->ToString().c_str()); in LinearGradientToJson()
62 resultJson->Put("direction", "GradientDirection.LeftTop"); in LinearGradientToJson()
64 resultJson->Put("direction", "GradientDirection.LeftBottom"); in LinearGradientToJson()
66 resultJson->Put("direction", "GradientDirection.Left"); in LinearGradientToJson()
70 resultJson->Put("direction", "GradientDirection.RightTop"); in LinearGradientToJson()
[all …]
Dborder_property.cpp29 res->Put("left", BORDER_STYLE[static_cast<int>(styleLeft.value_or(BorderStyle::SOLID))]); in ToJsonValue()
30 res->Put("top", BORDER_STYLE[static_cast<int>(styleTop.value_or(BorderStyle::SOLID))]); in ToJsonValue()
31 res->Put("right", BORDER_STYLE[static_cast<int>(styleRight.value_or(BorderStyle::SOLID))]); in ToJsonValue()
32 … res->Put("bottom", BORDER_STYLE[static_cast<int>(styleBottom.value_or(BorderStyle::SOLID))]); in ToJsonValue()
34 json->Put("borderStyle", res); in ToJsonValue()
35 borderJson->Put("style", res); in ToJsonValue()
37 … json->Put("borderStyle", BORDER_STYLE[static_cast<int>(styleLeft.value_or(BorderStyle::SOLID))]); in ToJsonValue()
38 … borderJson->Put("style", BORDER_STYLE[static_cast<int>(styleLeft.value_or(BorderStyle::SOLID))]); in ToJsonValue()
57 res->Put("left", leftDimen.value_or(Dimension(0.0, DimensionUnit::VP)).ToString().c_str()); in ToJsonValue()
58 res->Put("top", topDimen.value_or(Dimension(0.0, DimensionUnit::VP)).ToString().c_str()); in ToJsonValue()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/
Dutils.cpp23 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->Put("weight", "800"); in GetTextStyleInJson()
42 jsonValue->Put("weight", "900"); in GetTextStyleInJson()
[all …]
Dalertdialog_composed_element.cpp41 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
59 item->Put("title", GetTitle().c_str()); in Show()
60 item->Put("message", GetMessage().c_str()); in Show()
61 item->Put("autoCancel", GetAutoCancel().c_str()); in Show()
62 item->Put("confirm", GetConfirm()); in Show()
63 item->Put("alignment", GetAlignment().c_str()); in Show()
64 item->Put("offset", GetDialogOffset()); in Show()
65 item->Put("gridcount", GetGridCount().c_str()); in Show()
66 item->Put("primarybutton", GetPrimaryButton()); in Show()
67 item->Put("secondarybutton", GetSecondaryButton()); in Show()
[all …]
Dactionsheetdialog_composed_element.cpp43 resultJson->Put(value.first.c_str(), value.second(*this).c_str()); in ToJsonObject()
61 item->Put("title", GetTitle().c_str()); in Show()
62 item->Put("message", GetMessage().c_str()); in Show()
63 item->Put("autoCancel", GetAutoCancel().c_str()); in Show()
64 item->Put("confirm", GetConfirm()); in Show()
65 item->Put("alignment", GetAlignment().c_str()); in Show()
66 item->Put("offset", GetDialogOffset()); in Show()
67 item->Put("sheet", GetSheets()); in Show()
68 jsonArray->Put(item); in Show()
107 item->Put("value", dialog.text.c_str()); in GetConfirm()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
Dgrid_layout_property.cpp42 json->Put("columnsTemplate", propColumnsTemplate_.value_or("").c_str()); in ToJsonValue()
43 json->Put("rowsTemplate", propRowsTemplate_.value_or("").c_str()); in ToJsonValue()
44 json->Put("columnsGap", propColumnsGap_.value_or(0.0_vp).ToString().c_str()); in ToJsonValue()
45 json->Put("rowsGap", propRowsGap_.value_or(0.0_vp).ToString().c_str()); in ToJsonValue()
46 json->Put("cachedCount", propCachedCount_.value_or(1)); in ToJsonValue()
47 json->Put("editMode", propEditable_.value_or(false) ? "true" : "false"); in ToJsonValue()
48 json->Put("layoutDirection", GetGridDirectionStr().c_str()); in ToJsonValue()
49 json->Put("maxCount", propMaxCount_.value_or(Infinity<int32_t>())); in ToJsonValue()
50 json->Put("minCount", propMinCount_.value_or(1)); in ToJsonValue()
51 json->Put("cellLength", propCellLength_.value_or(0)); in ToJsonValue()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/
Dprogress_paint_property.cpp37 json->Put("constructor", ProgressOptions().c_str()); in ToJsonValue()
38 json->Put("total", std::to_string(GetMaxValue().value_or(PROGRSS_MAX_VALUE)).c_str()); in ToJsonValue()
39 json->Put("value", std::to_string(GetValue().value_or(0.f)).c_str()); in ToJsonValue()
40 …json->Put("scaleCount", std::to_string(GetScaleCount().value_or(progressTheme->GetScaleNumber())).… in ToJsonValue()
41 …json->Put("scaleWidth", (GetScaleWidth().value_or(progressTheme->GetScaleWidth()).ToString()).c_st… in ToJsonValue()
42 …json->Put("color", (GetColor().value_or(progressTheme->GetTrackSelectedColor())).ColorToString().c… in ToJsonValue()
52 …json->Put("backgroundColor", (GetBackgroundColor().value_or(defaultBackgroundColor)).ColorToString… in ToJsonValue()
53 json->Put( in ToJsonValue()
56 json->Put("progressGradientColor", ToJsonGradientColor().c_str()); in ToJsonValue()
62 jsonValue->Put("value", std::to_string(GetValue().value_or(0.f)).c_str()); in ProgressOptions()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/indexer/
Dindexer_layout_property.cpp32 json->Put("selected", std::to_string(propSelected_.value_or(0)).c_str()); in ToJsonValue()
33 json->Put("color", propColor_.value_or(Color::WHITE).ColorToString().c_str()); in ToJsonValue()
34 json->Put("selectedColor", propSelectedColor_.value_or(Color::WHITE).ColorToString().c_str()); in ToJsonValue()
35 json->Put("popupColor", propPopupColor_.value_or(Color::WHITE).ColorToString().c_str()); in ToJsonValue()
36 json->Put("usingPopup", propUsingPopup_.value_or(false) ? "true" : "false"); in ToJsonValue()
37 … json->Put("itemSize", propItemSize_.value_or(Dimension(0, DimensionUnit::VP)).ToString().c_str()); in ToJsonValue()
38 json->Put("alignStyle", in ToJsonValue()
41 …PopupPositionJsonObject->Put("popupPositionX", propPopupPositionX_.value_or(Dimension()).ToString(… in ToJsonValue()
42 …PopupPositionJsonObject->Put("popupPositionY", propPopupPositionY_.value_or(Dimension()).ToString(… in ToJsonValue()
43 json->Put("popupPosition", PopupPositionJsonObject); in ToJsonValue()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/badge/
Dbadge_layout_property.cpp44 …json->Put("position", GetBadgePositionString(GetBadgePosition().value_or(badgeTheme->GetBadgePosit… in ToJsonValue()
45 json->Put("count", std::to_string(GetBadgeCount().value_or(DEFAULT_COUNT)).c_str()); in ToJsonValue()
46 json->Put("maxCount", std::to_string(GetBadgeMaxCount().value_or(DEFAULT_MAX_COUNT)).c_str()); in ToJsonValue()
47 json->Put("value", GetBadgeValue().value_or("").c_str()); in ToJsonValue()
50 jsonValue->Put("x", GetBadgePositionX().value_or(DEFAULT_POSITION_SIZE).ToString().c_str()); in ToJsonValue()
51 jsonValue->Put("y", GetBadgePositionY().value_or(DEFAULT_POSITION_SIZE).ToString().c_str()); in ToJsonValue()
53 … jsonValue->Put("color", GetBadgeTextColor().value_or(DEFAULT_TEXT_COLOR).ColorToString().c_str()); in ToJsonValue()
54 jsonValue->Put("fontSize", GetBadgeFontSize().value_or(DEFAULT_FONT_SIZE).ToString().c_str()); in ToJsonValue()
55 …jsonValue->Put("badgeColor", GetBadgeColor().value_or(DEFAULT_BADGE_COLOR).ColorToString().c_str()… in ToJsonValue()
56 …jsonValue->Put("badgeSize", GetBadgeCircleSize().value_or(DEFAULT_CIRCLE_SIZE).ToString().c_str()); in ToJsonValue()
[all …]
/foundation/arkui/ace_engine/frameworks/base/log/
Dace_performance_check.cpp100 AcePerformanceCheck::performanceInfo_->Put(ruleType.c_str(), JsonUtil::CreateArray(false)); in CheckIsRuleContainsPage()
203 pageJson->Put("eventTime", eventTime.c_str()); in RecordPageNodeCountAndDepth()
204 pageJson->Put("pagePath", codeInfo.sources.c_str()); in RecordPageNodeCountAndDepth()
205 pageJson->Put("nodeCount", pageNodeCount); in RecordPageNodeCountAndDepth()
206 pageJson->Put("depth", pageDepth); in RecordPageNodeCountAndDepth()
210 componentJson->Put("name", iter.nodeTag.c_str()); in RecordPageNodeCountAndDepth()
211 componentJson->Put("items", iter.childrenSize); in RecordPageNodeCountAndDepth()
212 componentJson->Put("sourceLine", GetCodeInfo(iter.codeRow, iter.codeCol).row); in RecordPageNodeCountAndDepth()
216 componentsJson->Put(componentJson); in RecordPageNodeCountAndDepth()
219 componentsJson->Put(componentJson); in RecordPageNodeCountAndDepth()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
Dmenu_layout_property.cpp25 json->Put("title", GetTitle().value_or("").c_str()); in ToJsonValue()
26 json->Put("offset", GetPositionOffset().value_or(OffsetF()).ToString().c_str()); in ToJsonValue()
30 json->Put("fontSize", GetFontSize().value_or(defaultFontSize).ToString().c_str()); in ToJsonValue()
32 json->Put("fontColor", GetFontColor().value_or(defaultFontColor).ColorToString().c_str()); in ToJsonValue()
34 fontJsonObject->Put("size", GetFontSize().value_or(defaultFontSize).ToString().c_str()); in ToJsonValue()
35 fontJsonObject->Put("weight", in ToJsonValue()
37 fontJsonObject->Put("style", in ToJsonValue()
39 fontJsonObject->Put("family", V2::ConvertFontFamily(GetFontFamilyValue({})).c_str()); in ToJsonValue()
40 json->Put("font", fontJsonObject); in ToJsonValue()
60 jsonValue->Put("value", pattern->GetText().c_str()); in ToJsonValue()
[all …]
/foundation/arkui/ace_engine/frameworks/core/common/ime/
Dtext_input_configuration.cpp38 json->Put(TYPE, static_cast<int32_t>(type)); in ToJsonString()
39 json->Put(OBSCURE_TEXT, obscureText); in ToJsonString()
40 json->Put(ACTION, static_cast<int32_t>(action)); in ToJsonString()
42 json->Put(ACTION_LABEL, actionLabel.c_str()); in ToJsonString()
45 json->Put(AUTO_CORRECT, autoCorrect); in ToJsonString()
47 json->Put(CAPITALIZATION, capitalization.c_str()); in ToJsonString()
50 json->Put(KEYBOARD_APPEARANCE, keyboardAppearance.c_str()); in ToJsonString()
53 json->Put(INPUT_FILTER, inputFilter.c_str()); in ToJsonString()
55 json->Put(MAX_LENGTH, static_cast<int32_t>(maxLength)); in ToJsonString()
/foundation/arkui/ace_engine/frameworks/bridge/common/plugin_adapter/
Dplugin_bridge.cpp27 infoList->Put("brand", tmp.c_str()); in ProcessSystemParam()
31 infoList->Put("manufacturer", tmp.c_str()); in ProcessSystemParam()
35 infoList->Put("model", tmp.c_str()); in ProcessSystemParam()
39 infoList->Put("product", tmp.c_str()); in ProcessSystemParam()
44 infoList->Put( in ProcessSystemParam()
49 infoList->Put("releaseType", tmp.c_str()); in ProcessSystemParam()
53 infoList->Put("deviceType", tmp.c_str()); in ProcessSystemParam()
58 infoList->Put("language", tmp.c_str()); in ProcessSystemParam()
63 infoList->Put("region", tmp.c_str()); in ProcessSystemParam()
76 infoList->Put("windowWidth", width); in GetDeviceInfo()
[all …]
/foundation/arkui/ace_engine/frameworks/bridge/common/media_query/
Dmedia_query_info.cpp66 json->Put("isInit", false); in GetMediaQueryInfo()
91 json->Put("width", width); in GetMediaQueryJsonInfo()
92 json->Put("height", height); in GetMediaQueryJsonInfo()
93 json->Put("aspect-ratio", aspectRatio); in GetMediaQueryJsonInfo()
94 json->Put("round-screen", SystemProperties::GetIsScreenRound()); in GetMediaQueryJsonInfo()
95 json->Put("device-width", SystemProperties::GetDeviceWidth()); in GetMediaQueryJsonInfo()
96 json->Put("device-height", SystemProperties::GetDeviceHeight()); in GetMediaQueryJsonInfo()
97 json->Put("resolution", SystemProperties::GetResolution()); in GetMediaQueryJsonInfo()
98 json->Put("orientation", GetOrientation().c_str()); in GetMediaQueryJsonInfo()
99 json->Put("device-type", GetDeviceType().c_str()); in GetMediaQueryJsonInfo()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
Dtab_content_node.cpp120 indicator->Put("color", indicatorStyle.color.ColorToString().c_str()); in ToJsonValue()
121 indicator->Put("height", indicatorStyle.height.ToString().c_str()); in ToJsonValue()
122 indicator->Put("width", indicatorStyle.width.ToString().c_str()); in ToJsonValue()
123 indicator->Put("borderRadius", indicatorStyle.borderRadius.ToString().c_str()); in ToJsonValue()
124 indicator->Put("marginTop", indicatorStyle.marginTop.ToString().c_str()); in ToJsonValue()
125 tabBar->Put("indicator", indicator); in ToJsonValue()
129 board->Put("borderRadius", boardStyle.borderRadius.ToString().c_str()); in ToJsonValue()
130 tabBar->Put("board", board); in ToJsonValue()
132 tabBar->Put("selectedMode", tabContentPattern->GetSelectedMode() == SelectedMode::INDICATOR ? in ToJsonValue()
137 font->Put("size", labelStyle.fontSize.value_or(Dimension(0)).ToString().c_str()); in ToJsonValue()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/calendar/
Dcalendar_paint_property.h58 json->Put("dayColor", propDayColor.value_or(Color()).ColorToString().c_str()); in ToJsonValue()
59 json->Put("lunarColor", propLunarColor.value_or(Color()).ColorToString().c_str()); in ToJsonValue()
60 json->Put("markLunarColor", propMarkLunarColor.value_or(Color()).ColorToString().c_str()); in ToJsonValue()
61 …json->Put("dayFontSize", propDayFontSize.value_or(Dimension(0, DimensionUnit::VP)).ToString().c_st… in ToJsonValue()
62 json->Put( in ToJsonValue()
64 …json->Put("dayHeight", propDayHeight.value_or(Dimension(0, DimensionUnit::VP)).ToString().c_str()); in ToJsonValue()
65 … json->Put("dayWidth", propDayWidth.value_or(Dimension(0, DimensionUnit::VP)).ToString().c_str()); in ToJsonValue()
66 json->Put("gregorianCalendarHeight", in ToJsonValue()
68 …json->Put("dayYAxisOffset", propDayYAxisOffset.value_or(Dimension(0, DimensionUnit::VP)).ToString(… in ToJsonValue()
69 json->Put("lunarDayYAxisOffset", in ToJsonValue()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
Dtextpicker_layout_property.h70 …json->Put("defaultPickerItemHeight", GetDefaultPickerItemHeightValue(Dimension(0)).ToString().c_st… in ToJsonValue()
71 json->Put("selected", std::to_string(GetSelectedValue(0)).c_str()); in ToJsonValue()
72 json->Put("value", GetValueValue("").c_str()); in ToJsonValue()
78 jsonArraySelected->Put(index.c_str(), std::to_string(arraySelected[i]).c_str()); in ToJsonValue()
80 json->Put("selecteds", jsonArraySelected); in ToJsonValue()
86 … jsonArraySelectedIndex->Put(index.c_str(), std::to_string(arraySelectedIndex[i]).c_str()); in ToJsonValue()
88 json->Put("selectedIndex", jsonArraySelectedIndex); in ToJsonValue()
94 jsonArrayValue->Put(index.c_str(), arrayValue[i].c_str()); in ToJsonValue()
96 json->Put("values", jsonArrayValue); in ToJsonValue()
99 disappearFont->Put("size", GetDisappearFontSizeValue(Dimension(0)).ToString().c_str()); in ToJsonValue()
[all …]
/foundation/distributeddatamgr/data_share/test/native/unittest/mediadatashare_test/src/
Djoin_test.cpp128 values.Put("userId", 1); in InsertUserDates()
129 values.Put("firstName", "Zhang"); in InsertUserDates()
130 values.Put("lastName", "San"); in InsertUserDates()
131 values.Put("age", 29); in InsertUserDates()
132 values.Put("balance", 100.51); in InsertUserDates()
137 values.Put("userId", 2); in InsertUserDates()
138 values.Put("firstName", "Li"); in InsertUserDates()
139 values.Put("lastName", "Si"); in InsertUserDates()
140 values.Put("age", 30); in InsertUserDates()
141 values.Put("balance", 200.51); in InsertUserDates()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/
Dwater_flow_layout_property.cpp38 json->Put("columnsTemplate", propColumnsTemplate_.value_or("").c_str()); in ToJsonValue()
39 json->Put("rowsTemplate", propRowsTemplate_.value_or("").c_str()); in ToJsonValue()
40 json->Put("columnsGap", propColumnsGap_.value_or(0.0_vp).ToString().c_str()); in ToJsonValue()
41 json->Put("rowsGap", propRowsGap_.value_or(0.0_vp).ToString().c_str()); in ToJsonValue()
42 json->Put("layoutDirection ", GetWaterflowDirectionStr().c_str()); in ToJsonValue()
45 jsonConstraintSize->Put("minWidth", itemLayoutConstraint_->minSize.value_or(CalcSize()) in ToJsonValue()
50 jsonConstraintSize->Put("minHeight", itemLayoutConstraint_->minSize.value_or(CalcSize()) in ToJsonValue()
55 jsonConstraintSize->Put("maxWidth", itemLayoutConstraint_->maxSize.value_or(CalcSize()) in ToJsonValue()
60 jsonConstraintSize->Put("maxHeight", itemLayoutConstraint_->maxSize.value_or(CalcSize()) in ToJsonValue()
65 json->Put("itemConstraintSize", jsonConstraintSize->ToString().c_str()); in ToJsonValue()
[all …]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
Dsecurity_component_pattern.cpp64 jsonNode->Put("handleRes", res); in InitSecurityComponentOnClick()
84 json->Put("text", layoutProperty->GetSecurityComponentDescription().value_or(0)); in ToJsonValue()
85 json->Put("icon", layoutProperty->GetIconStyle().value_or(0)); in ToJsonValue()
86 json->Put("buttonType", layoutProperty->GetBackgroundType().value_or(0)); in ToJsonValue()
87 json->Put("layoutDirection", static_cast<int64_t>( in ToJsonValue()
89 json->Put("type", node->GetTag().c_str()); in ToJsonValue()
95 json->Put("iconSize", in ToJsonValue()
97 json->Put("iconColor", in ToJsonValue()
104 json->Put("fontSize", textProp->GetFontSize().value_or(Dimension(0.0)).ToString().c_str()); in ToJsonValue()
105 json->Put("fontWeight", in ToJsonValue()
[all …]

12345678910>>...22