Home
last modified time | relevance | path

Searched refs:posY (Results 1 - 25 of 111) sorted by relevance

12345

/foundation/window/window_manager/wmserver/test/unittest/
H A Ddrag_controller_test.cpp193 int32_t posY = 0; in HWTEST_F() local
194 moveDragController_->ConvertPointerPosToDisplayGroupPos(0, posX, posY); in HWTEST_F()
196 moveDragController_->ConvertPointerPosToDisplayGroupPos(1, posX, posY); in HWTEST_F()
197 moveDragController_->ConvertPointerPosToDisplayGroupPos(0, posX, posY); in HWTEST_F()
342 int32_t posY = 0; in HWTEST_F() local
345 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType); in HWTEST_F()
348 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType); in HWTEST_F()
351 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType); in HWTEST_F()
354 moveDragController_->HandleDragEvent(0, posX, posY, pointId, sourceType); in HWTEST_F()
357 moveDragController_->HandleDragEvent(0, posX, posY, pointI in HWTEST_F()
377 int32_t posY = 0; HWTEST_F() local
417 int32_t posY = 0; HWTEST_F() local
[all...]
/foundation/arkui/ui_lite/frameworks/layout/
H A Dgrid_layout.cpp60 int16_t posY = i * layoutHeight; in LayoutHorizontal() local
74 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top; in LayoutHorizontal()
77 child->ResizeVisibleArea(posX, posY, layoutWidth, layoutHeight); in LayoutHorizontal()
92 int16_t posY; in LayoutVertical() local
99 posY = j * layoutHeight; in LayoutVertical()
108 int16_t actPosY = posY + (layoutHeight - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top; in LayoutVertical()
111 child->ResizeVisibleArea(posX, posY, layoutWidth, layoutHeight); in LayoutVertical()
H A Dflex_layout.cpp222 void FlexLayout::GetCrossAxisPosY(int16_t& posY, uint16_t& count, uint16_t* rowsMaxHeight, UIView* child) in GetCrossAxisPosY() argument
237 posY = top + offset; in GetCrossAxisPosY()
242 posY = GetHeight() - child->GetRelativeRect().GetHeight() - bottom - offset; in GetCrossAxisPosY()
251 posY = (GetHeight() - child->GetRelativeRect().GetHeight() - top - bottom) / 2 + top + offset; // 2: half in GetCrossAxisPosY()
260 int16_t posY = 0; in LayoutHorizontal() local
295 GetCrossAxisPosY(posY, count, rowsMaxHeight, child); in LayoutHorizontal()
298 posY - child->GetStyle(STYLE_MARGIN_TOP)); in LayoutHorizontal()
300 child->SetPosition(posX - left, posY - child->GetStyle(STYLE_MARGIN_TOP)); in LayoutHorizontal()
448 int16_t posY = 0; in LayoutVertical() local
468 GetColumnStartPos(posY, interva in LayoutVertical()
470 GetNoWrapStartPos(GetHeight(), posY, interval); LayoutVertical() local
[all...]
/foundation/arkui/ace_engine_lite/frameworks/src/core/components/
H A Danalog_clock_component.cpp133 int16_t posY = imageView->GetY(); in SetImageHand() local
139 *imageView, {posX, posY}, {pivotX, pivotY}); in SetImageHand()
143 *imageView, {posX, posY}, {pivotX, pivotY}); in SetImageHand()
147 *imageView, {posX, posY}, {pivotX, pivotY}); in SetImageHand()
158 int16_t posY = childView->GetY(); in SetRectHand() local
168 clockView_->SetHandLine(UIAnalogClock::HandType::HOUR_HAND, {posX, posY}, in SetRectHand()
172 clockView_->SetHandLine(UIAnalogClock::HandType::MINUTE_HAND, {posX, posY}, in SetRectHand()
176 clockView_->SetHandLine(UIAnalogClock::HandType::SECOND_HAND, {posX, posY}, in SetRectHand()
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/image_source_test/
H A Dimage_source_gif_test.cpp132 uint32_t posY = 15; in HWTEST_F() local
133 pixelMap->GetARGB32Color(posX, posY, color); in HWTEST_F()
138 IMAGE_LOGD("point:[%u, %u] ARGB:[%u, %u, %u, %u]", posX, posY, alpha, red, green, blue); in HWTEST_F()
180 uint32_t posY = 15; in HWTEST_F() local
181 pixelMap->GetARGB32Color(posX, posY, color); in HWTEST_F()
186 IMAGE_LOGD("point:[%u, %u] RGBA:[%u, %u, %u, %u]", posX, posY, red, green, blue, alpha); in HWTEST_F()
/foundation/window/window_manager/extension/window_extension/src/zidl/
H A Dwindow_extension_stub.cpp36 int32_t posY = 0; in OnRemoteRequest() local
39 if (!data.ReadInt32(posX) || !data.ReadInt32(posY) || in OnRemoteRequest()
44 SetBounds({ posX, posY, width, height }); in OnRemoteRequest()
/foundation/arkui/ace_engine/frameworks/bridge/common/utils/
H A Dutils.cpp159 void GetOffsetValue(std::vector<std::string> offsets, std::string& posX, std::string& posY) in GetOffsetValue() argument
164 posY = offsets.front(); in GetOffsetValue()
167 posY = DOM_BACKGROUND_IMAGE_POSITION_CENTER; in GetOffsetValue()
171 posY = offsets.back(); in GetOffsetValue()
172 if (VERTICAL_SET.find(posX) != VERTICAL_SET.end() && HORIZON_SET.find(posY) != HORIZON_SET.end()) { in GetOffsetValue()
173 posY = offsets.front(); in GetOffsetValue()
180 void GetOffsetValueObjectPosition(std::vector<std::string> offsets, std::string& posX, std::string& posY) in GetOffsetValueObjectPosition() argument
185 posY = offsets.front(); in GetOffsetValueObjectPosition()
188 posY = DOM_IMAGE_POSITION_CENTER; in GetOffsetValueObjectPosition()
192 posY in GetOffsetValueObjectPosition()
201 BgImgPositionIsValid(const std::string& posX, const std::string& posY) BgImgPositionIsValid() argument
219 ObjectImgPositionIsValid(const std::string& posX, const std::string& posY) ObjectImgPositionIsValid() argument
[all...]
/foundation/window/window_manager/wmserver/include/
H A Ddrag_controller.h92 void ConvertPointerPosToDisplayGroupPos(DisplayId displayId, int32_t& posX, int32_t& posY);
95 void HandleDragEvent(DisplayId displayId, int32_t posX, int32_t posY, int32_t pointId, int32_t sourceType);
96 void HandleMoveEvent(DisplayId displayId, int32_t posX, int32_t posY, int32_t pointId, int32_t sourceType);
100 void CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, int32_t posY);
/foundation/arkui/ui_lite/test/unittest/components/
H A Dui_button_unit_test.cpp206 const int16_t posY = 100; in HWTEST_F() local
213 button_->SetPosition(posX, posY); in HWTEST_F()
221 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth); in HWTEST_F()
242 const int16_t posY = 100; in HWTEST_F() local
249 button_->SetPosition(posX, posY); in HWTEST_F()
257 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth); in HWTEST_F()
278 const int16_t posY = 100; in HWTEST_F() local
284 button_->SetPosition(posX, posY); in HWTEST_F()
292 EXPECT_EQ(button_->GetContentRect().GetY(), posY + paddingdTop + borderWidth); in HWTEST_F()
H A Dui_label_button_unit_test.cpp97 const int16_t posY = 20; in HWTEST_F() local
99 labelBtn_->SetLabelPosition(posX, posY); in HWTEST_F()
101 EXPECT_EQ(labelBtn_->GetLabelPosition().y, posY); in HWTEST_F()
H A Dui_arc_label_unit_test.cpp142 const int16_t posY = 20; in HWTEST_F() local
143 arcLabel_->SetArcTextCenter(posX, posY); in HWTEST_F()
145 EXPECT_EQ(arcLabel_->GetArcTextCenter().y, posY); in HWTEST_F()
/foundation/window/window_manager/utils/include/
H A Dfold_screen_info.h92 int32_t posY; in ReadCreaseRectVector() local
95 if (!(parcel.ReadInt32(posX) && parcel.ReadInt32(posY) && in ReadCreaseRectVector()
99 DMRect rect = {posX, posY, width, height}; in ReadCreaseRectVector()
/foundation/window/window_manager/wm/src/zidl/
H A Dwindow_stub.cpp44 int32_t posY = 0; in OnRemoteRequest() local
47 if (!data.ReadInt32(posX) || !data.ReadInt32(posY) || !data.ReadUint32(width) || !data.ReadUint32(height)) { in OnRemoteRequest()
51 Rect rect { posX, posY, width, height }; in OnRemoteRequest()
183 int32_t posY = 0; in OnRemoteRequest() local
186 if (!data.ReadInt32(posX) || !data.ReadInt32(posY) || in OnRemoteRequest()
191 struct Rect rect { posX, posY, width, height }; in OnRemoteRequest() member
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_label.cpp181 float posY; in DrawArcText() local
195 posX, posY, rotateAngle, angle, in DrawArcText()
201 letterInfo.InitData(fontId, fontSize, letter, { MATH_ROUND(posX), MATH_ROUND(posY) }, in DrawArcText()
206 DrawLetterWithRotate(gfxDstBuffer, mask, letterInfo, posX, posY); in DrawArcText()
218 float& posY, in CalculateAngle()
242 TypedText::GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in CalculateAngle()
252 TypedText::GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in CalculateAngle()
263 float posY) in DrawLetterWithRotate()
288 transMap.Translate(Vector2<float>(posX + node.left, posY + offset - node.top)); in DrawLetterWithRotate()
289 transMap.Rotate(letterInfo.rotateAngle, Vector2<float>(posX, posY)); in DrawLetterWithRotate()
210 CalculateAngle(uint16_t letterWidth, uint16_t letterHeight, int16_t letterSpace, const ArcTextInfo arcTextInfo, bool xorFlag, uint32_t index, TextOrientation orientation, float& posX, float& posY, float& rotateAngle, float& angle, const Point& arcCenter, bool compatibilityMode) CalculateAngle() argument
259 DrawLetterWithRotate(BufferInfo& gfxDstBuffer, const Rect& mask, const ArcLetterInfo& letterInfo, float posX, float posY) DrawLetterWithRotate() argument
[all...]
H A Ddraw_label.h43 float& posY,
53 float posY);
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/
H A Dtext_blob_test.cpp45 float posY[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // 0, 0, 0, 0, 0, 0, 0, 0, 0 这些数字定义了每个字符在文本块中的位置 in OnTestPerformance() local
62 buffer->pos[idx * 2 + 1] = posY[idx]; // 2,1 用于位置计算 in OnTestPerformance()
151 float posY[9] = { 0, 0, 0, 0, 0, 0, 0, 0, 0 }; // in OnTestPerformance() local
161 buffer->pos[idx * 2 + 1] = posY[idx]; // 2 1 设置字形位置 in OnTestPerformance()
/foundation/arkui/ace_engine/frameworks/core/components/rich_text/
H A Drender_rich_text.cpp55 void RenderRichText::ProcessMove(double posY) in ProcessMove() argument
57 auto diff = prevPos_ - posY; in ProcessMove()
63 prevPos_ = posY; in ProcessMove()
/foundation/window/window_manager/utils/src/
H A Dcutout_info.cpp85 int32_t posY; in ReadBoundingRectsVector() local
88 if (!(parcel.ReadInt32(posX) && parcel.ReadInt32(posY) && in ReadBoundingRectsVector()
92 DMRect rect = {posX, posY, width, height}; in ReadBoundingRectsVector()
/foundation/arkui/ace_engine/adapter/ohos/entrance/
H A Dace_view_ohos.h52 static void SurfacePositionChanged(const RefPtr<AceViewOhos>& view, int32_t posX, int32_t posY);
185 void NotifySurfacePositionChanged(int32_t posX, int32_t posY) in NotifySurfacePositionChanged() argument
187 if (posX_ == posX && posY_ == posY) { in NotifySurfacePositionChanged()
191 viewPositionChangeCallback_(posX, posY); in NotifySurfacePositionChanged()
194 posY_ = posY; in NotifySurfacePositionChanged()
/foundation/window/window_manager/wm/src/
H A Dpicture_in_picture_controller.cpp474 float posY = 0; in UpdateContentSize() local
477 mainWindowXComponentController_->GetGlobalPosition(posX, posY); in UpdateContentSize()
479 bool isSizeChange = IsContentSizeChanged(newWidth, newHeight, posX, posY); in UpdateContentSize()
481 Rect r = {static_cast<int32_t>(posX), static_cast<int32_t>(posY), in UpdateContentSize()
509 bool PictureInPictureController::IsContentSizeChanged(float width, float height, float posX, float posY) in IsContentSizeChanged() argument
513 windowRect_.posX_ != static_cast<int32_t>(posX) || windowRect_.posY_ != static_cast<int32_t>(posY); in IsContentSizeChanged()
619 float posY = 0; in UpdateWinRectByComponent() local
622 mainWindowXComponentController_->GetGlobalPosition(posX, posY); in UpdateWinRectByComponent()
634 windowRect_.posY_ = static_cast<int32_t>(posY); in UpdateWinRectByComponent()
635 TLOGD(WmsLogTag::WMS_PIP, "position width: %{public}u, height: %{public}u, posX: %{public}d, posY in UpdateWinRectByComponent()
652 float posY = 0; UpdatePiPSourceRect() local
[all...]
/foundation/window/window_manager/wmserver/src/
H A Ddrag_controller.cpp262 void MoveDragController::ConvertPointerPosToDisplayGroupPos(DisplayId displayId, int32_t& posX, int32_t& posY) in ConvertPointerPosToDisplayGroupPos() argument
266 posY += displayRect.posY_; in ConvertPointerPosToDisplayGroupPos()
354 void MoveDragController::CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, int32_t posY) in CalculateNewWindowRect() argument
362 int32_t diffY = posY - startPointPosY; in CalculateNewWindowRect()
396 void MoveDragController::HandleDragEvent(DisplayId displayId, int32_t posX, int32_t posY, in HandleDragEvent() argument
405 CalculateNewWindowRect(newRect, displayId, posX, posY); in HandleDragEvent()
419 void MoveDragController::HandleMoveEvent(DisplayId displayId, int32_t posX, int32_t posY, in HandleMoveEvent() argument
434 int32_t targetY = moveDragProperty_->startPointRect_.posY_ + (posY - startPointPosY); in HandleMoveEvent()
/foundation/window/window_manager/window_scene/session/host/src/
H A Dsub_session.cpp107 WSError SubSession::ProcessPointDownSession(int32_t posX, int32_t posY) in ProcessPointDownSession() argument
118 Session::ProcessClickModalSpecificWindowOutside(posX, posY); in ProcessPointDownSession()
125 return SceneSession::ProcessPointDownSession(posX, posY); in ProcessPointDownSession()
/foundation/graphic/graphic_2d/rosen/modules/frame_analyzer/export/
H A Dframe_painter.h40 double posY = 0; member
/foundation/arkui/ui_lite/frameworks/common/
H A Dtyped_text.cpp98 float posY = 0; in GetArcTextRect() local
117 GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in GetArcTextRect()
118 rect.SetPosition(MATH_ROUND(posX), MATH_ROUND(posY)); in GetArcTextRect()
120 rectLetter.SetPosition(MATH_ROUND(posX), MATH_ROUND(posY)); in GetArcTextRect()
140 GetArcLetterPos(arcCenter, arcTextInfo.radius, angle, posX, posY); in GetArcTextRect()
170 void TypedText::GetArcLetterPos(const Point& arcCenter, uint16_t radius, float angle, float& posX, float& posY) in GetArcLetterPos() argument
173 posY = arcCenter.y - (static_cast<float>(radius) * Sin(angle + QUARTER_IN_DEGREE)); in GetArcLetterPos()
/foundation/graphic/graphic_utils_lite/test/
H A Dgraphic_math_unit_test.cpp368 const uint16_t posY = 5; in HWTEST_F() local
370 Vector3<uint16_t>* vector1 = new Vector3<uint16_t>(posX, posY, posZ); in HWTEST_F()
378 EXPECT_EQ(vector1->operator[](i++), posY); in HWTEST_F()
393 const uint16_t posY = 5; in HWTEST_F() local
395 Vector3<uint16_t>* vector1 = new Vector3<uint16_t>(posX, posY, posZ); in HWTEST_F()
400 Vector3<uint16_t>* vector2 = new Vector3<uint16_t>(posX, posY, posZ); in HWTEST_F()
406 Vector3<uint16_t>* vector3 = new Vector3<uint16_t>(posX - 1, posY, posZ); in HWTEST_F()

Completed in 14 milliseconds

12345