Home
last modified time | relevance | path

Searched refs:displayId (Results 1 – 25 of 283) sorted by relevance

12345678910>>...12

/foundation/window/window_manager/wmserver/src/
Ddisplay_group_info.cpp36 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 void DisplayGroupInfo::SetDisplayRotation(DisplayId displayId, Rotation rotation) in SetDisplayRotation() argument
74 if (displayInfosMap_.find(displayId) == displayInfosMap_.end()) { in SetDisplayRotation()
[all …]
Ddisplay_group_controller.cpp28 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
[all …]
Dwindow_layout_policy_tile.cpp42 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].width_ - edgeIntervalVp + midIntervalVp; in GetMaxTileWinNum()
72 void WindowLayoutPolicyTile::InitTileRects(DisplayId displayId) in InitTileRects() argument
[all …]
Dfreeze_controller.cpp33 bool FreezeController::FreezeDisplay(DisplayId displayId) in FreezeDisplay() argument
35 sptr<Window> window = CreateCoverWindow(displayId); in FreezeDisplay()
45 …edia::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 …]
Dwindow_layout_policy_cascade.cpp58 DisplayId displayId = iter.first; in Reorder() local
59 Rect rect = cascadeRectsMap_[displayId].defaultCascadeRect_; in Reorder()
61 …const auto& appWindowNodeVec = *(displayGroupWindowTree_[displayId][WindowRootNodeType::APP_WINDOW… in Reorder()
77 rect = StepCascadeRect(rect, displayId); in Reorder()
92 LayoutWindowTree(displayId); in Reorder()
101 auto displayId = iter.first; in InitAllRects() local
102 InitSplitRects(displayId); in InitAllRects()
103 LayoutWindowTree(displayId); in InitAllRects()
104 InitCascadeRect(displayId); in InitAllRects()
108 void WindowLayoutPolicyCascade::LayoutSplitNodes(DisplayId displayId, WindowUpdateType type, bool l… in LayoutSplitNodes() argument
[all …]
Dwindow_root.cpp61 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()
[all …]
/foundation/barrierfree/accessibility/services/aams/test/mock/src/
Dmock_display_power_mgr_client.cpp58 bool DisplayPowerMgrClient::SetBrightness(uint32_t value, uint32_t displayId) in SetBrightness() argument
61 (void)displayId; in SetBrightness()
65 bool DisplayPowerMgrClient::DiscountBrightness(double discount, uint32_t displayId) in DiscountBrightness() argument
68 (void)displayId; in DiscountBrightness()
72 bool DisplayPowerMgrClient::OverrideBrightness(uint32_t value, uint32_t displayId) in OverrideBrightness() argument
75 (void)displayId; in OverrideBrightness()
79 bool DisplayPowerMgrClient::RestoreBrightness(uint32_t displayId) in RestoreBrightness() argument
81 (void)displayId; in RestoreBrightness()
85 uint32_t DisplayPowerMgrClient::GetBrightness(uint32_t displayId) in GetBrightness() argument
87 (void)displayId; in GetBrightness()
[all …]
/foundation/window/window_manager/wmserver/test/unittest/
Ddisplay_group_info_test.cpp51 DisplayId displayId = 0; in SetUp() local
52 displayInfo->SetDisplayId(displayId); in SetUp()
128 DisplayId displayId = 0; variable
129 displayGroupInfo_->RemoveDisplayInfo(displayId);
140 DisplayId displayId = 3; variable
141 displayGroupInfo_->RemoveDisplayInfo(displayId);
174 DisplayId displayId = 0; variable
175 displayGroupInfo_->SetDisplayRotation(displayId, Rotation::ROTATION_90);
176 ASSERT_EQ(Rotation::ROTATION_90, displayGroupInfo_->GetDisplayRotation(displayId));
186 DisplayId displayId = 3; variable
[all …]
Dwindow_freeze_controller_test.cpp66 DisplayId displayId = DISPLAY_ID_INVALID; variable
69 res = controller_->UnfreezeDisplay(displayId);
71 res = controller_->FreezeDisplay(displayId);
73 res = controller_->FreezeDisplay(displayId);
75 res = controller_->UnfreezeDisplay(displayId);
78 displayId = DisplayManager::GetInstance().GetDefaultDisplayId();
80 res = controller_->FreezeDisplay(displayId);
82 res = controller_->UnfreezeDisplay(displayId);
/foundation/window/window_manager/dmserver/src/
Ddisplay_manager_service_inner.cpp40 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() local
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, … 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) const in GetScreenGroupIdByDisplayId()
[all …]
Ddisplay_cutout_controller.cpp56 void DisplayCutoutController::SetCutoutSvgPath(DisplayId displayId, const std::string& svgPath) in SetCutoutSvgPath() argument
59 if (svgPaths_.count(displayId) == 1) { in SetCutoutSvgPath()
60 svgPaths_[displayId].emplace_back(svgPath); in SetCutoutSvgPath()
64 svgPaths_[displayId] = pathVec; in SetCutoutSvgPath()
67 if (boundingRects_.count(displayId) == 1) { in SetCutoutSvgPath()
68 boundingRects_[displayId].emplace_back(boundingRect); in SetCutoutSvgPath()
72 boundingRects_[displayId] = rectVec; in SetCutoutSvgPath()
76 sptr<CutoutInfo> DisplayCutoutController::GetCutoutInfo(DisplayId displayId) in GetCutoutInfo() argument
81 if (boundingRects_.count(displayId) == 1) { in GetCutoutInfo()
82 TransferBoundingRectsByRotation(displayId, boundingRects); in GetCutoutInfo()
[all …]
/foundation/window/window_manager/wmserver/include/
Ddisplay_group_info.h33 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) const;
[all …]
Dwindow_layout_policy_tile.h43 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);
Ddisplay_group_controller.h43 void InitNewDisplay(DisplayId displayId);
55 sptr<WindowPair> GetWindowPairByDisplayId(DisplayId displayId);
63 …std::vector<sptr<WindowNode>>* GetWindowNodesByDisplayIdAndRootType(DisplayId displayId, WindowRoo…
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>& …
78 void UpdateSplitRatioPoints(DisplayId displayId);
Dwindow_layout_policy_cascade.h36 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, Rect& dockWinRect) const;
Dwindow_layout_policy.h48 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>& disp…
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, const Rect& oriDisplayRect,
Dwindow_root.h41 sptr<WindowNodeContainer> GetOrCreateWindowNodeContainer(DisplayId displayId);
42 sptr<WindowNodeContainer> GetWindowNodeContainer(DisplayId displayId);
57 bool IsForbidDockSliceMove(DisplayId displayId) const;
58 bool IsDockSliceInExitSplitModeArea(DisplayId displayId) const;
59 void ExitSplitMode(DisplayId displayId);
69 void MinimizeAllAppWindows(DisplayId displayId);
71 WMError SetWindowLayoutMode(DisplayId displayId, WindowLayoutMode mode);
85 Rect GetDisplayGroupRect(DisplayId displayId) const;
91 WMError GetModeChangeHotZones(DisplayId displayId,
99 std::vector<sptr<WindowNode>> GetSplitScreenWindowNodes(DisplayId displayId);
[all …]
/foundation/window/window_manager/dmserver/include/
Ddisplay_manager_service_inner.h39 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 = …
45 …void UpdateRSTree(DisplayId displayId, DisplayId parentDisplayId, std::shared_ptr<RSSurfaceNode>& …
48 …DMError SetOrientationFromWindow(DisplayId displayId, Orientation orientation, bool withAnimation …
49 …bool SetRotationFromWindow(DisplayId displayId, Rotation targetRotation, bool withAnimation = true…
52 sptr<CutoutInfo> GetCutoutInfo(DisplayId displayId) const;
/foundation/ability/ability_runtime/test/unittest/configuration_test/
Dconfiguration_test.cpp88 int displayId = 1001; variable
91 config.AddItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE, val);
95 config.AddItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE, val);
149 int displayId = 1001; variable
151 config.AddItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE, val);
153 auto item = config.GetItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE);
158 config.AddItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE, english);
159 item = config.GetItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE);
223 int displayId = 1001; variable
225 config.AddItem(displayId, AAFwk::GlobalConfigurationKey::SYSTEM_LANGUAGE, val);
[all …]
/foundation/distributedhardware/distributed_screen/services/common/test/unittest/utils/
Ddscreen_maprelation_test.cpp45 uint64_t displayId = 0; variable
46 dscreenMapRelation->SetDisplayId(displayId);
48 EXPECT_EQ(displayId, actual);
106 uint64_t displayId = 1; variable
111 dScreenMapRelation.SetDisplayId(displayId);
119 EXPECT_EQ(displayId, jsonDisplayId);
131 uint64_t displayId = 1; variable
136 dScreenMapRelation.SetDisplayId(displayId);
144 EXPECT_EQ(displayId, jsonDScreenMapRelation.GetDisplayId());
/foundation/ability/ability_runtime/frameworks/native/ability/native/
Dconfiguration_utils.cpp93 void ConfigurationUtils::InitDisplayConfig(Rosen::DisplayId displayId, std::shared_ptr<Configuratio… in InitDisplayConfig() argument
104 if (!GetDisplayConfig(displayId, density, direction)) { in InitDisplayConfig()
108 …configuration->AddItem(displayId, ConfigurationInner::APPLICATION_DENSITYDPI, GetDensityStr(densit… in InitDisplayConfig()
109 configuration->AddItem(displayId, ConfigurationInner::APPLICATION_DIRECTION, direction); in InitDisplayConfig()
110 configuration->AddItem(ConfigurationInner::APPLICATION_DISPLAYID, std::to_string(displayId)); in InitDisplayConfig()
115 void ConfigurationUtils::UpdateDisplayConfig(Rosen::DisplayId displayId, std::shared_ptr<Configurat… in UpdateDisplayConfig() argument
126 if (!GetDisplayConfig(displayId, density, direction)) { in UpdateDisplayConfig()
131 … newConfig.AddItem(displayId, ConfigurationInner::APPLICATION_DENSITYDPI, GetDensityStr(density)); in UpdateDisplayConfig()
132 newConfig.AddItem(displayId, ConfigurationInner::APPLICATION_DIRECTION, direction); in UpdateDisplayConfig()
150 bool ConfigurationUtils::GetDisplayConfig(Rosen::DisplayId displayId, float &density, in GetDisplayConfig() argument
[all …]
/foundation/window/window_manager/test/fuzztest/dms/displaymanager_fuzzer/
Ddisplaymanager_fuzzer.cpp69 DisplayId displayId; in DisplayFuzzTest() local
71 if (data == nullptr || size < sizeof(displayId) + sizeof(screenId)) { in DisplayFuzzTest()
82 startPos += GetObject<DisplayId>(displayId, data + startPos, size - startPos); in DisplayFuzzTest()
83 displayManager.GetDisplayById(displayId); in DisplayFuzzTest()
88 displayManager.HasPrivateWindow(displayId, flag); in DisplayFuzzTest()
100 displayManager.AddSurfaceNodeToDisplay(displayId, surfaceNode); in DisplayFuzzTest()
101 displayManager.RemoveSurfaceNodeFromDisplay(displayId, surfaceNode); in DisplayFuzzTest()
107 DisplayId displayId; in GetScreenshotFuzzTest() local
111 …if (data == nullptr || size < sizeof(displayId) + sizeof(rect) + sizeof(size) + sizeof(rotation)) { in GetScreenshotFuzzTest()
116 startPos += GetObject<DisplayId>(displayId, data + startPos, size - startPos); in GetScreenshotFuzzTest()
[all …]
/foundation/window/window_manager/snapshot/src/
Dsnapshot_display.cpp40 auto display = DisplayManager::GetInstance().GetDisplayById(cmdArgments.displayId); in main()
42 std::cout << "error: GetDisplayById " << cmdArgments.displayId << " error!" << std::endl; in main()
46 std::cout << "process: display " << cmdArgments.displayId << in main()
52 …pixelMap = DisplayManager::GetInstance().GetScreenshot(cmdArgments.displayId); // default width & … in main()
70 …pixelMap = DisplayManager::GetInstance().GetScreenshot(cmdArgments.displayId, rect, size, rotation… in main()
78 std::cout << "\nerror: snapshot display " << cmdArgments.displayId << in main()
83 std::cout << "\nsuccess: snapshot display " << cmdArgments.displayId << " , write to " << in main()
/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_common/
Dnapi_common_start_options.cpp40 int32_t displayId = 0; in UnwrapStartOptions() local
41 if (UnwrapInt32ByPropertyName(env, param, "displayId", displayId)) { in UnwrapStartOptions()
42 HILOG_INFO("get display id ok displayId %{public}d", displayId); in UnwrapStartOptions()
43 startOptions.SetDisplayID(displayId); in UnwrapStartOptions()
/foundation/ability/ability_runtime/interfaces/kits/native/ability/native/
Djs_service_extension.h188 void OnCreate(Rosen::DisplayId displayId) override in OnCreate() argument
192 sptr->OnCreate(displayId); in OnCreate()
196 void OnDestroy(Rosen::DisplayId displayId) override in OnDestroy() argument
200 sptr->OnDestroy(displayId); in OnDestroy()
204 void OnChange(Rosen::DisplayId displayId) override in OnChange() argument
208 sptr->OnChange(displayId); in OnChange()
216 void OnCreate(Rosen::DisplayId displayId);
217 void OnDestroy(Rosen::DisplayId displayId);
218 void OnChange(Rosen::DisplayId displayId);

12345678910>>...12