/ohos5.0/base/notification/common_event_service/frameworks/core/src/ |
H A D | common_event_listener.cpp | 27 : commonEventSubscriber_(commonEventSubscriber) in CommonEventListener() 69 if (!commonEventSubscriber_) { in Init() 73 auto threadMode = commonEventSubscriber_->GetSubscribeInfo().GetThreadMode(); in Init() 144 if (!commonEventSubscriber_) { in OnReceiveEvent() 148 commonEventSubscriber_->SetAsyncCommonEventResult(result); in OnReceiveEvent() 150 commonEventSubscriber_->OnReceiveEvent(commonEventData); in OnReceiveEvent() 152 if ((commonEventSubscriber_->GetAsyncCommonEventResult() != nullptr) && ordered) { in OnReceiveEvent() 153 commonEventSubscriber_->GetAsyncCommonEventResult()->FinishCommonEvent(); in OnReceiveEvent() 173 if (commonEventSubscriber_ == nullptr) { in Stop() 178 commonEventSubscriber_->GetSubscribeInfo().GetMatchingSkills().CountEvent()); in Stop() [all …]
|
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudsyncservice/src/sync_rule/ |
H A D | screen_status_listener.cpp | 67 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 D | user_status_listener.cpp | 75 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()
|
H A D | battery_status_listener.cpp | 71 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()
|
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudfiledaemon/src/cloud_disk/ |
H A D | account_status_listener.cpp | 81 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()
|
/ohos5.0/base/web/webview/ohos_adapter/date_time_format_adapter/src/ |
H A D | date_time_format_adapter_impl.cpp | 69 this->commonEventSubscriber_ = std::make_shared<NWebTimeZoneEventSubscriber>(info, this->cb_); in StartListen() 70 bool ret = EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber_); in StartListen() 80 if (this->commonEventSubscriber_ != nullptr) { in StopListen() 81 … bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber_); in StopListen() 83 this->commonEventSubscriber_ = nullptr; in StopListen()
|
/ohos5.0/base/web/webview/ohos_adapter/battery_mgr_adapter/src/ |
H A D | battery_mgr_client_adapter_impl.cpp | 90 this->commonEventSubscriber_ = std::make_shared<NWebBatteryEventSubscriber>(info, this->cb_); in StartListen() 91 bool ret = EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber_); in StartListen() 103 if (this->commonEventSubscriber_ != nullptr) { in StopListen() 104 … bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber_); in StopListen() 106 this->commonEventSubscriber_ = nullptr; in StopListen()
|
/ohos5.0/base/web/webview/ohos_adapter/enterprise_device_management_adapter/src/ |
H A D | enterprise_device_management_adapter_impl.cpp | 81 …this->commonEventSubscriber_ = std::make_shared<NWebEdmEventSubscriber>(info, this->eventCallback_… in StartObservePolicyChange() 82 bool ret = EventFwk::CommonEventManager::SubscribeCommonEvent(this->commonEventSubscriber_); in StartObservePolicyChange() 97 if (this->commonEventSubscriber_ != nullptr) { in StopObservePolicyChange() 98 … bool ret = EventFwk::CommonEventManager::UnSubscribeCommonEvent(this->commonEventSubscriber_); in StopObservePolicyChange()
|
/ohos5.0/foundation/filemanagement/dfs_service/test/unittests/cloud_disk/ |
H A D | account_status_listener_test.cpp | 124 …accountStatusListener_->commonEventSubscriber_ = std::make_shared<AccountStatusSubscriber>(*subscr… 126 EXPECT_TRUE(accountStatusListener_->commonEventSubscriber_ == nullptr); 144 accountStatusListener_->commonEventSubscriber_ = nullptr; 146 EXPECT_TRUE(accountStatusListener_->commonEventSubscriber_ == nullptr);
|
/ohos5.0/base/web/webview/ohos_adapter/net_proxy_adapter/src/ |
H A D | net_proxy_adapter_impl.cpp | 240 commonEventSubscriber_ = std::make_shared<NetProxyEventSubscriber>(info, cb_); in StartListen() 241 if (!commonEventSubscriber_) { in StartListen() 246 bool ret = EventFwk::CommonEventManager::SubscribeCommonEvent(commonEventSubscriber_); in StartListen() 305 if (commonEventSubscriber_) { in StopListen() 306 bool result = EventFwk::CommonEventManager::UnSubscribeCommonEvent(commonEventSubscriber_); in StopListen() 308 commonEventSubscriber_ = nullptr; in StopListen()
|
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudfiledaemon/include/cloud_disk/ |
H A D | account_status_listener.h | 32 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr;
|
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/ |
H A D | common_event_collect.cpp | 173 if (commonEventSubscriber_ == nullptr) { in CleanFailedEventLocked() 177 EventFwk::MatchingSkills skill = commonEventSubscriber_->GetSubscribeInfo().GetMatchingSkills(); in CleanFailedEventLocked() 195 std::shared_ptr<EventFwk::CommonEventSubscriber> comEvtScrb = commonEventSubscriber_; in CreateCommonEventSubscriberLocked() 196 commonEventSubscriber_ = std::make_shared<CommonEventSubscriber>(info, this); in CreateCommonEventSubscriberLocked() 197 bool ret = EventFwk::CommonEventManager::SubscribeCommonEvent(commonEventSubscriber_); in CreateCommonEventSubscriberLocked()
|
/ohos5.0/foundation/filemanagement/dfs_service/services/cloudsyncservice/include/sync_rule/ |
H A D | screen_status_listener.h | 35 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
|
H A D | battery_status_listener.h | 35 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
|
H A D | user_status_listener.h | 38 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr;
|
/ohos5.0/base/notification/common_event_service/frameworks/core/include/ |
H A D | common_event_listener.h | 72 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber_; variable
|
/ohos5.0/base/web/webview/ohos_adapter/enterprise_device_management_adapter/include/ |
H A D | enterprise_device_management_adapter_impl.h | 76 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
|
/ohos5.0/base/web/webview/ohos_adapter/date_time_format_adapter/include/ |
H A D | date_time_format_adapter_impl.h | 78 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
|
/ohos5.0/base/web/webview/ohos_adapter/battery_mgr_adapter/include/ |
H A D | battery_mgr_client_adapter_impl.h | 72 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
|
/ohos5.0/base/web/webview/ohos_adapter/net_proxy_adapter/include/ |
H A D | net_proxy_adapter_impl.h | 52 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
|
/ohos5.0/base/web/webview/test/unittest/ohos_adapter/net_proxy_adapter_test/ |
H A D | net_proxy_adapter_test.cpp | 301 EXPECT_NE(NetProxyAdapterImpl::GetInstance().commonEventSubscriber_, nullptr); 306 NetProxyAdapterImpl::GetInstance().commonEventSubscriber_ = nullptr;
|
/ohos5.0/base/telephony/core_service/services/network_search/src/ |
H A D | setting_utils.cpp | 252 commonEventSubscriber_ = std::make_shared<BroadcastSubscriber>(subscribeInfo); in SetCommonEventSubscribeInfo() 257 return commonEventSubscriber_; in GetCommonEventSubscriber()
|
/ohos5.0/base/web/webview/test/unittest/ohos_adapter/enterprise_device_impl_test/ |
H A D | enterprise_device_impl_test.cpp | 117 EnterpriseDeviceManagementAdapterImpl::GetInstance().commonEventSubscriber_ = nullptr;
|
/ohos5.0/base/telephony/core_service/services/network_search/include/ |
H A D | setting_utils.h | 75 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
|
/ohos5.0/base/web/webview/test/unittest/battery_mgr_adapter_impl/ |
H A D | battery_mgr_adapter_test.cpp | 223 g_batterImpl->commonEventSubscriber_ = nullptr;
|