Home
last modified time | relevance | path

Searched refs:vpr (Results 1 – 20 of 20) sorted by relevance

/foundation/window/window_manager/window_scene/session/host/include/
Dsession_utils.h24 inline float ToLayoutWidth(const int32_t winWidth, float vpr) in ToLayoutWidth() argument
26 return winWidth - 2 * WINDOW_FRAME_WIDTH * vpr; // 2: left and right edge in ToLayoutWidth()
29 inline float ToLayoutHeight(const int32_t winHeight, float vpr) in ToLayoutHeight() argument
31 return winHeight - (WINDOW_FRAME_WIDTH + WINDOW_TITLE_BAR_HEIGHT) * vpr; in ToLayoutHeight()
34 inline float ToWinWidth(const int32_t layoutWidth, float vpr) in ToWinWidth() argument
36 return layoutWidth + 2 * WINDOW_FRAME_WIDTH * vpr; // 2: left and right edge in ToWinWidth()
39 inline float ToWinHeight(const int32_t layoutHeight, float vpr) in ToWinHeight() argument
41 return layoutHeight + (WINDOW_FRAME_WIDTH + WINDOW_TITLE_BAR_HEIGHT) * vpr; in ToWinHeight()
44 …id CalcFloatWindowRectLimits(const WindowLimits& limits, uint32_t maxFloatingWindowSize, float vpr, in CalcFloatWindowRectLimits() argument
51 minWidth = std::max(minWidth, static_cast<int32_t>(MIN_FLOATING_WIDTH * vpr)); in CalcFloatWindowRectLimits()
[all …]
Dmove_drag_controller.h97 void CalculateStartRectExceptHotZone(float vpr, const WSRect& winRect);
/foundation/window/window_manager/wmserver/src/
Dwindow_system_effect.cpp62 auto vpr = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(node->GetDisplayId()); in SetCornerRadius() local
63 auto fullscreenRadius = windowSystemEffectConfig_.fullScreenCornerRadius_ * vpr; in SetCornerRadius()
64 auto splitRadius = windowSystemEffectConfig_.splitCornerRadius_ * vpr; in SetCornerRadius()
65 auto floatRadius = windowSystemEffectConfig_.floatCornerRadius_ * vpr; in SetCornerRadius()
68 … node->GetWindowId(), node->GetWindowMode(), vpr, fullscreenRadius, splitRadius, floatRadius); in SetCornerRadius()
156 auto vpr = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(node->GetDisplayId()); in SetWindowShadow() local
158 surfaceNode->SetShadowElevation(shadow.elevation_ * vpr); in SetWindowShadow()
160 surfaceNode->SetShadowRadius(ConvertRadiusToSigma(shadow.radius_ * vpr)); in SetWindowShadow()
163 surfaceNode->SetShadowOffsetX(shadow.offsetX_ * vpr); in SetWindowShadow()
164 surfaceNode->SetShadowOffsetY(shadow.offsetY_ * vpr); in SetWindowShadow()
Ddisplay_group_info.cpp99 void DisplayGroupInfo::SetDisplayVirtualPixelRatio(DisplayId displayId, float vpr) in SetDisplayVirtualPixelRatio() argument
105 displayInfosMap_[displayId]->SetVirtualPixelRatio(vpr); in SetDisplayVirtualPixelRatio()
148 float vpr = 1.0; in GetDisplayVirtualPixelRatio() local
151 vpr = displayInfo->GetVirtualPixelRatio(); in GetDisplayVirtualPixelRatio()
153 return vpr; in GetDisplayVirtualPixelRatio()
Ddrag_controller.cpp314 bool MoveDragController::CheckWindowRect(DisplayId displayId, float vpr, const Rect& rect) in CheckWindowRect() argument
316 uint32_t titleBarHeight = static_cast<uint32_t>(WINDOW_TITLE_BAR_HEIGHT * vpr); in CheckWindowRect()
322 if (WindowHelper::IsEmptyRect(limitRect) || MathHelper::NearZero(vpr)) { in CheckWindowRect()
348 float vpr = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(displayId); in CalculateNewWindowRect() local
349 if (MathHelper::NearZero(vpr)) { in CalculateNewWindowRect()
352 uint32_t minWidth = static_cast<uint32_t>(MIN_FLOATING_WIDTH * vpr); in CalculateNewWindowRect()
353 uint32_t minHeight = static_cast<uint32_t>(MIN_FLOATING_HEIGHT * vpr); in CalculateNewWindowRect()
Dwindow_layout_policy.cpp401 float vpr, TransformHelper::Vector2 hotZoneScale) in CalcEntireWindowHotZone() argument
404 uint32_t hotZoneX = static_cast<uint32_t>(hotZone * vpr / hotZoneScale.x_); in CalcEntireWindowHotZone()
405 uint32_t hotZoneY = static_cast<uint32_t>(hotZone * vpr / hotZoneScale.y_); in CalcEntireWindowHotZone()
459 const Rect& displayRect, float vpr) in GetSystemSizeLimits() argument
462 systemLimits.maxWidth_ = static_cast<uint32_t>(maxFloatingWindowSize_ * vpr); in GetSystemSizeLimits()
463 systemLimits.maxHeight_ = static_cast<uint32_t>(maxFloatingWindowSize_ * vpr); in GetSystemSizeLimits()
471 if (smallWidth <= static_cast<uint32_t>(600 * vpr)) { // sw <= 600dp in GetSystemSizeLimits()
486 systemLimits.minWidth_ = static_cast<uint32_t>(MIN_FLOATING_WIDTH * vpr); in GetSystemSizeLimits()
487 systemLimits.minHeight_ = static_cast<uint32_t>(MIN_FLOATING_HEIGHT * vpr); in GetSystemSizeLimits()
Dwindow_layout_policy_cascade.cpp258 auto vpr = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(displayId); in InitCascadeRect() local
260 static_cast<uint32_t>(MIN_FLOATING_WIDTH * vpr)); in InitCascadeRect()
262 static_cast<uint32_t>(MIN_FLOATING_HEIGHT * vpr)); in InitCascadeRect()
285 … float vpr = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(node->GetDisplayId()); in CheckAspectRatioBySizeLimits() local
286 …uint32_t winFrameW = static_cast<uint32_t>(WINDOW_FRAME_WIDTH * vpr) * 2; // 2 mean double decor w… in CheckAspectRatioBySizeLimits()
287 uint32_t winFrameH = static_cast<uint32_t>(WINDOW_FRAME_WIDTH * vpr) + in CheckAspectRatioBySizeLimits()
288 static_cast<uint32_t>(WINDOW_TITLE_BAR_HEIGHT * vpr); // decor height in CheckAspectRatioBySizeLimits()
328 float vpr = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(node->GetDisplayId()); in ComputeRectByAspectRatio() local
329 …uint32_t winFrameW = static_cast<uint32_t>(WINDOW_FRAME_WIDTH * vpr) * 2; // 2 mean double decor w… in ComputeRectByAspectRatio()
330 uint32_t winFrameH = static_cast<uint32_t>(WINDOW_FRAME_WIDTH * vpr) + in ComputeRectByAspectRatio()
[all …]
/foundation/window/window_manager/window_scene/session/host/src/
Dscene_session.cpp179 float vpr = 1.5f; // 1.5f: default virtual pixel ratio in SetAspectRatio() local
182 vpr = display->GetVirtualPixelRatio(); in SetAspectRatio()
183 WLOGD("vpr = %{public}f", vpr); in SetAspectRatio()
189 …elper::LessNotEqual(ratio, static_cast<float>(SessionUtils::ToLayoutWidth(limits.minWidth_, vpr)) / in SetAspectRatio()
190 SessionUtils::ToLayoutHeight(limits.maxHeight_, vpr))) { in SetAspectRatio()
195 static_cast<float>(SessionUtils::ToLayoutWidth(limits.maxWidth_, vpr)) / in SetAspectRatio()
196 SessionUtils::ToLayoutHeight(limits.minHeight_, vpr))) { in SetAspectRatio()
617 float vpr = 1.5f; // 1.5f: default virtual pixel ratio in FixRectByAspectRatio() local
620 vpr = display->GetVirtualPixelRatio(); in FixRectByAspectRatio()
626 …:CalcFloatWindowRectLimits(property_->GetWindowLimits(), systemConfig_.maxFloatingWindowSize_, vpr, in FixRectByAspectRatio()
[all …]
Dmove_drag_controller.cpp500 float vpr = 1.5; in GetVirtualPixelRatio() local
503 vpr = displayInfo->GetVirtualPixelRatio(); in GetVirtualPixelRatio()
505 WLOGFD("vpr: %{public}f", vpr); in GetVirtualPixelRatio()
506 return vpr; in GetVirtualPixelRatio()
550 void MoveDragController::CalculateStartRectExceptHotZone(float vpr, const WSRect& winRect) in CalculateStartRectExceptHotZone() argument
553 static_cast<int32_t>(WINDOW_FRAME_WIDTH * vpr); in CalculateStartRectExceptHotZone()
555 static_cast<int32_t>(WINDOW_FRAME_WIDTH * vpr); in CalculateStartRectExceptHotZone()
557 static_cast<uint32_t>((WINDOW_FRAME_WIDTH + WINDOW_FRAME_WIDTH) * vpr); in CalculateStartRectExceptHotZone()
559 static_cast<uint32_t>((WINDOW_FRAME_WIDTH + WINDOW_FRAME_WIDTH) * vpr); in CalculateStartRectExceptHotZone()
562 static_cast<int32_t>(WINDOW_FRAME_CORNER_WIDTH * vpr); in CalculateStartRectExceptHotZone()
[all …]
/foundation/window/window_manager/dm/test/unittest/
Ddisplay_test.cpp175 auto vpr = defaultDisplay_->GetVirtualPixelRatio(); variable
176 ASSERT_EQ(vpr * DOT_PER_INCH, dpi);
/foundation/window/window_manager/wmserver/include/
Dwindow_layout_policy.h84 …owSizeLimits GetSystemSizeLimits(const sptr<WindowNode>& node, const Rect& displayRect, float vpr);
108 float vpr, TransformHelper::Vector2 hotZoneScale);
Ddisplay_group_info.h39 void SetDisplayVirtualPixelRatio(DisplayId displayId, float vpr);
Ddrag_controller.h95 bool CheckWindowRect(DisplayId displayId, float vpr, const Rect& rect);
/foundation/window/window_manager/wm/src/
Dwindow_scene_session_impl.cpp273 uint32_t defaultVal, float vpr) in UpdateConfigVal() argument
275 bool validConfig = minVal < (configVal * vpr) && (configVal * vpr) < maxVal; in UpdateConfigVal()
276 …eturn validConfig ? static_cast<uint32_t>(configVal * vpr) : static_cast<uint32_t>(defaultVal * vp… in UpdateConfigVal()
280 uint32_t displayHeight, float vpr) in GetSystemSizeLimits() argument
283 systemLimits.maxWidth_ = static_cast<uint32_t>(maxFloatingWindowSize_ * vpr); in GetSystemSizeLimits()
284 systemLimits.maxHeight_ = static_cast<uint32_t>(maxFloatingWindowSize_ * vpr); in GetSystemSizeLimits()
288 MIN_FLOATING_WIDTH, vpr); in GetSystemSizeLimits()
290 MIN_FLOATING_HEIGHT, vpr); in GetSystemSizeLimits()
293 MIN_FLOATING_WIDTH, vpr); in GetSystemSizeLimits()
295 MIN_FLOATING_HEIGHT, vpr); in GetSystemSizeLimits()
[all …]
Dwindow_impl.cpp2505 void WindowImpl::CalculateStartRectExceptHotZone(float vpr) in CalculateStartRectExceptHotZone() argument
2516 static_cast<int32_t>(WINDOW_FRAME_WIDTH * vpr / hotZoneScale.x_); in CalculateStartRectExceptHotZone()
2518 static_cast<int32_t>(WINDOW_FRAME_WIDTH * vpr / hotZoneScale.y_); in CalculateStartRectExceptHotZone()
2520 static_cast<uint32_t>((WINDOW_FRAME_WIDTH + WINDOW_FRAME_WIDTH) * vpr / hotZoneScale.x_); in CalculateStartRectExceptHotZone()
2522 static_cast<uint32_t>((WINDOW_FRAME_WIDTH + WINDOW_FRAME_WIDTH) * vpr / hotZoneScale.y_); in CalculateStartRectExceptHotZone()
2526 static_cast<int32_t>(WINDOW_FRAME_CORNER_WIDTH * vpr / hotZoneScale.x_); in CalculateStartRectExceptHotZone()
2528 static_cast<int32_t>(WINDOW_FRAME_CORNER_WIDTH * vpr / hotZoneScale.y_); in CalculateStartRectExceptHotZone()
2530 …static_cast<uint32_t>((WINDOW_FRAME_CORNER_WIDTH + WINDOW_FRAME_CORNER_WIDTH) * vpr / hotZoneScale… in CalculateStartRectExceptHotZone()
2532 …static_cast<uint32_t>((WINDOW_FRAME_CORNER_WIDTH + WINDOW_FRAME_CORNER_WIDTH) * vpr / hotZoneScale… in CalculateStartRectExceptHotZone()
2606 float vpr = display->GetVirtualPixelRatio(); in ReadyToMoveOrDragWindow() local
[all …]
/foundation/window/window_manager/wm/include/
Dwindow_scene_session_impl.h139 WindowLimits GetSystemSizeLimits(uint32_t displayWidth, uint32_t displayHeight, float vpr);
150 …ateConfigVal(uint32_t minVal, uint32_t maxVal, uint32_t configVal, uint32_t defaultVal, float vpr);
/foundation/window/window_manager/test/systemtest/wms/
Dwindow_app_floating_window_test.cpp112 auto vpr = WindowAppFloatingWindowTest::virtualPixelRatio_; in GetRectWithVpr() local
113 return {x, y, static_cast<uint32_t>(w * vpr), static_cast<uint32_t>(h * vpr)}; in GetRectWithVpr()
Dwindow_test_utils.cpp143 float vpr = GetVirtualPixelRatio(0); in GetDefaultFloatingRect() local
150 static_cast<uint32_t>(MIN_FLOATING_WIDTH * vpr)); in GetDefaultFloatingRect()
152 static_cast<uint32_t>(MIN_FLOATING_HEIGHT * vpr)); in GetDefaultFloatingRect()
/foundation/window/window_manager/utils/include/
Dwindow_helper.h520 …ol IsAspectRatioSatisfiedWithSizeLimits(const WindowSizeLimits& sizeLimits, float ratio, float vpr) in IsAspectRatioSatisfiedWithSizeLimits() argument
532 …uint32_t winFrameW = static_cast<uint32_t>(WINDOW_FRAME_WIDTH * vpr) * 2; // 2 mean double decor w… in IsAspectRatioSatisfiedWithSizeLimits()
533 uint32_t winFrameH = static_cast<uint32_t>(WINDOW_FRAME_WIDTH * vpr) + in IsAspectRatioSatisfiedWithSizeLimits()
534 static_cast<uint32_t>(WINDOW_TITLE_BAR_HEIGHT * vpr); // decor height in IsAspectRatioSatisfiedWithSizeLimits()
/foundation/multimodalinput/input/patch/prebuild_eudev/hwdb.d/
D20-pci-vendor-model.hwdb4194 ID_MODEL_FROM_DATABASE=RV200/M7 [Mobility Radeon 7500] (Radeon Mobility M7 LW in vpr Matrix 170B4)
42846 ID_MODEL_FROM_DATABASE=RL5c475 (vpr Matrix 170B4 CardBus bridge)
42939 ID_MODEL_FROM_DATABASE=R5C551 IEEE 1394 Controller (vpr Matrix 170B4)
72927 ID_MODEL_FROM_DATABASE=82801CAM (ICH3) PRO/100 VE (LOM) Ethernet Controller (vpr Matrix 170B4)
78936 ID_MODEL_FROM_DATABASE=82801CA/CAM USB Controller #1 (vpr Matrix 170B4)
78957 ID_MODEL_FROM_DATABASE=82801CA/CAM SMBus Controller (vpr Matrix 170B4)
78975 ID_MODEL_FROM_DATABASE=82801CA/CAM USB Controller #2 (vpr Matrix 170B4)
79005 ID_MODEL_FROM_DATABASE=82801CA/CAM AC'97 Audio Controller (vpr Matrix 170B4)
79032 ID_MODEL_FROM_DATABASE=82801CA/CAM AC'97 Modem Controller (vpr Matrix 170B4 internal modem)
79053 ID_MODEL_FROM_DATABASE=82801CA/CAM USB Controller #3 (vpr Matrix 170B4)
[all …]