Lines Matching refs:windowId

249     const std::shared_ptr<RSSurfaceNode>& surfaceNode, uint32_t& windowId, sptr<IRemoteObject> token,
266 StartingWindow::HandleClientWindowCreate(node, window, windowId, surfaceNode, property, pid, uid);
280 windowId = GenWindowId();
282 windowProperty->SetWindowId(windowId);
289 WLOGFD("createWindow id:%{public}u", windowId);
291 node->stateMachine_.SetWindowId(windowId);
324 WLOGFE("Current window is visible, windowId: %{public}u", node->GetWindowId());
505 WLOGFD("Calling windowId: %{public}u, calling winRect: [%{public}d, %{public}d, %{public}u, %{public}u], "
594 WMError WindowController::RemoveWindowNode(uint32_t windowId, bool fromAnimation)
596 auto windowNode = windowRoot_->GetWindowNode(windowId);
601 auto removeFunc = [this, windowId, windowNode, fromAnimation]() {
602 WMError res = windowRoot_->RemoveWindowNode(windowId, fromAnimation);
608 FlushWindowInfo(windowId);
646 WMError WindowController::DestroyWindow(uint32_t windowId, bool onlySelf)
649 auto node = windowRoot_->GetWindowNode(windowId);
651 WLOGFE("Destroy window %{public}u failed.", windowId);
656 WMError res = windowRoot_->DestroyWindow(windowId, onlySelf);
679 WMError WindowController::ResizeRect(uint32_t windowId, const Rect& rect, WindowSizeChangeReason reason)
681 auto node = windowRoot_->GetWindowNode(windowId);
726 WMError res = windowRoot_->UpdateWindowNode(windowId, WindowUpdateReason::UPDATE_RECT);
734 WMError WindowController::ResizeRectAndFlush(uint32_t windowId, const Rect& rect, WindowSizeChangeReason reason)
736 WMError res = ResizeRect(windowId, rect, reason);
740 FlushWindowInfo(windowId);
745 WMError WindowController::RequestFocus(uint32_t windowId)
750 WMError res = windowRoot_->RequestFocus(windowId);
751 FlushWindowInfo(windowId);
752 accessibilityConnection_->NotifyAccessibilityWindowInfo(windowRoot_->GetWindowNode(windowId),
757 WMError WindowController::SetWindowMode(uint32_t windowId, WindowMode dstMode)
760 auto node = windowRoot_->GetWindowNode(windowId);
769 FlushWindowInfo(windowId);
992 std::shared_ptr<Media::PixelMap> WindowController::GetSnapshot(int32_t windowId)
994 auto node = windowRoot_->GetWindowNode(windowId);
1008 WMError WindowController::SetWindowType(uint32_t windowId, WindowType type)
1010 auto node = windowRoot_->GetWindowNode(windowId);
1018 WMError res = windowRoot_->UpdateWindowNode(windowId, WindowUpdateReason::UPDATE_TYPE);
1022 FlushWindowInfo(windowId);
1028 WMError WindowController::SetWindowFlags(uint32_t windowId, uint32_t flags, bool isSystemCalling)
1030 auto node = windowRoot_->GetWindowNode(windowId);
1047 WMError res = windowRoot_->UpdateWindowNode(windowId, WindowUpdateReason::UPDATE_FLAGS);
1051 FlushWindowInfo(windowId);
1057 WMError WindowController::SetSystemBarProperty(uint32_t windowId, WindowType type, const SystemBarProperty& property)
1059 auto node = windowRoot_->GetWindowNode(windowId);
1065 WMError res = windowRoot_->UpdateWindowNode(windowId, WindowUpdateReason::UPDATE_OTHER_PROPS);
1069 FlushWindowInfo(windowId);
1085 AvoidArea WindowController::GetAvoidAreaByType(uint32_t windowId, AvoidAreaType avoidAreaType) const
1087 return windowRoot_->GetAvoidAreaByType(windowId, avoidAreaType);
1090 WMError WindowController::ChangeMouseStyle(uint32_t windowId, sptr<MoveDragProperty>& moveDragProperty)
1092 auto node = windowRoot_->GetWindowNode(windowId);
1102 int32_t res = MMI::InputManager::GetInstance()->SetPointerStyle(windowId, pointerStyle);
1110 int32_t res = MMI::InputManager::GetInstance()->SetPointerStyle(windowId, pointerStyle);
1118 WMError WindowController::NotifyServerReadyToMoveOrDrag(uint32_t windowId, sptr<MoveDragProperty>& moveDragProperty)
1120 auto node = windowRoot_->GetWindowNode(windowId);
1126 WLOGFE("Window is invisible, windowId: %{public}u", windowId);
1137 WMError res = windowRoot_->UpdateSizeChangeReason(windowId, WindowSizeChangeReason::DRAG_START);
1138 ChangeMouseStyle(windowId, moveDragProperty);
1149 WMError WindowController::ProcessPointDown(uint32_t windowId, bool isPointDown)
1151 auto node = windowRoot_->GetWindowNode(windowId);
1157 WLOGFE("Window is invisible, windowId: %{public}u", windowId);
1171 WLOGFD("WindowId: %{public}u", windowId);
1173 WMError focusRes = windowRoot_->RequestFocus(windowId);
1174 windowRoot_->RequestActiveWindow(windowId);
1177 FlushWindowInfo(windowId);
1178 accessibilityConnection_->NotifyAccessibilityWindowInfo(windowRoot_->GetWindowNode(windowId),
1186 WMError WindowController::ProcessPointUp(uint32_t windowId)
1188 auto node = windowRoot_->GetWindowNode(windowId);
1202 WMError res = windowRoot_->UpdateWindowNode(windowId, WindowUpdateReason::UPDATE_RECT);
1204 FlushWindowInfo(windowId);
1214 WMError res = windowRoot_->UpdateSizeChangeReason(windowId, WindowSizeChangeReason::DRAG_END);
1221 WMError WindowController::InterceptInputEventToServer(uint32_t windowId)
1223 auto node = windowRoot_->GetWindowNode(windowId);
1229 WLOGI("InterceptInputEventToServer, windowId: %{public}u, inputPid: %{public}u", windowId, inputPidInServer);
1231 FlushWindowInfo(windowId);
1235 WMError WindowController::RecoverInputEventToClient(uint32_t windowId)
1237 auto node = windowRoot_->GetWindowNode(windowId);
1248 RecoverDefaultMouseStyle(windowId);
1249 FlushWindowInfo(windowId);
1253 void WindowController::RecoverDefaultMouseStyle(uint32_t windowId)
1258 auto task = [this, windowId, pointerStyle]() {
1259 int32_t res = MMI::InputManager::GetInstance()->SetPointerStyle(windowId, pointerStyle);
1268 WMError WindowController::RaiseToAppTop(uint32_t windowId)
1270 auto node = windowRoot_->GetWindowNode(windowId);
1289 FlushWindowInfo(windowId);
1293 void WindowController::DispatchKeyEvent(uint32_t windowId, std::shared_ptr<MMI::KeyEvent> event)
1295 auto node = windowRoot_->GetWindowNode(windowId);
1313 uint32_t windowId = node->GetWindowId();
1321 windowRoot_->RequestFocus(windowId);
1322 windowRoot_->RequestActiveWindow(windowId);
1325 accessibilityConnection_->NotifyAccessibilityWindowInfo(windowRoot_->GetWindowNode(windowId),
1330 WMError WindowController::NotifyWindowClientPointUp(uint32_t windowId,
1333 auto node = windowRoot_->GetWindowNode(windowId);
1339 WLOGI("notify client when receive point_up event, windowId: %{public}u", windowId);
1366 void WindowController::FlushWindowInfo(uint32_t windowId)
1369 displayZoomController_->UpdateWindowZoomInfo(windowId);
1371 inputWindowMonitor_->UpdateInputWindow(windowId);
1390 uint32_t windowId = node->GetWindowProperty()->GetWindowId();
1391 WLOGFD("Id: %{public}u, anim_Flag: %{public}u", windowId, animationFlag);
1438 uint32_t windowId = property->GetWindowId();
1439 auto node = windowRoot_->GetWindowNode(windowId);
1451 ret = ResizeRectAndFlush(windowId, property->GetRequestRect(), property->GetWindowSizeChangeReason());
1453 callingWindowId_ == windowId && !WindowHelper::IsEmptyRect(callingWindowRestoringRect_)) {
1467 ret = SetWindowMode(windowId, property->GetWindowMode());
1471 ret = SetWindowFlags(windowId, property->GetWindowFlags(), property->isSystemCalling_);
1477 SetSystemBarProperty(windowId, iter.first, iter.second);
1483 windowRoot_->UpdateFocusableProperty(windowId);
1484 FlushWindowInfo(windowId);
1490 FlushWindowInfo(windowId);
1540 ret = UpdateTransform(windowId);
1579 ret = SetAspectRatio(windowId, property->GetAspectRatio());
1598 windowId, static_cast<uint32_t>(mode), newRect.posX_, newRect.posY_, newRect.width_, newRect.height_);
1599 ret = ResizeRectAndFlush(windowId, newRect, WindowSizeChangeReason::MAXIMIZE);
1613 WMError WindowController::SetWindowGravity(uint32_t windowId, WindowGravity gravity, uint32_t percent)
1615 sptr<WindowNode> node = windowRoot_->GetWindowNode(windowId);
1629 WMError res = windowRoot_->UpdateWindowNode(windowId, WindowUpdateReason::UPDATE_RECT);
1633 FlushWindowInfo(windowId);
1647 WMError WindowController::SetAspectRatio(uint32_t windowId, float ratio)
1649 WLOGI("SetAspectRatio, windowId: %{public}u, %{public}f", windowId, ratio);
1651 auto node = windowRoot_->GetWindowNode(windowId);
1678 WMError res = windowRoot_->UpdateWindowNode(windowId, WindowUpdateReason::UPDATE_ASPECT_RATIO);
1682 FlushWindowInfo(windowId);
1692 WMError WindowController::GetUnreliableWindowInfo(int32_t windowId,
1695 windowRoot_->GetUnreliableWindowInfo(windowId, infos);
1722 WLOGI("windowId: %{public}u, size: %{public}d, rects: %{public}s",
1750 WMError WindowController::UpdateTransform(uint32_t windowId)
1752 WMError res = windowRoot_->UpdateWindowNode(windowId, WindowUpdateReason::UPDATE_TRANSFORM);
1756 FlushWindowInfo(windowId);
1757 accessibilityConnection_->NotifyAccessibilityWindowInfo(windowRoot_->GetWindowNode(windowId),
1874 WMError WindowController::BindDialogTarget(uint32_t& windowId, sptr<IRemoteObject> targetToken)
1876 auto node = windowRoot_->GetWindowNode(windowId);