/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | measure_utils.cpp | 35 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 D | measure_utils.h | 32 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 D | layout_constraint.inl | 113 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 D | layout_constraint.h | 33 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 D | constraint_flags.cpp | 26 percentRef = preConstraint->percentReference == constraint->percentReference; in UpdateFlags()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/progress/ |
H A D | progress_test_ng.cpp | 138 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 D | data_panel_layout_algorithm.cpp | 43 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 D | layout_constraint_test_ng.cpp | 448 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 D | layout_property.cpp | 124 … *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 D | loading_progress_layout_algorithm.cpp | 35 … : contentConstraint.percentReference.Height(); in MeasureContent() 37 … : contentConstraint.percentReference.Width(); in MeasureContent()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/layout/ |
H A D | box_layout_algorithm_test_ng.cpp | 120 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 D | divider_new_test_ng.cpp | 37 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 D | data_panel_test_ng.cpp | 238 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 D | swiper_indicator_layout_test_ng.cpp | 101 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 D | swiper_layout_test_ng.cpp | 380 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 D | performance-optimization-using-hidumper.md | 133 …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 D | divider_layout_algorithm.cpp | 47 … : contentConstraint.percentReference.Width(); in MeasureContent() 59 … : contentConstraint.percentReference.Height(); in MeasureContent()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/shape/ |
H A D | line_pattern_test_ng.cpp | 58 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 D | ellipse_pattern_test_ng.cpp | 47 layoutConstraint.percentReference.SetWidth(WIDTH); in Draw() 48 layoutConstraint.percentReference.SetHeight(HEIGHT); in Draw()
|
H A D | polygon_pattern_test_ng.cpp | 46 layoutConstraint.percentReference.SetWidth(WIDTH); in Draw() 47 layoutConstraint.percentReference.SetHeight(HEIGHT); in Draw()
|
H A D | polyline_pattern_test_ng.cpp | 46 layoutConstraint.percentReference.SetWidth(WIDTH); in Draw() 47 layoutConstraint.percentReference.SetHeight(HEIGHT); in Draw()
|
H A D | shape_pattern_test_ng.cpp | 100 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 D | water_flow_layout_utils.cpp | 77 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 D | shape_container_layout_algorithm.cpp | 91 …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 D | extension_handler.cpp | 36 auto parentIdealWidth = floor(layoutConstraintF.percentReference.Width()); in Create() 37 auto parentIdealHeight = floor(layoutConstraintF.percentReference.Height()); in Create()
|