Home
last modified time | relevance | path

Searched refs:systemBarChangedListenerAgent_ (Results 1 - 2 of 2) sorted by relevance

/foundation/window/window_manager/wm/test/unittest/
H A Dwindow_manager_test.cpp548 auto oldWindowManagerAgent = windowManager.pImpl_->systemBarChangedListenerAgent_; in HWTEST_F()
550 windowManager.pImpl_->systemBarChangedListenerAgent_ = nullptr; in HWTEST_F()
558 ASSERT_EQ(nullptr, windowManager.pImpl_->systemBarChangedListenerAgent_); in HWTEST_F()
569 windowManager.pImpl_->systemBarChangedListenerAgent_ = oldWindowManagerAgent; in HWTEST_F()
581 auto oldWindowManagerAgent = windowManager.pImpl_->systemBarChangedListenerAgent_; in HWTEST_F()
583 windowManager.pImpl_->systemBarChangedListenerAgent_ = new WindowManagerAgent(); in HWTEST_F()
604 ASSERT_EQ(nullptr, windowManager.pImpl_->systemBarChangedListenerAgent_); in HWTEST_F()
610 windowManager.pImpl_->systemBarChangedListenerAgent_ = oldWindowManagerAgent; in HWTEST_F()
/foundation/window/window_manager/wm/src/
H A Dwindow_manager.cpp79 sptr<WindowManagerAgent> systemBarChangedListenerAgent_; member in OHOS::Rosen::WindowManager::Impl
534 if (pImpl_->systemBarChangedListenerAgent_ == nullptr) { in RegisterSystemBarChangedListener()
535 pImpl_->systemBarChangedListenerAgent_ = new WindowManagerAgent(); in RegisterSystemBarChangedListener()
538 WindowManagerAgentType::WINDOW_MANAGER_AGENT_TYPE_SYSTEM_BAR, pImpl_->systemBarChangedListenerAgent_); in RegisterSystemBarChangedListener()
541 pImpl_->systemBarChangedListenerAgent_ = nullptr; in RegisterSystemBarChangedListener()
570 if (pImpl_->systemBarChangedListeners_.empty() && pImpl_->systemBarChangedListenerAgent_ != nullptr) { in UnregisterSystemBarChangedListener()
572 WindowManagerAgentType::WINDOW_MANAGER_AGENT_TYPE_SYSTEM_BAR, pImpl_->systemBarChangedListenerAgent_); in UnregisterSystemBarChangedListener()
574 pImpl_->systemBarChangedListenerAgent_ = nullptr; in UnregisterSystemBarChangedListener()

Completed in 5 milliseconds