/foundation/graphic/graphic_utils_lite/test/ |
H A D | rect_unit_test.cpp | 35 static Rect* rect_; member in OHOS::RectTest 38 Rect* RectTest::rect_ = nullptr; member in OHOS::RectTest 42 if (rect_ == nullptr) { in SetUpTestCase() 43 rect_ = new Rect(); in SetUpTestCase() 49 if (rect_ != nullptr) { in TearDownTestCase() 50 delete rect_; in TearDownTestCase() 51 rect_ = nullptr; in TearDownTestCase() 57 if (rect_ == nullptr) { in SetUp() 61 rect_->SetRect(0, 0, 0, 0); in SetUp() 71 if (rect_ in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_rect.h | 283 RectT<T> rect_ = RectT<T>(); member in OHOS::Rosen::RRectT 291 rect_ = rect; in RRectT() 300 rect_ = rect; in RRectT() 308 rect_ = rect; in RRectT() 317 rect_ = rect; in SetValues() 327 std::to_string(rect_.left_) + ", " + in ToString() 328 std::to_string(rect_.top_) + ", " + in ToString() 329 std::to_string(rect_.width_) + ", " + in ToString() 330 std::to_string(rect_.height_) + in ToString() 357 rrect.rect_ in operator -() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | geometry_property.h | 29 return rect_ == value.rect_; in operator ==() 34 rect_.Reset(); in Reset() 39 return rect_; in GetRect() 44 rect_.SetSize(size); in SetSize() 49 rect_.SetOffset(offset); in SetOffset() 54 return rect_.ToString(); in ToString() 58 RectF rect_; member in OHOS::Ace::NG::GeometryProperty
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | rrect.h | 40 explicit RRect(const Rect& rect) : rect_(rect) {} in RRect() 43 rect_.SetRect(x, y, width, height); in RRect() 76 return rect_; in GetRect() 86 rect_ = rect; in SetRect() 96 rect_ = rect; in SetRectWithSimpleRadius() 100 if (rect_.Width() < (xRadius + xRadius) || rect.Height() < (yRadius + yRadius)) { in SetRectWithSimpleRadius() 111 rect_.ApplyScaleAndRound(Size(scale, scale)); in ApplyScaleAndRound() 120 rect_ = rect; in SetOval() 129 return rect_.Width(); in Width() 134 return rect_ in Height() 153 Rect rect_; global() member in OHOS::Ace::final [all...] |
/foundation/window/window_manager/interfaces/innerkits/wm/ |
H A D | occupied_area_change_info.h | 29 OccupiedAreaChangeInfo(OccupiedAreaType type, Rect rect) : type_(type), rect_(rect) {}; in OccupiedAreaChangeInfo() 31 : type_(type), rect_(rect), safeHeight_(safeHeight) {}; in OccupiedAreaChangeInfo() 34 : type_(type), rect_(rect), textFieldPositionY_(textFieldPositionY), textFieldHeight_(textFieldHeight) {}; in OccupiedAreaChangeInfo() 37 : type_(type), rect_(rect), safeHeight_(safeHeight), in OccupiedAreaChangeInfo() 43 return parcel.WriteInt32(rect_.posX_) && parcel.WriteInt32(rect_.posY_) && in Marshalling() 44 parcel.WriteUint32(rect_.width_) && parcel.WriteUint32(rect_.height_) && in Marshalling() 53 bool res = parcel.ReadInt32(occupiedAreaChangeInfo->rect_.posX_) && in Unmarshalling() 54 parcel.ReadInt32(occupiedAreaChangeInfo->rect_ in Unmarshalling() 69 Rect rect_ = { 0, 0, 0, 0 }; global() member in OHOS::Rosen::OccupiedAreaChangeInfo [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_border_test.cpp | 581 rrect.rect_.SetRight(10.f); in HWTEST_F() 582 rrect.rect_.SetBottom(10.f); in HWTEST_F() 583 rrect.rect_.SetLeft(1.f); in HWTEST_F() 584 rrect.rect_.SetTop(1.f); in HWTEST_F() 644 borderGeo.rrect.rect_.SetLeft(rect.GetLeft()); in HWTEST_F() 645 borderGeo.rrect.rect_.SetTop(rect.GetTop()); in HWTEST_F() 646 borderGeo.rrect.rect_.SetRight(rect.GetRight()); in HWTEST_F() 647 borderGeo.rrect.rect_.SetBottom(rect.GetBottom()); in HWTEST_F() 648 borderGeo.innerRRect.rect_.SetLeft(rect.GetLeft() + width[RSBorder::LEFT]); in HWTEST_F() 649 borderGeo.innerRRect.rect_ in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/base/ |
H A D | geometry_node.h | 60 auto size = frame_.rect_.GetSize(); in GetMarginFrameSize() 72 auto offset = frame_.rect_.GetOffset(); in GetMarginFrameOffset() 84 auto offset = frame_.rect_.GetOffset(); in GetMarginFrameRect() 85 auto size = frame_.rect_.GetSize(); in GetMarginFrameRect() 103 frame_.rect_.SetOffset(translate + offset); in SetMarginFrameOffset() 108 auto result = frame_.rect_; in GetFrameRect() 117 auto result = frame_.rect_.GetSize(); in GetFrameSize() 126 auto result = frame_.rect_.GetOffset(); in GetFrameOffset() 135 frame_.rect_.SetOffset(offset); in SetFrameOffset() 140 frame_.rect_ in SetFrameSize() [all...] |
/foundation/window/window_manager/test/systemtest/wms/ |
H A D | window_occupied_area_change_test.cpp | 36 Rect rect_ = { 0, 0, 0, 0 };
member in OHOS::Rosen::TestOccupiedAreaChangeListener 59 info->type_, info->rect_.width_, info->rect_.height_);
in OnSizeChange() 61 rect_ = info->rect_;
in OnSizeChange() 128 ASSERT_EQ(testOccupiedAreaChangeListener_->rect_.posX_, window2->GetRect().posX_);
in HWTEST_F() 129 ASSERT_EQ(testOccupiedAreaChangeListener_->rect_.posY_, window2->GetRect().posY_);
in HWTEST_F() 130 ASSERT_EQ(testOccupiedAreaChangeListener_->rect_.width_, window2->GetRect().width_);
in HWTEST_F() 131 ASSERT_EQ(testOccupiedAreaChangeListener_->rect_.height_, window2->GetRect().height_);
in HWTEST_F() 160 ASSERT_EQ(testOccupiedAreaChangeListener_->rect_ in HWTEST_F() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/ |
H A D | texgine_rect.cpp | 21 TexgineRect::TexgineRect(): rect_(std::make_shared<RSRect>()) in TexgineRect() 23 fBottom_ = &rect_->bottom_; in TexgineRect() 24 fLeft_ = &rect_->left_; in TexgineRect() 25 fTop_ = &rect_->top_; in TexgineRect() 26 fRight_ = &rect_->right_; in TexgineRect() 65 return rect_; in GetRect() 75 *rect_ = rect; in SetRect() 76 fBottom_ = &rect_->bottom_; in SetRect() 77 fLeft_ = &rect_->left_; in SetRect() 78 fTop_ = &rect_ in SetRect() [all...] |
/foundation/arkui/ace_engine/test/mock/core/rosen/ |
H A D | testing_round_rect.h | 41 rect_ = testingRoundRect.rect_; in TestingRoundRect() 46 rect_ = rect; in TestingRoundRect() 55 rect_ = rect; in TestingRoundRect() 74 rect_ = rect; in SetRect() 79 return rect_; in GetRect() 84 rect_.Offset(dx, dy); in Offset() 88 TestingRect rect_; member in OHOS::Ace::Testing::TestingRoundRect
|
/foundation/graphic/graphic_2d/rosen/modules/animation/window_animation/src/ |
H A D | rs_window_animation_target.cpp | 40 parcel.WriteFloat(windowBounds_.rect_.left_) && in Marshalling() 41 parcel.WriteFloat(windowBounds_.rect_.top_) && in Marshalling() 42 parcel.WriteFloat(windowBounds_.rect_.width_) && in Marshalling() 43 parcel.WriteFloat(windowBounds_.rect_.height_) && in Marshalling() 77 parcel.ReadFloat(windowBounds_.rect_.left_) && in ReadFromParcel() 78 parcel.ReadFloat(windowBounds_.rect_.top_) && in ReadFromParcel() 79 parcel.ReadFloat(windowBounds_.rect_.width_) && in ReadFromParcel() 80 parcel.ReadFloat(windowBounds_.rect_.height_) && in ReadFromParcel()
|
/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | round_rect.h | 73 Rect rect_; member in OHOS::Rosen::Drawing::RoundRect 79 inline RoundRect::RoundRect() noexcept : rect_(), isSimple_(true) {} in isSimple_() 83 rect_ = roundRect.rect_; in RoundRect() 92 rect_ = r; in RoundRect() 102 rect_ = r; in RoundRect() 124 rect_ = rect; in SetRect() 129 return rect_; in GetRect() 134 rect_.Offset(dx, dy); in Offset()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing/ |
H A D | drawing_demo.cpp | 91 rootNode_->SetBounds(0, 0, rect_.width_, rect_.height_); in InitWindow() 92 rootNode_->SetFrame(0, 0, rect_.width_, rect_.height_); in InitWindow() 101 canvasNode_->SetFrame(0, 0, rect_.width_, rect_.height_); in InitWindow() 164 rect_ = window_->GetRect(); in CreateWindow() 166 } while (rect_.width_ == 0 && rect_.height_ == 0 && count < MAX_TRY_NUMBER); in CreateWindow() 168 if (rect_ in CreateWindow() [all...] |
/foundation/window/window_manager/window_scene/session/screen/src/ |
H A D | screen_property.cpp | 220 std::swap(bounds_.rect_.width_, bounds_.rect_.height_); in SetScreenRotation() 221 int32_t width = bounds_.rect_.width_; in SetScreenRotation() 222 int32_t height = bounds_.rect_.height_; in SetScreenRotation() 224 bounds_.rect_.left_ -= static_cast<float>(width - height) / static_cast<float>(HALF_VALUE) - in SetScreenRotation() 226 bounds_.rect_.top_ += static_cast<float>(width - height) / static_cast<float>(HALF_VALUE); in SetScreenRotation() 228 bounds_.rect_.left_ += static_cast<float>(height - width) / static_cast<float>(HALF_VALUE); in SetScreenRotation() 229 bounds_.rect_.top_ -= static_cast<float>(height - width) / static_cast<float>(HALF_VALUE) + in SetScreenRotation() 293 int32_t width = phyBounds_.rect_.width_; in UpdateXDpi() 302 int32_t height_ = phyBounds_.rect_ in UpdateYDpi() [all...] |
H A D | screen_session.cpp | 95 displayNode_->SetFrame(property_.GetBounds().rect_.left_, property_.GetBounds().rect_.top_, in CreateDisplayNode() 96 property_.GetBounds().rect_.width_, property_.GetBounds().rect_.height_); in CreateDisplayNode() 97 displayNode_->SetBounds(property_.GetBounds().rect_.left_, property_.GetBounds().rect_.top_, in CreateDisplayNode() 98 property_.GetBounds().rect_.width_, property_.GetBounds().rect_.height_); in CreateDisplayNode() 120 displayNode_->SetFrame(property_.GetBounds().rect_.left_, property_.GetBounds().rect_ in ScreenSession() [all...] |
/foundation/graphic/graphic_utils_lite/frameworks/ |
H A D | transform.cpp | 42 rect_ = rect; in TransformMap() 88 rect_ = rect; in SetTransMapRect() 174 Rect rectTemp = rect_; in GetOrigPoint() 179 rect_ = rect; in GetOrigPoint() 211 rect_ = rectTemp; in GetOrigPoint() 221 rect_ == other.rect_ && matrix_ == other.matrix_) { in operator ==() 252 Vector3<float>(rotatePivotStart_.x_ + rect_.GetX(), rotatePivotStart_.y_ + rect_.GetY(), in UpdateMap() 254 Vector3<float>(rotatePivotEnd_.x_ + rect_ in UpdateMap() [all...] |
/foundation/window/window_manager/utils/src/ |
H A D | window_visibility_info.cpp | 29 parcel.WriteUint32(static_cast<uint32_t>(windowStatus_)) && parcel.WriteInt32(rect_.posX_) &&
in Marshalling() 30 parcel.WriteInt32(rect_.posY_) && parcel.WriteUint32(rect_.width_) && parcel.WriteUint32(rect_.height_) &&
in Marshalling() 52 windowVisibilityInfo->rect_ = { parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadUint32(), parcel.ReadUint32() };
in Unmarshalling()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/ |
H A D | rect_paint_method.h | 57 rect_.SetSize(rectPaintProperty->GetContentSize()); 58 rect_.SetOffset(rectPaintProperty->GetContentOffset()); 60 return [rect = rect_, rectPaintProperty, paintWrapper](RSCanvas& canvas) { 69 RectF rect_; member
|
/foundation/multimedia/av_codec/test/unittest/video_test/vcodec_framework_test/ |
H A D | buffer_converter_unit_test.cpp | 143 EXPECT_EQ(converter_->rect_.wStride, DEFAULT_WIDTH); in HWTEST_F() 144 EXPECT_EQ(converter_->rect_.hStride, DEFAULT_HEIGHT); in HWTEST_F() 168 EXPECT_EQ(converter_->rect_.wStride, DEFAULT_WIDTH * 2); // 2: pixelSize in HWTEST_F() 169 EXPECT_EQ(converter_->rect_.hStride, DEFAULT_HEIGHT); in HWTEST_F() 191 EXPECT_EQ(converter_->rect_.wStride, DEFAULT_WIDTH * 4); // 4: pixelSize in HWTEST_F() 192 EXPECT_EQ(converter_->rect_.hStride, DEFAULT_HEIGHT); in HWTEST_F() 209 EXPECT_EQ(converter_->rect_.wStride, 0); in HWTEST_F() 210 EXPECT_EQ(converter_->rect_.hStride, 0); in HWTEST_F() 230 EXPECT_EQ(converter_->rect_.wStride, 0); in HWTEST_F() 231 EXPECT_EQ(converter_->rect_ in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/text/ |
H A D | paragraph_manager_test_ng.cpp | 290 EXPECT_EQ(result[0].rect_.GetX(), 10.0f); in HWTEST_F() 291 EXPECT_EQ(result[0].rect_.GetY(), 10.0f); in HWTEST_F() 292 EXPECT_EQ(result[0].rect_.Height(), 20.0f); in HWTEST_F() 293 EXPECT_EQ(result[0].rect_.Width(), 40.0f); in HWTEST_F() 301 EXPECT_EQ(result[1].rect_.GetX(), 10.0f); in HWTEST_F() 302 EXPECT_EQ(result[1].rect_.GetY(), 110.0f); in HWTEST_F() 303 EXPECT_EQ(result[1].rect_.Height(), 20.0f); in HWTEST_F() 304 EXPECT_EQ(result[1].rect_.Width(), 40.0f); in HWTEST_F() 312 EXPECT_EQ(result[0].rect_.GetX(), 10.0f); in HWTEST_F() 313 EXPECT_EQ(result[0].rect_ in HWTEST_F() [all...] |
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | screen_property_test.cpp | 66 bounds.rect_.width_ = 1344; in HWTEST_F() 67 bounds.rect_.height_ = 2772; in HWTEST_F() 71 bounds.rect_.height_ = 1111; in HWTEST_F() 74 bounds.rect_.width_ = 1111; in HWTEST_F() 75 bounds.rect_.height_ = 2772; in HWTEST_F() 78 bounds.rect_.width_ = 1111; in HWTEST_F() 79 bounds.rect_.height_ = 1111; in HWTEST_F() 96 bounds.rect_.width_ = 1344; in HWTEST_F() 97 bounds.rect_.height_ = 2772; in HWTEST_F() 105 bounds.rect_ in HWTEST_F() [all...] |
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_view.cpp | 63 rect_(0, 0, 0, 0), in UIView() 828 int16_t x = rect_.GetX(); in GetOrigRect() 829 int16_t y = rect_.GetY(); in GetOrigRect() 836 return Rect(x, y, x + rect_.GetWidth() - 1, y + rect_.GetHeight() - 1); in GetOrigRect() 894 rect_.SetWidth(newWidth); in SetWidth() 911 return rect_.GetWidth() - (style_->paddingLeft_ + style_->paddingRight_) - in GetWidth() 920 rect_.SetHeight(newHeight); in SetHeight() 937 return rect_.GetHeight() - (style_->paddingTop_ + style_->paddingBottom_) - in GetHeight() 962 rect_ in SetX() [all...] |
/foundation/window/window_manager/interfaces/kits/cj/window_runtime/ |
H A D | window_listener.cpp | 111 info->rect_.posX_, info->rect_.posY_, info->rect_.width_, info->rect_.height_); in OnSizeChange() 117 void* argv = &(info->rect_.height_); in OnSizeChange()
|
/foundation/multimedia/media_foundation/tests/unittest/detail_enhancer_video_ndk/sample/ |
H A D | video_sample.cpp | 102 if (rect_) { in ~VideoSample() 103 delete rect_; in ~VideoSample() 104 rect_ = nullptr; in ~VideoSample() 190 rect_ = new Region::Rect(); in SetInputWindowParam() 191 rect_->x = 0; in SetInputWindowParam() 192 rect_->y = 0; in SetInputWindowParam() 193 rect_->w = param_.inWidth; in SetInputWindowParam() 194 rect_->h = param_.inHeight; in SetInputWindowParam() 195 region_.rects = rect_; in SetInputWindowParam()
|
/foundation/multimedia/av_codec/services/services/codec/ipc/ |
H A D | buffer_converter.cpp | 195 AVCodecRect rects[3] = {usrRect_, hwRect_, rect_}; // 1:dstRect, 2:srcRect, 3:rect in ReadFromBuffer() 219 AVCodecRect rects[3] = {hwRect_, usrRect_, rect_}; // 1:dstRect, 2:srcRect, 3:rect in WriteToBuffer() 270 SetWidthStride(rect_.wStride); in SetFormat() 275 SetHeightStride(rect_.hStride); in SetFormat() 288 width, rect_.hStride, usrRect_.wStride, usrRect_.hStride, hwRect_.wStride, hwRect_.hStride); in SetFormat() 337 rect_.wStride = width; in SetWidth() 348 rect_.hStride = height; in SetHeight() 394 width, rect_.hStride, usrRect_.wStride, usrRect_.hStride, hwRect_.wStride, hwRect_.hStride); in SetBufferFormat() 408 rect_.wStride = width * tempPixelSize; in SetRectValue() 409 rect_ in SetRectValue() [all...] |