/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | extension_handler.cpp | 24 auto maxWidth = floor(layoutConstraintF.maxSize.Width()); in Create() 25 auto maxHeight = floor(layoutConstraintF.maxSize.Height()); in Create() 26 auto minWidth = floor(layoutConstraintF.minSize.Width()); in Create() 27 auto minHeight = floor(layoutConstraintF.minSize.Height()); in Create() 29 maxWidth = floor(layoutConstraintF.selfIdealSize.Width().value()); in Create() 33 maxHeight = floor(layoutConstraintF.selfIdealSize.Height().value()); in Create() 36 auto parentIdealWidth = floor(layoutConstraintF.percentReference.Width()); in Create() 37 auto parentIdealHeight = floor(layoutConstraintF.percentReference.Height()); in Create()
|
/foundation/arkui/ace_engine/test/component_test/tools/previewer_host/utils/ |
H A D | date.js | 35 let hours = Math.floor(duration / (1000 * 60 * 60)); 36 let minutes = Math.floor((duration % (1000 * 60 * 60)) / (1000 * 60)); 37 let seconds = Math.floor((duration % (1000 * 60)) / 1000);
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/ |
H A D | toss_animation_controller.cpp | 195 if (static_cast<int>(ref->end_) == std::floor(position)) { in CreatePropertyCallback() 196 column->UpdateFinishToss(std::floor(position)); in CreatePropertyCallback() 197 } else if (static_cast<int>(ref->end_) > std::floor(position)) { in CreatePropertyCallback() 200 column->UpdateToss(std::floor(position)); in CreatePropertyCallback()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | measure_utils.cpp | 119 left = floor(left.value()); in ConvertToPaddingPropertyF() 122 right = floor(right.value()); in ConvertToPaddingPropertyF() 125 top = floor(top.value()); in ConvertToPaddingPropertyF() 128 bottom = floor(bottom.value()); in ConvertToPaddingPropertyF() 178 left = (GreatOrEqual(left.value(), 1.0f) || NearEqual(left.value(), 0.0f)) ? floor(left.value()) : 1.0f; in ConvertToBorderWidthPropertyF() 181 right = (GreatOrEqual(right.value(), 1.0f) || NearEqual(right.value(), 0.0f)) ? floor(right.value()) : 1.0f; in ConvertToBorderWidthPropertyF() 184 top = (GreatOrEqual(top.value(), 1.0f) || NearEqual(top.value(), 0.0f)) ? floor(top.value()) : 1.0f; in ConvertToBorderWidthPropertyF() 188 (GreatOrEqual(bottom.value(), 1.0f) || NearEqual(bottom.value(), 0.0f)) ? floor(bottom.value()) : 1.0f; in ConvertToBorderWidthPropertyF()
|
H A D | templates_parser.cpp | 249 count = LessOrEqual(count, 1) ? 1 : floor(count); in ParseArgsWithAutoFill() 433 count = LessOrEqual(count, 1) ? 1 : floor(count); 476 columnCount = std::floor((size + gap) / (trackSize + gap));
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/ |
H A D | grid_layout_test_ng.cpp | 58 float offsetY = floor(index / colsNumber) * ITEM_HEIGHT; in HWTEST_F() 262 float offsetY = floor(index / colsNumber) * ITEM_HEIGHT; in HWTEST_F() 294 float offsetY = floor(index / colsNumber) * ITEM_HEIGHT; in HWTEST_F() 326 float offsetX = GRID_WIDTH - floor(index / rowsNumber) * itemWidth * 2 - itemWidth; in HWTEST_F() 359 float offsetY = floor(index / colsNumber) * ITEM_HEIGHT; in HWTEST_F() 391 float offsetX = GRID_WIDTH - floor(index / rowsNumber) * itemWidth * 2 - itemWidth; in HWTEST_F()
|
H A D | grid_cache_layout_test_ng.cpp | 125 float offsetY = -totalHeight + floor(index / colsNumber) * ITEM_HEIGHT + GRID_HEIGHT; in HWTEST_F()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/ |
H A D | rs_obj_abs_geometry.cpp | 311 absRect.left_ = static_cast<int>(std::floor(dst.GetLeft())); in MapRect() 312 absRect.top_ = static_cast<int>(std::floor(dst.GetTop())); in MapRect() 331 absRect.left_ = static_cast<int>(std::floor(xRange[0])); in MapRect() 332 absRect.top_ = static_cast<int>(std::floor(yRange[0])); in MapRect() 341 absRect.left_ = static_cast<int>(std::floor(rect.left_ * scaleX + transX)); in MapRect() 342 absRect.top_ = static_cast<int>(std::floor(rect.top_ * scaleY + transY)); in MapRect()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/converter/src/ |
H A D | post_proc_slr.cpp | 59 int a = std::max(2, static_cast<int>(std::floor(tao))); // 2 max SLR box size in GetWeights() 71 int eta = std::floor(etaf); in GetWeights() 142 int aX = std::max(2, static_cast<int>(std::floor(taoX))); in SLRBoxCheck() 143 int aY = std::max(2, static_cast<int>(std::floor(taoY))); // 2 default size in SLRBoxCheck() 171 int aX = std::max(2, static_cast<int>(std::floor(taoX))); in SLRBox() 172 int aY = std::max(2, static_cast<int>(std::floor(taoY))); // 2 default size in SLRBox()
|
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/ |
H A D | mathf.h | 76 inline float floor(float value) in floor() function 90 return static_cast<int>(floor(value)); in floorToInt()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_utils.h | 130 return static_cast<int32_t>(std::floor(static_cast<float>(index) / static_cast<float>(displayCount))) * in ComputePageIndex() 140 return static_cast<int32_t>(std::floor(static_cast<float>(index) / static_cast<float>(displayCount))) * in ComputePageEndIndex() 155 static_cast<int32_t>(floor((contentWidth - 2 * SWIPER_MARGIN.ConvertToPx() + SWIPER_GUTTER.ConvertToPx()) / in CheckAutoFillDisplayCount()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/animation/ |
H A D | rs_particle_noise_field.cpp | 201 uint32_t X = static_cast<uint32_t>(static_cast<int>(floor(x))) & 255; 202 uint32_t Y = static_cast<uint32_t>(static_cast<int>(floor(y))) & 255; 205 x -= floor(x); 206 y -= floor(y);
|
/foundation/window/window_manager/window_scene/session/screen/src/ |
H A D | screen_property.cpp | 295 xDpi_ = std::floor(xDpi_ * TRUNCATE_THREE_DECIMALS) / TRUNCATE_THREE_DECIMALS; in UpdateXDpi() 304 yDpi_ = std::floor(yDpi_ * TRUNCATE_THREE_DECIMALS) / TRUNCATE_THREE_DECIMALS; in UpdateYDpi() 342 xDpi_ = std::floor(xDpi_ * TRUNCATE_THREE_DECIMALS) / TRUNCATE_THREE_DECIMALS; in CalculateXYDpi() 343 yDpi_ = std::floor(yDpi_ * TRUNCATE_THREE_DECIMALS) / TRUNCATE_THREE_DECIMALS; in CalculateXYDpi()
|
/foundation/arkui/ace_engine/frameworks/core/components/rating/ |
H A D | render_rating.cpp | 345 pressstarNum_ = floor(pressPosition.GetX() / singleWidth_); in HandlePressDown() 377 wholeStarNum = floor((ratingWidth - updatePoint.GetX()) / singleWidth_); in HandleTouchEvent() 380 wholeStarNum = floor(updatePoint.GetX() / singleWidth_); in HandleTouchEvent() 542 int32_t starIndex = (int32_t)floor((localPoint.GetX() - offsetDeltaX) / singleWidth_); in HandleMouseEvent() 593 int32_t starIndex = (int32_t)floor((localPoint.GetX() - offsetDeltaX) / singleWidth_); in MouseHoverTest() 606 double focusScore = NearEqual(drawScore_, floor(drawScore_)) ? drawScore_ - 1 : floor(drawScore_); in GetStarOffset()
|
H A D | rosen_render_rating.cpp | 115 secondaryDrawOffset += Offset(floor(drawScore_) * singleWidth_, 0.0); in PaintRatingBar() 130 starNum_ - floor(drawScore_), backgroundSize, backgroundDrawOffset, backgroundClipOffset); in PaintRatingBar()
|
/foundation/arkui/ace_engine/frameworks/core/components/progress/ |
H A D | render_loading_progress.cpp | 226 para.alpha = floor(UINT8_MAX * GetCometAlphaByDegree(cometParams_[0].angular)); in UpdateCometParams() 229 para.alpha = floor(alpha); in UpdateCometParams() 322 para.alpha = floor(UINT8_MAX * dragAlpha_); in SetDragDistance()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_drag_bar_paint_method.cpp | 65 auto alpha = std::floor(UINT8_MAX * defaultOpacity); in Paint()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/panel/ |
H A D | drag_bar_paint_method.cpp | 69 auto alpha_ = std::floor(UINT8_MAX * defaultOpacity); in Paint()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_adaptive/ |
H A D | grid_adaptive_layout_algorithm.cpp | 68 mainCount_ = std::floor((idealSize.MainSize(axis).value_or(maxSize.MainSize(axis)) + mainGap) / in Measure() 71 crossCount_ = std::floor((idealSize.CrossSize(axis).value_or(Infinity<float>()) + crossGap) / in Measure()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_obj_geometry.h | 325 x_ = std::floor(x_); in Round() 326 y_ = std::floor(y_); in Round()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/pipeline/ |
H A D | rs_render_thread_visitor.cpp | 949 auto width = std::floor(node.GetRenderProperties().GetBoundsWidth() - (2 * pixel)); // width decrease 2 pixels in ClipHoleForSurfaceNode() 950 auto height = std::floor(node.GetRenderProperties().GetBoundsHeight() - (2 * pixel)); // height decrease 2 pixels in ClipHoleForSurfaceNode() 1004 auto width = std::floor(node.GetRenderProperties().GetBoundsWidth() - (2 * pixel)); // width decrease 2 pixels in ProcessTextureSurfaceRenderNode() 1005 auto height = std::floor(node.GetRenderProperties().GetBoundsHeight() - (2 * pixel)); // height decrease 2 pixels in ProcessTextureSurfaceRenderNode() 1032 auto width = std::floor(node.GetRenderProperties().GetBoundsWidth() - (2 * pixel)); // width decrease 2 pixels in ProcessOtherSurfaceRenderNode() 1033 auto height = std::floor(node.GetRenderProperties().GetBoundsHeight() - (2 * pixel)); // height decrease 2 pixels in ProcessOtherSurfaceRenderNode()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/slider/ |
H A D | slider_test_ng.cpp | 1874 std::pair<float, float>(minResponseValue, std::floor(minResponseValue / stepValue) * stepValue), in HWTEST_F() 1875 std::pair<float, float>(minResponseValue + 1, std::floor(minResponseValue / stepValue) * stepValue), in HWTEST_F() 1876 std::pair<float, float>(minResponseValue + 2, std::floor(minResponseValue / stepValue) * stepValue), in HWTEST_F() 1878 minResponseValue + stepValue * HALF - 1, std::floor(minResponseValue / stepValue) * stepValue), in HWTEST_F() 1880 minResponseValue + stepValue * HALF, std::floor((minResponseValue + stepValue) / stepValue) * stepValue), in HWTEST_F() 1882 std::floor((minResponseValue + stepValue) / stepValue) * stepValue), in HWTEST_F() 1960 std::pair<float, float>(minResponseValue, std::floor(minResponseValue / stepValue) * stepValue), in HWTEST_F() 1961 std::pair<float, float>(minResponseValue + 1, std::floor(minResponseValue / stepValue) * stepValue), in HWTEST_F() 1962 std::pair<float, float>(minResponseValue + 2, std::floor(minResponseValue / stepValue) * stepValue), in HWTEST_F() 1964 minResponseValue + stepValue * HALF - 1, std::floor(minResponseValu in HWTEST_F() [all...] |
/foundation/graphic/graphic_3d/lume/Lume_3D/api/3d/shaders/common/ |
H A D | 3d_dm_shadowing_common.h | 73 vec2 baseUv = (floor(uv) - offset) * texelSize; in CalcPcfShadow() 145 vec2 baseUv = (floor(uv) - offset) * texelSize; in CalcPcfShadowMed()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_field_content_modifier.cpp | 312 textStyle.SetFontWeight(static_cast<FontWeight>(std::floor(fontWeightFloat_->Get() + 0.5f))); in ModifyTextStyle() 600 uint8_t alpha = static_cast<uint8_t>(std::floor(textDecorationColorAlpha_->Get() + ROUND_VALUE)); in ModifyDecorationInTextStyle() 621 uint8_t alpha = static_cast<uint8_t>(std::floor(textDecorationColorAlpha_->Get() + ROUND_VALUE)); in UpdateTextDecorationMeasureFlag()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
H A D | slider_model_ng.cpp | 575 auto toValueCorrection = NearEqual(toValue - step * std::floor(toValue / step), 0) ? 0 : 1; in SetValidSlideRange() 576 fromValue = LessOrEqual(fromValue, minValue) ? minValue : std::floor(fromValue / step) * step; in SetValidSlideRange() 578 maxValue : (std::floor(toValue / step) + toValueCorrection) * step; in SetValidSlideRange()
|