Lines Matching refs:container
84 auto container = GetWindowNodeContainer(displayId); in GetOrCreateWindowNodeContainer() local
85 if (container != nullptr) { in GetOrCreateWindowNodeContainer()
86 return container; in GetOrCreateWindowNodeContainer()
130 sptr<WindowNodeContainer> container = new WindowNodeContainer(displayInfo, displayGroupId); in CreateWindowNodeContainer() local
131 windowNodeContainerMap_.insert(std::make_pair(displayGroupId, container)); in CreateWindowNodeContainer()
134 if (container == nullptr) { in CreateWindowNodeContainer()
138 container->GetDisplayGroupController()->SetSplitRatioConfig(splitRatioConfig_); in CreateWindowNodeContainer()
139 return container; in CreateWindowNodeContainer()
179 wptr<WindowNodeContainer> container = GetWindowNodeContainer(it.second->GetDisplayId()); in GetBackgroundNodesByScreenId() local
180 if (container == nullptr) { in GetBackgroundNodesByScreenId()
184 … [container](const std::map<uint64_t, sptr<WindowNodeContainer>>::value_type& containerPair) { in GetBackgroundNodesByScreenId()
185 return container.promote() == containerPair.second; in GetBackgroundNodesByScreenId()
285 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in MinimizeStructuredAppWindowsExceptSelf() local
286 if (container == nullptr) { in MinimizeStructuredAppWindowsExceptSelf()
290 return container->MinimizeStructuredAppWindowsExceptSelf(node); in MinimizeStructuredAppWindowsExceptSelf()
312 auto container = GetOrCreateWindowNodeContainer(displayId); in GetSplitScreenWindowNodes() local
313 if (container == nullptr) { in GetSplitScreenWindowNodes()
316 auto displayGroupController = container->GetDisplayGroupController(); in GetSplitScreenWindowNodes()
329 auto container = const_cast<WindowRoot*>(this)->GetOrCreateWindowNodeContainer(displayId); in IsForbidDockSliceMove() local
330 if (container == nullptr) { in IsForbidDockSliceMove()
334 return container->IsForbidDockSliceMove(displayId); in IsForbidDockSliceMove()
339 auto container = const_cast<WindowRoot*>(this)->GetOrCreateWindowNodeContainer(displayId); in IsDockSliceInExitSplitModeArea() local
340 if (container == nullptr) { in IsDockSliceInExitSplitModeArea()
344 return container->IsDockSliceInExitSplitModeArea(displayId); in IsDockSliceInExitSplitModeArea()
349 auto container = GetOrCreateWindowNodeContainer(displayId); in ExitSplitMode() local
350 if (container == nullptr) { in ExitSplitMode()
354 container->ExitSplitMode(displayId); in ExitSplitMode()
529 sptr<WindowNodeContainer> container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in GetAvoidAreaByType() local
530 if (container == nullptr) { in GetAvoidAreaByType()
534 return container->GetAvoidAreaByType(node, avoidAreaType); in GetAvoidAreaByType()
539 auto container = GetOrCreateWindowNodeContainer(displayId); in MinimizeAllAppWindows() local
540 if (container == nullptr) { in MinimizeAllAppWindows()
544 return container->MinimizeAllAppWindows(displayId); in MinimizeAllAppWindows()
553 auto container = GetOrCreateWindowNodeContainer(displayId); in ToggleShownStateForAllAppWindows() local
554 if (container == nullptr) { in ToggleShownStateForAllAppWindows()
558 containers.emplace_back(container); in ToggleShownStateForAllAppWindows()
559 isAllAppWindowsEmpty = isAllAppWindowsEmpty && container->IsAppWindowsEmpty(); in ToggleShownStateForAllAppWindows()
563 [this, isAllAppWindowsEmpty, &res] (sptr<WindowNodeContainer> container) { in ToggleShownStateForAllAppWindows() argument
588 … WMError tmpRes = container->ToggleShownStateForAllAppWindows(restoreFunc, isAllAppWindowsEmpty); in ToggleShownStateForAllAppWindows()
610 sptr<WindowNodeContainer>& container) in PostProcessAddWindowNode() argument
622 container->RaiseZOrderForAppWindow(parentNode, parent); in PostProcessAddWindowNode()
626 sptr<WindowNode> focusWin = GetWindowNode(container->GetFocusWindow()); in PostProcessAddWindowNode()
630 container->SetFocusWindow(node->GetWindowId()); in PostProcessAddWindowNode()
631 container->DumpScreenWindowTree(); in PostProcessAddWindowNode()
636 container->SetActiveWindow(node->GetWindowId(), false); in PostProcessAddWindowNode()
654 auto topRotatableWindow = container->GetNextRotatableWindow(INVALID_WINDOW_ID); in PostProcessAddWindowNode()
656 container->SetDisplayOrientationFromWindow(node, true); in PostProcessAddWindowNode()
662 container->TraverseContainer(windowNodes); in PostProcessAddWindowNode()
675 …dowRoot::CheckAddingModeAndSize(sptr<WindowNode>& node, const sptr<WindowNodeContainer>& container) in CheckAddingModeAndSize() argument
682 container->GetCurrentLayoutMode())) { in CheckAddingModeAndSize()
687 WMError res = container->IsTileRectSatisfiedWithSizeLimits(node); in CheckAddingModeAndSize()
705 auto container = GetOrCreateWindowNodeContainer(displayId); in GetDisplayRectWithoutSystemBarAreas() local
706 if (container == nullptr) { in GetDisplayRectWithoutSystemBarAreas()
764 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in LayoutWhenAddWindowNode() local
765 if (container == nullptr) { in LayoutWhenAddWindowNode()
770 if (!CheckAddingModeAndSize(node, container)) { // true means stop adding in LayoutWhenAddWindowNode()
775 container->LayoutWhenAddWindowNode(node, afterAnimation); in LayoutWhenAddWindowNode()
799 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in AddWindowNode() local
800 if (container == nullptr) { in AddWindowNode()
804 if (!CheckAddingModeAndSize(node, container)) { // true means stop adding in AddWindowNode()
825 WMError res = container->ShowStartingWindow(node); in AddWindowNode()
832 container->NotifyDockWindowStateChanged(node, false); in AddWindowNode()
835 …uint32_t mainWindowNumber = container->GetWindowCountByType(WindowType::WINDOW_TYPE_APP_MAIN_WINDO… in AddWindowNode()
837 container->MinimizeOldestAppWindow(); in AddWindowNode()
847 res = container->AddWindowNode(node, parentNode); in AddWindowNode()
852 return PostProcessAddWindowNode(node, parentNode, container); in AddWindowNode()
863 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in RemoveWindowNode() local
864 if (container == nullptr) { in RemoveWindowNode()
868 container->DropShowWhenLockedWindowIfNeeded(node); in RemoveWindowNode()
869 UpdateFocusWindowWithWindowRemoved(node, container); in RemoveWindowNode()
870 UpdateActiveWindowWithWindowRemoved(node, container); in RemoveWindowNode()
871 UpdateBrightnessWithWindowRemoved(windowId, container); in RemoveWindowNode()
872 WMError res = container->RemoveWindowNode(node, fromAnimation); in RemoveWindowNode()
885 container->TraverseContainer(windowNodes); in RemoveWindowNode()
904 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in UpdateDisplayOrientationWhenHideWindow() local
905 if (container == nullptr) { in UpdateDisplayOrientationWhenHideWindow()
909 auto nextRotatableWindow = container->GetNextRotatableWindow(node->GetWindowId()); in UpdateDisplayOrientationWhenHideWindow()
912 container->SetDisplayOrientationFromWindow(nextRotatableWindow, false); in UpdateDisplayOrientationWhenHideWindow()
935 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in UpdateWindowNode() local
936 if (container == nullptr) { in UpdateWindowNode()
941 auto ret = container->UpdateWindowNode(node, reason); in UpdateWindowNode()
955 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in UpdateSizeChangeReason() local
956 if (container == nullptr) { in UpdateSizeChangeReason()
960 container->UpdateSizeChangeReason(node, reason); in UpdateSizeChangeReason()
971 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in SetBrightness() local
972 if (container == nullptr) { in SetBrightness()
980 if (windowId != container->GetActiveWindow()) { in SetBrightness()
985 …if (std::fabs(container->GetDisplayBrightness() - brightness) > std::numeric_limits<float>::min())… in SetBrightness()
990 container->SetDisplayBrightness(brightness); in SetBrightness()
993 …if (std::fabs(container->GetDisplayBrightness() - brightness) > std::numeric_limits<float>::min())… in SetBrightness()
994 WLOGFI("value: %{public}u", container->ToOverrideBrightness(brightness)); in SetBrightness()
997 container->ToOverrideBrightness(brightness)); in SetBrightness()
999 container->SetDisplayBrightness(brightness); in SetBrightness()
1002 container->SetBrightnessWindow(windowId); in SetBrightness()
1012 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in HandleKeepScreenOn() local
1013 if (container == nullptr) { in HandleKeepScreenOn()
1017 container->HandleKeepScreenOn(node, requireLock); in HandleKeepScreenOn()
1027 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in UpdateFocusableProperty() local
1028 if (container == nullptr) { in UpdateFocusableProperty()
1033 if (windowId != container->GetFocusWindow() || node->GetWindowProperty()->GetFocusable()) { in UpdateFocusableProperty()
1036 auto nextFocusableWindow = container->GetNextFocusableWindow(windowId); in UpdateFocusableProperty()
1039 container->SetFocusWindow(nextFocusableWindow->GetWindowId()); in UpdateFocusableProperty()
1045 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in SetWindowMode() local
1046 if (container == nullptr) { in SetWindowMode()
1054 auto res = container->SetWindowMode(node, dstMode); in SetWindowMode()
1055 auto nextRotatableWindow = container->GetNextRotatableWindow(0); in SetWindowMode()
1063 …r WindowRoot::DestroyWindowSelf(sptr<WindowNode>& node, const sptr<WindowNodeContainer>& container) in DestroyWindowSelf() argument
1076 WMError res = container->DestroyWindowNode(node, windowIds); in DestroyWindowSelf()
1083 …dowRoot::DestroyWindowWithChild(sptr<WindowNode>& node, const sptr<WindowNodeContainer>& container) in DestroyWindowWithChild() argument
1087 WMError res = container->DestroyWindowNode(node, windowIds); in DestroyWindowWithChild()
1111 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in DestroyWindow() local
1112 if (!container) { in DestroyWindow()
1117 UpdateFocusWindowWithWindowRemoved(node, container); in DestroyWindow()
1118 UpdateActiveWindowWithWindowRemoved(node, container); in DestroyWindow()
1119 UpdateBrightnessWithWindowRemoved(windowId, container); in DestroyWindow()
1122 return DestroyWindowSelf(node, container); in DestroyWindow()
1124 return DestroyWindowWithChild(node, container); in DestroyWindow()
1179 const sptr<WindowNodeContainer>& container) const in UpdateFocusWindowWithWindowRemoved()
1181 if (node == nullptr || container == nullptr) { in UpdateFocusWindowWithWindowRemoved()
1190 uint32_t focusedWindowId = container->GetFocusWindow(); in UpdateFocusWindowWithWindowRemoved()
1192 container->DumpScreenWindowTree(); in UpdateFocusWindowWithWindowRemoved()
1209 auto nextFocusableWindow = container->GetNextFocusableWindow(windowId); in UpdateFocusWindowWithWindowRemoved()
1212 container->SetFocusWindow(nextFocusableWindow->GetWindowId()); in UpdateFocusWindowWithWindowRemoved()
1215 container->SetFocusWindow(INVALID_WINDOW_ID); in UpdateFocusWindowWithWindowRemoved()
1220 const sptr<WindowNodeContainer>& container) const in UpdateActiveWindowWithWindowRemoved()
1222 if (node == nullptr || container == nullptr) { in UpdateActiveWindowWithWindowRemoved()
1227 uint32_t activeWindowId = container->GetActiveWindow(); in UpdateActiveWindowWithWindowRemoved()
1245 auto nextActiveWindow = container->GetNextActiveWindow(windowId); in UpdateActiveWindowWithWindowRemoved()
1248 container->SetActiveWindow(nextActiveWindow->GetWindowId(), true); in UpdateActiveWindowWithWindowRemoved()
1252 …ateBrightnessWithWindowRemoved(uint32_t windowId, const sptr<WindowNodeContainer>& container) const in UpdateBrightnessWithWindowRemoved()
1254 if (container == nullptr) { in UpdateBrightnessWithWindowRemoved()
1258 if (windowId == container->GetBrightnessWindow()) { in UpdateBrightnessWithWindowRemoved()
1259 WLOGFD("winId: %{public}u", container->GetActiveWindow()); in UpdateBrightnessWithWindowRemoved()
1260 container->UpdateBrightness(container->GetActiveWindow(), true); in UpdateBrightnessWithWindowRemoved()
1266 …auto container = const_cast<WindowRoot*>(this)->GetOrCreateWindowNodeContainer(node->GetDisplayId(… in IsVerticalDisplay() local
1267 if (container == nullptr) { in IsVerticalDisplay()
1271 return container->IsVerticalDisplay(node->GetDisplayId()); in IsVerticalDisplay()
1285 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in RequestFocus() local
1286 if (container == nullptr) { in RequestFocus()
1291 return container->SetFocusWindow(windowId); in RequestFocus()
1307 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in RequestActiveWindow() local
1308 if (container == nullptr) { in RequestActiveWindow()
1312 auto res = container->SetActiveWindow(windowId, false); in RequestActiveWindow()
1376 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in RaiseZOrderForAppWindow() local
1377 if (container == nullptr) { in RaiseZOrderForAppWindow()
1381 container->RaiseSplitRelatedWindowToTop(node); in RaiseZOrderForAppWindow()
1385 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in RaiseZOrderForAppWindow() local
1386 if (container == nullptr) { in RaiseZOrderForAppWindow()
1392 container->RaiseZOrderForAppWindow(node, parentNode); in RaiseZOrderForAppWindow()
1401 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in RaiseZOrderForAppWindow() local
1402 if (container == nullptr) { in RaiseZOrderForAppWindow()
1408 return container->RaiseZOrderForAppWindow(node, parentNode); in RaiseZOrderForAppWindow()
1413 sptr<WindowNodeContainer> container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in DispatchKeyEvent() local
1414 if (container == nullptr) { in DispatchKeyEvent()
1419 container->TraverseContainer(windowNodes); in DispatchKeyEvent()
1480 auto container = GetOrCreateWindowNodeContainer(displayId); in SetWindowLayoutMode() local
1481 if (container == nullptr) { in SetWindowLayoutMode()
1485 WMError ret = container->SwitchLayoutPolicy(mode, displayId, true); in SetWindowLayoutMode()
1583 auto container = windowNodeContainerMap_[displayGroupId]; in ProcessExpandDisplayCreate() local
1584 if (container == nullptr) { in ProcessExpandDisplayCreate()
1589 …container->GetDisplayGroupController()->ProcessDisplayCreate(defaultDisplayId, displayInfo, displa… in ProcessExpandDisplayCreate()
1590 container->GetDisplayGroupController()->SetSplitRatioConfig(splitRatioConfig_); in ProcessExpandDisplayCreate()
1688 auto container = iter->second; in ProcessDisplayDestroy() local
1689 if (container == nullptr) { in ProcessDisplayDestroy()
1703 container->GetDisplayGroupController()->ProcessDisplayDestroy( in ProcessDisplayDestroy()
1733 auto container = iter->second; in ProcessDisplayChange() local
1734 if (container == nullptr) { in ProcessDisplayChange()
1740 …container->GetDisplayGroupController()->ProcessDisplayChange(defaultDisplayId, displayInfo, displa… in ProcessDisplayChange()
1746 auto container = const_cast<WindowRoot*>(this)->GetOrCreateWindowNodeContainer(displayId); in GetDisplayGroupRect() local
1747 if (container == nullptr) { in GetDisplayGroupRect()
1751 return container->GetDisplayGroupRect(); in GetDisplayGroupRect()
1756 auto container = GetWindowNodeContainer(displayId); in HasPrivateWindow() local
1757 return container != nullptr ? container->HasPrivateWindow() : false; in HasPrivateWindow()
1762 auto container = GetWindowNodeContainer(displayId); in HasMainFullScreenWindowShown() local
1763 return container != nullptr ? container->HasMainFullScreenWindowShown() : false; in HasMainFullScreenWindowShown()
1804 auto container = GetOrCreateWindowNodeContainer(displayId); in GetModeChangeHotZones() local
1805 if (container == nullptr) { in GetModeChangeHotZones()
1809 container->GetModeChangeHotZones(displayId, hotZones, config); in GetModeChangeHotZones()
1817 sptr<WindowNodeContainer> container = GetOrCreateWindowNodeContainer(id); in RemoveSingleUserWindowNodes() local
1818 if (container == nullptr) { in RemoveSingleUserWindowNodes()
1822 container->RemoveSingleUserWindowNodes(accountId); in RemoveSingleUserWindowNodes()
1833 auto container = GetOrCreateWindowNodeContainer(node->GetDisplayId()); in UpdateRsTree() local
1834 if (container == nullptr) { in UpdateRsTree()
1840 … container->AddNodeOnRSTree(node, displayId, displayId, WindowUpdateType::WINDOW_UPDATE_ACTIVE); in UpdateRsTree()
1842 …container->RemoveNodeFromRSTree(node, displayId, displayId, WindowUpdateType::WINDOW_UPDATE_ACTIVE… in UpdateRsTree()
1903 auto container = GetWindowNodeContainer(displayId); in TakeWindowPairSnapshot() local
1904 return container == nullptr ? false : container->TakeWindowPairSnapshot(displayId); in TakeWindowPairSnapshot()
1909 auto container = GetWindowNodeContainer(displayId); in ClearWindowPairSnapshot() local
1910 if (container == nullptr) { in ClearWindowPairSnapshot()
1914 return container->ClearWindowPairSnapshot(displayId); in ClearWindowPairSnapshot()
1925 auto container = containerPair.second; in CheckAndNotifyWaterMarkChangedResult() local
1926 if (container == nullptr) { in CheckAndNotifyWaterMarkChangedResult()
1930 container->TraverseContainer(allWindowNode); in CheckAndNotifyWaterMarkChangedResult()