Lines Matching refs:displayId
61 ScreenId WindowRoot::GetScreenGroupId(DisplayId displayId, bool& isRecordedDisplay) in GetScreenGroupId() argument
65 if (std::find(displayIdVec.begin(), displayIdVec.end(), displayId) != displayIdVec.end()) { in GetScreenGroupId()
71 WLOGFE("Current display is not be recorded, displayId: %{public}" PRIu64 "", displayId); in GetScreenGroupId()
72 return DisplayManagerServiceInner::GetInstance().GetScreenGroupIdByDisplayId(displayId); in GetScreenGroupId()
75 sptr<WindowNodeContainer> WindowRoot::GetOrCreateWindowNodeContainer(DisplayId displayId) in GetOrCreateWindowNodeContainer() argument
77 auto container = GetWindowNodeContainer(displayId); in GetOrCreateWindowNodeContainer()
83 WLOGI("Create container for current display, displayId: %{public}" PRIu64 "", displayId); in GetOrCreateWindowNodeContainer()
84 …ptr<DisplayInfo> displayInfo = DisplayManagerServiceInner::GetInstance().GetDisplayById(displayId); in GetOrCreateWindowNodeContainer()
89 sptr<WindowNodeContainer> WindowRoot::GetWindowNodeContainer(DisplayId displayId) in GetWindowNodeContainer() argument
92 ScreenId displayGroupId = GetScreenGroupId(displayId, isRecordedDisplay); in GetWindowNodeContainer()
97 …ptr<DisplayInfo> displayInfo = DisplayManagerServiceInner::GetInstance().GetDisplayById(displayId); in GetWindowNodeContainer()
99 displayIdMap_[displayGroupId].push_back(displayId); in GetWindowNodeContainer()
118 DisplayId displayId = displayInfo->GetDisplayId(); in CreateWindowNodeContainer() local
122 displayInfo->GetHeight(), displayGroupId, displayId); in CreateWindowNodeContainer()
125 std::vector<DisplayId> displayVec = { displayId }; in CreateWindowNodeContainer()
128 WLOGFE("create container failed, displayId :%{public}" PRIu64 "", displayId); in CreateWindowNodeContainer()
291 std::vector<sptr<WindowNode>> WindowRoot::GetSplitScreenWindowNodes(DisplayId displayId) in GetSplitScreenWindowNodes() argument
293 auto container = GetOrCreateWindowNodeContainer(displayId); in GetSplitScreenWindowNodes()
301 auto windowPair = displayGroupController->GetWindowPairByDisplayId(displayId); in GetSplitScreenWindowNodes()
308 bool WindowRoot::IsForbidDockSliceMove(DisplayId displayId) const in IsForbidDockSliceMove()
310 auto container = const_cast<WindowRoot*>(this)->GetOrCreateWindowNodeContainer(displayId); in IsForbidDockSliceMove()
315 return container->IsForbidDockSliceMove(displayId); in IsForbidDockSliceMove()
318 bool WindowRoot::IsDockSliceInExitSplitModeArea(DisplayId displayId) const in IsDockSliceInExitSplitModeArea()
320 auto container = const_cast<WindowRoot*>(this)->GetOrCreateWindowNodeContainer(displayId); in IsDockSliceInExitSplitModeArea()
325 return container->IsDockSliceInExitSplitModeArea(displayId); in IsDockSliceInExitSplitModeArea()
328 void WindowRoot::ExitSplitMode(DisplayId displayId) in ExitSplitMode() argument
330 auto container = GetOrCreateWindowNodeContainer(displayId); in ExitSplitMode()
335 container->ExitSplitMode(displayId); in ExitSplitMode()
451 void WindowRoot::MinimizeAllAppWindows(DisplayId displayId) in MinimizeAllAppWindows() argument
453 auto container = GetOrCreateWindowNodeContainer(displayId); in MinimizeAllAppWindows()
458 return container->MinimizeAllAppWindows(displayId); in MinimizeAllAppWindows()
466 for (auto displayId : displays) { in ToggleShownStateForAllAppWindows() local
467 auto container = GetOrCreateWindowNodeContainer(displayId); in ToggleShownStateForAllAppWindows()
594 DisplayId displayId = dstNode->GetDisplayId(); in GetDisplayRectWithoutSystemBarAreas() local
598 if (node && (node->GetDisplayId() == displayId) && in GetDisplayRectWithoutSystemBarAreas()
603 auto container = GetOrCreateWindowNodeContainer(displayId); in GetDisplayRectWithoutSystemBarAreas()
608 auto displayRect = DisplayGroupInfo::GetInstance().GetDisplayRect(displayId); in GetDisplayRectWithoutSystemBarAreas()
610 auto displayInfo = DisplayGroupInfo::GetInstance().GetDisplayInfo(displayId); in GetDisplayRectWithoutSystemBarAreas()
1345 WMError WindowRoot::SetWindowLayoutMode(DisplayId displayId, WindowLayoutMode mode) in SetWindowLayoutMode() argument
1347 auto container = GetOrCreateWindowNodeContainer(displayId); in SetWindowLayoutMode()
1352 WMError ret = container->SwitchLayoutPolicy(mode, displayId, true); in SetWindowLayoutMode()
1354 …W("set window layout mode failed displayId: %{public}" PRIu64 ", ret: %{public}d", displayId, ret); in SetWindowLayoutMode()
1367 for (auto displayId : displayIdVec) { in GetAllDisplayIds() local
1368 displayIds.push_back(displayId); in GetAllDisplayIds()
1392 for (const auto& displayId : displayIdVec) { in GenAllWindowsLogInfo() local
1393 os << "Display " << displayId << ":"; in GenAllWindowsLogInfo()
1448 DisplayId displayId = displayInfo->GetDisplayId(); in ProcessExpandDisplayCreate() local
1452 WLOGFE("window node container is nullptr, displayId :%{public}" PRIu64 "", displayId); in ProcessExpandDisplayCreate()
1458 WLOGI("Container exist, add new display, displayId: %{public}" PRIu64"", displayId); in ProcessExpandDisplayCreate()
1469 for (auto& displayId : displayIdMap_[displayInfo->GetScreenGroupId()]) { in GetAllDisplayRectsByDMS() local
1470 auto info = DisplayManagerServiceInner::GetInstance().GetDisplayById(displayId); in GetAllDisplayRectsByDMS()
1472 displayRectMap.insert(std::make_pair(displayId, displayRect)); in GetAllDisplayRectsByDMS()
1475 … displayId, displayRect.posX_, displayRect.posY_, displayRect.width_, displayRect.height_); in GetAllDisplayRectsByDMS()
1500 … DisplayId displayId = (displayInfo == nullptr) ? DISPLAY_ID_INVALID : displayInfo->GetDisplayId(); in ProcessDisplayCreate() local
1505 WLOGI("Create new container for display, displayId: %{public}" PRIu64"", displayId); in ProcessDisplayCreate()
1508 if (std::find(displayIdVec.begin(), displayIdVec.end(), displayId) != displayIdVec.end()) { in ProcessDisplayCreate()
1509 WLOGI("Current display is already exist, displayId: %{public}" PRIu64"", displayId); in ProcessDisplayCreate()
1513 displayIdMap_[displayGroupId].push_back(displayId); in ProcessDisplayCreate()
1519 …d WindowRoot::MoveNotShowingWindowToDefaultDisplay(DisplayId defaultDisplayId, DisplayId displayId) in MoveNotShowingWindowToDefaultDisplay() argument
1523 if (windowNode->GetDisplayId() == displayId && !windowNode->currentVisibility_) { in MoveNotShowingWindowToDefaultDisplay()
1538 … DisplayId displayId = (displayInfo == nullptr) ? DISPLAY_ID_INVALID : displayInfo->GetDisplayId(); in ProcessDisplayDestroy() local
1544 std::find(displayIdVec.begin(), displayIdVec.end(), displayId) == displayIdVec.end() || in ProcessDisplayDestroy()
1545 displayInfoMap.find(displayId) == displayInfoMap.end()) { in ProcessDisplayDestroy()
1546 WLOGFE("could not find display, destroy failed, displayId: %{public}" PRIu64"", displayId); in ProcessDisplayDestroy()
1551 auto displayIter = std::remove(displayIdVec.begin(), displayIdVec.end(), displayId); in ProcessDisplayDestroy()
1557 WLOGFE("window node container is nullptr, displayId :%{public}" PRIu64 "", displayId); in ProcessDisplayDestroy()
1560 WLOGI("displayId: %{public}" PRIu64"", displayId); in ProcessDisplayDestroy()
1565 auto displayRectIter = displayRectMap.find(displayId); in ProcessDisplayDestroy()
1579 MoveNotShowingWindowToDefaultDisplay(defaultDisplayId, displayId); in ProcessDisplayDestroy()
1580 WLOGI("[Display Destroy] displayId: %{public}" PRIu64" ", displayId); in ProcessDisplayDestroy()
1590 DisplayId displayId = displayInfo->GetDisplayId(); in ProcessDisplayChange() local
1595 displayIdVec.end(), displayId) == displayIdVec.end()) { in ProcessDisplayChange()
1596 …[Display Change] could not find display, change failed, displayId: %{public}" PRIu64"", displayId); in ProcessDisplayChange()
1602 WLOGFE("window node container is nullptr, displayId :%{public}" PRIu64 "", displayId); in ProcessDisplayChange()
1610 Rect WindowRoot::GetDisplayGroupRect(DisplayId displayId) const in GetDisplayGroupRect()
1613 auto container = const_cast<WindowRoot*>(this)->GetOrCreateWindowNodeContainer(displayId); in GetDisplayGroupRect()
1621 bool WindowRoot::HasPrivateWindow(DisplayId displayId) in HasPrivateWindow() argument
1623 auto container = GetWindowNodeContainer(displayId); in HasPrivateWindow()
1627 bool WindowRoot::HasMainFullScreenWindowShown(DisplayId displayId) in HasMainFullScreenWindowShown() argument
1629 auto container = GetWindowNodeContainer(displayId); in HasMainFullScreenWindowShown()
1668 WMError WindowRoot::GetModeChangeHotZones(DisplayId displayId, in GetModeChangeHotZones() argument
1671 auto container = GetOrCreateWindowNodeContainer(displayId); in GetModeChangeHotZones()
1676 container->GetModeChangeHotZones(displayId, hotZones, config); in GetModeChangeHotZones()
1705 for (auto& displayId : node->GetShowingDisplays()) { in UpdateRsTree() local
1707 … container->AddNodeOnRSTree(node, displayId, displayId, WindowUpdateType::WINDOW_UPDATE_ACTIVE); in UpdateRsTree()
1709 …container->RemoveNodeFromRSTree(node, displayId, displayId, WindowUpdateType::WINDOW_UPDATE_ACTIVE… in UpdateRsTree()
1768 bool WindowRoot::TakeWindowPairSnapshot(DisplayId displayId) in TakeWindowPairSnapshot() argument
1770 auto container = GetWindowNodeContainer(displayId); in TakeWindowPairSnapshot()
1771 return container == nullptr ? false : container->TakeWindowPairSnapshot(displayId); in TakeWindowPairSnapshot()
1774 void WindowRoot::ClearWindowPairSnapshot(DisplayId displayId) in ClearWindowPairSnapshot() argument
1776 auto container = GetWindowNodeContainer(displayId); in ClearWindowPairSnapshot()
1781 return container->ClearWindowPairSnapshot(displayId); in ClearWindowPairSnapshot()