/foundation/arkui/ace_engine/frameworks/core/components/track/ |
H A D | rosen_render_capsule_track.cpp | 80 double offsetY = offset.GetY(); in DrawCapsuleProgressAnimation() local 93 path.addArc({ offsetX, offsetY, progressSize.Height() + offsetX, progressSize.Height() + offsetY }, 90, 180); in DrawCapsuleProgressAnimation() 95 path.addArc({ progressWidth + offsetX, offsetY, progressSize.Height() - progressWidth + offsetX, in DrawCapsuleProgressAnimation() 96 progressSize.Height() + offsetY }, in DrawCapsuleProgressAnimation() 100 { radius + offsetX, offsetY, progressSize.Width() - radius + offsetX, progressSize.Height() + offsetY }); in DrawCapsuleProgressAnimation() 101 path.addArc({ (progressSize.Width() - radius) * 2.0 - progressWidth + offsetX, offsetY, progressWidth + offsetX, in DrawCapsuleProgressAnimation() 102 progressSize.Height() + offsetY }, in DrawCapsuleProgressAnimation() 105 path.addRect({ radius + offsetX, offsetY, progressWidt in DrawCapsuleProgressAnimation() 149 double offsetY = offset.GetY(); DrawCapsuleProgressVerticalAnimation() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/ |
H A D | textpicker_overscroll.h | 29 bool ApplyCurrentOffset(float yLast, float offsetY, float scrollDelta); 51 void SetStart(float offsetY) in SetStart() argument 53 overScrollStartOffsetY_ = offsetY; in SetStart() 61 void UpdateTossSpring(float offsetY); 77 float GetOverScrollOffset(float yLast, float offsetY) const;
|
H A D | textpicker_overscroll.cpp | 32 bool TextPickerOverscroller::ApplyCurrentOffset(float yLast, float offsetY, float scrollDelta) in ApplyCurrentOffset() argument 55 deltaScrollOffset_ = GetOverScrollOffset(yLast, offsetY); in ApplyCurrentOffset() 89 float TextPickerOverscroller::GetOverScrollOffset(float yLast, float offsetY) const in GetOverScrollOffset() 91 auto dx = offsetY - yLast; in GetOverScrollOffset() 92 auto input = NearZero(height_) ? 0.0 : std::fabs(offsetY - overScrollStartOffsetY_) / height_; in GetOverScrollOffset() 102 void TextPickerOverscroller::UpdateTossSpring(float offsetY) in UpdateTossSpring() argument 104 velocityTracker_.UpdateTrackerPoint(0.0, offsetY, std::chrono::high_resolution_clock::now()); in UpdateTossSpring()
|
/foundation/arkui/ace_engine/test/unittest/core/pattern/grid/ |
H A D | grid_scroller_event_test_ng.cpp | 93 Dimension offsetY; in HWTEST_F() local 95 auto event = [&offsetY, &scrollState](Dimension offset, ScrollState state) { in HWTEST_F() 96 offsetY = offset; in HWTEST_F() 107 EXPECT_EQ(offsetY.ConvertToPx(), ITEM_HEIGHT); in HWTEST_F() 112 EXPECT_EQ(offsetY.ConvertToPx(), -ITEM_HEIGHT); in HWTEST_F() 117 EXPECT_EQ(offsetY.ConvertToPx(), ITEM_HEIGHT); in HWTEST_F() 122 EXPECT_EQ(offsetY.ConvertToPx(), -ITEM_HEIGHT); in HWTEST_F() 137 EXPECT_EQ(offsetY.ConvertToPx(), 0); in HWTEST_F() 143 EXPECT_EQ(offsetY.ConvertToPx(), 0); in HWTEST_F() 149 EXPECT_EQ(offsetY in HWTEST_F() 491 Dimension offsetY; HWTEST_F() local 574 Dimension offsetY; HWTEST_F() local 629 Dimension offsetY; HWTEST_F() local 689 Dimension offsetY; HWTEST_F() local 752 Dimension offsetY; HWTEST_F() local 808 Dimension offsetY; HWTEST_F() local 863 Dimension offsetY; HWTEST_F() local 924 Dimension offsetY; HWTEST_F() local 985 Dimension offsetY; HWTEST_F() local 1042 Dimension offsetY; HWTEST_F() local 1098 Dimension offsetY; HWTEST_F() local 1160 Dimension offsetY; HWTEST_F() local 1223 Dimension offsetY; HWTEST_F() local 1279 Dimension offsetY; HWTEST_F() local 1335 Dimension offsetY; HWTEST_F() local 1397 Dimension offsetY; HWTEST_F() local 1457 Dimension offsetY; HWTEST_F() local 1522 Dimension offsetY; HWTEST_F() local 1589 Dimension offsetY; HWTEST_F() local 1656 Dimension offsetY; HWTEST_F() local 1723 Dimension offsetY; HWTEST_F() local 1790 Dimension offsetY; HWTEST_F() local [all...] |
H A D | grid_cache_layout_test_ng.cpp | 125 float offsetY = -totalHeight + floor(index / colsNumber) * ITEM_HEIGHT + GRID_HEIGHT; in HWTEST_F() local 126 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F() 156 float offsetY = -totalHeight + childProps->GetMainIndex().value_or(0) * ITEM_HEIGHT + GRID_HEIGHT; in HWTEST_F() local 159 offsetY -= ITEM_HEIGHT; in HWTEST_F() 162 RectF expectRect = RectF(offsetX, offsetY, width, height); in HWTEST_F() 192 float offsetY = -totalHeight + childProps->GetMainIndex().value_or(0) * ITEM_HEIGHT + GRID_HEIGHT; in HWTEST_F() local 195 offsetY -= ITEM_HEIGHT; in HWTEST_F() 198 RectF expectRect = RectF(offsetX, offsetY, width, height); in HWTEST_F()
|
H A D | grid_layout_test_ng.cpp | 58 float offsetY = floor(index / colsNumber) * ITEM_HEIGHT; in HWTEST_F() local 59 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F() 262 float offsetY = floor(index / colsNumber) * ITEM_HEIGHT; in HWTEST_F() local 263 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F() 294 float offsetY = floor(index / colsNumber) * ITEM_HEIGHT; in HWTEST_F() local 295 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F() 327 float offsetY = index % colsNumber * ITEM_HEIGHT; in HWTEST_F() local 328 RectF expectRect = RectF(offsetX, offsetY, itemWidth, ITEM_HEIGHT); in HWTEST_F() 359 float offsetY = floor(index / colsNumber) * ITEM_HEIGHT; in HWTEST_F() local 360 RectF expectRect = RectF(offsetX, offsetY, itemWidt in HWTEST_F() 392 float offsetY = GRID_HEIGHT - index % colsNumber * ITEM_HEIGHT - ITEM_HEIGHT; HWTEST_F() local 422 float offsetY = index / rowsNumber * (itemHeight + realRowsGap); HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_colorful_shadow_filter_test.cpp | 49 float offsetY = 0.1f; in HWTEST_F() local 50 RSColorfulShadowFilter shadowFilter(blurRadius, offsetX, offsetY); in HWTEST_F() 65 float offsetY = 0.1f; in HWTEST_F() local 66 RSColorfulShadowFilter shadowFilter(blurRadius, offsetX, offsetY); in HWTEST_F() 86 float offsetY = 0.1f; in HWTEST_F() local 87 RSColorfulShadowFilter shadowFilter(blurRadius, offsetX, offsetY); in HWTEST_F()
|
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_list_bridge.cpp | 40 double offsetY = 0.0; in JsGetCurrentOffset() local 41 auto task = [nodeId, page, &offsetX, &offsetY]() { in JsGetCurrentOffset() 53 offsetY = offset.GetY(); in JsGetCurrentOffset() 64 offsetContext->SetProperty(runtime, "y", runtime->NewNumber(offsetY)); in JsGetCurrentOffset()
|
/foundation/graphic/graphic_3d/3d_widget_adapter/src/ohos/ |
H A D | texture_layer.cpp | 53 TextureInfo OnWindowChange(float offsetX, float offsetY, float width, float height, float scale, 59 void ConfigWindow(float offsetX, float offsetY, float width, float height, float scale, 182 void TextureLayerImpl::ConfigWindow(float offsetX, float offsetY, float width, float height, float scale, in ConfigWindow() argument 198 rsNode_->SetBounds(offsetX, offsetY, width, height); in ConfigWindow() 202 TextureInfo TextureLayerImpl::OnWindowChange(float offsetX, float offsetY, float width, float height, float scale, in OnWindowChange() argument 208 offsetY_ = offsetY; in OnWindowChange() 215 ConfigWindow(offsetX, offsetY, width, height, scale, recreateWindow); in OnWindowChange() 216 WIDGET_LOGD("TextureLayer OnWindowChange offsetX %f, offsetY %f, width %d, height %d, float scale %f," in OnWindowChange() 217 "recreateWindow %d window empty %d", offsetX, offsetY, image_.textureInfo_.width_, image_.textureInfo_.height_, in OnWindowChange() 227 offsetY_ = (int)windowChangeInfo.offsetY; in OnWindowChange() 270 OnWindowChange(float offsetX, float offsetY, float width, float height, float scale, bool recreateWindow, SurfaceType surfaceType) OnWindowChange() argument [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/xcomponent/ |
H A D | xcomponent_paint_method.cpp | 31 auto offsetY = surfaceOffset.GetY(); in GetContentDrawFunction() local 32 return [weak = WeakClaim(this), width, height, offsetX, offsetY](RSCanvas& canvas) { in GetContentDrawFunction() 37 surface->DrawBufferForXComponent(canvas, width, height, offsetX, offsetY); in GetContentDrawFunction()
|
H A D | xcomponent_controller_ng.cpp | 21 XComponentControllerErrorCode XComponentControllerNG::GetGlobalPosition(float& offsetX, float& offsetY) in GetGlobalPosition() argument 32 offsetY = globalPostion.GetY(); in GetGlobalPosition() 106 void XComponentControllerNG::GetSurfaceOffset(float& offsetX, float& offsetY) in GetSurfaceOffset() argument 112 offsetY = surfaceOffset.GetY(); in GetSurfaceOffset() 145 void XComponentControllerNG::SetIdealSurfaceOffsetY(float offsetY) in SetIdealSurfaceOffsetY() argument 149 pattern->SetIdealSurfaceOffsetY(offsetY); in SetIdealSurfaceOffsetY()
|
H A D | xcomponent_controller_ng.h | 30 XComponentControllerErrorCode GetGlobalPosition(float& offsetX, float& offsetY) override; 45 void SetIdealSurfaceOffsetY(float offsetY) override; 53 void GetSurfaceOffset(float& offsetX, float& offsetY) override;
|
/foundation/arkui/ace_engine/frameworks/core/components/relative_container/ |
H A D | render_relative_container.cpp | 372 double offsetY = 0.0; in PerformLayout() local 388 offsetY = CalcVerticalOffset(alignRule.first, alignRule.second, containerSize.Height(), nodeName); in PerformLayout() 393 flexItem->SetPosition(Offset(offsetX, offsetY)); in PerformLayout() 461 double offsetY = 0.0; in CalcVerticalOffset() local 470 offsetY = 0.0; in CalcVerticalOffset() 473 offsetY = anchorHeight / 2; in CalcVerticalOffset() 476 offsetY = anchorHeight; in CalcVerticalOffset() 485 offsetY = (-1) * flexItemHeight / 2; in CalcVerticalOffset() 488 offsetY = anchorHeight / 2 - flexItemHeight / 2; in CalcVerticalOffset() 491 offsetY in CalcVerticalOffset() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/ |
H A D | progress_modifier.cpp | 1450 double offsetY = offset.GetY(); in PaintCapsule() local 1468 { { offsetX, offsetY, contentSize.Width() + offsetX, contentSize.Height() + offsetY }, radius, radius }); in PaintCapsule() 1482 { offsetX, offsetY, INT32_TWO * radius + offsetX, contentSize.Height() + offsetY }, ANGLE_90, ANGLE_180); in PaintCapsule() 1484 path.AddArc({ offsetX + contentSize.Width() - INT32_TWO * radius, offsetY, offsetX + contentSize.Width(), in PaintCapsule() 1485 contentSize.Height() + offsetY }, in PaintCapsule() 1491 path.AddArc({ offsetX + progressWidth, offsetY, INT32_TWO * radius - progressWidth + offsetX, in PaintCapsule() 1492 contentSize.Height() + offsetY }, in PaintCapsule() 1495 path.AddArc({ offsetX + contentSize.Width() - INT32_TWO * radius + progressWidth, offsetY, in PaintCapsule() 1541 double offsetY = offset.GetY(); PaintVerticalCapsule() local 1656 auto offsetY = offset.GetY(); PaintCapsuleLightSweep() local 1761 double offsetY = offset.GetY(); PaintCapsuleForApiNine() local 1797 double offsetY = offset.GetY(); PaintVerticalCapsuleForApiNine() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/ |
H A D | rosen_render_pattern_lock.cpp | 52 double offsetY = cellcenter.GetY(); in PaintLockCircle() local 59 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadiusAnimatorToIncrease_), skPaintFill); in PaintLockCircle() 62 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadiusAnimatorToDecrease_), skPaintFill); in PaintLockCircle() 67 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadiusAnimatorToDecrease_), skPaintFill); in PaintLockCircle() 71 offsetX, offsetY, NormalizeToPx(circleRadius_ * SCALE_ACTIVE_CIRCLE_RADIUS), skPaintFill); in PaintLockCircle() 76 offsetX, offsetY, NormalizeToPx(circleRadius_ * SCALE_ACTIVE_CIRCLE_RADIUS), skPaintFill); in PaintLockCircle() 79 canvas->drawCircle(offsetX, offsetY, NormalizeToPx(circleRadius_), skPaintFill); in PaintLockCircle() 90 double offsetY = cellcenter.GetY(); in PaintLockCircle() local 99 RSPoint(offsetX, offsetY), NormalizeToPx(circleRadiusAnimatorToIncrease_)); in PaintLockCircle() 104 RSPoint(offsetX, offsetY), NormalizeToP in PaintLockCircle() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/clip/ |
H A D | render_clip.h | 49 virtual void SetOffsetY(double offsetY) in SetOffsetY() argument 51 if (offsetY < 0.0) { in SetOffsetY() 54 offsetY_ = offsetY; in SetOffsetY()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/navigation/ |
H A D | title_bar_layout_algorithm.cpp | 471 auto offsetY = (titleHeight - backButtonHeight) / dividerOffset; in ShowBackButtonLayout() local 474 OffsetF backButtonOffset = OffsetF(offsetX, static_cast<float>(offsetY.ConvertToPx())); in ShowBackButtonLayout() 500 auto offsetY = (menuHeight_ - BACK_BUTTON_ICON_SIZE.ConvertToPx()) / 2; in LayoutBackButton() local 503 backButtonOffset = OffsetF(offsetXResult, offsetY); in LayoutBackButton() 537 float offsetY = 0.0f; in GetFullModeTitleOffsetY() local 547 offsetY = (titleBarHeight - menuHeight_ - titleRealHeight) / dividerOffset; in GetFullModeTitleOffsetY() 548 return offsetY; in GetFullModeTitleOffsetY() 551 offsetY = (titleSpace - titleRealHeight + in GetFullModeTitleOffsetY() 554 offsetY = titleSpace - titleRealHeight; in GetFullModeTitleOffsetY() 557 return offsetY; in GetFullModeTitleOffsetY() 573 float offsetY = 0.0f; LayoutTitle() local 786 float offsetY = 0.0f; LayoutSubtitle() local [all...] |
/foundation/arkui/ace_engine/frameworks/core/image/apng/ |
H A D | apng_image_player.cpp | 145 frame.offsetY = frameInfo->frameControl.yOffset; in GetApngAllFrames() 303 canvas->drawImage(rawImage, frameInfo->offsetX, frameInfo->offsetY, nullptr); in GetImage() 323 frameInfo->offsetY, in ClearCanvasRect() 333 RSRect(frameInfo->offsetX, frameInfo->offsetY, in ClearCanvasRect() 334 frameInfo->width + frameInfo->offsetX, frameInfo->height + frameInfo->offsetY); in ClearCanvasRect() 354 frameInfo->offsetY, in BlendImage() 385 RSRect(frameInfo->offsetX, frameInfo->offsetY, in BlendImage() 386 frameInfo->width + frameInfo->offsetX, frameInfo->height + frameInfo->offsetY); in BlendImage() 468 frameInfo->offsetY, in GetImage() 511 frameInfo->offsetY, in GetImage() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/ |
H A D | shape_container_layout_algorithm.cpp | 83 float offsetY = 0.0f; in GetChildrenSize() local 98 offsetY = ConvertToPx(offset.GetY(), ScaleProperty::CreateScaleProperty(), in GetChildrenSize() 105 if (maxHeight < childSize.Height() + offsetY) { in GetChildrenSize() 106 maxHeight = childSize.Height() + offsetY; in GetChildrenSize()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/ |
H A D | swiper_indicator_utils.h | 173 float offsetY = 0.0f; in CalcIndicatrOffsetY() local 176 offsetY = topValue + swiperPaddingTop + borderWidthTop; in CalcIndicatrOffsetY() 179 offsetY = swiperHeight - indicatorHeight - bottomValue - swiperPaddingBottom - borderWidthBottom; in CalcIndicatrOffsetY() 182 offsetY = swiperHeight - indicatorHeight - swiperPaddingBottom - borderWidthBottom; in CalcIndicatrOffsetY() 184 offsetY = (swiperHeight - swiperPaddingBottom - borderWidthBottom + in CalcIndicatrOffsetY() 188 return offsetY; in CalcIndicatrOffsetY()
|
/foundation/arkui/ace_engine/frameworks/core/common/ |
H A D | text_field_manager.cpp | 74 bool TextFieldManager::UpdatePanelForVirtualKeyboard(double offsetY, double fullHeight) in UpdatePanelForVirtualKeyboard() argument 86 offsetY -= onFocusTextField->GetPaintRect().Height() + in UpdatePanelForVirtualKeyboard() 89 slidingPanelParent->LiftPanelForVirtualKeyboard(offsetY); in UpdatePanelForVirtualKeyboard()
|
/foundation/barrierfree/accessibility/services/aams/test/mock/src/ |
H A D | mock_accessibility_event_transmission.cpp | 38 void EventTransmission::OnMoveMouse(int32_t offsetX, int32_t offsetY) in OnMoveMouse() argument 41 (void)offsetY; in OnMoveMouse()
|
/foundation/barrierfree/accessibility/services/test/moduletest/mock/src/ |
H A D | mock_mt_accessibility_event_transmission.cpp | 38 void MockEventTransmission::OnMoveMouse(int32_t offsetX, int32_t offsetY) in OnMoveMouse() argument 41 (void)offsetY; in OnMoveMouse()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/render/ |
H A D | rs_pixel_stretch_params.h | 27 RSPixelStretchParams(float offsetX, float offsetY, float offsetZ, float offsetW, in RSPixelStretchParams() argument 29 offsetX_(offsetX), offsetY_(offsetY), offsetZ_(offsetZ), offsetW_(offsetW), in RSPixelStretchParams()
|
/foundation/barrierfree/accessibility/services/aams/src/ |
H A D | accessibility_mouse_key.cpp | 24 int32_t offsetY = 0; member 209 int32_t offsetY = iter->second.offsetY; in ExecuteMouseKey() local 216 offsetY = static_cast<int32_t>(iter->second.offsetY * SPEED_UP_MULTIPLE); in ExecuteMouseKey() 219 offsetY = static_cast<int32_t>(iter->second.offsetY * SLOW_DOWN_MULTIPLE); in ExecuteMouseKey() 221 MoveMousePointer(offsetX, offsetY); in ExecuteMouseKey() 237 void AccessibilityMouseKey::MoveMousePointer(int32_t offsetX, int32_t offsetY) in MoveMousePointer() argument 239 HILOG_DEBUG("offsetX:%{public}d, offsetY in MoveMousePointer() [all...] |