/foundation/window/window_manager/wmserver/src/ |
H A D | display_group_info.cpp | 55 auto displayRectMap = GetAllDisplayRects(); in UpdateLeftAndRightDisplayId() local 56 leftDisplayId_ = displayRectMap.begin()->first; in UpdateLeftAndRightDisplayId() 57 rightDisplayId_ = displayRectMap.begin()->first; in UpdateLeftAndRightDisplayId() 58 for (auto& elem : displayRectMap) { in UpdateLeftAndRightDisplayId() 60 if (curDisplayRect.posX_ < displayRectMap[leftDisplayId_].posX_) { in UpdateLeftAndRightDisplayId() 64 (displayRectMap[rightDisplayId_].posX_ + static_cast<int32_t>(displayRectMap[rightDisplayId_].width_))) { in UpdateLeftAndRightDisplayId() 158 std::map<DisplayId, Rect> displayRectMap; in GetAllDisplayRects() local 163 displayRectMap.insert(std::make_pair(elem.first, displayRect)); in GetAllDisplayRects() 165 return displayRectMap; in GetAllDisplayRects() [all...] |
H A D | display_group_controller.cpp | 150 auto displayRectMap = displayGroupInfo.GetAllDisplayRects(); in UpdateWindowShowingDisplays() local 153 for (auto& elem : displayRectMap) { in UpdateWindowShowingDisplays() 166 displayRectMap[leftDisplayId].posX_)) { in UpdateWindowShowingDisplays() 170 (displayRectMap[rightDisplayId].posX_ + static_cast<int32_t>(displayRectMap[rightDisplayId].width_))) { in UpdateWindowShowingDisplays() 199 const auto& displayRectMap = DisplayGroupInfo::GetInstance().GetAllDisplayRects(); in UpdateWindowDisplayIdIfNeeded() local 200 for (auto& elem : displayRectMap) { in UpdateWindowDisplayIdIfNeeded() 401 const std::map<DisplayId, Rect>& displayRectMap) in ProcessDisplayCreate() 420 layoutPolicy->ProcessDisplayCreate(displayId, displayRectMap); in ProcessDisplayCreate() 425 const std::map<DisplayId, Rect>& displayRectMap, in ProcessDisplayDestroy() 400 ProcessDisplayCreate(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo, const std::map<DisplayId, Rect>& displayRectMap) ProcessDisplayCreate() argument 424 ProcessDisplayDestroy(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo, const std::map<DisplayId, Rect>& displayRectMap, std::vector<uint32_t>& windowIds) ProcessDisplayDestroy() argument 441 ProcessSystemBarRotation(const sptr<WindowNode>& node, const std::map<DisplayId, Rect>& displayRectMap) ProcessSystemBarRotation() argument 461 UpdateNodeSizeChangeReasonWithRotation(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap) UpdateNodeSizeChangeReasonWithRotation() argument 488 ProcessDisplayChange(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo, const std::map<DisplayId, Rect>& displayRectMap, DisplayStateChangeType type) ProcessDisplayChange() argument 521 ProcessDisplaySizeChangeOrRotation(DisplayId defaultDisplayId, DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap, DisplayStateChangeType type) ProcessDisplaySizeChangeOrRotation() argument [all...] |
H A D | window_layout_policy.cpp | 186 void WindowLayoutPolicy::UpdateDisplayRectAndDisplayGroupInfo(const std::map<DisplayId, Rect>& displayRectMap) in UpdateDisplayRectAndDisplayGroupInfo() argument 188 for (auto& elem : displayRectMap) { in UpdateDisplayRectAndDisplayGroupInfo() 202 void WindowLayoutPolicy::ProcessDisplayCreate(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap) in ProcessDisplayCreate() argument 205 // check displayId and displayRectMap size in ProcessDisplayCreate() 207 displayRectMap.size() != oriDisplayRectMap.size()) { in ProcessDisplayCreate() 211 for (auto& elem : displayRectMap) { in ProcessDisplayCreate() 224 UpdateDisplayRectAndDisplayGroupInfo(displayRectMap); in ProcessDisplayCreate() 229 void WindowLayoutPolicy::ProcessDisplayDestroy(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap) in ProcessDisplayDestroy() argument 232 // check displayId and displayRectMap size in ProcessDisplayDestroy() 234 displayRectMap in ProcessDisplayDestroy() 259 ProcessDisplaySizeChangeOrRotation(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap) ProcessDisplaySizeChangeOrRotation() argument 554 const auto& displayRectMap = DisplayGroupInfo::GetInstance().GetAllDisplayRects(); GetAvoidPosType() local [all...] |
H A D | window_root.cpp | 107 auto displayRectMap = GetAllDisplayRectsByDMS(displayInfo); in GetWindowNodeContainer() local 109 ProcessExpandDisplayCreate(defaultDisplayId, displayInfo, displayRectMap); in GetWindowNodeContainer() 1573 std::map<DisplayId, Rect>& displayRectMap) in ProcessExpandDisplayCreate() 1588 container->GetDisplayGroupController()->ProcessDisplayCreate(defaultDisplayId, displayInfo, displayRectMap); in ProcessExpandDisplayCreate() 1595 std::map<DisplayId, Rect> displayRectMap; in GetAllDisplayRectsByDMS() local 1598 return displayRectMap; in GetAllDisplayRectsByDMS() 1604 displayRectMap.insert(std::make_pair(displayId, displayRect)); in GetAllDisplayRectsByDMS() 1609 return displayRectMap; in GetAllDisplayRectsByDMS() 1615 std::map<DisplayId, Rect> displayRectMap; in GetAllDisplayRectsByDisplayInfo() local 1621 displayRectMap in GetAllDisplayRectsByDisplayInfo() 1572 ProcessExpandDisplayCreate(DisplayId defaultDisplayId, sptr<DisplayInfo> displayInfo, std::map<DisplayId, Rect>& displayRectMap) ProcessExpandDisplayCreate() argument 1646 auto displayRectMap = GetAllDisplayRectsByDisplayInfo(displayInfoMap); ProcessDisplayCreate() local 1695 auto displayRectMap = GetAllDisplayRectsByDisplayInfo(displayInfoMap); ProcessDisplayDestroy() local 1738 auto displayRectMap = GetAllDisplayRectsByDisplayInfo(displayInfoMap); ProcessDisplayChange() local [all...] |
/foundation/window/window_manager/wmserver/include/ |
H A D | display_group_controller.h | 48 const std::map<DisplayId, Rect>& displayRectMap); 50 const std::map<DisplayId, Rect>& displayRectMap, 53 const std::map<DisplayId, Rect>& displayRectMap, 67 const std::map<DisplayId, Rect>& displayRectMap, DisplayStateChangeType type); 76 void UpdateNodeSizeChangeReasonWithRotation(DisplayId displayId, const std::map<DisplayId, Rect>& displayRectMap); 79 void ProcessSystemBarRotation(const sptr<WindowNode>& node, const std::map<DisplayId, Rect>& displayRectMap);
|
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); 98 void UpdateDisplayRectAndDisplayGroupInfo(const std::map<DisplayId, Rect>& displayRectMap);
|
H A D | window_root.h | 135 std::map<DisplayId, Rect>& displayRectMap);
|
/foundation/window/window_manager/wmserver/test/unittest/ |
H A D | display_group_controller_test.cpp | 714 std::map<DisplayId, Rect> displayRectMap; in HWTEST_F() local 715 displayGroupController_->ProcessDisplayCreate(defaultDisplayId, displayInfo, displayRectMap); in HWTEST_F() 729 std::map<DisplayId, Rect> displayRectMap; in HWTEST_F() local 732 displayRectMap, windowIds); in HWTEST_F() 747 std::map<DisplayId, Rect> displayRectMap = {}; in HWTEST_F() local 748 displayGroupController_->ProcessSystemBarRotation(node, displayRectMap); in HWTEST_F()
|
H A D | window_root_test.cpp | 1015 std::map<DisplayId, Rect> displayRectMap = {}; in HWTEST_F() local 1016 windowRoot_->ProcessExpandDisplayCreate(defaultDisplayId, displayInfo, displayRectMap); in HWTEST_F()
|