Home
last modified time | relevance | path

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

/foundation/window/window_manager/dm/src/
H A Ddisplay_manager.cpp130 std::set<sptr<ICaptureStatusListener>> captureStatusListeners_; member in OHOS::Rosen::DisplayManager::Impl
1380 captureStatusListeners = captureStatusListeners_; in NotifyCaptureStatusChanged()
1411 captureStatusListeners_.insert(listener); in RegisterCaptureStatusListener()
1428 auto iter = std::find(captureStatusListeners_.begin(), captureStatusListeners_.end(), listener); in UnregisterCaptureStatusListener()
1429 if (iter == captureStatusListeners_.end()) { in UnregisterCaptureStatusListener()
1433 captureStatusListeners_.erase(iter); in UnregisterCaptureStatusListener()
1435 if (captureStatusListeners_.empty() && captureStatusListenerAgent_ != nullptr) { in UnregisterCaptureStatusListener()
/foundation/window/window_manager/dm/test/unittest/
H A Ddisplay_manager_test.cpp928 ASSERT_FALSE(DisplayManager::GetInstance().pImpl_->captureStatusListeners_.empty()); in HWTEST_F()
943 ASSERT_FALSE(DisplayManager::GetInstance().pImpl_->captureStatusListeners_.empty()); in HWTEST_F()
944 DisplayManager::GetInstance().pImpl_->captureStatusListeners_.clear(); in HWTEST_F()
1377 ASSERT_FALSE(DisplayManager::GetInstance().pImpl_->captureStatusListeners_.empty()); in HWTEST_F()
1392 ASSERT_FALSE(DisplayManager::GetInstance().pImpl_->captureStatusListeners_.empty()); in HWTEST_F()
1393 DisplayManager::GetInstance().pImpl_->captureStatusListeners_.clear(); in HWTEST_F()

Completed in 7 milliseconds