Home
last modified time | relevance | path

Searched refs:commonEventSubscriber_ (Results 1 - 16 of 16) sorted by relevance

/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/sync_rule/
H A Dscreen_status_listener.cpp67 commonEventSubscriber_ = std::make_shared<ScreenStatusSubscriber>(info, shared_from_this()); in Start()
68 auto subRet = EventFwk::CommonEventManager::SubscribeCommonEvent(commonEventSubscriber_); in Start()
74 if (commonEventSubscriber_ != nullptr) { in Stop()
75 EventFwk::CommonEventManager::UnSubscribeCommonEvent(commonEventSubscriber_); in Stop()
76 commonEventSubscriber_ = nullptr; in Stop()
H A Dbattery_status_listener.cpp71 commonEventSubscriber_ = std::make_shared<BatteryStatusSubscriber>(info, shared_from_this()); in Start()
72 auto subRet = EventFwk::CommonEventManager::SubscribeCommonEvent(commonEventSubscriber_); in Start()
78 if (commonEventSubscriber_ != nullptr) { in Stop()
79 EventFwk::CommonEventManager::UnSubscribeCommonEvent(commonEventSubscriber_); in Stop()
80 commonEventSubscriber_ = nullptr; in Stop()
H A Duser_status_listener.cpp75 commonEventSubscriber_ = std::make_shared<UserStatusSubscriber>(info, shared_from_this()); in Start()
76 auto subRet = EventFwk::CommonEventManager::SubscribeCommonEvent(commonEventSubscriber_); in Start()
82 if (commonEventSubscriber_ != nullptr) { in Stop()
83 EventFwk::CommonEventManager::UnSubscribeCommonEvent(commonEventSubscriber_); in Stop()
84 commonEventSubscriber_ = nullptr; in Stop()
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/
H A Daccount_status_listener.cpp81 commonEventSubscriber_ = std::make_shared<AccountStatusSubscriber>(info); in Start()
82 auto subRet = EventFwk::CommonEventManager::SubscribeCommonEvent(commonEventSubscriber_); in Start()
88 if (commonEventSubscriber_ != nullptr) { in Stop()
89 EventFwk::CommonEventManager::UnSubscribeCommonEvent(commonEventSubscriber_); in Stop()
90 commonEventSubscriber_ = nullptr; in Stop()
/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/
H A Daccount_status_listener_test.cpp124 accountStatusListener_->commonEventSubscriber_ = std::make_shared<AccountStatusSubscriber>(*subscribeInfo_); in HWTEST_F()
126 EXPECT_TRUE(accountStatusListener_->commonEventSubscriber_ == nullptr); in HWTEST_F()
144 accountStatusListener_->commonEventSubscriber_ = nullptr; in HWTEST_F()
146 EXPECT_TRUE(accountStatusListener_->commonEventSubscriber_ == nullptr); in HWTEST_F()
/foundation/filemanagement/dfs_service/services/cloudfiledaemon/include/cloud_disk/
H A Daccount_status_listener.h32 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; member in OHOS::FileManagement::CloudDisk::AccountStatusListener
/foundation/filemanagement/dfs_service/services/cloudsyncservice/include/sync_rule/
H A Dscreen_status_listener.h35 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; member in OHOS::FileManagement::CloudSync::ScreenStatusListener
H A Dbattery_status_listener.h35 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; member in OHOS::FileManagement::CloudSync::BatteryStatusListener
H A Duser_status_listener.h38 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; member in OHOS::FileManagement::CloudSync::UserStatusListener
/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/
H A Dcommon_event_collect.cpp159 if (commonEventSubscriber_ == nullptr) { in CleanFailedEventLocked()
160 HILOGE("commonEventSubscriber_ is nullptr!"); in CleanFailedEventLocked()
163 EventFwk::MatchingSkills skill = commonEventSubscriber_->GetSubscribeInfo().GetMatchingSkills(); in CleanFailedEventLocked()
178 if (commonEventSubscriber_ != nullptr) { in CreateCommonEventSubscriberLocked()
182 bool isUnsubscribe = EventFwk::CommonEventManager::UnSubscribeCommonEvent(commonEventSubscriber_); in CreateCommonEventSubscriberLocked()
188 commonEventSubscriber_.reset(); in CreateCommonEventSubscriberLocked()
193 commonEventSubscriber_ = std::make_shared<CommonEventSubscriber>(info, this); in CreateCommonEventSubscriberLocked()
194 bool ret = EventFwk::CommonEventManager::SubscribeCommonEvent(commonEventSubscriber_); in CreateCommonEventSubscriberLocked()
/foundation/systemabilitymgr/samgr/services/samgr/native/include/collect/
H A Dcommon_event_collect.h71 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; member in OHOS::CommonEventCollect
/foundation/resourceschedule/device_usage_statistics/services/common/include/
H A Dbundle_active_core.h273 std::shared_ptr<BundleActiveCommonEventSubscriber> commonEventSubscriber_; member in OHOS::DeviceUsageStats::BundleActiveCore
/foundation/resourceschedule/device_usage_statistics/services/common/src/
H A Dbundle_active_core.cpp222 commonEventSubscriber_ = std::make_shared<BundleActiveCommonEventSubscriber>(subscriberInfo, in RegisterSubscriber()
224 bool subscribeResult = CommonEventManager::SubscribeCommonEvent(commonEventSubscriber_); in RegisterSubscriber()
243 CommonEventManager::UnSubscribeCommonEvent(commonEventSubscriber_); in UnRegisterSubscriber()
/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/src/
H A Dcommon_event_collect_test.cpp807 commonEventCollect->commonEventSubscriber_ = commonEventStatusSubscriber; in HWTEST_F()
809 commonEventCollect->commonEventSubscriber_ = nullptr; in HWTEST_F()
/foundation/distributeddatamgr/pasteboard/services/core/include/
H A Dpasteboard_service.h285 std::shared_ptr<PasteBoardCommonEventSubscriber> commonEventSubscriber_ = nullptr; member in OHOS::MiscServices::final
/foundation/distributeddatamgr/pasteboard/services/core/src/
H A Dpasteboard_service.cpp197 if (commonEventSubscriber_ != nullptr) { in OnStop()
198 EventFwk::CommonEventManager::UnSubscribeCommonEvent(commonEventSubscriber_); in OnStop()
2339 if (commonEventSubscriber_ != nullptr) { in CommonEventSubscriber()
2347 commonEventSubscriber_ = std::make_shared<PasteBoardCommonEventSubscriber>(subscribeInfo); in CommonEventSubscriber()
2348 EventFwk::CommonEventManager::SubscribeCommonEvent(commonEventSubscriber_); in CommonEventSubscriber()

Completed in 12 milliseconds