/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | size_t.h | 181 if (NonNegative(size.width_) && (width_ != size.width_)) { in UpdateSizeWithCheck() 182 width_ = size.width_; in UpdateSizeWithCheck() 195 width_ = size.width_; in UpdateIllegalSizeWithCheck() 213 auto temp = width_ > size.width_ ? width_ : size.width_; in UpdateWidthWhenLarger() 246 auto temp = width_ < size.width_ ? width_ : size.width_; in UpdateWidthWhenSmaller() 271 width_ = width_ > minSize.Width() ? width_ : minSize.Width(); in UpdateMin() 576 if (size.width_ && (width_ != size.width_)) { in UpdateSizeWithCheck() 577 width_ = size.width_; in UpdateSizeWithCheck() 808 width_ = width_.value() + size.width_.value_or(0); 832 width_ = width_.value() - size.width_.value_or(0); [all …]
|
H A D | rect_t.h | 59 width_ = 0; in Reset() 67 width_ = width; in SetRect() 81 width_ *= scale; in ApplyScale() 89 width_ = round(width_ * scale); in ApplyScaleAndRound() 95 return GreatNotEqual(width_, 0) ? x_ : x_ + width_; in Left() 105 return GreatNotEqual(width_, 0) ? x_ + width_ : x_; in Right() 125 return width_; in Width() 140 width_ = size.Width(); in SetSize() 172 width_ = width; in SetWidth() 382 ss << width_; in ToString() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | size.h | 52 return width_; in Width() 62 width_ = width; in SetWidth() 72 width_ = size.Width(); in SetSize() 104 width_ += value; in AddWidth() 116 width_ -= width; in MinusWidth() 150 return NearEqual(width_, size.width_) && NearEqual(height_, size.height_); 160 width_ += size.Width(); 174 width_ *= scale; in ApplyScale() 198 return LessOrEqual(width_, size.width_) && LessOrEqual(height_, size.height_); 220 ss << width_; in ToString() [all …]
|
H A D | rect.h | 47 width_ = width; in SetRect() 61 width_ *= scale; in ApplyScale() 69 width_ = round(width_ * scale.Width()); in ApplyScaleAndRound() 75 return GreatNotEqual(width_, 0.0) ? x_ : x_ + width_; in Left() 85 return GreatNotEqual(width_, 0.0) ? x_ + width_ : x_; in Right() 95 return width_; in Width() 105 width_ = size.Width(); in SetSize() 137 width_ = width; in SetWidth() 189 width_ += size.Width(); 371 ss << width_; 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() 42 return width_; in GetWidth() 62 width_ = size.Width(); in SetSize() 68 width_ = width; in SetWidth() 78 width_ = 0.0_vp; in Reset() 89 ss << width_.ToString(); in ToString() 102 jsonValue->Put("width", width_.ToString().c_str()); in ToJsonString() 108 Dimension width_ = 0.0_vp;
|
H A D | dimension_size.h | 34 … DimensionSize(const Dimension& width, const Dimension& height) : width_(width), height_(height) {} in DimensionSize() 38 return width_; in Width() 48 width_ = width; in SetWidth() 58 width_ = size.Width(); in SetSize() 75 if (NearEqual(width_.Value(), INFINITE_SIZE)) { in ToString() 78 ss << width_.ToString(); in ToString() 92 Dimension width_ = 0.0_vp;
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/ |
H A D | size.h | 48 scalar width_; 62 return width_ == 0 && height_ == 0; in IsZero() 72 return width_; in Width() 82 width_ = w; in SetWidth() 92 return s1.width_ == s2.width_ && s1.height_ == s2.height_; 97 return s1.width_ != s2.width_ || s1.height_ != s2.height_; 120 int width_; 144 return width_; in Width() 154 width_ = w; in SetWidth() 164 return s1.width_ == s2.width_ && s1.height_ == s2.height_; [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/ |
H A D | security_component_layout_algorithm.cpp | 144 leftSpace = left_.width_ + icon_.width_ + right_.width_; in UpdateTextSize() 146 leftSpace = left_.width_ + middle_.width_ + icon_.width_ + right_.width_; in UpdateTextSize() 316 middle_.width_ + text_.width_ + right_.width_; in MeasureIntegralSize() 324 if (icon_.width_ > text_.width_) { in UpdateVerticalOffset() 426 if (icon_.width_ > text_.width_) { in UpdateTextRectPoint() 444 textLeftTopPoint_ = SizeF(left_.width_ + icon_.width_ + middle_.width_, in UpdateTextRectPoint() 446 textRightTopPoint_ = SizeF(left_.width_ + icon_.width_ + middle_.width_ + text_.width_, in UpdateTextRectPoint() 448 textLeftBottomPoint_ = SizeF(left_.width_ + icon_.width_ + middle_.width_, in UpdateTextRectPoint() 450 … textRightBottomPoint_ = SizeF(left_.width_ + icon_.width_ + middle_.width_ + text_.width_, in UpdateTextRectPoint() 454 …textRightTopPoint_ = SizeF(left_.width_ + icon_.width_ + middle_.width_ + text_.width_, top_.heigh… in UpdateTextRectPoint() [all …]
|
H A D | security_component_layout_element.cpp | 76 height_ = width_ = minIconSize_; in ShrinkWidth() 80 width_ -= reduceSize; in ShrinkWidth() 81 height_ = width_; in ShrinkWidth() 92 width_ = height_ = minIconSize_; in ShrinkHeight() 96 width_ = height_; in ShrinkHeight() 134 width_ = textSizeF.Width(); in Init() 147 width_ = textSizeF.Width(); in MeasureForWidth() 225 width_ = textSizeF.Width(); in UpdateSize() 260 auto tempWidth = width_; in TryShrinkTextWidth() 326 width_ = minTextWidth; in ShrinkWidth() [all …]
|
/ohos5.0/foundation/window/window_manager/wmserver/src/ |
H A D | window_layout_policy_cascade.cpp | 343 newRect.width_ = std::max(newLimits.minWidth_, newRect.width_); in ComputeRectByAspectRatio() 345 newRect.width_ = std::min(newLimits.maxWidth_, newRect.width_); in ComputeRectByAspectRatio() 396 dstRect.width_ = oriRect.width_ + winFrameW + winFrameW; in ComputeDecoratedRequestRect() 539 dividerRect.width_ = divRect.width_; in SetSplitRectByDivider() 555 primaryRect.width_ = displayRect.width_; in SetSplitRectByDivider() 560 secondaryRect.width_ = displayRect.width_; in SetSplitRectByDivider() 612 cascadeRect.width_ = rect.width_; in StepCascadeRect() 840 winRect.width_ = std::min(sizeLimits.maxWidth_, winRect.width_); in UpdateFloatingWindowSizeBySizeLimits() 930 if (oriWinRect.width_ != lastRect.width_) { in LimitWindowPositionWhenDrag() 937 if (oriWinRect.width_ != lastRect.width_) { in LimitWindowPositionWhenDrag() [all …]
|
H A D | window_layout_policy.cpp | 59 windowRect.width_ = std::min(windowRect.width_, displayRect.width_); in LimitWindowToBottomRightCorner() 62 if (windowRect.posX_ + static_cast<int32_t>(windowRect.width_) > in LimitWindowToBottomRightCorner() 65 static_cast<int32_t>(windowRect.width_); in LimitWindowToBottomRightCorner() 410 if (rect.width_ < rect.height_) { in CalcEntireWindowHotZone() 412 rect.width_ += (hotZoneX + hotZoneX); in CalcEntireWindowHotZone() 422 rect.width_ += (hotZoneX + hotZoneX); in CalcEntireWindowHotZone() 471 …2_t smallWidth = displayRect.height_ <= displayRect.width_ ? displayRect.height_ : displayRect.wid… in GetSystemSizeLimits() 474 if (displayRect.width_ <= displayRect.height_) { in GetSystemSizeLimits() 480 if (displayRect.width_ <= displayRect.height_) { in GetSystemSizeLimits() 567 int32_t limitW = static_cast<int32_t>(limitRect.width_); in UpdateDisplayLimitRect() [all …]
|
/ohos5.0/foundation/window/window_manager/test/systemtest/wms/ |
H A D | window_test_utils.cpp | 186 std::max(minFloatingW, rect.width_), in GetFloatingLimitedRect() 200 resRect.width_ = rect.width_ + winFrameW + winFrameW; in GetDecorateRect() 218 displayRect_.width_ * spaceRation, in InitByDisplayRect() 270 w = w > limitDisplayRect_.width_ ? limitDisplayRect_.width_ : w; in InitTileWindowRects() 294 …bool res = ((l.posX_ == r.posX_) && (l.posY_ == r.posY_) && (l.width_ == r.width_) && (l.height_ =… in RectEqualTo() 305 …bool res = ((l.posX_ == r.posX_) && (l.posY_ == r.posY_) && (l.width_ == r.width_) && (l.height_ =… in RectEqualToRect() 376 …static_cast<uint32_t>((limitDisplayRect_.width_ - splitRects_.dividerRect.width_) * DEFAULT_SPLIT_… in UpdateSplitRects() 423 splitRects_.primaryRect.width_ = displayRect_.width_; in UpdateLimitSplitRects() 428 splitRects_.secondaryRect.width_ = displayRect_.width_; in UpdateLimitSplitRects() 439 splitRects_.secondaryRect.width_ = displayRect_.width_ - splitRects_.secondaryRect.posX_; in UpdateLimitSplitRects() [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() 70 width_ = 0.0; in PerformLayout() 73 width_ = maxSize.Width(); 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 | 74 width_ = diameter; in MeasureContent() 76 height_ = width_; in MeasureContent() 81 width_ = height_; in MeasureContent() 91 if (width_ >= height_) { in MeasureContent() 94 width_ = std::min(width_, strokeWidth_); in MeasureContent() 126 width_ = diameter; in MeasureContentForApiNine() 127 height_ = width_; in MeasureContentForApiNine() 129 height_ = width_; in MeasureContentForApiNine() 131 width_ = height_; in MeasureContentForApiNine() 138 width_ = diameter; in MeasureContentForApiNine() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/common/properties/ |
H A D | border_edge.h | 49 return width_; in GetWidth() 54 return width_.ConvertToPx(dipScale); in GetWidthInPx() 60 … (borderEdge.GetWidth().Unit() == width_.Unit()) && (borderEdge.GetBorderStyle() == style_); 66 width_.SetValue(0.0); 69 width_ = AnimatableDimension(width, option); 75 width_.SetValue(0.0); in SetWidth() 78 width_ = width; in SetWidth() 98 return width_.IsValid(); in IsValid() 105 .append(std::to_string(width_.Value())) in ToString() 115 width_.SetContextAndCallback(context, callback); in SetContextAndCallback() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/shape/ |
H A D | shape_view_box.h | 41 return width_; in Width() 61 width_ = width; in SetWidth() 70 return width_.Value() > 0.0 && height_.Value() > 0.0; in IsValid() 77 width_ = shapeViewBox.width_; 84 … return (x_ == shapeViewBox.x_) && (y_ == shapeViewBox.y_) && (width_ == shapeViewBox.width_) && 90 … return (x_ != shapeViewBox.x_) || (y_ != shapeViewBox.y_) || (width_ != shapeViewBox.width_) || 97 Dimension width_ = Dimension(-1.0); variable
|
/ohos5.0/base/update/updater/services/ui/driver/ |
H A D | ui_rotation.cpp | 39 oldRowBytes_ = width_ * pixelBytes_; in InitRotation() 45 offsetX_ = width_ - 1; in InitRotation() 47 oldRowBytes_ = width_ * pixelBytes_; in InitRotation() 48 newRowBytes_ = width_ * pixelBytes_; in InitRotation() 54 offsetY_ = width_ - 1; in InitRotation() 55 oldRowBytes_ = width_ * pixelBytes_; in InitRotation() 63 oldRowBytes_ = width_ * pixelBytes_; in InitRotation() 64 newRowBytes_ = width_ * pixelBytes_; in InitRotation() 75 return width_; in GetWidth() 86 width_ = realWidth; in RotateWidthHeight() [all …]
|
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() 127 width_ = UiRotation::GetInstance().GetWidth(); 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() 136 buffInfo_->stride = static_cast<uint32_t>(width_ * pixelBytes); in GetFBBufferInfo() 137 buffInfo_->width = width_; in GetFBBufferInfo() [all …]
|
/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() 32 width_ = other.width_; in operator =() 39 return parcel.WriteUint32(width_) && parcel.WriteUint32(height_); in Marshalling() 56 return width_; in GetVirtualScreenWidth() 66 width_ = width; in SetVirtualScreenWidth()
|
H A D | rs_screen_mode_info.cpp | 21 : width_(width), height_(height), refreshRate_(refreshRate), modeId_(id) in RSScreenModeInfo() 25 RSScreenModeInfo::RSScreenModeInfo(const RSScreenModeInfo& other) : width_(other.width_), in RSScreenModeInfo() 32 width_ = other.width_; in operator =() 41 return parcel.WriteInt32(width_) && parcel.WriteInt32(height_) && in Marshalling() 62 return width_; in GetScreenWidth() 82 width_ = width; in SetScreenWidth()
|
/ohos5.0/drivers/peripheral/distributed_camera/hdi_service/include/utils/ |
H A D | constants.h | 125 int32_t width_; member 128 DCResolution() : width_(0), height_(0) {} in DCResolution() 130 DCResolution(int32_t width, int32_t height) : width_(width), height_(height) {} in DCResolution() 134 return (this->width_ == others.width_) && (this->height_ == others.height_); 139 return this->width_ < others.width_ || 140 (this->width_ == others.width_ && this->height_ < others.height_);
|
/ohos5.0/foundation/window/window_manager/dmserver/src/ |
H A D | abstract_display.cpp | 40 width_ = static_cast<int32_t>(info->width_); 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() 87 xDpi_ = width_ * INCH_2_MM / phyWidth_; in CalculateXYDpi() 98 return width_; in GetWidth() 138 width_ = width; in SetWidth() 151 xDpi_ = width_ * INCH_2_MM / phyWidth_; in UpdateXDpi() 201 std::swap(width_, height_); in RequestRotation() 249 width_ = static_cast<int32_t>(info->width_); in BindAbstractScreen() [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_camera/services/cameraservice/sourceservice/include/distributedcameramgr/dcamerainterface/ |
H A D | icamera_source_data_process.h | 31 … : width_(width), height_(height), format_(format), dataspace_(dataspace), encodeType_(encodeType), in DCameraStreamConfig() 35 int32_t width_; variable 44 …return this->width_ == others.width_ && this->height_ == others.height_ && this->format_ == others… 51 …return (this->width_ < others.width_) || ((this->width_ == others.width_) && (this->height_ < othe…
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/property/ |
H A D | measure_utils_test_ng.cpp | 104 EXPECT_EQ(retSize.width_, WIDTH.value_); 478 EXPECT_EQ(ADD_SIZE.width_, 10.0); 488 EXPECT_EQ(ADD_SIZE.width_, 40.0); 507 EXPECT_EQ(ADD_SIZE.width_, 100.0); 517 EXPECT_EQ(ADD_SIZE.width_, 70.0); 790 EXPECT_NE(retIdealSize.width_, 0); 841 EXPECT_EQ(retIdealSize.width_, layoutConstraint.maxSize.width_); 849 EXPECT_EQ(retIdealSize.width_, layoutConstraint.parentIdealSize.width_); 867 EXPECT_EQ(retIdealSize.width_, layoutConstraint.selfIdealSize.width_); 888 EXPECT_EQ(retIdealSize.width_, layoutConstraint.selfIdealSize.width_); [all …]
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/codeclist_test/coverage_unit_test/ |
H A D | avcodec_info_coverage_unit_test.cpp | 61 int32_t width_; member in __anon6b311c1d0110::AVCodecInfoTest 79 width_ = DEFAULT_WIDTH; in SetUp() 98 width_ = 720; 222 width_ = initialWidth; 224 EXPECT_EQ(width_, initialWidth); 234 width_ = initialWidth; 236 EXPECT_EQ(width_, initialWidth); 279 width_ = initialWidth; 282 EXPECT_EQ(width_, initialWidth); 558 EXPECT_EQ(width_, DEFAULT_WIDTH); [all …]
|