Home
last modified time | relevance | path

Searched refs:floor (Results 1 - 25 of 74) sorted by relevance

123

/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dextension_handler.cpp24 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 Ddate.js35 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 Dtoss_animation_controller.cpp195 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 Dmeasure_utils.cpp119 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 Dtemplates_parser.cpp249 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 Dgrid_layout_test_ng.cpp58 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 Dgrid_cache_layout_test_ng.cpp125 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 Drs_obj_abs_geometry.cpp311 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 Dpost_proc_slr.cpp59 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 Dmathf.h76 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 Dswiper_utils.h130 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 Drs_particle_noise_field.cpp201 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 Dscreen_property.cpp295 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 Drender_rating.cpp345 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 Drosen_render_rating.cpp115 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 Drender_loading_progress.cpp226 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 Dsheet_drag_bar_paint_method.cpp65 auto alpha = std::floor(UINT8_MAX * defaultOpacity); in Paint()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/panel/
H A Ddrag_bar_paint_method.cpp69 auto alpha_ = std::floor(UINT8_MAX * defaultOpacity); in Paint()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_adaptive/
H A Dgrid_adaptive_layout_algorithm.cpp68 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 Drs_obj_geometry.h325 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 Drs_render_thread_visitor.cpp949 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 Dslider_test_ng.cpp1874 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 D3d_dm_shadowing_common.h73 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 Dtext_field_content_modifier.cpp312 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 Dslider_model_ng.cpp575 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()

Completed in 20 milliseconds

123