Home
last modified time | relevance | path

Searched refs:windowId (Results 1 – 25 of 63) sorted by relevance

123

/foundation/distributedhardware/distributedscreen/services/screenclient/src/
Dscreen_client.cpp51 int32_t windowId = ++windowId_; in AddWindow() local
52 …Surface> surface = ScreenClientWindowAdapter::GetInstance().CreateWindow(windowProperty, windowId); in AddWindow()
59 surfaceMap_.emplace(windowId, surface); in AddWindow()
61 DHLOGI("Add window (ID = %d) success.", windowId); in AddWindow()
62 return windowId; in AddWindow()
65 int32_t ScreenClient::ShowWindow(int32_t windowId) in ShowWindow() argument
69 auto iter = surfaceMap_.find(windowId); in ShowWindow()
71 DHLOGE("windowId (ID = %d) is non-existent.", windowId); in ShowWindow()
75 int32_t ret = ScreenClientWindowAdapter::GetInstance().ShowWindow(windowId); in ShowWindow()
77 DHLOGE("Show window (ID = %d) failed.", windowId); in ShowWindow()
[all …]
Dscreen_client_window_adapter.cpp52 int32_t windowId) in CreateWindow() argument
62 std::string windowName = SCREEN_CLIENT_WINDOW + std::to_string(windowId); in CreateWindow()
90 windowIdMap_.emplace(windowId, window); in CreateWindow()
92 DHLOGD("Get surface(windowId = %d) success.", windowId); in CreateWindow()
96 int32_t ScreenClientWindowAdapter::ShowWindow(int32_t windowId) in ShowWindow() argument
101 auto iter = windowIdMap_.find(windowId); in ShowWindow()
116 DHLOGD("Show window (windowId = %d) success.", windowId); in ShowWindow()
120 int32_t ScreenClientWindowAdapter::HideWindow(int32_t windowId) in HideWindow() argument
125 auto iter = windowIdMap_.find(windowId); in HideWindow()
140 DHLOGD("Hide window (windowId = %d) success.", windowId); in HideWindow()
[all …]
/foundation/windowmanager/wm/src/
Dinput_transfer_station.cpp32 uint32_t windowId = static_cast<uint32_t>(keyEvent->GetAgentWindowId()); in WM_IMPLEMENT_SINGLE_INSTANCE() local
33 WLOGFI("Receive keyEvent, windowId: %{public}u", windowId); in WM_IMPLEMENT_SINGLE_INSTANCE()
34 auto channel = InputTransferStation::GetInstance().GetInputChannel(windowId); in WM_IMPLEMENT_SINGLE_INSTANCE()
58 uint32_t windowId = static_cast<uint32_t>(pointerEvent->GetAgentWindowId()); in OnInputEvent() local
59 WLOGFI("Receive pointerEvent, windowId: %{public}u", windowId); in OnInputEvent()
60 auto channel = InputTransferStation::GetInstance().GetInputChannel(windowId); in OnInputEvent()
70 uint32_t windowId = window->GetWindowId(); in AddInputWindow() local
71 WLOGFI("Add input window, windowId: %{public}u", windowId); in AddInputWindow()
74 windowInputChannels_.insert(std::make_pair(windowId, inputChannel)); in AddInputWindow()
85 uint32_t windowId = window->GetWindowId(); in RemoveInputWindow() local
[all …]
Dwindow_adapter.cpp37 WMError WindowAdapter::SaveAbilityToken(const sptr<IRemoteObject>& abilityToken, uint32_t windowId)
41 return windowManagerServiceProxy_->SaveAbilityToken(abilityToken, windowId);
45 std::shared_ptr<RSSurfaceNode> surfaceNode, uint32_t& windowId) in CreateWindow() argument
49 return windowManagerServiceProxy_->CreateWindow(window, windowProperty, surfaceNode, windowId); in CreateWindow()
59 WMError WindowAdapter::RemoveWindow(uint32_t windowId) in RemoveWindow() argument
63 return windowManagerServiceProxy_->RemoveWindow(windowId); in RemoveWindow()
66 WMError WindowAdapter::DestroyWindow(uint32_t windowId) in DestroyWindow() argument
70 return windowManagerServiceProxy_->DestroyWindow(windowId); in DestroyWindow()
73 WMError WindowAdapter::RequestFocus(uint32_t windowId) in RequestFocus() argument
77 return windowManagerServiceProxy_->RequestFocus(windowId); in RequestFocus()
[all …]
/foundation/windowmanager/wmserver/src/
Dwindow_manager_service.cpp113 const std::shared_ptr<RSSurfaceNode>& surfaceNode, uint32_t& windowId) in CreateWindow() argument
115 WM_SCOPED_TRACE("wms:CreateWindow(%u)", windowId); in CreateWindow()
125 return windowController_->CreateWindow(window, property, surfaceNode, windowId); in CreateWindow()
131 uint32_t windowId = property->GetWindowId(); in AddWindow() local
133 "%{public}4d %{public}4d]", windowId, property->GetWindowType(), property->GetWindowMode(), in AddWindow()
136 WM_SCOPED_TRACE("wms:AddWindow(%d)", windowId); in AddWindow()
140 dragController_->StartDrag(windowId); in AddWindow()
145 WMError WindowManagerService::RemoveWindow(uint32_t windowId) in RemoveWindow() argument
147 WLOGFI("[WMS] Remove: %{public}u", windowId); in RemoveWindow()
148 WM_SCOPED_TRACE("wms:RemoveWindow(%u)", windowId); in RemoveWindow()
[all …]
Dwindow_controller.cpp36 const std::shared_ptr<RSSurfaceNode>& surfaceNode, uint32_t& windowId) in CreateWindow() argument
43 windowId = GenWindowId(); in CreateWindow()
45 windowProperty->SetWindowId(windowId); in CreateWindow()
51 …rror WindowController::SaveAbilityToken(const sptr<IRemoteObject>& abilityToken, uint32_t windowId) in SaveAbilityToken() argument
53 auto node = windowRoot_->GetWindowNode(windowId); in SaveAbilityToken()
150 WMError WindowController::RemoveWindowNode(uint32_t windowId) in RemoveWindowNode() argument
152 WMError res = windowRoot_->RemoveWindowNode(windowId); in RemoveWindowNode()
157 FlushWindowInfo(windowId); in RemoveWindowNode()
161 WMError WindowController::DestroyWindow(uint32_t windowId, bool onlySelf) in DestroyWindow() argument
164 auto node = windowRoot_->GetWindowNode(windowId); in DestroyWindow()
[all …]
Dwindow_root.cpp116 sptr<WindowNode> WindowRoot::GetWindowNode(uint32_t windowId) const in GetWindowNode()
118 auto iter = windowNodeMap_.find(windowId); in GetWindowNode()
156 std::vector<Rect> WindowRoot::GetAvoidAreaByType(uint32_t windowId, AvoidAreaType avoidAreaType) in GetAvoidAreaByType() argument
159 auto node = GetWindowNode(windowId); in GetAvoidAreaByType()
183 WMError WindowRoot::MaxmizeWindow(uint32_t windowId) in MaxmizeWindow() argument
185 auto node = GetWindowNode(windowId); in MaxmizeWindow()
251 WMError WindowRoot::RemoveWindowNode(uint32_t windowId) in RemoveWindowNode() argument
253 auto node = GetWindowNode(windowId); in RemoveWindowNode()
266 UpdateBrightnessWithWindowRemoved(windowId, container); in RemoveWindowNode()
277 HandleKeepScreenOn(windowId, false); in RemoveWindowNode()
[all …]
Ddrag_controller.cpp33 void DragController::UpdateDragInfo(uint32_t windowId) in UpdateDragInfo() argument
36 if (!GetHitPoint(windowId, point)) { in UpdateDragInfo()
39 sptr<WindowNode> dragNode = windowRoot_->GetWindowNode(windowId); in UpdateDragInfo()
60 void DragController::StartDrag(uint32_t windowId) in StartDrag() argument
63 if (!GetHitPoint(windowId, point)) { in StartDrag()
67 sptr<WindowNode> dragNode = windowRoot_->GetWindowNode(windowId); in StartDrag()
77 hitWindowId_ = windowId; in StartDrag()
81 void DragController::FinishDrag(uint32_t windowId) in FinishDrag() argument
83 sptr<WindowNode> node = windowRoot_->GetWindowNode(windowId); in FinishDrag()
128 bool DragController::GetHitPoint(uint32_t windowId, PointInfo& point) in GetHitPoint() argument
[all …]
Davoid_area_controller.cpp65 uint32_t windowId = node->GetWindowId(); in AvoidControl() local
66 auto iter = avoidNodes_.find(windowId); in AvoidControl()
69 … WLOGFE("WinId:%{public}d is added. AvoidControl Add Failed. Type: %{public}u", windowId, type); in AvoidControl()
74 …nId:%{public}d not exist. AvoidControl Update or Remove Failed. Type: %{public}u", windowId, type); in AvoidControl()
80 avoidNodes_[windowId] = node; in AvoidControl()
81 … WLOGFI("WinId:%{public}d add. And the windowType is %{public}d", windowId, node->GetWindowType()); in AvoidControl()
84 avoidNodes_[windowId] = node; in AvoidControl()
85 …WLOGFI("WinId:%{public}d update. And the windowType is %{public}d", windowId, node->GetWindowType(… in AvoidControl()
89 …WLOGFI("WinId:%{public}d remove. And the windowType is %{public}d", windowId, node->GetWindowType(… in AvoidControl()
/foundation/distributedhardware/distributedscreen/services/screenclient/test/unittest/src/
Dscreen_client_window_adapter_test.cpp41 int32_t windowId = 0; variable
42 …e> actualSurface = ScreenClientWindowAdapter::GetInstance().CreateWindow(windowProperty, windowId);
55 int32_t windowId = 2; variable
57 …e> actualSurface = ScreenClientWindowAdapter::GetInstance().CreateWindow(windowProperty, windowId);
69 int32_t windowId = 0; variable
70 int32_t actual = ScreenClientWindowAdapter::GetInstance().ShowWindow(windowId);
82 int32_t windowId = 1; variable
83 int32_t actual = ScreenClientWindowAdapter::GetInstance().ShowWindow(windowId);
95 int32_t windowId = 0; variable
98 int32_t actual = ScreenClientWindowAdapter::GetInstance().MoveWindow(windowId, startX, startY);
[all …]
Dscreen_client_test.cpp40 int32_t windowId = 0; variable
41 int32_t actual = ScreenClient::GetInstance().ShowWindow(windowId);
55 int32_t windowId = ScreenClient::GetInstance().AddWindow(windowProperty); variable
56 int32_t actual = ScreenClient::GetInstance().ShowWindow(windowId);
95 int32_t windowId = 0; variable
98 int32_t actual = ScreenClient::GetInstance().MoveWindow(windowId, startX, startY);
110 int32_t windowId = 1; variable
113 int32_t actual = ScreenClient::GetInstance().MoveWindow(windowId, startX, startY);
125 int32_t windowId = 0; variable
126 int32_t actual = ScreenClient::GetInstance().RemoveWindow(windowId);
[all …]
/foundation/windowmanager/wmserver/include/
Dwindow_controller.h34 const std::shared_ptr<RSSurfaceNode>& surfaceNode, uint32_t& windowId);
36 WMError RemoveWindowNode(uint32_t windowId);
37 WMError DestroyWindow(uint32_t windowId, bool onlySelf);
38 WMError RequestFocus(uint32_t windowId);
39 WMError SaveAbilityToken(const sptr<IRemoteObject>& abilityToken, uint32_t windowId);
40 WMError SetWindowBackgroundBlur(uint32_t windowId, WindowBlurLevel level);
41 WMError SetAlpha(uint32_t windowId, float alpha);
42 std::vector<Rect> GetAvoidAreaByType(uint32_t windowId, AvoidAreaType avoidAreaType);
45 WMError ProcessPointDown(uint32_t windowId, bool isStartDrag);
46 WMError ProcessPointUp(uint32_t windowId);
[all …]
Dwindow_manager_service.h51 const std::shared_ptr<RSSurfaceNode>& surfaceNode, uint32_t& windowId) override;
53 WMError RemoveWindow(uint32_t windowId) override;
54 WMError DestroyWindow(uint32_t windowId, bool onlySelf = false) override;
55 WMError RequestFocus(uint32_t windowId) override;
56 WMError SaveAbilityToken(const sptr<IRemoteObject>& abilityToken, uint32_t windowId) override;
57 WMError SetWindowBackgroundBlur(uint32_t windowId, WindowBlurLevel level) override;
58 WMError SetAlpha(uint32_t windowId, float alpha) override;
59 std::vector<Rect> GetAvoidAreaByType(uint32_t windowId, AvoidAreaType avoidAreaType) override;
60 void ProcessPointDown(uint32_t windowId, bool isStartDrag) override;
61 void ProcessPointUp(uint32_t windowId) override;
[all …]
Dwindow_root.h33 using Callback = std::function<void (Event event, uint32_t windowId)>;
41 sptr<WindowNode> GetWindowNode(uint32_t windowId) const;
45 WMError RemoveWindowNode(uint32_t windowId);
46 WMError DestroyWindow(uint32_t windowId, bool onlySelf);
47 WMError UpdateWindowNode(uint32_t windowId, WindowUpdateReason reason);
50 WMError RequestFocus(uint32_t windowId);
51 WMError RequestActiveWindow(uint32_t windowId);
53 std::vector<Rect> GetAvoidAreaByType(uint32_t windowId, AvoidAreaType avoidAreaType);
59 WMError MaxmizeWindow(uint32_t windowId);
70 WMError UpdateSizeChangeReason(uint32_t windowId, WindowSizeChangeReason reason);
[all …]
Ddrag_controller.h30 void StartDrag(uint32_t windowId);
31 void UpdateDragInfo(uint32_t windowId);
32 void FinishDrag(uint32_t windowId);
35 bool GetHitPoint(uint32_t windowId, PointInfo& point);
/foundation/windowmanager/wmserver/src/zidl/
Dwindow_manager_stub.cpp40 uint32_t windowId; in OnRemoteRequest() local
41 WMError errCode = CreateWindow(windowProxy, windowProperty, surfaceNode, windowId); in OnRemoteRequest()
42 reply.WriteUint32(windowId); in OnRemoteRequest()
53 uint32_t windowId = data.ReadUint32(); in OnRemoteRequest() local
54 WMError errCode = RemoveWindow(windowId); in OnRemoteRequest()
59 uint32_t windowId = data.ReadUint32(); in OnRemoteRequest() local
60 WMError errCode = DestroyWindow(windowId); in OnRemoteRequest()
65 uint32_t windowId = data.ReadUint32(); in OnRemoteRequest() local
66 WMError errCode = RequestFocus(windowId); in OnRemoteRequest()
71 uint32_t windowId = data.ReadUint32(); in OnRemoteRequest() local
[all …]
Dwindow_manager_proxy.cpp28 const std::shared_ptr<RSSurfaceNode>& surfaceNode, uint32_t& windowId) in CreateWindow() argument
56 windowId = reply.ReadUint32(); in CreateWindow()
84 WMError WindowManagerProxy::RemoveWindow(uint32_t windowId) in RemoveWindow() argument
94 if (!data.WriteUint32(windowId)) { in RemoveWindow()
107 WMError WindowManagerProxy::DestroyWindow(uint32_t windowId, bool /* onlySelf */) in DestroyWindow() argument
117 if (!data.WriteUint32(windowId)) { in DestroyWindow()
130 WMError WindowManagerProxy::RequestFocus(uint32_t windowId) in RequestFocus() argument
140 if (!data.WriteUint32(windowId)) { in RequestFocus()
152 WMError WindowManagerProxy::SetWindowBackgroundBlur(uint32_t windowId, WindowBlurLevel level) in SetWindowBackgroundBlur() argument
161 if (!data.WriteUint32(windowId)) { in SetWindowBackgroundBlur()
[all …]
/foundation/windowmanager/wmserver/include/zidl/
Dwindow_manager_proxy.h31 const std::shared_ptr<RSSurfaceNode>& surfaceNode, uint32_t& windowId) override;
33 WMError RemoveWindow(uint32_t windowId) override;
34 WMError DestroyWindow(uint32_t windowId, bool onlySelf = false) override;
35 WMError RequestFocus(uint32_t windowId) override;
36 WMError SaveAbilityToken(const sptr<IRemoteObject>& abilityToken, uint32_t windowId) override;
37 WMError SetWindowBackgroundBlur(uint32_t windowId, WindowBlurLevel level) override;
38 WMError SetAlpha(uint32_t windowId, float alpha) override;
39 std::vector<Rect> GetAvoidAreaByType(uint32_t windowId, AvoidAreaType type) override;
41 void ProcessPointDown(uint32_t windowId, bool isStartDrag) override;
42 void ProcessPointUp(uint32_t windowId) override;
[all …]
Dwindow_manager_interface.h54 const std::shared_ptr<RSSurfaceNode>& surfaceNode, uint32_t& windowId) = 0;
56 virtual WMError RemoveWindow(uint32_t windowId) = 0;
57 virtual WMError DestroyWindow(uint32_t windowId, bool onlySelf = false) = 0;
58 virtual WMError RequestFocus(uint32_t windowId) = 0;
59 virtual WMError SetWindowBackgroundBlur(uint32_t windowId, WindowBlurLevel level) = 0;
60 virtual WMError SetAlpha(uint32_t windowId, float alpha) = 0;
61 … virtual WMError SaveAbilityToken(const sptr<IRemoteObject>& abilityToken, uint32_t windowId) = 0;
62 virtual std::vector<Rect> GetAvoidAreaByType(uint32_t windowId, AvoidAreaType type) = 0;
64 virtual void ProcessPointDown(uint32_t windowId, bool isStartDrag) = 0;
65 virtual void ProcessPointUp(uint32_t windowId) = 0;
[all …]
/foundation/windowmanager/wm/include/
Dwindow_adapter.h39 std::shared_ptr<RSSurfaceNode> surfaceNode, uint32_t& windowId);
41 virtual WMError RemoveWindow(uint32_t windowId);
42 virtual WMError DestroyWindow(uint32_t windowId);
43 virtual WMError SaveAbilityToken(const sptr<IRemoteObject>& abilityToken, uint32_t windowId);
44 virtual WMError RequestFocus(uint32_t windowId);
45 …virtual WMError GetAvoidAreaByType(uint32_t windowId, AvoidAreaType type, std::vector<Rect>& avoid…
46 virtual WMError SetWindowBackgroundBlur(uint32_t windowId, WindowBlurLevel level);
47 virtual WMError SetAlpha(uint32_t windowId, float alpha);
49 virtual void ProcessPointDown(uint32_t windowId, bool isStartDrag = false);
50 virtual void ProcessPointUp(uint32_t windowId);
[all …]
/foundation/windowmanager/wm/test/unittest/
Dmock_window_adapter.h27 std::shared_ptr<RSSurfaceNode> surfaceNode, uint32_t& windowId));
29 MOCK_METHOD1(RemoveWindow, WMError(uint32_t windowId));
31 MOCK_METHOD1(DestroyWindow, WMError(uint32_t windowId));
32 MOCK_METHOD2(SetWindowBackgroundBlur, WMError(uint32_t windowId, WindowBlurLevel level));
33 MOCK_METHOD2(SetAlpha, WMError(uint32_t windowId, float alpha));
34 …OCK_METHOD2(SaveAbilityToken, WMError(const sptr<IRemoteObject>& abilityToken, uint32_t windowId));
36 MOCK_METHOD1(MaxmizeWindow, WMError(uint32_t windowId));
/foundation/resourceschedule/resource_schedule_service/cgroup_sched/framework/sched_controller/
Dwindow_state_observer.cpp29 auto windowId = focusChangeInfo->windowId_; in OnFocused() local
36 cgHander->PostTask([cgHander, windowId, token, windowType, displayId, pid, uid] { in OnFocused()
37 cgHander->HandleFocusedWindow(windowId, token, windowType, displayId, pid, uid); in OnFocused()
46 auto windowId = focusChangeInfo->windowId_; in OnUnfocused() local
53 cgHander->PostTask([cgHander, windowId, token, windowType, displayId, pid, uid] { in OnUnfocused()
54 cgHander->HandleUnfocusedWindow(windowId, token, windowType, displayId, pid, uid); in OnUnfocused()
70 auto windowId = info->windowId_; in OnWindowVisibilityChanged() local
74 cgHander->PostTask([cgHander, windowId, isVisible, pid, uid] { in OnWindowVisibilityChanged()
75 cgHander->HandleWindowVisibilityChanged(windowId, isVisible, pid, uid); in OnWindowVisibilityChanged()
/foundation/distributedhardware/distributedscreen/services/screenclient/include/
Dscreen_client.h39 sptr<Surface> GetSurface(int32_t windowId);
40 int32_t ShowWindow(int32_t windowId);
41 int32_t MoveWindow(int32_t windowId, int32_t startX, int32_t startY);
42 int32_t RemoveWindow(int32_t windowId);
43 int32_t HideWindow(int32_t windowId);
Dscreen_client_window_adapter.h38 sptr<Surface> CreateWindow(std::shared_ptr<WindowProperty> windowProperty, int32_t windowId);
39 int32_t ShowWindow(int32_t windowId);
40 int32_t HideWindow(int32_t windowId);
41 int32_t MoveWindow(int32_t windowId, int32_t startX, int32_t startY);
42 int32_t RemoveWindow(int32_t windowId);
/foundation/graphic/standard/frameworks/wmserver/src/
Dwmserver.c278 uint32_t windowId) in CheckWindowId() argument
283 if ((windowId >> WINDOW_ID_BIT) == pid) { in CheckWindowId()
304 static void ClearWindowId(struct WmsController *pController, uint32_t windowId) in ClearWindowId() argument
306 DEBUG_LOG("windowId %{public}d.", windowId); in ClearWindowId()
307 if (GetBit(pController->windowIdFlags, windowId % WINDOW_ID_LIMIT) != 0) { in ClearWindowId()
308 ClearBit(&pController->windowIdFlags, windowId % WINDOW_ID_LIMIT); in ClearWindowId()
311 LOGE("windowIdFlags %{public}d is not set.", windowId % WINDOW_ID_LIMIT); in ClearWindowId()
317 uint32_t windowId = WINDOW_ID_INVALID; in GetWindowId() local
321 return windowId; in GetWindowId()
326 return windowId; in GetWindowId()
[all …]

123