/foundation/window/window_manager/wmserver/src/ |
H A D | display_group_info.cpp | 36 DisplayId displayId = displayInfo->GetDisplayId(); in AddDisplayInfo() local 37 if (displayInfosMap_.find(displayId) != displayInfosMap_.end()) { in AddDisplayInfo() 38 WLOGFE("current display is exits, displayId: %{public}" PRIu64"", displayId); in AddDisplayInfo() 41 displayInfosMap_.insert(std::make_pair(displayId, displayInfo)); in AddDisplayInfo() 44 void DisplayGroupInfo::RemoveDisplayInfo(DisplayId displayId) in RemoveDisplayInfo() argument 46 if (displayInfosMap_.find(displayId) == displayInfosMap_.end()) { in RemoveDisplayInfo() 47 WLOGFE("current display is not exits, displayId: %{public}" PRIu64"", displayId); in RemoveDisplayInfo() 50 displayInfosMap_.erase(displayId); in RemoveDisplayInfo() 72 SetDisplayRotation(DisplayId displayId, Rotation rotation) SetDisplayRotation() argument 81 SetDisplayOrientation(DisplayId displayId, DisplayOrientation orientation) SetDisplayOrientation() argument 90 SetDisplayStateChangeType(DisplayId displayId, DisplayStateChangeType changeType) SetDisplayStateChangeType() argument 99 SetDisplayVirtualPixelRatio(DisplayId displayId, float vpr) SetDisplayVirtualPixelRatio() argument 108 SetDisplayRect(DisplayId displayId, Rect displayRect) SetDisplayRect() argument 197 DisplayId displayId = displayInfo->GetDisplayId(); UpdateDisplayInfo() local [all...] |
H A D | display_group_controller.cpp | 28 void DisplayGroupController::InitNewDisplay(DisplayId displayId) in InitNewDisplay() argument 35 sysBarNodeMaps_.insert(std::make_pair(displayId, sysBarNodeMap)); in InitNewDisplay() 41 sysBarTintMaps_.insert(std::make_pair(displayId, sysBarTintMap)); in InitNewDisplay() 51 displayGroupWindowTree_.insert(std::make_pair(displayId, std::move(displayWindowTree))); in InitNewDisplay() 54 auto windowPair = new WindowPair(displayId); in InitNewDisplay() 55 windowPairMap_.insert(std::make_pair(displayId, windowPair)); in InitNewDisplay() 58 std::vector<sptr<WindowNode>>* DisplayGroupController::GetWindowNodesByDisplayIdAndRootType(DisplayId displayId, in GetWindowNodesByDisplayIdAndRootType() argument 61 if (displayGroupWindowTree_.find(displayId) != displayGroupWindowTree_.end()) { in GetWindowNodesByDisplayIdAndRootType() 62 auto& displayWindowTree = displayGroupWindowTree_[displayId]; in GetWindowNodesByDisplayIdAndRootType() 76 WLOGFD("add node in node vector of root, displayId in AddWindowNodeOnWindowTree() 229 ChangeToRectInDisplayGroup(const sptr<WindowNode>& node, DisplayId displayId) ChangeToRectInDisplayGroup() argument 324 MoveNotCrossNodeToDefaultDisplay(const sptr<WindowNode>& node, DisplayId displayId) MoveNotCrossNodeToDefaultDisplay() argument 351 ProcessNotCrossNodesOnDestroyedDisplay(DisplayId displayId, std::vector<uint32_t>& windowIds) ProcessNotCrossNodesOnDestroyedDisplay() argument 406 DisplayId displayId = displayInfo->GetDisplayId(); ProcessDisplayCreate() local 430 DisplayId displayId = displayInfo->GetDisplayId(); ProcessDisplayDestroy() local 445 auto displayId = node->GetDisplayId(); ProcessSystemBarRotation() local 461 UpdateNodeSizeChangeReasonWithRotation(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap) UpdateNodeSizeChangeReasonWithRotation() argument 495 DisplayId displayId = displayInfo->GetDisplayId(); ProcessDisplayChange() local 521 ProcessDisplaySizeChangeOrRotation(DisplayId defaultDisplayId, DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap, DisplayStateChangeType type) ProcessDisplaySizeChangeOrRotation() argument 537 ClearMapOfDestroyedDisplay(DisplayId displayId) ClearMapOfDestroyedDisplay() argument 546 GetWindowPairByDisplayId(DisplayId displayId) GetWindowPairByDisplayId() argument 557 const auto& displayId = elem.first; ProcessWindowPairWhenDisplayChange() local 581 const auto& displayId = elem.first; SetSplitRatioConfig() local 592 UpdateSplitRatioPoints(DisplayId displayId) UpdateSplitRatioPoints() argument [all...] |
H A D | window_layout_policy_tile.cpp | 42 const auto& displayId = iter.first; in Launch() local 46 InitTileRects(displayId); in Launch() 47 InitTileQueue(displayId); in Launch() 48 LayoutTileQueue(displayId); in Launch() 53 auto& displayWindowTree = displayGroupWindowTree_[displayId]; in Launch() 56 WLOGFD("[Launch TileLayout], displayId: %{public}" PRIu64"", displayId); in Launch() 61 uint32_t WindowLayoutPolicyTile::GetMaxTileWinNum(DisplayId displayId) const in GetMaxTileWinNum() 63 float virtualPixelRatio = DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(displayId); in GetMaxTileWinNum() 68 uint32_t drawableW = limitRectMap_[displayId] in GetMaxTileWinNum() 72 InitTileRects(DisplayId displayId) InitTileRects() argument 116 InitTileQueue(DisplayId displayId) InitTileQueue() argument 132 const auto& displayId = node->GetDisplayId(); IsTileRectSatisfiedWithSizeLimits() local 190 LayoutTileQueue(DisplayId displayId) LayoutTileQueue() argument 212 PushBackNodeInTileQueue(const sptr<WindowNode>& node, DisplayId displayId) PushBackNodeInTileQueue() argument 244 DisplayId displayId = node->GetDisplayId(); RemoveNodeFromTileQueue() local 253 IsValidTileQueueAndPresetRects(DisplayId displayId) IsValidTileQueueAndPresetRects() argument 272 RefreshTileQueue(DisplayId displayId, std::vector<sptr<WindowNode>>& needMinimizeNodes, std::vector<sptr<WindowNode>>& needRecoverNodes) RefreshTileQueue() argument 302 ApplyPresetRectForTileWindows(DisplayId displayId) ApplyPresetRectForTileWindows() argument [all...] |
H A D | freeze_controller.cpp | 33 bool FreezeController::FreezeDisplay(DisplayId displayId) in FreezeDisplay() argument 35 sptr<Window> window = CreateCoverWindow(displayId); in FreezeDisplay() 45 std::shared_ptr<Media::PixelMap> pixelMap = DisplayManagerServiceInner::GetInstance().GetDisplaySnapshot(displayId); in FreezeDisplay() 47 WLOGE("freeze display fail, pixel map is null. display %{public}" PRIu64"", displayId); in FreezeDisplay() 54 bool FreezeController::UnfreezeDisplay(DisplayId displayId) in UnfreezeDisplay() argument 56 auto iter = coverWindowMap_.find(displayId); in UnfreezeDisplay() 58 WLOGW("unfreeze fail, no cover window. display %{public}" PRIu64"", displayId); in UnfreezeDisplay() 63 WLOGW("unfreeze fail, window is null. display %{public}" PRIu64"", displayId); in UnfreezeDisplay() 69 sptr<Window> FreezeController::CreateCoverWindow(DisplayId displayId) in CreateCoverWindow() argument 80 option->SetDisplayId(displayId); in CreateCoverWindow() [all...] |
H A D | window_root.cpp | 68 ScreenId WindowRoot::GetScreenGroupId(DisplayId displayId, bool& isRecordedDisplay) in GetScreenGroupId() argument 72 if (std::find(displayIdVec.begin(), displayIdVec.end(), displayId) != displayIdVec.end()) { in GetScreenGroupId() 78 WLOGFE("Current display is not be recorded, displayId: %{public}" PRIu64 "", displayId); in GetScreenGroupId() 79 return DisplayManagerServiceInner::GetInstance().GetScreenGroupIdByDisplayId(displayId); in GetScreenGroupId() 82 sptr<WindowNodeContainer> WindowRoot::GetOrCreateWindowNodeContainer(DisplayId displayId) in GetOrCreateWindowNodeContainer() argument 84 auto container = GetWindowNodeContainer(displayId); in GetOrCreateWindowNodeContainer() 90 WLOGI("Create container for current display, displayId: %{public}" PRIu64 "", displayId); in GetOrCreateWindowNodeContainer() 91 sptr<DisplayInfo> displayInfo = DisplayManagerServiceInner::GetInstance().GetDisplayById(displayId); in GetOrCreateWindowNodeContainer() 96 GetWindowNodeContainer(DisplayId displayId) GetWindowNodeContainer() argument 125 DisplayId displayId = displayInfo->GetDisplayId(); CreateWindowNodeContainer() local 310 GetSplitScreenWindowNodes(DisplayId displayId) GetSplitScreenWindowNodes() argument 347 ExitSplitMode(DisplayId displayId) ExitSplitMode() argument 537 MinimizeAllAppWindows(DisplayId displayId) MinimizeAllAppWindows() argument 695 DisplayId displayId = dstNode->GetDisplayId(); GetDisplayRectWithoutSystemBarAreas() local 1477 SetWindowLayoutMode(DisplayId displayId, WindowLayoutMode mode) SetWindowLayoutMode() argument 1525 os << "Display " << displayId << ":"; GenAllWindowsLogInfo() local 1580 DisplayId displayId = displayInfo->GetDisplayId(); ProcessExpandDisplayCreate() local 1632 DisplayId displayId = (displayInfo == nullptr) ? DISPLAY_ID_INVALID : displayInfo->GetDisplayId(); ProcessDisplayCreate() local 1651 MoveNotShowingWindowToDefaultDisplay(DisplayId defaultDisplayId, DisplayId displayId) MoveNotShowingWindowToDefaultDisplay() argument 1670 DisplayId displayId = (displayInfo == nullptr) ? DISPLAY_ID_INVALID : displayInfo->GetDisplayId(); ProcessDisplayDestroy() local 1722 DisplayId displayId = displayInfo->GetDisplayId(); ProcessDisplayChange() local 1753 HasPrivateWindow(DisplayId displayId) HasPrivateWindow() argument 1759 HasMainFullScreenWindowShown(DisplayId displayId) HasMainFullScreenWindowShown() argument 1800 GetModeChangeHotZones(DisplayId displayId, ModeChangeHotZones& hotZones, const ModeChangeHotZonesConfig& config) GetModeChangeHotZones() argument 1900 TakeWindowPairSnapshot(DisplayId displayId) TakeWindowPairSnapshot() argument 1906 ClearWindowPairSnapshot(DisplayId displayId) ClearWindowPairSnapshot() argument [all...] |
/foundation/barrierfree/accessibility/services/aams/test/mock/src/ |
H A D | mock_display_power_mgr_client.cpp | 58 bool DisplayPowerMgrClient::SetBrightness(uint32_t value, uint32_t displayId, bool continuous) in SetBrightness() argument 61 (void)displayId; in SetBrightness() 66 bool DisplayPowerMgrClient::DiscountBrightness(double discount, uint32_t displayId) in DiscountBrightness() argument 69 (void)displayId; in DiscountBrightness() 73 bool DisplayPowerMgrClient::OverrideBrightness(uint32_t value, uint32_t displayId) in OverrideBrightness() argument 76 (void)displayId; in OverrideBrightness() 80 bool DisplayPowerMgrClient::RestoreBrightness(uint32_t displayId) in RestoreBrightness() argument 82 (void)displayId; in RestoreBrightness() 86 uint32_t DisplayPowerMgrClient::GetBrightness(uint32_t displayId) in GetBrightness() argument 88 (void)displayId; in GetBrightness() 132 BoostBrightness(int32_t timeoutMs, uint32_t displayId) BoostBrightness() argument 139 CancelBoostBrightness(uint32_t displayId) CancelBoostBrightness() argument 145 GetDeviceBrightness(uint32_t displayId) GetDeviceBrightness() argument [all...] |
/foundation/window/window_manager/wmserver/test/unittest/ |
H A D | display_group_info_test.cpp | 51 DisplayId displayId = 0; in SetUp() local 52 displayInfo->SetDisplayId(displayId); in SetUp() 128 DisplayId displayId = 0; in HWTEST_F() local 129 displayGroupInfo_->RemoveDisplayInfo(displayId); in HWTEST_F() 140 DisplayId displayId = 3; in HWTEST_F() local 141 displayGroupInfo_->RemoveDisplayInfo(displayId); in HWTEST_F() 174 DisplayId displayId = 0; in HWTEST_F() local 175 displayGroupInfo_->SetDisplayRotation(displayId, Rotation::ROTATION_90); in HWTEST_F() 176 ASSERT_EQ(Rotation::ROTATION_90, displayGroupInfo_->GetDisplayRotation(displayId)); in HWTEST_F() 186 DisplayId displayId in HWTEST_F() local 198 DisplayId displayId = 0; HWTEST_F() local 210 DisplayId displayId = 3; HWTEST_F() local 222 DisplayId displayId = 0; HWTEST_F() local 235 DisplayId displayId = 3; HWTEST_F() local 250 DisplayId displayId = 0; HWTEST_F() local 266 DisplayId displayId = 3; HWTEST_F() local [all...] |
H A D | window_freeze_controller_test.cpp | 66 DisplayId displayId = DISPLAY_ID_INVALID; in HWTEST_F() local 69 res = controller_->UnfreezeDisplay(displayId); in HWTEST_F() 71 res = controller_->FreezeDisplay(displayId); in HWTEST_F() 73 res = controller_->FreezeDisplay(displayId); in HWTEST_F() 75 res = controller_->UnfreezeDisplay(displayId); in HWTEST_F() 78 displayId = DisplayManager::GetInstance().GetDefaultDisplayId(); in HWTEST_F() 80 res = controller_->FreezeDisplay(displayId); in HWTEST_F() 82 res = controller_->UnfreezeDisplay(displayId); in HWTEST_F()
|
H A D | window_display_zoom_controller_test.cpp | 60 DisplayId displayId; in HWTEST_F() local 67 displayId = DisplayManagerServiceInner::GetInstance().GetDefaultDisplayId(); in HWTEST_F() 68 displayController_->UpdateAllWindowsZoomInfo(displayId); in HWTEST_F() 82 displayId = DisplayManagerServiceInner::GetInstance().GetDefaultDisplayId(); in HWTEST_F() 94 DisplayId displayId = 0; in HWTEST_F() local 97 displayController_->UpdateAllWindowsZoomInfo(displayId); in HWTEST_F() 102 ASSERT_EQ(displayId, 0); in HWTEST_F()
|
/foundation/window/window_manager/dmserver/src/ |
H A D | display_manager_service_inner.cpp | 40 sptr<DisplayInfo> DisplayManagerServiceInner::GetDisplayById(DisplayId displayId) const
in GetDisplayById() 42 sptr<DisplayInfo> display = DisplayManagerService::GetInstance().GetDisplayInfoById(displayId);
in GetDisplayById() 68 for (auto displayId : displayIds) {
in GetAllDisplays() 69 sptr<DisplayInfo> display = DisplayManagerService::GetInstance().GetDisplayInfoById(displayId);
in GetAllDisplays() 73 WLOGFE("GetAllDisplays display %" PRIu64" nullptr!", displayId);
in GetAllDisplays() 79 void DisplayManagerServiceInner::UpdateRSTree(DisplayId displayId, DisplayId parentDisplayId,
in UpdateRSTree() argument 82 DisplayManagerService::GetInstance().UpdateRSTree(displayId, parentDisplayId, surfaceNode, isAdd, isMultiDisplay);
in UpdateRSTree() 85 sptr<ScreenInfo> DisplayManagerServiceInner::GetScreenInfoByDisplayId(DisplayId displayId) const
in GetScreenInfoByDisplayId() 87 auto displayInfo = DisplayManagerService::GetInstance().GetDisplayInfoById(displayId);
in GetScreenInfoByDisplayId() 95 ScreenId DisplayManagerServiceInner::GetScreenGroupIdByDisplayId(DisplayId displayId) cons 121 GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode) const GetDisplaySnapshot() argument 132 SetOrientationFromWindow(DisplayId displayId, Orientation orientation, bool withAnimation) SetOrientationFromWindow() argument 143 SetRotationFromWindow(DisplayId displayId, Rotation targetRotation, bool withAnimation) SetRotationFromWindow() argument [all...] |
/foundation/window/window_manager/wm/src/ |
H A D | window_display_change_adapter.cpp | 45 void WindowDisplayChangeAdapter::OnCreate(DisplayId displayId) in OnCreate() argument 50 void WindowDisplayChangeAdapter::OnDestroy(DisplayId displayId) in OnDestroy() argument 55 void WindowDisplayChangeAdapter::OnChange(DisplayId displayId) in OnChange() argument 61 auto display = SingletonContainer::Get<DisplayManager>().GetDisplayById(displayId); in OnChange() 63 TLOGE(WmsLogTag::DMS, "get display by displayId %{public}" PRIu64 " failed.", displayId); in OnChange() 68 TLOGE(WmsLogTag::DMS, "get display info %{public}" PRIu64 " failed.", displayId); in OnChange() 73 if (displayId_ == displayId && NearEqual(density_, density) && orientation_ == orientation) { in OnChange() 77 displayId_ = displayId; in OnChange() 80 displayInfoChangeListener_->OnDisplayInfoChange(token_, displayId, densit in OnChange() 83 OnDisplayInfoChange(const sptr<IRemoteObject>& token, DisplayId displayId, float density, DisplayOrientation orientation) OnDisplayInfoChange() argument [all...] |
/foundation/ability/ability_runtime/test/unittest/configuration_test/ |
H A D | configuration_test.cpp | 90 int displayId = 1001; in HWTEST_F() local 93 config.AddItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE, val); in HWTEST_F() 97 config.AddItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE, val); in HWTEST_F() 154 int displayId = 1001; in HWTEST_F() local 156 config.AddItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE, val); in HWTEST_F() 158 auto item = config.GetItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE); in HWTEST_F() 163 config.AddItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE, english); in HWTEST_F() 164 item = config.GetItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE); in HWTEST_F() 231 int displayId = 1001; in HWTEST_F() local 233 config.AddItem(displayId, AAFw in HWTEST_F() 299 int displayId = 1001; HWTEST_F() local 321 int displayId = 1001; HWTEST_F() local 349 int displayId = 1001; HWTEST_F() local 377 int displayId = 1001; HWTEST_F() local 410 int displayId = 1001; HWTEST_F() local 441 int displayId = 1001; HWTEST_F() local 465 int displayId = 1001; HWTEST_F() local 553 int displayId = Rosen::WindowScene::DEFAULT_DISPLAY_ID; HWTEST_F() local 596 int displayId = Rosen::WindowScene::DEFAULT_DISPLAY_ID; HWTEST_F() local 640 int displayId = Rosen::WindowScene::DEFAULT_DISPLAY_ID; HWTEST_F() local 684 int displayId = Rosen::WindowScene::DEFAULT_DISPLAY_ID; HWTEST_F() local 719 int displayId = Rosen::WindowScene::DEFAULT_DISPLAY_ID; HWTEST_F() local 767 int displayId = Rosen::WindowScene::DEFAULT_DISPLAY_ID; HWTEST_F() local [all...] |
/foundation/window/window_manager/dmserver/test/unittest/ |
H A D | display_manager_service_inner_test.cpp | 86 DisplayId displayId = 0; in HWTEST_F() local 93 inner.UpdateRSTree(displayId, parentDisplayId, surfaceNode, isAdd, isMultiDisplay); in HWTEST_F() 104 DisplayId displayId = 0; in HWTEST_F() local 106 auto ret = inner.GetScreenGroupIdByDisplayId(displayId); in HWTEST_F() 109 displayId = 1; in HWTEST_F() 110 ret = inner.GetScreenGroupIdByDisplayId(displayId); in HWTEST_F() 121 DisplayId displayId = 0; in HWTEST_F() local 124 auto ret = inner.GetDisplaySnapshot(displayId, errorCode); in HWTEST_F() 148 DisplayId displayId = 0; in HWTEST_F() local 152 auto ret = inner.SetOrientationFromWindow(displayId, orientatio in HWTEST_F() 167 DisplayId displayId = 0; HWTEST_F() local 198 DisplayId displayId = 0; HWTEST_F() local [all...] |
/foundation/window/window_manager/wmserver/include/ |
H A D | display_group_info.h | 33 void RemoveDisplayInfo(DisplayId displayId); 36 void SetDisplayRotation(DisplayId displayId, Rotation rotation); 37 void SetDisplayOrientation(DisplayId displayId, DisplayOrientation orientation); 38 void SetDisplayStateChangeType(DisplayId displayId, DisplayStateChangeType changeType); 39 void SetDisplayVirtualPixelRatio(DisplayId displayId, float vpr); 40 void SetDisplayRect(DisplayId displayId, Rect displayRect); 43 Rotation GetDisplayRotation(DisplayId displayId) const; 44 DisplayStateChangeType GetDisplayStateChangeType(DisplayId displayId) const; 45 float GetDisplayVirtualPixelRatio(DisplayId displayId) const; 47 Rect GetDisplayRect(DisplayId displayId) cons [all...] |
H A D | window_layout_policy_tile.h | 43 void InitTileRects(DisplayId displayId); 44 uint32_t GetMaxTileWinNum(DisplayId displayId) const; 49 void InitTileQueue(DisplayId displayId); 50 void LayoutTileQueue(DisplayId displayId); 51 void RefreshTileQueue(DisplayId displayId, std::vector<sptr<WindowNode>>& needMinimizeNodes, 53 void PushBackNodeInTileQueue(const sptr<WindowNode>& node, DisplayId displayId); 59 void ApplyPresetRectForTileWindows(DisplayId displayId); 62 bool IsValidTileQueueAndPresetRects(DisplayId displayId);
|
H A D | display_group_controller.h | 43 void InitNewDisplay(DisplayId displayId); 55 sptr<WindowPair> GetWindowPairByDisplayId(DisplayId displayId); 63 std::vector<sptr<WindowNode>>* GetWindowNodesByDisplayIdAndRootType(DisplayId displayId, WindowRootNodeType type); 65 void ProcessNotCrossNodesOnDestroyedDisplay(DisplayId displayId, std::vector<uint32_t>& windowIds); 66 void ProcessDisplaySizeChangeOrRotation(DisplayId defaultDisplayId, DisplayId displayId, 70 void MoveNotCrossNodeToDefaultDisplay(const sptr<WindowNode>& node, DisplayId displayId); 74 void ClearMapOfDestroyedDisplay(DisplayId displayId); 75 void ChangeToRectInDisplayGroup(const sptr<WindowNode>& node, DisplayId displayId); 76 void UpdateNodeSizeChangeReasonWithRotation(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap); 78 void UpdateSplitRatioPoints(DisplayId displayId); [all...] |
H A D | window_layout_policy_cascade.h | 36 Rect GetDividerRect(DisplayId displayId) const override; 46 void InitSplitRects(DisplayId displayId); 47 void SetSplitRectByDivider(const Rect& divRect, DisplayId displayId); 48 void SetInitialDividerRect(const sptr<WindowNode>& node, DisplayId displayId); 49 void InitCascadeRect(DisplayId displayId); 51 Rect StepCascadeRect(Rect rect, DisplayId displayId) const; 56 void LimitDividerInDisplayRegion(Rect& rect, DisplayId displayId) const; 57 void LimitDividerPositionBySplitRatio(DisplayId displayId, Rect& winRect) const; 63 void LayoutSplitNodes(DisplayId displayId, WindowUpdateType type, bool layoutByDivider = false); 73 DockWindowShowState GetDockWindowShowState(DisplayId displayId, Rec [all...] |
H A D | window_layout_policy.h | 48 void ProcessDisplayCreate(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap); 49 void ProcessDisplayDestroy(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap); 50 void ProcessDisplaySizeChangeOrRotation(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap); 51 void ProcessDisplayVprChange(DisplayId displayId); 54 virtual Rect GetDividerRect(DisplayId displayId) const; 58 void SetSplitRatioPoints(DisplayId displayId, const std::vector<int32_t>& splitRatioPoints); 71 void LayoutWindowTree(DisplayId displayId); 79 AvoidPosType GetAvoidPosType(const Rect& rect, DisplayId displayId) const; 81 bool IsVerticalDisplay(DisplayId displayId) const; 94 void UpdateRectInDisplayGroupForAllNodes(DisplayId displayId, cons [all...] |
H A D | window_root.h | 41 sptr<WindowNodeContainer> GetOrCreateWindowNodeContainer(DisplayId displayId); 42 sptr<WindowNodeContainer> GetWindowNodeContainer(DisplayId displayId); 58 bool IsForbidDockSliceMove(DisplayId displayId) const; 59 bool IsDockSliceInExitSplitModeArea(DisplayId displayId) const; 60 void ExitSplitMode(DisplayId displayId); 70 void MinimizeAllAppWindows(DisplayId displayId); 72 WMError SetWindowLayoutMode(DisplayId displayId, WindowLayoutMode mode); 86 Rect GetDisplayGroupRect(DisplayId displayId) const; 92 WMError GetModeChangeHotZones(DisplayId displayId, 100 std::vector<sptr<WindowNode>> GetSplitScreenWindowNodes(DisplayId displayId); [all...] |
/foundation/window/window_manager/dmserver/include/ |
H A D | display_manager_service_inner.h | 39 sptr<DisplayInfo> GetDisplayById(DisplayId displayId) const;
41 sptr<ScreenInfo> GetScreenInfoByDisplayId(DisplayId displayId) const;
42 ScreenId GetScreenGroupIdByDisplayId(DisplayId displayId) const;
43 sptr<SupportedScreenModes> GetScreenModesByDisplayId(DisplayId displayId) const;
44 std::shared_ptr<Media::PixelMap> GetDisplaySnapshot(DisplayId displayId, DmErrorCode* errorCode = nullptr) const;
45 void UpdateRSTree(DisplayId displayId, DisplayId parentDisplayId, std::shared_ptr<RSSurfaceNode>& surfaceNode,
48 DMError SetOrientationFromWindow(DisplayId displayId, Orientation orientation, bool withAnimation = true);
49 bool SetRotationFromWindow(DisplayId displayId, Rotation targetRotation, bool withAnimation = true);
52 sptr<CutoutInfo> GetCutoutInfo(DisplayId displayId) const;
|
/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
H A D | configuration_utils.cpp | 76 void ConfigurationUtils::InitDisplayConfig(Rosen::DisplayId displayId, std::shared_ptr<Configuration> configuration, in InitDisplayConfig() argument 87 if (!GetDisplayConfig(displayId, density, direction)) { in InitDisplayConfig() 91 configuration->AddItem(displayId, ConfigurationInner::APPLICATION_DENSITYDPI, GetDensityStr(density)); in InitDisplayConfig() 92 configuration->AddItem(displayId, ConfigurationInner::APPLICATION_DIRECTION, direction); in InitDisplayConfig() 93 configuration->AddItem(ConfigurationInner::APPLICATION_DISPLAYID, std::to_string(displayId)); in InitDisplayConfig() 98 void ConfigurationUtils::UpdateDisplayConfig(Rosen::DisplayId displayId, std::shared_ptr<Configuration> configuration, in UpdateDisplayConfig() argument 109 if (!GetDisplayConfig(displayId, density, direction)) { in UpdateDisplayConfig() 114 newConfig.AddItem(displayId, ConfigurationInner::APPLICATION_DENSITYDPI, GetDensityStr(density)); in UpdateDisplayConfig() 115 newConfig.AddItem(displayId, ConfigurationInner::APPLICATION_DIRECTION, direction); in UpdateDisplayConfig() 135 std::shared_ptr<ResourceManager> resourceManager, Rosen::DisplayId displayId, floa in InitDisplayConfig() 134 InitDisplayConfig(std::shared_ptr<Configuration> configuration, std::shared_ptr<ResourceManager> resourceManager, Rosen::DisplayId displayId, float density, int32_t orientation) InitDisplayConfig() argument 149 UpdateDisplayConfig(std::shared_ptr<Configuration> configuration, std::shared_ptr<ResourceManager> resourceManager, Rosen::DisplayId displayId, float density, Rosen::DisplayOrientation orientation) UpdateDisplayConfig() argument 174 GetDisplayConfig(Rosen::DisplayId displayId, float &density, std::string &directionStr) GetDisplayConfig() argument [all...] |
/foundation/window/window_manager/wm/test/unittest/ |
H A D | window_display_change_adapter_test.cpp | 35 void OnDisplayInfoChange(const sptr<IRemoteObject>& token, DisplayId displayId, float density, 38 displayId_ = displayId; 81 DisplayId displayId = 0; in HWTEST_F() local 82 window->OnChange(displayId); in HWTEST_F() 99 DisplayId displayId = 1; in HWTEST_F() local 103 window->OnDisplayInfoChange(targetToken, displayId, density, orientation); in HWTEST_F() 105 window->OnDisplayInfoChange(targetToken, displayId, density, orientation); in HWTEST_F() 107 ASSERT_EQ(displayId, listener->displayId_); in HWTEST_F()
|
H A D | window_scene_test.cpp | 51 DisplayId displayId = 0;
in SetUp() local 58 ASSERT_EQ(WMError::WM_OK, scene_->Init(displayId, abilityContext_, listener));
in SetUp() 79 DisplayId displayId = 0;
in HWTEST_F() local 83 ASSERT_EQ(WMError::WM_OK, scene->Init(displayId, abilityContext, listener, optionTest));
in HWTEST_F() 96 DisplayId displayId = 0;
in HWTEST_F() local 100 ASSERT_EQ(WMError::WM_ERROR_NULLPTR, scene->Init(displayId, abilityContext, listener, optionTest));
in HWTEST_F() 113 DisplayId displayId = 0;
in HWTEST_F() local 116 ASSERT_EQ(WMError::WM_OK, scene->Init(displayId, abilityContext_, listener, optionTest));
in HWTEST_F() 127 DisplayId displayId = 0;
in HWTEST_F() local 131 ASSERT_EQ(WMError::WM_ERROR_NULLPTR, scene->Init(displayId, abilityContext in HWTEST_F() 142 DisplayId displayId = 0; HWTEST_F() local 161 DisplayId displayId = 1; HWTEST_F() local 273 DisplayId displayId = 0; HWTEST_F() local 304 DisplayId displayId = 0; HWTEST_F() local 338 DisplayId displayId = 0; HWTEST_F() local 368 DisplayId displayId = 0; HWTEST_F() local 399 DisplayId displayId = 0; HWTEST_F() local 430 DisplayId displayId = 0; HWTEST_F() local 459 DisplayId displayId = 0; HWTEST_F() local 488 DisplayId displayId = 0; HWTEST_F() local 516 DisplayId displayId = 0; HWTEST_F() local 534 DisplayId displayId = 0; HWTEST_F() local [all...] |
/foundation/distributedhardware/distributed_screen/services/common/test/unittest/utils/ |
H A D | dscreen_maprelation_test.cpp | 43 uint64_t displayId = 0; in HWTEST_F() local 44 dscreenMapRelation->SetDisplayId(displayId); in HWTEST_F() 46 EXPECT_EQ(displayId, actual); in HWTEST_F() 104 uint64_t displayId = 1; in HWTEST_F() local 109 dScreenMapRelation.SetDisplayId(displayId); in HWTEST_F() 117 EXPECT_EQ(displayId, jsonDisplayId); in HWTEST_F() 129 uint64_t displayId = 1; in HWTEST_F() local 134 dScreenMapRelation.SetDisplayId(displayId); in HWTEST_F() 142 EXPECT_EQ(displayId, jsonDScreenMapRelation.GetDisplayId()); in HWTEST_F() 154 uint64_t displayId in HWTEST_F() local [all...] |
/foundation/window/window_manager/window_scene/test/dms_unittest/ |
H A D | screen_cutout_controller_test.cpp | 88 DisplayId displayId = 0; in HWTEST_F() local 89 ASSERT_NE(nullptr, controller->GetScreenCutoutInfo(displayId)); in HWTEST_F() 100 DisplayId displayId = 1; in HWTEST_F() local 104 ASSERT_NE(nullptr, controller->GetScreenCutoutInfo(displayId)); in HWTEST_F() 117 DisplayId displayId = 0; in HWTEST_F() local 120 controller->ConvertBoundaryRectsByRotation(boundaryRects, displayId); in HWTEST_F() 224 DisplayId displayId = 0; in HWTEST_F() local 227 controller->CalcWaterfallRects(displayId); in HWTEST_F() 237 DisplayId displayId = 1; in HWTEST_F() local 240 controller->CalcWaterfallRects(displayId); in HWTEST_F() 250 DisplayId displayId = 1; HWTEST_F() local 264 DisplayId displayId = 1; HWTEST_F() local 347 DisplayId displayId = 0; HWTEST_F() local [all...] |