Lines Matching refs:WMError

69 WMError WindowAdapter::CreateWindow(sptr<IWindow>& window, sptr<WindowProperty>& windowProperty,
72 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
75 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
79 WMError WindowAdapter::AddWindow(sptr<WindowProperty>& windowProperty)
81 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
84 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
88 WMError WindowAdapter::RemoveWindow(uint32_t windowId, bool isFromInnerkits)
90 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
93 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
97 WMError WindowAdapter::DestroyWindow(uint32_t windowId)
99 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
102 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
106 WMError WindowAdapter::RequestFocus(uint32_t windowId)
108 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
111 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
115 WMError WindowAdapter::RegisterWindowManagerAgent(WindowManagerAgentType type,
118 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
121 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
134 WMError WindowAdapter::UnregisterWindowManagerAgent(WindowManagerAgentType type,
137 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
140 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
160 WMError WindowAdapter::CheckWindowId(int32_t windowId, int32_t& pid)
162 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
165 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
169 WMError WindowAdapter::GetAccessibilityWindowInfo(std::vector<sptr<AccessibilityWindowInfo>>& infos)
171 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
174 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
178 WMError WindowAdapter::GetUnreliableWindowInfo(int32_t windowId,
181 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
184 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
188 WMError WindowAdapter::GetVisibilityWindowInfo(std::vector<sptr<WindowVisibilityInfo>>& infos)
190 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
193 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
197 WMError WindowAdapter::SetWindowAnimationController(const sptr<RSIWindowAnimationController>& controller)
199 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
202 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
206 WMError WindowAdapter::GetAvoidAreaByType(uint32_t windowId, AvoidAreaType type, AvoidArea& avoidArea)
208 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
211 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
213 return WMError::WM_OK;
244 WMError WindowAdapter::MinimizeAllAppWindows(DisplayId displayId)
246 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
249 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
253 WMError WindowAdapter::ToggleShownStateForAllAppWindows()
255 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
258 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
262 WMError WindowAdapter::GetSystemConfig(SystemConfig& systemConfig)
264 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
267 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
271 WMError WindowAdapter::GetModeChangeHotZones(DisplayId displayId, ModeChangeHotZones& hotZones)
273 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
276 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
325 WMError WindowAdapter::GetSnapshotByWindowId(int32_t windowId, std::shared_ptr<Media::PixelMap>& pixelMap)
327 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_IPC_FAILED);
330 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_IPC_FAILED);
343 WMError WindowAdapter::RegisterWMSConnectionChangedListener(const WMSConnectionChangedCallbackFunc& callbackFunc)
367 if (ret != WMError::WM_OK) {
386 if (windowManagerServiceProxy_->RegisterWindowManagerAgent(it.first, agent) != WMError::WM_OK) {
462 WMError WindowAdapter::GetTopWindowId(uint32_t mainWinId, uint32_t& topWinId)
464 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
467 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
471 WMError WindowAdapter::GetParentMainWindowId(int32_t windowId, int32_t& mainWindowId)
473 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
476 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
480 WMError WindowAdapter::SetWindowLayoutMode(WindowLayoutMode mode)
482 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
485 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
489 WMError WindowAdapter::UpdateProperty(sptr<WindowProperty>& windowProperty, PropertyChangeAction action)
491 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
494 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
498 WMError WindowAdapter::SetWindowGravity(uint32_t windowId, WindowGravity gravity, uint32_t percent)
500 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
503 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
507 WMError WindowAdapter::NotifyWindowTransition(sptr<WindowTransitionInfo> from, sptr<WindowTransitionInfo> to)
509 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
512 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
526 WMError WindowAdapter::UpdateAvoidAreaListener(uint32_t windowId, bool haveListener)
528 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
531 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
535 WMError WindowAdapter::UpdateRsTree(uint32_t windowId, bool isAdd)
537 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
540 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
544 WMError WindowAdapter::BindDialogTarget(uint32_t& windowId, sptr<IRemoteObject> targetToken)
546 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
549 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
581 WMError WindowAdapter::RaiseToAppTop(uint32_t windowId)
583 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
586 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
599 WMError WindowAdapter::SetGestureNavigationEnabled(bool enable)
601 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
604 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
626 WMError WindowAdapter::DumpSessionAll(std::vector<std::string>& infos)
628 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
631 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
632 return static_cast<WMError>(wmsProxy->DumpSessionAll(infos));
635 WMError WindowAdapter::DumpSessionWithId(int32_t persistentId, std::vector<std::string>& infos)
637 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
640 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
641 return static_cast<WMError>(wmsProxy->DumpSessionWithId(persistentId, infos));
644 WMError WindowAdapter::GetUIContentRemoteObj(int32_t persistentId, sptr<IRemoteObject>& uiContentRemoteObj)
646 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
649 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
650 return static_cast<WMError>(wmsProxy->GetUIContentRemoteObj(persistentId, uiContentRemoteObj));
653 WMError WindowAdapter::GetWindowAnimationTargets(std::vector<uint32_t> missionIds,
656 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
659 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
690 WMError WindowAdapter::UpdateSessionAvoidAreaListener(int32_t& persistentId, bool haveListener)
692 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
695 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
696 return static_cast<WMError>(wmsProxy->UpdateSessionAvoidAreaListener(persistentId, haveListener));
699 WMError WindowAdapter::UpdateSessionTouchOutsideListener(int32_t& persistentId, bool haveListener)
701 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
704 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
705 return static_cast<WMError>(
709 WMError WindowAdapter::NotifyWindowExtensionVisibilityChange(int32_t pid, int32_t uid, bool visible)
711 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
714 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
715 return static_cast<WMError>(wmsProxy->NotifyWindowExtensionVisibilityChange(pid, uid, visible));
718 WMError WindowAdapter::RaiseWindowToTop(int32_t persistentId)
720 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
723 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
724 return static_cast<WMError>(wmsProxy->RaiseWindowToTop(persistentId));
727 WMError WindowAdapter::UpdateSessionWindowVisibilityListener(int32_t persistentId, bool haveListener)
729 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
732 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
734 return static_cast<WMError>(ret);
737 WMError WindowAdapter::ShiftAppWindowFocus(int32_t sourcePersistentId, int32_t targetPersistentId)
739 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
742 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
743 return static_cast<WMError>(
773 WMError WindowAdapter::DestroyAndDisconnectSpecificSession(const int32_t persistentId)
775 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
778 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
779 return static_cast<WMError>(wmsProxy->DestroyAndDisconnectSpecificSession(persistentId));
782 WMError WindowAdapter::DestroyAndDisconnectSpecificSessionWithDetachCallback(const int32_t persistentId,
785 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
788 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
789 return static_cast<WMError>(
793 WMError WindowAdapter::RecoverAndReconnectSceneSession(const sptr<ISessionStage>& sessionStage,
797 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
801 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
806 return WMError::WM_DO_NOTHING;
808 return WMError::WM_OK;
811 WMError WindowAdapter::SetSessionGravity(int32_t persistentId, SessionGravity gravity, uint32_t percent)
813 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
816 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
817 return static_cast<WMError>(wmsProxy->SetSessionGravity(persistentId, gravity, percent));
820 WMError WindowAdapter::BindDialogSessionTarget(uint64_t persistentId, sptr<IRemoteObject> targetToken)
822 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
825 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
826 return static_cast<WMError>(wmsProxy->BindDialogSessionTarget(persistentId, targetToken));
829 WMError WindowAdapter::RequestFocusStatus(int32_t persistentId, bool isFocused)
831 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
834 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
835 return static_cast<WMError>(wmsProxy->RequestFocusStatus(persistentId, isFocused));
876 WMError WindowAdapter::AddOrRemoveSecureSession(int32_t persistentId, bool shouldHide)
878 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
881 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
882 return static_cast<WMError>(wmsProxy->AddOrRemoveSecureSession(persistentId, shouldHide));
885 WMError WindowAdapter::UpdateExtWindowFlags(const sptr<IRemoteObject>& token, uint32_t extWindowFlags,
888 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
891 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
892 return static_cast<WMError>(wmsProxy->UpdateExtWindowFlags(token, extWindowFlags, extWindowActions));
895 WMError WindowAdapter::GetHostWindowRect(int32_t hostWindowId, Rect& rect)
897 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
900 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
901 return static_cast<WMError>(wmsProxy->GetHostWindowRect(hostWindowId, rect));
904 WMError WindowAdapter::GetFreeMultiWindowEnableState(bool& enable)
906 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
909 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
910 return static_cast<WMError>(wmsProxy->GetFreeMultiWindowEnableState(enable));
913 WMError WindowAdapter::GetCallingWindowWindowStatus(int32_t persistentId, WindowStatus& windowStatus)
915 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
918 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
919 return static_cast<WMError>(wmsProxy->GetCallingWindowWindowStatus(persistentId, windowStatus));
922 WMError WindowAdapter::GetCallingWindowRect(int32_t persistentId, Rect& rect)
924 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
927 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
928 return static_cast<WMError>(wmsProxy->GetCallingWindowRect(persistentId, rect));
931 WMError WindowAdapter::GetWindowModeType(WindowModeType& windowModeType)
933 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
937 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
941 WMError WindowAdapter::GetWindowStyleType(WindowStyleType& windowStyleType)
943 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
945 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
949 WMError WindowAdapter::GetWindowIdsByCoordinate(DisplayId displayId, int32_t windowNumber,
952 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
954 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
964 WMError WindowAdapter::SkipSnapshotForAppProcess(int32_t pid, bool skip)
966 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
968 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
972 WMError WindowAdapter::SetProcessWatermark(int32_t pid, const std::string& watermarkName, bool isEnabled)
974 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
976 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
980 WMError WindowAdapter::ReleaseForegroundSessionScreenLock()
982 INIT_PROXY_CHECK_RETURN(WMError::WM_DO_NOTHING);
984 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_DO_NOTHING);
988 WMError WindowAdapter::GetDisplayIdByPersistentId(int32_t persistentId, int32_t& displayId)
990 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
992 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);
996 WMError WindowAdapter::IsPcOrPadFreeMultiWindowMode(bool& isPcOrPadFreeMultiWindowMode)
998 INIT_PROXY_CHECK_RETURN(WMError::WM_ERROR_SAMGR);
1000 CHECK_PROXY_RETURN_ERROR_IF_NULL(wmsProxy, WMError::WM_ERROR_SAMGR);