Home
last modified time | relevance | path

Searched refs:virtualPixelRatio (Results 1 – 25 of 35) sorted by relevance

12

/foundation/window/window_manager/test/systemtest/wms/
Dwindow_test_utils.cpp163 Rect WindowTestUtils::CalcLimitedRect(const Rect& rect, float virtualPixelRatio) in CalcLimitedRect() argument
167 uint32_t minFloatingW = static_cast<uint32_t>(MIN_FLOATING_WIDTH * virtualPixelRatio); in CalcLimitedRect()
168 uint32_t minFloatingH = static_cast<uint32_t>(MIN_FLOATING_HEIGHT * virtualPixelRatio); in CalcLimitedRect()
179 Rect WindowTestUtils::GetFloatingLimitedRect(const Rect& rect, float virtualPixelRatio) in GetFloatingLimitedRect() argument
181 uint32_t minFloatingW = static_cast<uint32_t>(MIN_FLOATING_WIDTH * virtualPixelRatio); in GetFloatingLimitedRect()
182 uint32_t minFloatingH = static_cast<uint32_t>(MIN_FLOATING_HEIGHT * virtualPixelRatio); in GetFloatingLimitedRect()
192 Rect WindowTestUtils::GetDecorateRect(const Rect& rect, float virtualPixelRatio) in GetDecorateRect() argument
194 uint32_t winFrameW = static_cast<uint32_t>(WINDOW_FRAME_WIDTH * virtualPixelRatio); in GetDecorateRect()
195 uint32_t winTitleBarH = static_cast<uint32_t>(WINDOW_TITLE_BAR_HEIGHT * virtualPixelRatio); in GetDecorateRect()
243 float virtualPixelRatio = GetVirtualPixelRatio(0); in GetMaxTileWinNum() local
[all …]
Dwindow_test_utils.h75 static Rect CalcLimitedRect(const Rect& rect, float virtualPixelRatio);
76 static Rect GetDecorateRect(const Rect& rect, float virtualPixelRatio);
77 static Rect GetFloatingLimitedRect(const Rect& rect, float virtualPixelRatio);
/foundation/window/window_manager/wmserver/src/
Dwindow_layout_policy_tile.cpp63 … float virtualPixelRatio = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(displayId); in GetMaxTileWinNum() local
65 uint32_t edgeIntervalVp = static_cast<uint32_t>(EDGE_INTERVAL * half * virtualPixelRatio); in GetMaxTileWinNum()
66 uint32_t midIntervalVp = static_cast<uint32_t>(MID_INTERVAL * virtualPixelRatio); in GetMaxTileWinNum()
67 uint32_t minFloatingW = static_cast<uint32_t>(MIN_FLOATING_WIDTH * virtualPixelRatio); in GetMaxTileWinNum()
82 … float virtualPixelRatio = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(displayId); in InitTileRects() local
83 uint32_t edgeIntervalVp = static_cast<uint32_t>(EDGE_INTERVAL * virtualPixelRatio); in InitTileRects()
84 uint32_t midIntervalVp = static_cast<uint32_t>(MID_INTERVAL * virtualPixelRatio); in InitTileRects()
Dwindow_layout_policy_cascade.cpp387 …float virtualPixelRatio = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(node->GetDis… in ComputeDecoratedRequestRect() local
388 uint32_t winFrameW = static_cast<uint32_t>(WINDOW_FRAME_WIDTH * virtualPixelRatio); in ComputeDecoratedRequestRect()
389 uint32_t winTitleBarH = static_cast<uint32_t>(WINDOW_TITLE_BAR_HEIGHT * virtualPixelRatio); in ComputeDecoratedRequestRect()
516 … float virtualPixelRatio = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(displayId); in InitSplitRects() local
517 uint32_t dividerWidth = static_cast<uint32_t>(DIVIDER_WIDTH * virtualPixelRatio); in InitSplitRects()
604 … float virtualPixelRatio = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(displayId); in StepCascadeRect() local
605 uint32_t cascadeWidth = static_cast<uint32_t>(WINDOW_TITLE_BAR_HEIGHT * virtualPixelRatio); in StepCascadeRect()
606 uint32_t cascadeHeight = static_cast<uint32_t>(WINDOW_TITLE_BAR_HEIGHT * virtualPixelRatio); in StepCascadeRect()
785 …float virtualPixelRatio = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(node->GetDis… in FixWindowSizeByRatioIfDragBeyondLimitRegion() local
786 uint32_t windowTitleBarH = static_cast<uint32_t>(WINDOW_TITLE_BAR_HEIGHT * virtualPixelRatio); in FixWindowSizeByRatioIfDragBeyondLimitRegion()
[all …]
Dwindow_layout_policy.cpp428 …float virtualPixelRatio = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(node->GetDis… in CalcAndSetNodeHotZone() local
435 …auto hotZoneRectTouch = CalcEntireWindowHotZone(node, winRect, HOTZONE_TOUCH, virtualPixelRatio, h… in CalcAndSetNodeHotZone()
436 …ctPointer = CalcEntireWindowHotZone(node, winRect, HOTZONE_POINTER, virtualPixelRatio, hotZoneScal… in CalcAndSetNodeHotZone()
498 …const auto& virtualPixelRatio = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(node->… in UpdateWindowSizeLimits() local
499 const auto& systemLimits = GetSystemSizeLimits(node, displayRect, virtualPixelRatio); in UpdateWindowSizeLimits()
505 …int32_t configuredMaxWidth = static_cast<uint32_t>(customizedLimits.maxWidth_ * virtualPixelRatio); in UpdateWindowSizeLimits()
506 …t32_t configuredMaxHeight = static_cast<uint32_t>(customizedLimits.maxHeight_ * virtualPixelRatio); in UpdateWindowSizeLimits()
507 …int32_t configuredMinWidth = static_cast<uint32_t>(customizedLimits.minWidth_ * virtualPixelRatio); in UpdateWindowSizeLimits()
508 …t32_t configuredMinHeight = static_cast<uint32_t>(customizedLimits.minHeight_ * virtualPixelRatio); in UpdateWindowSizeLimits()
/foundation/window/window_manager/dmserver/src/
Dabstract_screen.cpp354 float virtualPixelRatio = virtualPixelRatio_; in FillScreenInfo() local
356 if (fabsf(virtualPixelRatio) < 1e-6) { in FillScreenInfo()
357 virtualPixelRatio = 1.0f; in FillScreenInfo()
360 info->virtualPixelRatio_ = virtualPixelRatio; in FillScreenInfo()
361 info->virtualHeight_ = height / virtualPixelRatio; in FillScreenInfo()
362 info->virtualWidth_ = width / virtualPixelRatio; in FillScreenInfo()
380 bool AbstractScreen::SetVirtualPixelRatio(float virtualPixelRatio) in SetVirtualPixelRatio() argument
382 virtualPixelRatio_ = virtualPixelRatio; in SetVirtualPixelRatio()
Dabstract_display.cpp169 void AbstractDisplay::SetVirtualPixelRatio(float virtualPixelRatio) in SetVirtualPixelRatio() argument
171 virtualPixelRatio_ = virtualPixelRatio; in SetVirtualPixelRatio()
Ddisplay_manager_stub.cpp264 float virtualPixelRatio = data.ReadFloat(); in OnRemoteRequest() local
265 DMError ret = SetVirtualPixelRatio(screenId, virtualPixelRatio); in OnRemoteRequest()
Ddisplay_manager_service.cpp728 DMError DisplayManagerService::SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) in SetVirtualPixelRatio() argument
735 virtualPixelRatio); in SetVirtualPixelRatio()
736 return abstractScreenController_->SetVirtualPixelRatio(screenId, virtualPixelRatio); in SetVirtualPixelRatio()
/foundation/window/window_manager/window_scene/session/screen/src/
Dscreen_session.cpp208 void ScreenSession::SetVirtualPixelRatio(float virtualPixelRatio) in SetVirtualPixelRatio() argument
210 property_.SetVirtualPixelRatio(virtualPixelRatio); in SetVirtualPixelRatio()
296 float virtualPixelRatio = property_.GetVirtualPixelRatio(); in FillScreenInfo() local
298 if (fabsf(virtualPixelRatio) < 1e-6) { in FillScreenInfo()
299 virtualPixelRatio = 1.0f; in FillScreenInfo()
303 info->SetVirtualHeight(height / virtualPixelRatio); in FillScreenInfo()
304 info->SetVirtualWidth(width / virtualPixelRatio); in FillScreenInfo()
Dscreen_property.cpp87 void ScreenProperty::SetVirtualPixelRatio(float virtualPixelRatio) in SetVirtualPixelRatio() argument
89 virtualPixelRatio_ = virtualPixelRatio; in SetVirtualPixelRatio()
/foundation/window/window_manager/utils/include/
Dscreen_info.h45 DEFINE_VAR_DEFAULT_FUNC_GET_SET(float, VirtualPixelRatio, virtualPixelRatio, 1.0f);
Ddisplay_info.h48 DEFINE_VAR_DEFAULT_FUNC_GET_SET(float, VirtualPixelRatio, virtualPixelRatio, 1.0f);
/foundation/window/window_manager/window_scene/session/screen/include/
Dscreen_property.h55 void SetVirtualPixelRatio(float virtualPixelRatio);
Dscreen_session.h75 void SetVirtualPixelRatio(float virtualPixelRatio);
/foundation/window/window_manager/dmserver/include/
Dabstract_display.h66 void SetVirtualPixelRatio(float virtualPixelRatio);
Ddisplay_manager_proxy.h82 DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) override;
Dabstract_screen.h48 bool SetVirtualPixelRatio(float virtualPixelRatio);
Ddisplay_manager_interface.h144 virtual DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) = 0;
Ddisplay_manager_service.h107 DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) override;
/foundation/window/window_manager/window_scene/session_manager/src/zidl/
Dscreen_session_manager_stub.cpp239 float virtualPixelRatio = data.ReadFloat(); in OnRemoteRequest() local
240 DMError ret = SetVirtualPixelRatio(screenId, virtualPixelRatio); in OnRemoteRequest()
/foundation/window/window_manager/dm/src/
Ddisplay_manager_adapter.cpp515 DMError ScreenManagerAdapter::SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) in SetVirtualPixelRatio() argument
519 return displayManagerServiceProxy_->SetVirtualPixelRatio(screenId, virtualPixelRatio); in SetVirtualPixelRatio()
/foundation/window/window_manager/window_scene/session_manager/include/zidl/
Dscreen_session_manager_proxy.h34 virtual DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) override;
/foundation/window/window_manager/wmserver/test/unittest/
Dwindow_layout_policy_test.cpp785 float virtualPixelRatio = displayGroupInfo_.GetDisplayVirtualPixelRatio(node->GetDisplayId()); variable
786 uint32_t windowTitleBarH = static_cast<uint32_t>(WINDOW_TITLE_BAR_HEIGHT * virtualPixelRatio);
829 float virtualPixelRatio = displayGroupInfo_.GetDisplayVirtualPixelRatio(node->GetDisplayId()); variable
830 uint32_t windowTitleBarH = static_cast<uint32_t>(WINDOW_TITLE_BAR_HEIGHT * virtualPixelRatio);
1107 float virtualPixelRatio = displayGroupInfo_.GetDisplayVirtualPixelRatio(node->GetDisplayId()); variable
1108 uint32_t windowTitleBarH = static_cast<uint32_t>(WINDOW_TITLE_BAR_HEIGHT * virtualPixelRatio);
/foundation/window/window_manager/dm/include/
Ddisplay_manager_adapter.h110 virtual DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio);

12