Home
last modified time | relevance | path

Searched refs:commonEventSubscriber_ (Results 1 – 25 of 31) sorted by relevance

12

/ohos5.0/base/notification/common_event_service/frameworks/core/src/
H A Dcommon_event_listener.cpp27 : 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 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 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()
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()
/ohos5.0/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()
/ohos5.0/base/web/webview/ohos_adapter/date_time_format_adapter/src/
H A Ddate_time_format_adapter_impl.cpp69 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 Dbattery_mgr_client_adapter_impl.cpp90 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 Denterprise_device_management_adapter_impl.cpp81 …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 Daccount_status_listener_test.cpp124 …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 Dnet_proxy_adapter_impl.cpp240 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 Daccount_status_listener.h32 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr;
/ohos5.0/foundation/systemabilitymgr/samgr/services/samgr/native/source/collect/
H A Dcommon_event_collect.cpp173 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 Dscreen_status_listener.h35 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
H A Dbattery_status_listener.h35 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
H A Duser_status_listener.h38 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr;
/ohos5.0/base/notification/common_event_service/frameworks/core/include/
H A Dcommon_event_listener.h72 std::shared_ptr<CommonEventSubscriber> commonEventSubscriber_; variable
/ohos5.0/base/web/webview/ohos_adapter/enterprise_device_management_adapter/include/
H A Denterprise_device_management_adapter_impl.h76 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
/ohos5.0/base/web/webview/ohos_adapter/date_time_format_adapter/include/
H A Ddate_time_format_adapter_impl.h78 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
/ohos5.0/base/web/webview/ohos_adapter/battery_mgr_adapter/include/
H A Dbattery_mgr_client_adapter_impl.h72 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
/ohos5.0/base/web/webview/ohos_adapter/net_proxy_adapter/include/
H A Dnet_proxy_adapter_impl.h52 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
/ohos5.0/base/web/webview/test/unittest/ohos_adapter/net_proxy_adapter_test/
H A Dnet_proxy_adapter_test.cpp301 EXPECT_NE(NetProxyAdapterImpl::GetInstance().commonEventSubscriber_, nullptr);
306 NetProxyAdapterImpl::GetInstance().commonEventSubscriber_ = nullptr;
/ohos5.0/base/telephony/core_service/services/network_search/src/
H A Dsetting_utils.cpp252 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 Denterprise_device_impl_test.cpp117 EnterpriseDeviceManagementAdapterImpl::GetInstance().commonEventSubscriber_ = nullptr;
/ohos5.0/base/telephony/core_service/services/network_search/include/
H A Dsetting_utils.h75 std::shared_ptr<EventFwk::CommonEventSubscriber> commonEventSubscriber_ = nullptr; variable
/ohos5.0/base/web/webview/test/unittest/battery_mgr_adapter_impl/
H A Dbattery_mgr_adapter_test.cpp223 g_batterImpl->commonEventSubscriber_ = nullptr;

12