Lines Matching defs:WindowImpl

28 constexpr HiviewDFX::HiLogLabel LABEL = {LOG_CORE, HILOG_DOMAIN_WINDOW, "WindowImpl"};
30 std::map<std::string, std::pair<uint32_t, sptr<Window>>> WindowImpl::windowMap_;
31 std::map<uint32_t, std::vector<sptr<WindowImpl>>> WindowImpl::subWindowMap_;
32 std::map<uint32_t, std::vector<sptr<IWindowSystemBarEnableListener>>> WindowImpl::systemBarEnableListeners_;
33 std::map<uint32_t, std::vector<sptr<IIgnoreViewSafeAreaListener>>> WindowImpl::ignoreSafeAreaListeners_;
34 std::map<uint32_t, std::vector<sptr<IAvoidAreaChangedListener>>> WindowImpl::avoidAreaChangeListeners_;
35 std::mutex WindowImpl::globalMutex_;
38 WindowImpl::WindowImpl(const sptr<WindowOption>& option)
45 WLOGFI("WindowImpl constructorCnt: %{public}d",
49 WindowImpl::~WindowImpl()
56 void WindowImpl::CreateSurfaceNode(const std::string name, const SendRenderDataCallback& callback)
68 void WindowImpl::SetContentInfoCallback(const ContentInfoCallback& callback)
73 sptr<Window> WindowImpl::Find(const std::string& name)
78 const std::shared_ptr<AbilityRuntime::Context> WindowImpl::GetContext() const
83 sptr<Window> WindowImpl::FindWindowById(uint32_t windowId)
100 sptr<Window> WindowImpl::GetTopWindowWithId(uint32_t mainWinId)
105 sptr<Window> WindowImpl::GetTopWindowWithContext(const std::shared_ptr<AbilityRuntime::Context>& context)
110 std::vector<sptr<Window>> WindowImpl::GetSubWindow(uint32_t parentId)
115 void WindowImpl::UpdateConfigurationForAll(const std::shared_ptr<AppExecFwk::Configuration>& configuration)
124 std::shared_ptr<RSSurfaceNode> WindowImpl::GetSurfaceNode() const
129 Rect WindowImpl::GetRect() const
134 Rect WindowImpl::GetRequestRect() const
139 WindowType WindowImpl::GetType() const
144 WindowMode WindowImpl::GetMode() const
149 float WindowImpl::GetAlpha() const
154 WindowState WindowImpl::GetWindowState() const
159 WMError WindowImpl::SetFocusable(bool isFocusable)
164 bool WindowImpl::GetFocusable() const
169 WMError WindowImpl::SetTouchable(bool isTouchable)
174 bool WindowImpl::GetTouchable() const
179 const std::string& WindowImpl::GetWindowName() const
184 uint32_t WindowImpl::GetWindowId() const
189 uint64_t WindowImpl::GetDisplayId() const
194 uint32_t WindowImpl::GetWindowFlags() const
199 uint32_t WindowImpl::GetRequestModeSupportInfo() const
204 bool WindowImpl::IsMainHandlerAvailable() const
209 SystemBarProperty WindowImpl::GetSystemBarPropertyByType(WindowType type) const
219 WMError WindowImpl::GetAvoidAreaByType(AvoidAreaType type, AvoidArea& avoidArea)
231 WMError WindowImpl::SetWindowType(WindowType type)
236 WMError WindowImpl::SetWindowMode(WindowMode mode)
242 WMError WindowImpl::SetAlpha(float alpha)
247 WMError WindowImpl::SetTransform(const Transform& trans)
252 const Transform& WindowImpl::GetTransform() const
257 WMError WindowImpl::AddWindowFlag(WindowFlag flag)
262 WMError WindowImpl::RemoveWindowFlag(WindowFlag flag)
267 WMError WindowImpl::SetWindowFlags(uint32_t flags)
272 void WindowImpl::OnNewWant(const AAFwk::Want& want)
277 WMError WindowImpl::NapiSetUIContent(const std::string& contentInfo, napi_env env, napi_value storage,
314 Ace::UIContent* WindowImpl::GetUIContent() const
316 WLOGFD("WindowImpl::GetUIContent");
320 std::string WindowImpl::GetContentInfo(BackupAndRestoreType type)
325 bool WindowImpl::IsSupportWideGamut()
330 void WindowImpl::SetColorSpace(ColorSpace colorSpace)
335 ColorSpace WindowImpl::GetColorSpace()
340 std::shared_ptr<Media::PixelMap> WindowImpl::Snapshot()
345 void WindowImpl::DumpInfo(const std::vector<std::string>& params, std::vector<std::string>& info)
350 WMError WindowImpl::SetSystemBarProperty(WindowType type, const SystemBarProperty& property)
355 WMError WindowImpl::SetSpecificBarProperty(WindowType type, const SystemBarProperty& property)
373 WMError WindowImpl::UpdateSystemBarProperty(bool status)
397 WMError WindowImpl::SetSystemBarProperties(const std::map<WindowType, SystemBarProperty>& properties,
403 WMError WindowImpl::GetSystemBarProperties(std::map<WindowType, SystemBarProperty>& properties)
408 WMError WindowImpl::SetLayoutFullScreen(bool status)
416 WMError WindowImpl::SetFullScreen(bool status)
430 WMError WindowImpl::Create(uint32_t parentId, const std::shared_ptr<AbilityRuntime::Context>& context)
443 WMError WindowImpl::BindDialogTarget(sptr<IRemoteObject> targetToken)
448 WMError WindowImpl::SetDialogBackGestureEnabled(bool isEnabled)
453 WMError WindowImpl::Destroy()
463 WMError WindowImpl::UpdateSurfaceNodeAfterCustomAnimation(bool isAdd)
468 WMError WindowImpl::Show(uint32_t reason, bool withAnimation, bool withFocus)
473 WMError WindowImpl::Hide(uint32_t reason, bool withAnimation, bool isFromInnerkits)
478 WMError WindowImpl::MoveTo(int32_t x, int32_t y, bool isMoveToGlobal)
483 WMError WindowImpl::Resize(uint32_t width, uint32_t height)
488 WMError WindowImpl::SetWindowGravity(WindowGravity gravity, uint32_t percent)
493 WMError WindowImpl::SetKeepScreenOn(bool keepScreenOn)
498 bool WindowImpl::IsKeepScreenOn() const
503 WMError WindowImpl::SetTurnScreenOn(bool turnScreenOn)
508 bool WindowImpl::IsTurnScreenOn() const
513 WMError WindowImpl::SetBackgroundColor(const std::string& color)
518 WMError WindowImpl::SetTransparent(bool isTransparent)
523 bool WindowImpl::IsTransparent() const
528 WMError WindowImpl::SetBrightness(float brightness)
533 float WindowImpl::GetBrightness() const
538 WMError WindowImpl::SetCallingWindow(uint32_t windowId)
543 WMError WindowImpl::SetPrivacyMode(bool isPrivacyMode)
548 bool WindowImpl::IsPrivacyMode() const
553 void WindowImpl::SetSystemPrivacyMode(bool isSystemPrivacyMode)
557 WMError WindowImpl::SetSnapshotSkip(bool isSkip)
562 WMError WindowImpl::DisableAppWindowDecor()
567 WMError WindowImpl::Maximize()
572 WMError WindowImpl::Minimize()
577 WMError WindowImpl::Recover()
582 WMError WindowImpl::Close()
587 void WindowImpl::StartMove()
592 WMError WindowImpl::RequestFocus() const
597 bool WindowImpl::IsFocused() const
602 void WindowImpl::SetInputEventConsumer(const std::shared_ptr<IInputEventConsumer>& inputEventConsumer)
607 WMError WindowImpl::RegisterLifeCycleListener(const sptr<IWindowLifeCycle>& listener)
612 WMError WindowImpl::RegisterWindowChangeListener(const sptr<IWindowChangeListener>& listener)
617 WMError WindowImpl::UnregisterLifeCycleListener(const sptr<IWindowLifeCycle>& listener)
622 WMError WindowImpl::UnregisterWindowChangeListener(const sptr<IWindowChangeListener>& listener)
627 WMError WindowImpl::RegisterAvoidAreaChangeListener(sptr<IAvoidAreaChangedListener>& listener)
635 WMError WindowImpl::UnregisterAvoidAreaChangeListener(sptr<IAvoidAreaChangedListener>& listener)
643 WMError WindowImpl::RegisterDragListener(const sptr<IWindowDragListener>& listener)
648 WMError WindowImpl::UnregisterDragListener(const sptr<IWindowDragListener>& listener)
653 WMError WindowImpl::RegisterDisplayMoveListener(sptr<IDisplayMoveListener>& listener)
658 WMError WindowImpl::UnregisterDisplayMoveListener(sptr<IDisplayMoveListener>& listener)
663 void WindowImpl::RegisterWindowDestroyedListener(const NotifyNativeWinDestroyFunc& func)
668 WMError WindowImpl::RegisterOccupiedAreaChangeListener(const sptr<IOccupiedAreaChangeListener>& listener)
673 WMError WindowImpl::UnregisterOccupiedAreaChangeListener(const sptr<IOccupiedAreaChangeListener>& listener)
678 WMError WindowImpl::RegisterTouchOutsideListener(const sptr<ITouchOutsideListener>& listener)
683 WMError WindowImpl::UnregisterTouchOutsideListener(const sptr<ITouchOutsideListener>& listener)
688 WMError WindowImpl::RegisterAnimationTransitionController(const sptr<IAnimationTransitionController>& listener)
693 WMError WindowImpl::RegisterScreenshotListener(const sptr<IScreenshotListener>& listener)
698 WMError WindowImpl::UnregisterScreenshotListener(const sptr<IScreenshotListener>& listener)
703 WMError WindowImpl::RegisterDialogTargetTouchListener(const sptr<IDialogTargetTouchListener>& listener)
708 WMError WindowImpl::UnregisterDialogTargetTouchListener(const sptr<IDialogTargetTouchListener>& listener)
713 void WindowImpl::RegisterDialogDeathRecipientListener(const sptr<IDialogDeathRecipientListener>& listener)
718 void WindowImpl::UnregisterDialogDeathRecipientListener(const sptr<IDialogDeathRecipientListener>& listener)
723 WMError WindowImpl::RegisterSystemBarEnableListener(const sptr<IWindowSystemBarEnableListener>& listener)
731 WMError WindowImpl::UnRegisterSystemBarEnableListener(const sptr<IWindowSystemBarEnableListener>& listener)
739 WMError WindowImpl::RegisterIgnoreViewSafeAreaListener(const sptr<IIgnoreViewSafeAreaListener>& listener)
747 WMError WindowImpl::UnRegisterIgnoreViewSafeAreaListener(const sptr<IIgnoreViewSafeAreaListener>& listener)
756 WMError WindowImpl::RegisterListener(std::vector<sptr<T>>& holder, const sptr<T>& listener)
771 WMError WindowImpl::UnregisterListener(std::vector<sptr<T>>& holder, const sptr<T>& listener)
784 void WindowImpl::SetAceAbilityHandler(const sptr<IAceAbilityHandler>& handler)
789 void WindowImpl::SetRequestModeSupportInfo(uint32_t modeSupportInfo)
794 void WindowImpl::ConsumeKeyEvent(const std::shared_ptr<MMI::KeyEvent>& keyEvent)
803 void WindowImpl::ConsumePointerEvent(const std::shared_ptr<MMI::PointerEvent>& pointerEvent)
813 void WindowImpl::RequestVsync(const std::shared_ptr<VsyncCallback>& vsyncCallback)
822 int64_t WindowImpl::GetVSyncPeriod()
827 void WindowImpl::UpdateConfiguration(const std::shared_ptr<AppExecFwk::Configuration>& configuration)
835 void WindowImpl::UpdateAvoidArea(const sptr<AvoidArea>& avoidArea, AvoidAreaType type)
859 void WindowImpl::NotifySystemBarChange(WindowType type, const SystemBarProperty& property)
870 void WindowImpl::NotifySetIgnoreSafeArea(bool value)
881 void WindowImpl::NotifyAvoidAreaChange(const sptr<AvoidArea>& avoidArea, AvoidAreaType type)
892 void WindowImpl::NotifyTouchDialogTarget(int32_t posX, int32_t posY)
897 void WindowImpl::SetNeedRemoveWindowInputChannel(bool needRemoveWindowInputChannel)
902 bool WindowImpl::IsLayoutFullScreen() const
907 bool WindowImpl::IsFullScreen() const
914 void WindowImpl::SetRequestedOrientation(Orientation orientation)
918 Orientation WindowImpl::GetRequestedOrientation()
923 WMError WindowImpl::SetTouchHotAreas(const std::vector<Rect>& rects)
927 void WindowImpl::GetRequestedTouchHotAreas(std::vector<Rect>& rects) const
931 WMError WindowImpl::SetAPPWindowLabel(const std::string& label)
941 WMError WindowImpl::SetAPPWindowIcon(const std::shared_ptr<Media::PixelMap>& icon)
955 WMError WindowImpl::SetCornerRadius(float cornerRadius)
960 WMError WindowImpl::SetShadowRadius(float radius)
965 WMError WindowImpl::SetShadowColor(std::string color)
970 WMError WindowImpl::SetShadowOffsetX(float offsetX)
975 WMError WindowImpl::SetShadowOffsetY(float offsetY)
980 WMError WindowImpl::SetBlur(float radius)
985 WMError WindowImpl::SetBackdropBlur(float radius)
990 WMError WindowImpl::SetBackdropBlurStyle(WindowBlurStyle blurStyle)
995 WMError WindowImpl::NotifyMemoryLevel(int32_t level)
1000 bool WindowImpl::IsAllowHaveSystemSubWindow()
1006 WMError WindowImpl::RaiseToAppTop()
1011 WMError WindowImpl::SetAspectRatio(float ratio)
1016 WMError WindowImpl::ResetAspectRatio()
1021 KeyboardAnimationConfig WindowImpl::GetKeyboardAnimationConfig()
1026 void WindowImpl::SetNeedDefaultAnimation(bool needDefaultAnimation)
1031 void WindowImpl::SetViewportConfig(const Ace::ViewportConfig& config)
1055 void WindowImpl::UpdateViewportConfig()
1067 void WindowImpl::SetOrientation(Orientation orientation)
1077 void WindowImpl::SetSize(int32_t width, int32_t height)
1088 void WindowImpl::SetDensity(float density)
1098 WMError WindowImpl::SetResizeByDragEnabled(bool dragEnabled)
1104 WMError WindowImpl::SetRaiseByClickEnabled(bool raiseEnabled)
1110 WMError WindowImpl::RaiseAboveTarget(int32_t subWindowId)
1115 WMError WindowImpl::HideNonSystemFloatingWindows(bool shouldHide)
1120 WMError WindowImpl::RegisterWindowVisibilityChangeListener(const WindowVisibilityListenerSptr& listener)
1125 WMError WindowImpl::UnregisterWindowVisibilityChangeListener(const WindowVisibilityListenerSptr& listener)
1130 WmErrorCode WindowImpl::KeepKeyboardOnFocus(bool keepKeyboardFlag)
1135 WMError WindowImpl::SetSingleFrameComposerEnabled(bool enable)
1140 WMError WindowImpl::SetLandscapeMultiWindow(bool isLandscapeMultiWindow)
1145 void WindowImpl::SetUiDvsyncSwitch(bool dvsyncSwitch)
1149 WMError WindowImpl::SetImmersiveModeEnabledState(bool enable)
1154 bool WindowImpl::GetImmersiveModeEnabledState() const