/foundation/window/window_manager/test/systemtest/wms/ |
D | window_test_utils.cpp | 163 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 …]
|
D | window_test_utils.h | 75 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/ |
D | window_layout_policy_tile.cpp | 63 … 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()
|
D | window_layout_policy_cascade.cpp | 387 …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 …]
|
D | window_layout_policy.cpp | 428 …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/ |
D | abstract_screen.cpp | 354 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()
|
D | abstract_display.cpp | 169 void AbstractDisplay::SetVirtualPixelRatio(float virtualPixelRatio) in SetVirtualPixelRatio() argument 171 virtualPixelRatio_ = virtualPixelRatio; in SetVirtualPixelRatio()
|
D | display_manager_stub.cpp | 264 float virtualPixelRatio = data.ReadFloat(); in OnRemoteRequest() local 265 DMError ret = SetVirtualPixelRatio(screenId, virtualPixelRatio); in OnRemoteRequest()
|
D | display_manager_service.cpp | 728 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/ |
D | screen_session.cpp | 208 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()
|
D | screen_property.cpp | 87 void ScreenProperty::SetVirtualPixelRatio(float virtualPixelRatio) in SetVirtualPixelRatio() argument 89 virtualPixelRatio_ = virtualPixelRatio; in SetVirtualPixelRatio()
|
/foundation/window/window_manager/utils/include/ |
D | screen_info.h | 45 DEFINE_VAR_DEFAULT_FUNC_GET_SET(float, VirtualPixelRatio, virtualPixelRatio, 1.0f);
|
D | display_info.h | 48 DEFINE_VAR_DEFAULT_FUNC_GET_SET(float, VirtualPixelRatio, virtualPixelRatio, 1.0f);
|
/foundation/window/window_manager/window_scene/session/screen/include/ |
D | screen_property.h | 55 void SetVirtualPixelRatio(float virtualPixelRatio);
|
D | screen_session.h | 75 void SetVirtualPixelRatio(float virtualPixelRatio);
|
/foundation/window/window_manager/dmserver/include/ |
D | abstract_display.h | 66 void SetVirtualPixelRatio(float virtualPixelRatio);
|
D | display_manager_proxy.h | 82 DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) override;
|
D | abstract_screen.h | 48 bool SetVirtualPixelRatio(float virtualPixelRatio);
|
D | display_manager_interface.h | 144 virtual DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) = 0;
|
D | display_manager_service.h | 107 DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) override;
|
/foundation/window/window_manager/window_scene/session_manager/src/zidl/ |
D | screen_session_manager_stub.cpp | 239 float virtualPixelRatio = data.ReadFloat(); in OnRemoteRequest() local 240 DMError ret = SetVirtualPixelRatio(screenId, virtualPixelRatio); in OnRemoteRequest()
|
/foundation/window/window_manager/dm/src/ |
D | display_manager_adapter.cpp | 515 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/ |
D | screen_session_manager_proxy.h | 34 virtual DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio) override;
|
/foundation/window/window_manager/wmserver/test/unittest/ |
D | window_layout_policy_test.cpp | 785 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/ |
D | display_manager_adapter.h | 110 virtual DMError SetVirtualPixelRatio(ScreenId screenId, float virtualPixelRatio);
|