Home
last modified time | relevance | path

Searched refs:percentReference (Results 1 – 25 of 133) sorted by relevance

123456

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dmeasure_utils.cpp35 auto width = ConvertToPx(size.Width(), scaleProperty, percentReference.Width()); in ConvertToSize()
43 auto width = ConvertToPx(size.Width(), scaleProperty, percentReference.Width()); in ConvertToOptionalSize()
119 float percentReference, bool roundPixel, bool nonNegative) in ConvertToPaddingPropertyF() argument
121 auto left = ConvertToPx(padding.left, scaleProperty, percentReference); in ConvertToPaddingPropertyF()
122 auto right = ConvertToPx(padding.right, scaleProperty, percentReference); in ConvertToPaddingPropertyF()
123 auto top = ConvertToPx(padding.top, scaleProperty, percentReference); in ConvertToPaddingPropertyF()
124 auto bottom = ConvertToPx(padding.bottom, scaleProperty, percentReference); in ConvertToPaddingPropertyF()
159 const ScaleProperty& scaleProperty, float percentReference, bool roundPixel) in ConvertToMarginPropertyF() argument
171 const ScaleProperty& scaleProperty, float percentReference, bool roundPixel) in ConvertToBorderWidthPropertyF() argument
368 finalSize, calcLayoutConstraint->maxSize, percentReference, true); in UpdateOptionSizeByCalcLayoutConstraint()
[all …]
H A Dmeasure_utils.h32 const CalcLength& value, const ScaleProperty& scaleProperty, float percentReference = -1.0f);
35 …::optional<CalcLength>& value, const ScaleProperty& scaleProperty, float percentReference = -1.0f);
38 const Dimension& dimension, const ScaleProperty& scaleProperty, float percentReference = -1.0f);
41 …const CalcSize& size, const ScaleProperty& scaleProperty, const SizeF& percentReference = SizeF(-1…
49 const ScaleProperty& scaleProperty, float percentReference = -1.0f, bool roundPixel = true,
53 float percentReference = -1.0f, bool roundPixel = true, bool nonNegative = false);
56 const ScaleProperty& scaleProperty, float percentReference = -1.0f, bool roundPixel = true);
59 float percentReference = -1.0f, bool roundPixel = true);
62 const ScaleProperty& scaleProperty, float percentReference = -1.0f, bool roundPixel = true);
65 const ScaleProperty& scaleProperty, float percentReference = -1.0f, bool roundPixel = true);
[all …]
H A Dlayout_constraint.inl113 percentReference.SetHeight(percentReference.Width() / ratio);
119 percentReference.SetWidth(percentReference.Height() / ratio);
130 if (percentReference.Height() * ratio > maxSize.Width()) {
133 percentReference.SetHeight(percentReference.Width() / ratio);
137 if (percentReference.Width() / ratio > maxSize.Height()) {
140 percentReference.SetWidth(percentReference.Height() * ratio);
148 percentReference.SetHeight(percentReference.Width() / ratio);
155 percentReference.SetWidth(percentReference.Height() / ratio);
165 percentReference = { 0, 0 };
178 percentReference.MinusPadding(left, right, top, bottom);
[all …]
H A Dlayout_constraint.h33 SizeT<T> percentReference { 0, 0 };
98 …(maxSize == layoutConstraint.maxSize) && (percentReference == layoutConstraint.percentReference) &&
114 … CompareWithInfinityCheck(percentReference.Height(), layoutConstraint.percentReference.Height()) && in EqualWithoutPercentWidth()
124 … CompareWithInfinityCheck(percentReference.Width(), layoutConstraint.percentReference.Width()) && in EqualWithoutPercentHeight()
202 if (percentReference == size) { in UpdatePercentReference()
205 percentReference.SetSizeT(size); in UpdatePercentReference()
H A Dconstraint_flags.cpp26 percentRef = preConstraint->percentReference == constraint->percentReference; in UpdateFlags()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/progress/
H A Dprogress_test_ng.cpp138 contentConstraint.percentReference.SetWidth(PROGRESS_COMPONENT_MAXSIZE_WIDTH);
139 contentConstraint.percentReference.SetHeight(PROGRESS_COMPONENT_MAXSIZE_HEIGHT);
186 contentConstraint.percentReference.SetWidth(PROGRESS_COMPONENT_MAXSIZE_WIDTH);
187 contentConstraint.percentReference.SetHeight(PROGRESS_COMPONENT_MAXSIZE_HEIGHT);
216 contentConstraint.percentReference.SetWidth(PROGRESS_COMPONENT_MAXSIZE_WIDTH);
217 contentConstraint.percentReference.SetHeight(PROGRESS_COMPONENT_MAXSIZE_HEIGHT);
276 contentConstraint.percentReference.SetWidth(PROGRESS_COMPONENT_MAXSIZE_WIDTH);
340 contentConstraint.percentReference.SetWidth(PROGRESS_COMPONENT_MAXSIZE_WIDTH);
369 contentConstraint2.percentReference.SetWidth(PROGRESS_COMPONENT_MAXSIZE_WIDTH);
408 contentConstraint.percentReference.SetWidth(PROGRESS_COMPONENT_MAXSIZE_WIDTH);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/data_panel/
H A Ddata_panel_layout_algorithm.cpp43 auto width = contentConstraint.percentReference.Width(); in MeasureContent()
44 auto height = contentConstraint.percentReference.Height(); in MeasureContent()
83 return contentConstraint.percentReference; in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/property/
H A Dlayout_constraint_test_ng.cpp448 layoutConstraint.percentReference = { 0, 1025 };
456 EXPECT_EQ(layoutConstraint.percentReference.Height(), 0);
467 layoutConstraint.percentReference = { 8193, 0 };
471 EXPECT_EQ(layoutConstraint.percentReference.Width(), 0);
477 layoutConstraint.percentReference = { 0, 0 };
479 EXPECT_EQ(layoutConstraint.percentReference.Width(), 0);
480 EXPECT_EQ(layoutConstraint.percentReference.Height(), 0);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/layout/
H A Dlayout_property.cpp124 … *padding, contentConstraint->scaleProperty, contentConstraint->percentReference.Width()); in ConstrainContentByBorderAndPadding()
129 *borderWidth, contentConstraint->scaleProperty, layoutConstraint->percentReference.Width()); in ConstrainContentByBorderAndPadding()
376 MinusPaddingToNonNegativeSize(margin, layoutConstraint_->percentReference); in UpdateLayoutConstraint()
380 MinusPaddingToSize(margin, layoutConstraint_->percentReference); in UpdateLayoutConstraint()
390 parentConstraint.scaleProperty, parentConstraint.percentReference)); in UpdateLayoutConstraint()
394 parentConstraint.scaleProperty, parentConstraint.percentReference)); in UpdateLayoutConstraint()
399 parentConstraint.percentReference)); in UpdateLayoutConstraint()
416 .percentReference = size, in UpdateLayoutConstraintWithLayoutRect()
555 layoutConstraint_->percentReference); in CheckSelfIdealSize()
559 layoutConstraint_->percentReference); in CheckSelfIdealSize()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/loading_progress/
H A Dloading_progress_layout_algorithm.cpp35 … : contentConstraint.percentReference.Height(); in MeasureContent()
37 … : contentConstraint.percentReference.Width(); in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/layout/
H A Dbox_layout_algorithm_test_ng.cpp120 parentLayoutConstraint.percentReference = CONTAINER_SIZE;
178 parentLayoutConstraint.percentReference = CONTAINER_SIZE;
231 parentLayoutConstraint.percentReference = CONTAINER_SIZE;
291 parentLayoutConstraint.percentReference = CONTAINER_SIZE;
356 parentLayoutConstraint.percentReference = CONTAINER_SIZE;
414 parentLayoutConstraint.percentReference = CONTAINER_SIZE;
683 parentLayoutConstraint.percentReference = CONTAINER_SIZE;
721 parentLayoutConstraint.percentReference.SetSizeT(SizeF(RK356_WIDTH, ROW_HEIGHT));
725 EXPECT_EQ(sizeTemp.value().width_, parentLayoutConstraint.percentReference.width_);
726 EXPECT_EQ(sizeTemp.value().height_, parentLayoutConstraint.percentReference.height_);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/divider/
H A Ddivider_new_test_ng.cpp37 parentConstraint.percentReference = SizeF(300, 300);
59 parentConstraint.percentReference = SizeF(300, 300);
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/data_panel/
H A Ddata_panel_test_ng.cpp238 layoutConstraint.percentReference = MAX_SIZE;
248 layoutConstraint.percentReference = MAX_SIZE;
255 layoutConstraintHeight.percentReference = MAX_SIZE;
262 layoutConstraintWidth.percentReference = MAX_SIZE;
327 layoutConstraint.percentReference = MAX_PERCENT_SIZE;
337 layoutConstraint.percentReference = MAX_PERCENT_SIZE;
504 layoutConstraint.percentReference = MAX_SIZE;
1926 layoutConstraint.percentReference = MAX_SIZE;
1936 layoutConstraint.percentReference = MAX_SIZE;
1943 layoutConstraintHeight.percentReference = MAX_SIZE;
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_indicator_layout_test_ng.cpp101 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
131 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
160 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
191 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
221 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
250 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
H A Dswiper_layout_test_ng.cpp380 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
442 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
476 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
558 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
619 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
788 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
825 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
994 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
1065 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
1094 layoutConstraint.percentReference = SizeF(720.f, 1136.f);
[all …]
/ohos5.0/docs/zh-cn/application-dev/performance/
H A Dperformance-optimization-using-hidumper.md133 …ParentLayoutConstraint: minSize: [[0.00 x 0.00]]maxSize: [[720.00 x 1136.00]]percentReference: [[7…
184 …ParentLayoutConstraint: minSize: [[0.00 x 0.00]]maxSize: [[720.00 x 1136.00]]percentReference: [[7…
198 …ParentLayoutConstraint: minSize: [[0.00 x 0.00]]maxSize: [[720.00 x 1136.00]]percentReference: [[7…
212 …ParentLayoutConstraint: minSize: [[0.00 x 0.00]]maxSize: [[720.00 x 1136.00]]percentReference: [[7…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/divider/
H A Ddivider_layout_algorithm.cpp47 … : contentConstraint.percentReference.Width(); in MeasureContent()
59 … : contentConstraint.percentReference.Height(); in MeasureContent()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/shape/
H A Dline_pattern_test_ng.cpp58 layoutConstraint.percentReference.SetWidth(WIDTH); in Draw()
59 layoutConstraint.percentReference.SetHeight(HEIGHT); in Draw()
175 layoutConstraint.percentReference.SetWidth(WIDTH); in MeasureContentTest()
176 layoutConstraint.percentReference.SetHeight(HEIGHT); in MeasureContentTest()
H A Dellipse_pattern_test_ng.cpp47 layoutConstraint.percentReference.SetWidth(WIDTH); in Draw()
48 layoutConstraint.percentReference.SetHeight(HEIGHT); in Draw()
H A Dpolygon_pattern_test_ng.cpp46 layoutConstraint.percentReference.SetWidth(WIDTH); in Draw()
47 layoutConstraint.percentReference.SetHeight(HEIGHT); in Draw()
H A Dpolyline_pattern_test_ng.cpp46 layoutConstraint.percentReference.SetWidth(WIDTH); in Draw()
47 layoutConstraint.percentReference.SetHeight(HEIGHT); in Draw()
H A Dshape_pattern_test_ng.cpp100 layoutConstraint.percentReference.SetWidth(WIDTH);
101 layoutConstraint.percentReference.SetHeight(HEIGHT);
213 layoutConstraint.percentReference.SetWidth(WIDTH);
214 layoutConstraint.percentReference.SetHeight(HEIGHT);
430 parentLayoutConstrain.percentReference = SizeF(CONTAINER_WIDTH, CONTAINER_HEIGHT);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/
H A Dwater_flow_layout_utils.cpp77 itemConstraint.percentReference = itemIdealSize; in CreateChildConstraint()
109 itemConstraint.scaleProperty, itemConstraint.percentReference)); in CreateChildConstraint()
113 itemConstraint.scaleProperty, itemConstraint.percentReference)); in CreateChildConstraint()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/
H A Dshape_container_layout_algorithm.cpp91 …o widthPercentReference = layoutConstraint.has_value() ? layoutConstraint->percentReference.Width() in GetChildrenSize()
93 …heightPercentReference = layoutConstraint.has_value() ? layoutConstraint->percentReference.Height() in GetChildrenSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dextension_handler.cpp36 auto parentIdealWidth = floor(layoutConstraintF.percentReference.Width()); in Create()
37 auto parentIdealHeight = floor(layoutConstraintF.percentReference.Height()); in Create()

123456