/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | system_info.cpp | 37 aspectRatio_ = (float)screenWidth_ / (float)screenHeight_; in Initialize() 39 aspectRatio_ = 0; in Initialize() 47 return aspectRatio_; in GetAspectRatio()
|
H A D | system_info.h | 54 SystemInfo() : screenWidth_(0), screenHeight_(0), aspectRatio_(0.0), deviceType_(nullptr), isRoundScreen_(false) {} in SystemInfo() 59 float aspectRatio_; member in OHOS::ACELite::final
|
/foundation/arkui/ace_engine/frameworks/core/components/box/ |
H A D | box_base_component.h | 161 aspectRatio_ = AnimatableDimension(aspectRatio); in SetAspectRatio() 166 aspectRatio_ = AnimatableDimension(aspectRatio, DimensionUnit::PX, option); in SetAspectRatio() 171 return aspectRatio_; in GetAspectRatio() 383 AnimatableDimension aspectRatio_ = AnimatableDimension(); member in OHOS::Ace::BoxBaseComponent
|
H A D | render_box_base.cpp | 417 if (GreatNotEqual(aspectRatio_.Value(), 0.0)) { 476 selfMaxHeight_ = selfMaxWidth_ / aspectRatio_.Value(); 478 selfMaxWidth_ = selfMaxHeight_ * aspectRatio_.Value(); 480 selfMaxWidth_ = selfMaxHeight_ * aspectRatio_.Value(); 482 selfMaxHeight_ = selfMaxWidth_ / aspectRatio_.Value(); 486 selfMaxHeight_ = selfMaxWidth_ / aspectRatio_.Value(); 490 selfMaxWidth_ = selfMaxHeight_ * aspectRatio_.Value(); 494 selfMaxHeight_ = selfMaxWidth_ / aspectRatio_.Value(); 498 selfMaxWidth_ = selfMaxHeight_ * aspectRatio_.Value(); 743 aspectRatio_ [all...] |
H A D | render_box_base.h | 78 aspectRatio_.SetContextAndCallback(context_, [weak = WeakClaim(this)] { 244 return aspectRatio_.Value(); in GetAspectRatio() 249 aspectRatio_ = aspectRatio; in SetAspectRatio() 322 AnimatableDimension aspectRatio_ = AnimatableDimension(); member in OHOS::Ace::RenderBoxBase
|
/foundation/arkui/ace_engine/frameworks/core/components/checkable/ |
H A D | render_checkable.cpp | 45 aspectRatio_ = checkable->GetAspectRatio(); in Update() 204 if (drawAreaAspectRatio > aspectRatio_) { in ApplyAspectRatio() 205 drawSize.SetWidth(drawSize.Height() * aspectRatio_); in ApplyAspectRatio() 206 } else if (!NearZero(aspectRatio_)) { in ApplyAspectRatio() 207 drawSize.SetHeight(drawSize.Width() / aspectRatio_); in ApplyAspectRatio()
|
H A D | checkable_component.cpp | 43 aspectRatio_ = theme->GetAspectRatio(); in ApplyTheme()
|
H A D | checkable_component.h | 157 aspectRatio_ = aspectRatio; in SetAspectRatio() 162 return aspectRatio_; in GetAspectRatio() 332 double aspectRatio_ = 1.0; member in OHOS::Ace::CheckableComponent
|
H A D | checkable_theme.h | 67 return aspectRatio_; in GetAspectRatio() 198 double aspectRatio_ = 1.0; member in OHOS::Ace::CheckableTheme 343 theme->aspectRatio_ = switchPattern->GetAttr<double>("switch_aspect_ratio", 0.0); in ParsePattern()
|
H A D | render_checkable.h | 130 double aspectRatio_ = 1.0; member in OHOS::Ace::RenderCheckable
|
H A D | render_switch.cpp | 209 Size(pointUseHeightAsWidth ? drawSize_.Width() : (rawPointSize_.Width() + pointPadding) * aspectRatio_, in PerformLayout()
|
/foundation/window/window_manager/window_scene/session/host/src/ |
H A D | move_drag_controller.cpp | 281 aspectRatio_ = ratio; in SetAspectRatio() 425 moveDragProperty_.targetRect_ = MathHelper::GreatNotEqual(aspectRatio_, NEAR_ZERO) ? in CalcDragTargetRect() 427 type_, trans.first, trans.second, aspectRatio_, moveDragProperty_.originalRect_) : in CalcDragTargetRect() 617 if (aspectRatio_ <= NEAR_ZERO) { in EventDownInit() 741 if (SessionUtils::ToLayoutWidth(minW, vpr_) < SessionUtils::ToLayoutHeight(minH, vpr_) * aspectRatio_) { in CalcFixedAspectRatioTranslateLimits() 742 minW = SessionUtils::ToWinWidth(SessionUtils::ToLayoutHeight(minH, vpr_) * aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits() 744 minH = SessionUtils::ToWinHeight(SessionUtils::ToLayoutWidth(minW, vpr_) / aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits() 746 if (SessionUtils::ToLayoutWidth(maxW, vpr_) < SessionUtils::ToLayoutHeight(maxH, vpr_) * aspectRatio_) { in CalcFixedAspectRatioTranslateLimits() 747 maxH = SessionUtils::ToWinHeight(SessionUtils::ToLayoutWidth(maxW, vpr_) * aspectRatio_, vpr_); in CalcFixedAspectRatioTranslateLimits() 749 maxW = SessionUtils::ToWinWidth(SessionUtils::ToLayoutHeight(maxH, vpr_) / aspectRatio_, vpr in CalcFixedAspectRatioTranslateLimits() [all...] |
H A D | main_session.cpp | 48 ScenePersistentStorage::Get(key, aspectRatio_, ScenePersistentStorageType::ASPECT_RATIO); in MainSession() 49 WLOGFD("init aspectRatio, key %{public}s, value: %{public}f", key.c_str(), aspectRatio_); in MainSession() 50 moveDragController_->SetAspectRatio(aspectRatio_); in MainSession()
|
H A D | scene_session.cpp | 743 session->aspectRatio_ = ratio; in SetAspectRatio() 747 session->SaveAspectRatio(session->aspectRatio_); in SetAspectRatio() 2174 WLOGD("SceneSession save aspectRatio , key %{public}s, value: %{public}f", key.c_str(), aspectRatio_); in SaveAspectRatio() 2218 if (MathHelper::NearZero(aspectRatio_)) { in FixRectByAspectRatio() 2238 SessionUtils::ToLayoutHeight(rect.height_, vpr) * aspectRatio_) { in FixRectByAspectRatio() 2239 rect.width_ = SessionUtils::ToWinWidth(SessionUtils::ToLayoutHeight(rect.height_, vpr)* aspectRatio_, vpr); in FixRectByAspectRatio() 2241 rect.height_ = SessionUtils::ToWinHeight(SessionUtils::ToLayoutWidth(rect.width_, vpr) / aspectRatio_, vpr); in FixRectByAspectRatio() 2244 if (rect.width_ > rect.height_ * aspectRatio_) { in FixRectByAspectRatio() 2245 rect.width_ = rect.height_ * aspectRatio_; in FixRectByAspectRatio() 2247 rect.height_ = rect.width_ / aspectRatio_; in FixRectByAspectRatio() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/button/ |
H A D | button_component.h | 236 aspectRatio_ = ratio; in SetAspectRatio() 241 return aspectRatio_; in GetAspectRatio() 269 double aspectRatio_ = 0.0; member in OHOS::Ace::ButtonComponent
|
H A D | render_button.cpp | 455 aspectRatio_ = buttonComponent_->GetAspectRatio(); in Update() 549 if (GreatNotEqual(aspectRatio_, 0.0)) { in CalculateLayoutSize() 552 layoutWidth = layoutHeight * aspectRatio_; in CalculateLayoutSize() 554 layoutHeight = layoutWidth / aspectRatio_; in CalculateLayoutSize()
|
H A D | render_button.h | 176 double aspectRatio_ = 0.0; member in OHOS::Ace::RenderButton
|
/foundation/window/window_manager/utils/include/ |
H A D | window_property.h | 219 float aspectRatio_ {0.0};
|
/foundation/window/window_manager/window_scene/session/host/include/ |
H A D | move_drag_controller.h | 178 float aspectRatio_ = 0.0f; member in OHOS::OHOS::Rosen::MoveDragController
|
H A D | session.h | 643 float aspectRatio_ = 0.0f; member in OHOS::OHOS::OHOS::Rosen::Session
|
/foundation/window/window_manager/utils/src/ |
H A D | window_property.cpp | 576 aspectRatio_ = ratio; in SetAspectRatio() 586 return aspectRatio_; in GetAspectRatio() 867 ret = ret && parcel.WriteFloat(aspectRatio_); in Write()
|
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | session_test3.cpp | 1111 session_->aspectRatio_ = 0.0f; in HWTEST_F() 1114 session_->aspectRatio_ = 0.5f; in HWTEST_F() 1120 session_->aspectRatio_ = 1.0f; in HWTEST_F()
|
H A D | session_test.cpp | 707 sceneSession->moveDragController_->aspectRatio_ = 0.0f; in HWTEST_F() 714 sceneSession->moveDragController_->aspectRatio_ = 1.0f; in HWTEST_F()
|
H A D | session_test2.cpp | 1093 float ret = session_->aspectRatio_; in HWTEST_F() 1108 float ret = session_->aspectRatio_; in HWTEST_F()
|
H A D | move_drag_controller_test.cpp | 502 moveDragController->aspectRatio_ = 1.0f; in HWTEST_F()
|