Home
last modified time | relevance | path

Searched refs:round (Results 1 - 25 of 114) sorted by relevance

12345

/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/common/
H A Drs_color.cpp67 return RSColor(round(red_ * scale), round(green_ * scale), round(blue_ * scale), round(alpha_ * scale)); in operator *()
72 red_ = round(red_ * scale); in operator *=()
73 green_ = round(green_ * scale); in operator *=()
74 blue_ = round(blue_ * scale); in operator *=()
75 alpha_ = round(alpha_ * scale); in operator *=()
/foundation/resourceschedule/ffrt/benchmarks/serial_sched_time/
H A Dplot.py36 ['ffrt sched_time test [avg:', str(round(avg, 2)), ' us]']), fontsize=20)
52 marker='s', linestyle='-.', label=''.join(['base avg:', str(round(base_avg, 2))]))
57 color='r', marker='o', linestyle='-', label=''.join(['current avg:', str(round(current_avg, 2))]))
65 round(ratio * 100, 2)), '%]']), fontsize=15)
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/
H A Drs_vsync_rate_reduce_manager.cpp153 int width = static_cast<int>(std::round(appAbsRect.width_ * screenInfo.GetRogWidthRatio())); in CollectSurfaceVsyncInfo()
154 int height = static_cast<int>(std::round(appAbsRect.height_ * screenInfo.GetRogHeightRatio())); in CollectSurfaceVsyncInfo()
217 visArea >= std::round(vRateInfo.appWindowArea * CONTINUOUS_RATIO_LEVEL_0)) { in CalcRates()
219 } else if (visArea <= std::round(vRateInfo.appWindowArea * CONTINUOUS_RATIO_LEVEL_5)) { in CalcRates()
310 int minArea = std::round(appWindowArea * CONTINUOUS_RATIO_LEVEL_5); in CalcMaxVisibleRect()
323 if (maxRArea >= std::round(appWindowArea * CONTINUOUS_RATIO_LEVEL_1)) { in CalcMaxVisibleRect()
352 int level0Area = std::round(windowArea * CONTINUOUS_RATIO_LEVEL_0); in CalcVValByAreas()
353 int level1Area = std::round(windowArea * CONTINUOUS_RATIO_LEVEL_1); in CalcVValByAreas()
357 int level2Area = std::round(windowArea * CONTINUOUS_RATIO_LEVEL_2); in CalcVValByAreas()
361 int level3Area = std::round(windowAre in CalcVValByAreas()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/
H A Dmagic_layout_property.h45 round(static_cast<double>(propAspectRatio.value()) * 100) / 100, filter); in ToJsonValue()
51 round(static_cast<double>(propAspectRatio.value_or(0.0)) * 100) / 100, filter); in ToJsonValue()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/
H A Doverlay_container_pattern.cpp34 inset.bottom_.start -= std::round(titleHeight + borderWidth); in BeforeCreateLayoutWrapper()
35 inset.bottom_.end -= std::round(titleHeight + borderWidth + borderWidth + botPadding); in BeforeCreateLayoutWrapper()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/
H A Dsystem_window_scene.cpp48 .posX_ = std::round(bounds.x_), in OnBoundsChanged()
49 .posY_ = std::round(bounds.y_), in OnBoundsChanged()
50 .width_ = std::round(bounds.z_), in OnBoundsChanged()
51 .height_ = std::round(bounds.w_), in OnBoundsChanged()
62 windowRect.posX_ = std::round(bounds.x_ + session_->GetOffsetX()); in OnBoundsChanged()
63 windowRect.posY_ = std::round(bounds.y_ + session_->GetOffsetY()); in OnBoundsChanged()
241 .posX_ = std::round(rect.GetOffset().GetX().Value()), in RegisterResponseRegionCallback()
242 .posY_ = std::round(rect.GetOffset().GetY().Value()), in RegisterResponseRegionCallback()
243 .width_ = std::round(rect.GetWidth().Value()), in RegisterResponseRegionCallback()
244 .height_ = std::round(rec in RegisterResponseRegionCallback()
[all...]
H A Dwindow_scene.cpp165 .posX_ = std::round(rect.GetOffset().GetX().Value()), in RegisterResponseRegionCallback()
166 .posY_ = std::round(rect.GetOffset().GetY().Value()), in RegisterResponseRegionCallback()
167 .width_ = std::round(rect.GetWidth().Value()), in RegisterResponseRegionCallback()
168 .height_ = std::round(rect.GetHeight().Value()), in RegisterResponseRegionCallback()
225 .posX_ = std::round(bounds.x_), in OnBoundsChanged()
226 .posY_ = std::round(bounds.y_), in OnBoundsChanged()
227 .width_ = std::round(bounds.z_), in OnBoundsChanged()
228 .height_ = std::round(bounds.w_), in OnBoundsChanged()
242 windowRect.posX_ = std::round(bounds.x_ + session_->GetOffsetX()); in OnBoundsChanged()
243 windowRect.posY_ = std::round(bound in OnBoundsChanged()
[all...]
/foundation/graphic/graphic_3d/lume/LumeBase/api/base/math/
H A Dfloat_packer.h108 u.in[0] = uint16_t(round(clamp(v[0], 0.f, +1.f) * 65535.0f)); in PackUnorm2X16()
109 u.in[1] = uint16_t(round(clamp(v[1], 0.f, +1.f) * 65535.0f)); in PackUnorm2X16()
135 u.in[0] = (int16_t)(round(clamp(v.x, -1.0f, +1.0f) * 32767.0f)); in PackSnorm2X16()
136 u.in[1] = (int16_t)(round(clamp(v.y, -1.0f, +1.0f) * 32767.0f)); in PackSnorm2X16()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stage/
H A Dcontent_root_pattern.cpp61 inset.bottom_.start -= std::round(titleHeight + borderWidth); in CreateSafeAreaInsets()
62 inset.bottom_.end -= std::round(titleHeight + 2 * borderWidth + botPadding); in CreateSafeAreaInsets()
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/src/drawing/draw/
H A Dcolor.cpp139 alpha_ = static_cast<uint32_t>(round(std::clamp(a, 0.0f, 1.0f) * RGB_MAX)); in SetRgbF()
140 red_ = static_cast<uint32_t>(round(std::clamp(r, 0.0f, 1.0f) * RGB_MAX)); in SetRgbF()
141 green_ = static_cast<uint32_t>(round(std::clamp(g, 0.0f, 1.0f) * RGB_MAX)); in SetRgbF()
142 blue_ = static_cast<uint32_t>(round(std::clamp(b, 0.0f, 1.0f) * RGB_MAX)); in SetRgbF()
/foundation/graphic/graphic_2d/rosen/test/2d_engine/unittest/rosen_text/adapter/skia_txt/
H A Dtypography_test.cpp212 EXPECT_EQ(std::round(typography->GetLongestLineWithIndent()), 26); in HWTEST_F()
217 EXPECT_EQ(std::round(lineMetrics.ascender), 13); in HWTEST_F()
218 EXPECT_EQ(std::round(lineMetrics.descender), 3); in HWTEST_F()
228 EXPECT_EQ(std::round(firstLineMetrics.ascender), 13); in HWTEST_F()
229 EXPECT_EQ(std::round(firstLineMetrics.descender), 3); in HWTEST_F()
/foundation/arkui/ace_engine/adapter/ohos/tools/raw_input_injector/
H A Draw_input_injector.cpp292 int32_t round = 0; in DumpAllInjectingActions() local
294 std::string str = "round " + std::to_string(round) + ": "; in DumpAllInjectingActions()
300 round++; in DumpAllInjectingActions()
314 int32_t round = 0; in DoInject() local
323 DumpInjectingInfo(round, activedInjectingInfos, allOtherInjectingInfos); in DoInject()
325 // update last activing finger for next round suggesting in DoInject()
338 round++; in DoInject()
361 void RawInputInjector::DumpInjectingInfo(int32_t round, std::vector<InjectingInfo>& activedInjectingInfos, in DumpInjectingInfo() argument
375 std::string str = "round " in DumpInjectingInfo()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dradius.h44 x_.SetValue(round(x_.Value() * scale)); in ApplyScaleAndRound()
45 y_.SetValue(round(y_.Value() * scale)); in ApplyScaleAndRound()
H A Dcolor.h234 return LinearColor(static_cast<int16_t>(round(GetAlpha() * value)), in operator *()
235 static_cast<int16_t>(round(GetRed() * value)), static_cast<int16_t>(round(GetGreen() * value)), in operator *()
236 static_cast<int16_t>(round(GetBlue() * value))); in operator *()
/foundation/arkui/ace_engine/frameworks/core/components/display/
H A Drender_display.cpp56 opacity_ = static_cast<uint8_t>(round(opacity * UINT8_MAX)); in Update()
142 opacity_ = static_cast<uint8_t>(round(value * UINT8_MAX)); in OnOpacityAnimationCallback()
228 opacity_ = static_cast<uint8_t>(round(animatableOpacity_.GetValue() * UINT8_MAX)); in OnStatusStyleChanged()
/foundation/arkui/ace_engine/frameworks/base/geometry/
H A Drect.h67 x_ = round(x_ * scale.Width()); in ApplyScaleAndRound()
68 y_ = round(y_ * scale.Height()); in ApplyScaleAndRound()
69 width_ = round(width_ * scale.Width()); in ApplyScaleAndRound()
70 height_ = round(height_ * scale.Height()); in ApplyScaleAndRound()
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_scan/
H A Dscan_service.h79 inline const int MAX_BITS_PER_TONE_11ABG = (int) round((6 * 3.0 * BIT_PER_TONE_SCALE) / 4.0);
80 inline const int MAX_BITS_PER_TONE_11N = (int) round((6 * 5.0 * BIT_PER_TONE_SCALE) / 6.0);
81 inline const int MAX_BITS_PER_TONE_11AC = (int) round((8 * 5.0 * BIT_PER_TONE_SCALE) / 6.0);
82 inline const int MAX_BITS_PER_TONE_11AX = (int) round((10 * 5.0 * BIT_PER_TONE_SCALE) / 6.0);
/foundation/distributeddatamgr/relational_store/frameworks/js/napi/cloud_data/include/
H A Djs_strategy_context.h68 auto val = static_cast<int64_t>(std::round(std::get<double>(value))); in ConvertNetworkParam()
/foundation/arkui/ace_engine/frameworks/core/components/rich_text/
H A Drender_rich_text.cpp75 currentScrollLength_ += std::round(scale * diff); in ProcessMove()
87 currentScrollLength_ += std::round(scale * diff); in ProcessMove()
/foundation/arkui/ace_engine/frameworks/core/components/watch_slider/
H A Drender_watch_slider.cpp92 value_ = std::round(value_ / ((max_ - min_) / 4.0)) * ((max_ - min_) / 4.0); in Update()
213 diff = std::round(accumulatedValue_ / blockValue) * blockValue; in HandleDragUpdate()
280 double count = round(accumulatedValue_ / ROTATION_BASE_DELTA_DP); in OnRotation()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/
H A Drs_color_extract.h277 uint32_t redMean = round(redSum / (float)totalPixelNum); in GetAverageColor()
278 uint32_t greenMean = round(greenSum / (float)totalPixelNum); in GetAverageColor()
279 uint32_t blueMean = round(blueSum / (float)totalPixelNum); in GetAverageColor()
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/
H A Drs_color_picker.cpp129 uint32_t redMean = round(redSum / (float)totalPixelNum); in GetAverageColor()
130 uint32_t greenMean = round(greenSum / (float)totalPixelNum); in GetAverageColor()
131 uint32_t blueMean = round(blueSum / (float)totalPixelNum); in GetAverageColor()
196 hsv.h = (int)(h + 0.5); // Hue add 0.5 to round up. in RGB2HSV()
/foundation/graphic/graphic_2d/rosen/modules/effect/color_picker/include/
H A Dcolor_extract.h283 uint32_t redMean = round(redSum / (float)totalPixelNum); in GetAverageColor()
284 uint32_t greenMean = round(greenSum / (float)totalPixelNum); in GetAverageColor()
285 uint32_t blueMean = round(blueSum / (float)totalPixelNum); in GetAverageColor()
/foundation/multimedia/audio_framework/services/audio_service/client/src/
H A Daudio_process_in_client.cpp839 size_t round = (spanSizeInFrame_ == 0 ? 1 : clientSpanSizeInFrame_ / spanSizeInFrame_); in ProcessData() local
840 size_t offSet = clientSpanSizeInByte_ / round; in ProcessData()
878 size_t round = (spanSizeInFrame_ == 0 ? 1 : clientSpanSizeInFrame_ / spanSizeInFrame_); in Enqueue() local
880 for (size_t count = 0 ; count < round ; count++) { in Enqueue()
882 size_t offSet = clientSpanSizeInByte_ / round; in Enqueue()
1234 size_t round = (spanSizeInFrame_ == 0 ? 1 : clientSpanSizeInFrame_ / spanSizeInFrame_); in ClientPrepareNextLoop() local
1235 for (size_t count = 0; count < round; count++) { in ClientPrepareNextLoop()
1496 size_t round = (spanSizeInFrame_ == 0 ? 1 : clientSpanSizeInFrame_ / spanSizeInFrame_); in PrepareCurrentLoop() local
1497 for (size_t count = 0; count < round; count++) { in PrepareCurrentLoop()
1532 size_t round in FinishHandleCurrentLoop() local
1650 size_t round = (spanSizeInFrame_ == 0 ? 1 : clientSpanSizeInFrame_ / spanSizeInFrame_); ProcessCallbackFucIndependent() local
1726 int64_t round = static_cast<int64_t>(spanSizeInFrame_ == 0 ? 1 : clientSpanSizeInFrame_ / spanSizeInFrame_); CheckIfWakeUpTooLate() local
[all...]
/foundation/arkui/ace_engine/interfaces/inner_api/form_render/src/
H A Dform_renderer.cpp111 rsSurfaceNode->SetBounds(round(borderWidth_), round(borderWidth_), round(width_ - borderWidth_ * DOUBLE), in RunFormPageInner()
112 round(height_ - borderWidth_ * DOUBLE)); in RunFormPageInner()

Completed in 17 milliseconds

12345