/foundation/multimedia/audio_framework/services/audio_service/common/src/ |
H A D | format_converter.cpp | 23 size_t half = 2; // mono(1) -> stereo(2) in S16MonoToS16Stereo() local 24 if (srcDesc.bufLength != dstDesc.bufLength / half || srcDesc.buffer == nullptr || dstDesc.buffer == nullptr) { in S16MonoToS16Stereo() 39 size_t half = 2; // stereo(2) -> mono(1) in S16StereoToS16Mono() local 40 if (dstDesc.bufLength != srcDesc.bufLength / half || srcDesc.buffer == nullptr || dstDesc.buffer == nullptr) { in S16StereoToS16Mono() 45 size_t count = srcDesc.bufLength / half / sizeof(int16_t); in S16StereoToS16Mono()
|
/foundation/window/window_manager/test/systemtest/wms/ |
H A D | window_test_utils.cpp | 141 constexpr uint32_t half = 2;
in GetDefaultFloatingRect() local 156 resRect.posX_ = limitDisplayRect_.posX_ + static_cast<int32_t>((limitDisplayRect_.width_ - defaultW) / half);
in GetDefaultFloatingRect() 157 resRect.posY_ = limitDisplayRect_.posY_ + static_cast<int32_t>((limitDisplayRect_.height_ - defaultH) / half);
in GetDefaultFloatingRect() 244 constexpr uint32_t half = 2;
in GetMaxTileWinNum() local 245 uint32_t edgeIntervalVp = static_cast<uint32_t>(EDGE_INTERVAL * half * virtualPixelRatio);
in GetMaxTileWinNum() 260 constexpr int half = 2;
in InitTileWindowRects() local 272 int x = limitDisplayRect_.posX_ + ((limitDisplayRect_.width_ - w) / half);
in InitTileWindowRects() 273 int y = limitDisplayRect_.posY_ + ((limitDisplayRect_.height_ - h) / half);
in InitTileWindowRects() 277 w = (limitDisplayRect_.width_ - edgeInterval * half - midInterval) / half;
in InitTileWindowRects() [all...] |
/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/ |
H A D | ark_interop_bigint.cpp | 37 auto half = size >> 1;
in ReverseBytes() local 38 for (size_t i = 0;i < half; ++i) {
in ReverseBytes()
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_checkbox.cpp | 150 const int16_t half = 2; // 2 :half in SelectedStateSoftwareDrawing() local 154 SEMICIRCLE_IN_DEGREE + QUARTER_IN_DEGREE / half, in SelectedStateSoftwareDrawing() 155 QUARTER_IN_DEGREE / half, in SelectedStateSoftwareDrawing() 160 SEMICIRCLE_IN_DEGREE - QUARTER_IN_DEGREE / half, in SelectedStateSoftwareDrawing() 161 SEMICIRCLE_IN_DEGREE + QUARTER_IN_DEGREE / half, in SelectedStateSoftwareDrawing() 166 CIRCLE_IN_DEGREE - QUARTER_IN_DEGREE / half, in SelectedStateSoftwareDrawing() 167 SEMICIRCLE_IN_DEGREE - QUARTER_IN_DEGREE / half, in SelectedStateSoftwareDrawing() 232 int16_t offsetLeft = (GetWidth() - imgWidth) / 2; // 2 : half in OnDraw() 233 int16_t offsetTop = (GetHeight() - imgHeight) / 2; // 2 : half in OnDraw() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/ |
H A D | rosen_render_pattern_lock.cpp | 145 double half = 0.5; in PaintLockLine() local 146 int realSizeInt = static_cast<int>(NormalizeToPx(sideLength_) + half); in PaintLockLine() 147 int offsetIntX = static_cast<int>(offset.GetX() - half); in PaintLockLine() 148 int offsetIntY = static_cast<int>(offset.GetY() - half); in PaintLockLine() 195 double half = 0.5; in PaintLockLine() local 196 int realSizeInt = static_cast<int>(NormalizeToPx(sideLength_) + half); in PaintLockLine() 197 int offsetIntX = static_cast<int>(offset.GetX() - half); in PaintLockLine() 198 int offsetIntY = static_cast<int>(offset.GetY() - half); in PaintLockLine()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/canvas/ |
H A D | custom_paint_paint_method.cpp | 881 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; in Arc() local 882 rsPath_.ArcTo(point1, point2, static_cast<RSScalar>(startAngle), static_cast<RSScalar>(half)); in Arc() 883 rsPath_.ArcTo(point1, point2, static_cast<RSScalar>(half + startAngle), static_cast<RSScalar>(half)); in Arc() 885 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; in Arc() local 886 rsPath_.ArcTo(point1, point2, static_cast<RSScalar>(startAngle), static_cast<RSScalar>(half)); in Arc() 887 rsPath_.ArcTo(point1, point2, static_cast<RSScalar>(half + startAngle), static_cast<RSScalar>(half)); in Arc() 889 point1, point2, static_cast<RSScalar>(half + half in Arc() 939 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; Ellipse() local 943 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; Ellipse() local 1054 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; Path2DArc() local 1058 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; Path2DArc() local 1102 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; Path2DEllipse() local 1106 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; Path2DEllipse() local [all...] |
/foundation/window/window_manager/wmserver/src/ |
H A D | window_layout_policy_tile.cpp | 64 constexpr uint32_t half = 2; in GetMaxTileWinNum() local 65 uint32_t edgeIntervalVp = static_cast<uint32_t>(EDGE_INTERVAL * half * virtualPixelRatio); in GetMaxTileWinNum() 88 constexpr int half = 2; in InitTileRects() local 97 int32_t x = limitRect.posX_ + (static_cast<int32_t>(limitRect.width_ - w) / half); in InitTileRects() 98 int32_t y = limitRect.posY_ + (static_cast<int32_t>(limitRect.height_ - h) / half); in InitTileRects() 103 w = (limitRect.width_ - edgeIntervalVp * half - midIntervalVp * (num - 1)) / num; in InitTileRects()
|
H A D | window_layout_policy_cascade.cpp | 250 constexpr uint32_t half = 2; in InitCascadeRect() local 268 resRect.posX_ = limitRect.posX_ + static_cast<int32_t>((limitRect.width_ - defaultW) / half); in InitCascadeRect() 270 resRect.posY_ = limitRect.posY_ + static_cast<int32_t>((limitRect.height_ - defaultH) / half); in InitCascadeRect()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/overlay/ |
H A D | sheet_wrapper_paint_method.cpp | 78 float half = 0.5f; in GetSheetRadius() local 80 if (GreatNotEqual(radius.ConvertToPx(), sheetSize.Width() * half)) { in GetSheetRadius() 81 sheetRadius = Dimension(sheetSize.Width() * half); in GetSheetRadius()
|
H A D | sheet_presentation_pattern.cpp | 1831 float half = 0.5f; in GetSheetTypeWithAuto() local 1832 if (sheetSize.Width() * half < sheetRadius.ConvertToPx()) { in GetSheetTypeWithAuto() 1833 sheetRadius = Dimension(sheetSize.Width() * half); in GetSheetTypeWithAuto()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_pixel_map_util_test.cpp | 59 int half = 25;
in CreatePixelMap() local 61 canvas->DrawRect(Drawing::Rect(w, h, half, half));
in CreatePixelMap()
|
/foundation/arkui/ace_engine/frameworks/core/components/custom_paint/ |
H A D | rosen_render_offscreen_canvas.cpp | 1265 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; in Arc() local 1266 skPath_.arcTo(rect, SkDoubleToScalar(startAngle), SkDoubleToScalar(half), false); in Arc() 1267 skPath_.arcTo(rect, SkDoubleToScalar(half + startAngle), SkDoubleToScalar(half), false); in Arc() 1269 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; in Arc() local 1270 skPath_.arcTo(rect, SkDoubleToScalar(startAngle), SkDoubleToScalar(half), false); in Arc() 1271 skPath_.arcTo(rect, SkDoubleToScalar(half + startAngle), SkDoubleToScalar(half), false); in Arc() 1272 skPath_.arcTo(rect, SkDoubleToScalar(half + half in Arc() 1281 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; Arc() local 1285 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; Arc() local [all...] |
H A D | rosen_render_custom_paint.cpp | 1164 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; in Arc() local 1165 skPath_.arcTo(rect, SkDoubleToScalar(startAngle), SkDoubleToScalar(half), false); in Arc() 1166 skPath_.arcTo(rect, SkDoubleToScalar(half + startAngle), SkDoubleToScalar(half), false); in Arc() 1168 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; in Arc() local 1169 skPath_.arcTo(rect, SkDoubleToScalar(startAngle), SkDoubleToScalar(half), false); in Arc() 1170 skPath_.arcTo(rect, SkDoubleToScalar(half + startAngle), SkDoubleToScalar(half), false); in Arc() 1171 skPath_.arcTo(rect, SkDoubleToScalar(half + half in Arc() 1180 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; Arc() local 1184 double half = GreatNotEqual(sweepAngle, 0.0) ? HALF_CIRCLE_ANGLE : -HALF_CIRCLE_ANGLE; Arc() local [all...] |
/foundation/multimedia/image_effect/frameworks/native/effect/manager/colorspace_manager/ |
H A D | colorspace_converter.cpp | 106 uint32_t half = 2; in AllocGainmapSurfaceBuffer() local 107 bufferInfo.width_ = bufferInfo.width_ / half; in AllocGainmapSurfaceBuffer() 108 bufferInfo.height_ = bufferInfo.height_ / half; in AllocGainmapSurfaceBuffer()
|
/foundation/multimedia/audio_framework/services/audio_service/client/src/ |
H A D | audio_process_in_client.cpp | 728 size_t half = 2; in S16MonoToS16Stereo() local 729 if (srcDesc.bufLength != dstDesc.bufLength / half || srcDesc.buffer == nullptr || dstDesc.buffer == nullptr) { in S16MonoToS16Stereo() 734 size_t count = srcDesc.bufLength / half; in S16MonoToS16Stereo() 766 size_t half = 2; in S32StereoS16Stereo() local 767 if (srcDesc.bufLength / half != dstDesc.bufLength || srcDesc.buffer == nullptr || dstDesc.buffer == nullptr || in S32StereoS16Stereo() 768 dstDesc.bufLength % half != 0) { in S32StereoS16Stereo() 773 size_t count = srcDesc.bufLength / half / half; in S32StereoS16Stereo() 824 size_t half = 2; in ProcessVolume() local 826 len /= half; in ProcessVolume() [all...] |
/foundation/multimedia/av_session/utils/src/ |
H A D | avsession_radar.cpp | 40 const uint32_t half = DEVICE_ID_MIN_LEN / 2; in GetAnonymousDeviceId() local 44 return deviceId.substr(0, half) + "**" + deviceId.substr(deviceId.length() - half); in GetAnonymousDeviceId()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/pipeline/ |
H A D | rs_render_thread_visitor.cpp | 745 const float half = 0.5f; in FlipMatrix() local 746 flip.PreTranslate(-half * bounds.GetWidth(), -half * bounds.GetHeight()); in FlipMatrix() 747 flip.PostTranslate(half * bounds.GetWidth(), half * bounds.GetHeight()); in FlipMatrix()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/pipeline/ |
H A D | rs_base_render_util.cpp | 1308 const float half = 0.5f; 1309 flip.PreTranslate(-half * params.dstRect.GetWidth(), -half * params.dstRect.GetHeight()); 1310 flip.PostTranslate(half * params.dstRect.GetWidth(), half * params.dstRect.GetHeight());
|
/foundation/multimedia/audio_framework/frameworks/native/hdiadapter/source/remote/ |
H A D | remote_audio_capturer_source.cpp | 507 float half = 0.5; in SetVolume() local 513 volume = (leftVolume + rightVolume) * half; in SetVolume()
|
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/ |
H A D | canvas_component.cpp | 1261 const int8_t half = 2; in FillText() local 1269 startPoint.x = (startX + startX - maxWidth) / half; in FillText() 1314 const int8_t half = 2; in StrokeText() local 1322 startPoint.x = (startX + startX - maxWidth) / half; in StrokeText()
|
/foundation/multimedia/av_session/services/session/server/ |
H A D | avsession_item.cpp | 828 const uint32_t half = DEVICE_ID_MIN_LEN / 2; 829 return deviceId.substr(0, half) + "**" + deviceId.substr(deviceId.length() - half);
|
/foundation/graphic/graphic_3d/lume/Lume_3D/src/util/ |
H A D | mesh_builder.cpp | 400 const auto half = count / 2; in LowerBound() local 401 const auto mid = std::next(first, half); in LowerBound() 404 count -= half + 1; in LowerBound() 406 count = half; in LowerBound()
|