/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | size_t.h | 185 if (NonNegative(size.height_) && (height_ != size.height_)) { in UpdateSizeWithCheck() 186 height_ = size.height_; in UpdateSizeWithCheck() 198 height_ = size.height_; in UpdateIllegalSizeWithCheck() 226 auto temp = height_ > size.height_ ? height_ : size.height_; in UpdateHeightWhenLarger() 259 auto temp = height_ < size.height_ ? height_ : size.height_; in UpdateHeightWhenSmaller() 274 height_ = height_ > minSize.Height() ? height_ : minSize.Height(); in UpdateMin() 580 if (size.height_ && (height_ != size.height_)) { in UpdateSizeWithCheck() 581 height_ = size.height_; in UpdateSizeWithCheck() 811 height_ = height_.value() + size.height_.value_or(0); 835 height_ = height_.value() - size.height_.value_or(0); [all …]
|
H A D | rect_t.h | 60 height_ = 0; in Reset() 68 height_ = height; in SetRect() 82 height_ *= scale; in ApplyScale() 90 height_ = round(height_ * scale); in ApplyScaleAndRound() 100 return GreatNotEqual(height_, 0) ? y_ : y_ + height_; in Top() 110 return GreatNotEqual(height_, 0) ? y_ + height_ : y_; in Bottom() 130 return height_; in Height() 141 height_ = size.Height(); in SetSize() 177 height_ = height; in SetHeight() 384 ss << height_; in ToString() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | size.h | 57 return height_; in Height() 67 height_ = height; in SetHeight() 73 height_ = size.Height(); in SetSize() 98 height_ += height; in AddHeight() 110 height_ -= height; in MinusHeight() 150 return NearEqual(width_, size.width_) && NearEqual(height_, size.height_); 175 height_ *= scale; in ApplyScale() 185 return GreatOrEqual(width_, size.width_) && GreatOrEqual(height_, size.height_); 198 return LessOrEqual(width_, size.width_) && LessOrEqual(height_, size.height_); 226 ss << height_; in ToString() [all …]
|
H A D | rect.h | 48 height_ = height; in SetRect() 62 height_ *= scale; in ApplyScale() 70 height_ = round(height_ * scale.Height()); in ApplyScaleAndRound() 80 return GreatNotEqual(height_, 0.0) ? y_ : y_ + height_; in Top() 90 return GreatNotEqual(height_, 0.0) ? y_ + height_ : y_; in Bottom() 100 return height_; in Height() 106 height_ = size.Height(); in SetSize() 142 height_ = height; in SetHeight() 190 height_ += size.Height(); 377 ss << height_; in ToString() [all …]
|
H A D | dimension_rect.h | 35 : width_(width), height_(height), offset_(offset) in DimensionRect() 38 … DimensionRect(const Dimension& width, const Dimension& height) : width_(width), height_(height) {} in DimensionRect() 47 return height_; in GetHeight() 63 height_ = size.Height(); in SetSize() 73 height_ = height; in SetHeight() 79 height_ = 0.0_vp; in Reset() 91 ss << height_.ToString(); in ToString() 103 jsonValue->Put("height", height_.ToString().c_str()); in ToJsonString() 109 Dimension height_ = 0.0_vp; variable
|
H A D | dimension_size.h | 34 … DimensionSize(const Dimension& width, const Dimension& height) : width_(width), height_(height) {} in DimensionSize() 43 return height_; in Height() 53 height_ = height; in SetHeight() 59 height_ = size.Height(); in SetSize() 81 if (NearEqual(height_.Value(), INFINITE_SIZE)) { in ToString() 84 ss << height_.ToString(); in ToString() 93 Dimension height_ = 0.0_vp; variable
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | size.h | 49 scalar height_; variable 62 return width_ == 0 && height_ == 0; in IsZero() 77 return height_; in Height() 87 height_ = h; in SetHeight() 92 return s1.width_ == s2.width_ && s1.height_ == s2.height_; 97 return s1.width_ != s2.width_ || s1.height_ != s2.height_; 121 int height_; variable 149 return height_; in Height() 159 height_ = h; in SetHeight() 164 return s1.width_ == s2.width_ && s1.height_ == s2.height_; [all …]
|
/ohos5.0/foundation/window/window_manager/wmserver/src/ |
H A D | window_layout_policy_cascade.cpp | 344 newRect.height_ = std::max(newLimits.minHeight_, newRect.height_); in ComputeRectByAspectRatio() 346 newRect.height_ = std::min(newLimits.maxHeight_, newRect.height_); in ComputeRectByAspectRatio() 397 dstRect.height_ = oriRect.height_ + winTitleBarH + winFrameW; in ComputeDecoratedRequestRect() 540 dividerRect.height_ = divRect.height_; in SetSplitRectByDivider() 545 primaryRect.height_ = displayRect.height_; in SetSplitRectByDivider() 550 secondaryRect.height_ = displayRect.height_; in SetSplitRectByDivider() 613 cascadeRect.height_ = rect.height_; in StepCascadeRect() 841 winRect.height_ = std::min(sizeLimits.maxHeight_, winRect.height_); in UpdateFloatingWindowSizeBySizeLimits() 945 if (oriWinRect.height_ != lastRect.height_) { in LimitWindowPositionWhenDrag() 953 if (oriWinRect.height_ != lastRect.height_) { in LimitWindowPositionWhenDrag() [all …]
|
H A D | window_layout_policy.cpp | 60 windowRect.height_ = std::min(windowRect.height_, displayRect.height_); in LimitWindowToBottomRightCorner() 71 static_cast<int32_t>(windowRect.height_); in LimitWindowToBottomRightCorner() 410 if (rect.width_ < rect.height_) { in CalcEntireWindowHotZone() 415 rect.height_ += (hotZoneY + hotZoneY); in CalcEntireWindowHotZone() 423 rect.height_ += (hotZoneY + hotZoneY); in CalcEntireWindowHotZone() 471 …uint32_t smallWidth = displayRect.height_ <= displayRect.width_ ? displayRect.height_ : displayRec… in GetSystemSizeLimits() 474 if (displayRect.width_ <= displayRect.height_) { in GetSystemSizeLimits() 480 if (displayRect.width_ <= displayRect.height_) { in GetSystemSizeLimits() 566 int32_t limitH = static_cast<int32_t>(limitRect.height_); in UpdateDisplayLimitRect() 568 int32_t layoutH = static_cast<int32_t>(layoutRect.height_); in UpdateDisplayLimitRect() [all …]
|
/ohos5.0/foundation/window/window_manager/test/systemtest/wms/ |
H A D | window_test_utils.cpp | 201 resRect.height_ = rect.height_ + winTitleBarH + winFrameW; in GetDecorateRect() 215 …naviBarRect_ = {0, displayRect_.height_ * (1 - barRatio), displayRect_.width_, displayRect_.height… in InitByDisplayRect() 216 …dockWindowRect_ = {0, displayRect_.height_ * (1 - barRatio), displayRect_.width_, displayRect_.hei… in InitByDisplayRect() 219 displayRect_.height_ * spaceRation, in InitByDisplayRect() 271 h = h > limitDisplayRect_.height_ ? limitDisplayRect_.height_ : h; in InitTileWindowRects() 294 …l.posX_ == r.posX_) && (l.posY_ == r.posY_) && (l.width_ == r.width_) && (l.height_ == r.height_)); in RectEqualTo() 305 …l.posX_ == r.posX_) && (l.posY_ == r.posY_) && (l.width_ == r.width_) && (l.height_ == r.height_)); in RectEqualToRect() 427 splitRects_.secondaryRect.height_ = displayRect_.height_ - splitRects_.secondaryRect.posY_; in UpdateLimitSplitRects() 435 splitRects_.primaryRect.height_ = displayRect_.height_; in UpdateLimitSplitRects() 440 splitRects_.secondaryRect.height_ = displayRect_.height_; in UpdateLimitSplitRects() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_layout_algorithm.cpp | 310 middle_.height_ + icon_.height_ + bottom_.height_; in MeasureIntegralSize() 341 if (icon_.height_ > text_.height_) { in UpdateHorizontalOffset() 428 top_.height_ + icon_.height_ + middle_.height_); in UpdateTextRectPoint() 430 top_.height_ + icon_.height_ + middle_.height_); in UpdateTextRectPoint() 432 top_.height_ + icon_.height_ + middle_.height_ + text_.height_); in UpdateTextRectPoint() 434 top_.height_ + icon_.height_ + middle_.height_ + text_.height_); in UpdateTextRectPoint() 440 top_.height_ + icon_.height_ + middle_.height_ + text_.height_); in UpdateTextRectPoint() 445 top_.height_ + icon_.height_ / HALF - text_.height_ / HALF); in UpdateTextRectPoint() 447 top_.height_ + icon_.height_ / HALF - text_.height_ / HALF); in UpdateTextRectPoint() 449 top_.height_ + icon_.height_ / HALF + text_.height_ / HALF); in UpdateTextRectPoint() [all …]
|
H A D | security_component_layout_element.cpp | 76 height_ = width_ = minIconSize_; in ShrinkWidth() 81 height_ = width_; in ShrinkWidth() 92 width_ = height_ = minIconSize_; in ShrinkHeight() 95 height_ -= reduceSize; in ShrinkHeight() 96 width_ = height_; in ShrinkHeight() 135 height_ = textSizeF.Height(); in Init() 148 height_ = textSizeF.Height(); in MeasureForWidth() 226 height_ = textSizeF.Height(); in UpdateSize() 259 auto tempHeight = height_; in TryShrinkTextWidth() 348 height_ = minTextHeight; in ShrinkHeight() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/qrcode/ |
H A D | render_qrcode.cpp | 54 height_ = width_; in PerformLayout() 56 width_ = height_; in PerformLayout() 58 if (LessOrEqual(width_, height_)) { in PerformLayout() 59 height_ = width_; in PerformLayout() 61 width_ = height_; in PerformLayout() 71 height_ = 0.0; in PerformLayout() 74 height_ = maxSize.Height(); in PerformLayout() 75 if (LessOrEqual(width_, height_)) { in PerformLayout() 76 height_ = width_; in PerformLayout() 78 width_ = height_; in PerformLayout() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/progress/ |
H A D | progress_layout_algorithm.cpp | 76 height_ = width_; in MeasureContent() 79 height_ = std::min(width_, height_); in MeasureContent() 81 width_ = height_; in MeasureContent() 91 if (width_ >= height_) { in MeasureContent() 92 height_ = std::min(height_, strokeWidth_); in MeasureContent() 97 return SizeF(width_, height_); in MeasureContent() 127 height_ = width_; in MeasureContentForApiNine() 129 height_ = width_; in MeasureContentForApiNine() 131 width_ = height_; in MeasureContentForApiNine() 135 height_ = diameter; in MeasureContentForApiNine() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/ |
H A D | shape_view_box.h | 46 return height_; in Height() 66 height_ = height; in SetHeight() 70 return width_.Value() > 0.0 && height_.Value() > 0.0; in IsValid() 78 height_ = shapeViewBox.height_; 85 (height_ == shapeViewBox.height_); 91 (height_ != shapeViewBox.height_); 98 Dimension height_ = Dimension(-1.0); variable
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/screen_manager/ |
H A D | rs_virtual_screen_resolution.cpp | 21 : width_(width), height_(height) in RSVirtualScreenResolution() 26 : width_(other.width_), height_(other.height_) in RSVirtualScreenResolution() 33 height_ = other.height_; in operator =() 39 return parcel.WriteUint32(width_) && parcel.WriteUint32(height_); in Marshalling() 61 return height_; in GetVirtualScreenHeight() 71 height_ = height; in SetVirtualScreenHeight()
|
H A D | rs_screen_mode_info.cpp | 21 : width_(width), height_(height), refreshRate_(refreshRate), modeId_(id) in RSScreenModeInfo() 26 height_(other.height_), refreshRate_(other.refreshRate_), modeId_(other.modeId_) in RSScreenModeInfo() 33 height_ = other.height_; in operator =() 41 return parcel.WriteInt32(width_) && parcel.WriteInt32(height_) && in Marshalling() 67 return height_; in GetScreenHeight() 87 height_ = height; in SetScreenHeight()
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/codeclist_test/coverage_unit_test/ |
H A D | avcodec_info_coverage_unit_test.cpp | 62 int32_t height_; member in __anon6b311c1d0110::AVCodecInfoTest 80 height_ = DEFAULT_HEIGHT; in SetUp() 99 height_ = 720; 166 height_ = initialHeight; 168 EXPECT_EQ(height_, initialHeight); 178 height_ = initialHeight; 180 EXPECT_EQ(height_, initialHeight); 280 height_ = initialHeight; 283 EXPECT_EQ(height_, initialHeight); 559 EXPECT_EQ(height_, DEFAULT_HEIGHT); [all …]
|
/ohos5.0/foundation/window/window_manager/dmserver/src/ |
H A D | abstract_display.cpp | 41 height_ = static_cast<int32_t>(info->height_); in AbstractDisplay() 46 if (width_ > height_) { in AbstractDisplay() 51 if (info->width_ < info->height_) { in AbstractDisplay() 67 if ((info->width_ >= PHONE_SCREEN_WIDTH) || (info->height_ >= PHONE_SCREEN_WIDTH)) { in AbstractDisplay() 88 yDpi_ = height_ * INCH_2_MM / phyHeight_; in CalculateXYDpi() 103 return height_; in GetHeight() 144 height_ = height; in SetHeight() 158 yDpi_ = height_ * INCH_2_MM / phyHeight_; in UpdateYDpi() 201 std::swap(width_, height_); in RequestRotation() 250 height_ = static_cast<int32_t>(info->height_); in BindAbstractScreen() [all …]
|
/ohos5.0/base/update/updater/services/ui/driver/ |
H A D | graphic_engine.cpp | 56 sfDev_->GetScreenSize(width_, height_, surface); in Init() 63 …LOG(INFO) << "GraphicEngine Init width: " << width_ << ", height: " << height_ << ", bkgColor: " <… in Init() 122 if ((width_ == 0) || (height_ == 0)) { in GetFBBufferInfo() 123 LOG(ERROR) << "input error, width: " << width_ << ", height: " << height_; in GetFBBufferInfo() 126 UiRotation::GetInstance().InitRotation(width_, height_, pixelBytes); in GetFBBufferInfo() 128 height_ = UiRotation::GetInstance().GetHeight(); in GetFBBufferInfo() 129 virAddr_ = std::make_unique<uint8_t[]>(width_ * height_ * pixelBytes); in GetFBBufferInfo() 131 buffInfo_->rect = { 0, 0, static_cast<int16_t>(width_ - 1), static_cast<int16_t>(height_ - 1) }; in GetFBBufferInfo() 138 buffInfo_->height = height_; in GetFBBufferInfo() 161 return height_; in GetScreenHeight()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/opengl/test_xComponentContext/entry/src/main/cpp/samples/ |
H A D | sample_bitmap.cpp | 31 height_ = height; in SetHeight() 83 float y1 = height_ / blockSize; in ConstructPath() 85 float y2 = height_ / blockSize; in ConstructPath() 87 float y3 = height_ / blockSize * x2Offset; in ConstructPath() 89 float y4 = height_ / blockSize * x2Offset; in ConstructPath() 91 float y5 = height_ / blockSize * x3Offset; in ConstructPath() 93 float y6 = height_ / blockSize * x3Offset; in ConstructPath() 95 float y7 = height_ / blockSize * x4Offset; in ConstructPath() 97 float y8 = height_ / blockSize * x4Offset; in ConstructPath() 99 float y9 = height_ / blockSize * x3Offset; in ConstructPath() [all …]
|
/ohos5.0/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/ |
H A D | input_method_panel.cpp | 221 params.landscapeRect.height_ = deviceParams.landscapeRect.height_; in Resize() 227 params.portraitRect.height_ = deviceParams.portraitRect.height_; in Resize() 351 keyboardLayoutParams_.PortraitPanelRect_.height_ = layoutParams.portraitRect.height_; in CalculateNoConfigRect() 357 …keyboardLayoutParams_.PortraitKeyboardRect_.height_ = keyboardLayoutParams_.PortraitPanelRect_.hei… in CalculateNoConfigRect() 367 keyboardLayoutParams_.LandscapePanelRect_.height_ = layoutParams.landscapeRect.height_; in CalculateNoConfigRect() 460 keyboardLayoutParams_.PortraitPanelRect_.height_ = layoutParams.portraitRect.height_ + in CalculatePanelRect() 489 keyboardLayoutParams_.PortraitKeyboardRect_.height_ = layoutParams.portraitRect.height_; in CalculateFloatRect() 495 …keyboardLayoutParams_.PortraitPanelRect_.height_ = keyboardLayoutParams_.PortraitKeyboardRect_.hei… in CalculateFloatRect() 504 keyboardLayoutParams_.LandscapeKeyboardRect_.height_ = layoutParams.landscapeRect.height_; in CalculateFloatRect() 529 keyboardLayoutParams_.LandscapePanelRect_.height_ = layoutParams.landscapeRect.height_ + in CalculateLandscapeRect() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/property/ |
H A D | measure_property.h | 56 height_.reset(); in Reset() 77 return height_ && height_->GetDimension().Unit() == DimensionUnit::AUTO; in IsHeightDimensionUnitAuto() 87 return height_; in Height() 97 height_ = height; in SetHeight() 108 return (width_ == Size.width_) && (height_ == Size.height_); 118 if ((width_ == size.width_) && ((height_ == size.height_))) { in UpdateSizeWithCheck() 124 if (size.height_) { in UpdateSizeWithCheck() 125 height_ = size.height_; in UpdateSizeWithCheck() 138 height_.reset(); in ClearSize() 161 return height_ && height_->GetDimension().Unit() == DimensionUnit::PERCENT; in PercentHeight() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/pipeline/base/ |
H A D | measurable.h | 60 return height_; in GetHeight() 65 height_ = AnimatableDimension(dimension, option); 70 height_ = AnimatableDimension(dimension, option); 75 height_ = AnimatableDimension(height, unit); 80 height_ = AnimatableDimension(height, unit); 85 height_ = dimension; in SetHeight() 90 AnimatableDimension height_ {-1.0, DimensionUnit::PX};
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/property/ |
H A D | measure_utils_test_ng.cpp | 105 EXPECT_EQ(retSize.height_, HEIGHT.value_); 479 EXPECT_EQ(ADD_SIZE.height_, 10.0); 489 EXPECT_EQ(ADD_SIZE.height_, 80.0); 508 EXPECT_EQ(ADD_SIZE.height_, 100.0); 518 EXPECT_EQ(ADD_SIZE.height_, 30.0); 791 EXPECT_NE(retIdealSize.height_, 0); 812 EXPECT_EQ(retIdealSize.height_, layoutConstraint.maxSize.height_); 820 EXPECT_EQ(retIdealSize.height_, layoutConstraint.parentIdealSize.height_); 878 EXPECT_EQ(retIdealSize.height_, layoutConstraint.selfIdealSize.height_); 919 EXPECT_EQ(CHILDREN_SIZE.height_, 0); [all …]
|