• Home
  • Raw
  • Download

Lines Matching refs:displayId

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 …ptr<WindowNode>>* DisplayGroupController::GetWindowNodesByDisplayIdAndRootType(DisplayId displayId, in GetWindowNodesByDisplayIdAndRootType() argument
61 if (displayGroupWindowTree_.find(displayId) != displayGroupWindowTree_.end()) { in GetWindowNodesByDisplayIdAndRootType()
62 auto& displayWindowTree = displayGroupWindowTree_[displayId]; in GetWindowNodesByDisplayIdAndRootType()
131 for (auto& displayId : showingDisplays) { in ProcessCrossNodes() local
132 if (displayId == newDisplayId) { in ProcessCrossNodes()
135 windowNodeContainer_->RemoveNodeFromRSTree(node, displayId, newDisplayId, in ProcessCrossNodes()
229 …splayGroupController::ChangeToRectInDisplayGroup(const sptr<WindowNode>& node, DisplayId displayId) in ChangeToRectInDisplayGroup() argument
232 const Rect& displayRect = DisplayGroupInfo::GetInstance().GetDisplayRect(displayId); in ChangeToRectInDisplayGroup()
318 …roupController::MoveNotCrossNodeToDefaultDisplay(const sptr<WindowNode>& node, DisplayId displayId) in MoveNotCrossNodeToDefaultDisplay() argument
320 WLOGFD("windowId: %{public}d, displayId: %{public}" PRIu64"", node->GetWindowId(), displayId); in MoveNotCrossNodeToDefaultDisplay()
322 const Rect& srcDisplayRect = DisplayGroupInfo::GetInstance().GetDisplayRect(displayId); in MoveNotCrossNodeToDefaultDisplay()
341 MoveNotCrossNodeToDefaultDisplay(childNode, displayId); in MoveNotCrossNodeToDefaultDisplay()
345 void DisplayGroupController::ProcessNotCrossNodesOnDestroyedDisplay(DisplayId displayId, in ProcessNotCrossNodesOnDestroyedDisplay() argument
348 if (displayId == defaultDisplayId_) { in ProcessNotCrossNodesOnDestroyedDisplay()
352 if (displayGroupWindowTree_.find(displayId) == displayGroupWindowTree_.end()) { in ProcessNotCrossNodesOnDestroyedDisplay()
353 WLOGFE("displayId: %{public}" PRIu64" not in display group window tree", displayId); in ProcessNotCrossNodesOnDestroyedDisplay()
356 WLOGI("move window nodes for display destroy, displayId: %{public}" PRIu64"", displayId); in ProcessNotCrossNodesOnDestroyedDisplay()
364 … if (displayGroupWindowTree_[displayId].find(type) == displayGroupWindowTree_[displayId].end()) { in ProcessNotCrossNodesOnDestroyedDisplay()
367 auto nodesVec = *(displayGroupWindowTree_[displayId][type]); in ProcessNotCrossNodesOnDestroyedDisplay()
371 if (node->GetDisplayId() != displayId || node->isShowingOnMultiDisplays_) { in ProcessNotCrossNodesOnDestroyedDisplay()
383 MoveNotCrossNodeToDefaultDisplay(node, displayId); in ProcessNotCrossNodesOnDestroyedDisplay()
386 windowNodeContainer_->RemoveNodeFromRSTree(node, displayId, defaultDisplayId_, in ProcessNotCrossNodesOnDestroyedDisplay()
400 DisplayId displayId = displayInfo->GetDisplayId(); in ProcessDisplayCreate() local
402 InitNewDisplay(displayId); in ProcessDisplayCreate()
414 layoutPolicy->ProcessDisplayCreate(displayId, displayRectMap); in ProcessDisplayCreate()
424 DisplayId displayId = displayInfo->GetDisplayId(); in ProcessDisplayDestroy() local
426 ProcessNotCrossNodesOnDestroyedDisplay(displayId, windowIds); in ProcessDisplayDestroy()
430 ClearMapOfDestroyedDisplay(displayId); in ProcessDisplayDestroy()
431 windowNodeContainer_->GetLayoutPolicy()->ProcessDisplayDestroy(displayId, displayRectMap); in ProcessDisplayDestroy()
439 auto displayId = node->GetDisplayId(); in ProcessSystemBarRotation() local
440 auto iter = displayRectMap.find(displayId); in ProcessSystemBarRotation()
455 void DisplayGroupController::UpdateNodeSizeChangeReasonWithRotation(DisplayId displayId, in UpdateNodeSizeChangeReasonWithRotation() argument
464 …r<sptr<WindowNode>>* rootNodeVectorPtr = GetWindowNodesByDisplayIdAndRootType(displayId, rootType); in UpdateNodeSizeChangeReasonWithRotation()
466 …OGFE("rootNodeVectorPtr is nullptr, %{public}d, displayId: %{public}" PRIu64, rootType, displayId); in UpdateNodeSizeChangeReasonWithRotation()
489 DisplayId displayId = displayInfo->GetDisplayId(); in ProcessDisplayChange() local
490 WLOGI("display change, displayId: %{public}" PRIu64", type: %{public}d", displayId, type); in ProcessDisplayChange()
494 displayGroupInfo.SetDisplayRotation(displayId, displayInfo->GetRotation()); in ProcessDisplayChange()
495 displayGroupInfo.SetDisplayOrientation(displayId, displayInfo->GetDisplayOrientation()); in ProcessDisplayChange()
496 displayGroupInfo.SetDisplayStateChangeType(displayId, type); in ProcessDisplayChange()
501 ProcessDisplaySizeChangeOrRotation(defaultDisplayId, displayId, displayRectMap, type); in ProcessDisplayChange()
505 … displayGroupInfo.SetDisplayVirtualPixelRatio(displayId, displayInfo->GetVirtualPixelRatio()); in ProcessDisplayChange()
506 windowNodeContainer_->GetLayoutPolicy()->ProcessDisplayVprChange(displayId); in ProcessDisplayChange()
515 …roupController::ProcessDisplaySizeChangeOrRotation(DisplayId defaultDisplayId, DisplayId displayId, in ProcessDisplaySizeChangeOrRotation() argument
522 UpdateNodeSizeChangeReasonWithRotation(displayId, displayRectMap); in ProcessDisplaySizeChangeOrRotation()
527 layoutPolicy->ProcessDisplaySizeChangeOrRotation(displayId, displayRectMap); in ProcessDisplaySizeChangeOrRotation()
531 void DisplayGroupController::ClearMapOfDestroyedDisplay(DisplayId displayId) in ClearMapOfDestroyedDisplay() argument
533 sysBarTintMaps_.erase(displayId); in ClearMapOfDestroyedDisplay()
534 sysBarNodeMaps_.erase(displayId); in ClearMapOfDestroyedDisplay()
535 displayGroupWindowTree_.erase(displayId); in ClearMapOfDestroyedDisplay()
536 DisplayGroupInfo::GetInstance().RemoveDisplayInfo(displayId); in ClearMapOfDestroyedDisplay()
537 windowPairMap_.erase(displayId); in ClearMapOfDestroyedDisplay()
540 sptr<WindowPair> DisplayGroupController::GetWindowPairByDisplayId(DisplayId displayId) in GetWindowPairByDisplayId() argument
542 if (windowPairMap_.find(displayId) != windowPairMap_.end()) { in GetWindowPairByDisplayId()
543 return windowPairMap_[displayId]; in GetWindowPairByDisplayId()
551 const auto& displayId = elem.first; in ProcessWindowPairWhenDisplayChange() local
552 const auto& windowPair = GetWindowPairByDisplayId(displayId); in ProcessWindowPairWhenDisplayChange()
554 WLOGFE("WindowPair is nullptr, displayId: %{public}" PRIu64"", displayId); in ProcessWindowPairWhenDisplayChange()
559 WLOGFE("LayoutPolicy is nullptr, displayId: %{public}" PRIu64"", displayId); in ProcessWindowPairWhenDisplayChange()
562 Rect divRect = layoutPolicy->GetDividerRect(displayId); in ProcessWindowPairWhenDisplayChange()
568 UpdateSplitRatioPoints(displayId); in ProcessWindowPairWhenDisplayChange()
575 const auto& displayId = elem.first; in SetSplitRatioConfig() local
576 const auto& windowPair = GetWindowPairByDisplayId(displayId); in SetSplitRatioConfig()
578 WLOGFE("WindowPair is nullptr, displayId: %{public}" PRIu64"", displayId); in SetSplitRatioConfig()
582 UpdateSplitRatioPoints(displayId); in SetSplitRatioConfig()
586 void DisplayGroupController::UpdateSplitRatioPoints(DisplayId displayId) in UpdateSplitRatioPoints() argument
588 const auto& windowPair = GetWindowPairByDisplayId(displayId); in UpdateSplitRatioPoints()
590 WLOGFE("WindowPair is nullptr, displayId: %{public}" PRIu64"", displayId); in UpdateSplitRatioPoints()
594 if (displayRects.find(displayId) == displayRects.end()) { in UpdateSplitRatioPoints()
597 windowPair->CalculateSplitRatioPoints(displayRects[displayId]); in UpdateSplitRatioPoints()
600 WLOGFE("LayoutPolicy is nullptr, displayId: %{public}" PRIu64"", displayId); in UpdateSplitRatioPoints()
603 layoutPolicy->SetSplitRatioPoints(displayId, windowPair->GetSplitRatioPoints()); in UpdateSplitRatioPoints()