Home
last modified time | relevance | path

Searched defs:subscriber (Results 1 – 25 of 151) sorted by relevance

1234567

/base/notification/common_event_service/interfaces/kits/cj/src/
Dcommon_event.cpp60 void SetSubscribeInfo(std::shared_ptr<SubscriberImpl> subscriber, in SetSubscribeInfo()
100 void DeleteSubscribe(std::shared_ptr<SubscriberImpl> subscriber) in DeleteSubscribe()
115 void GetSubscriberCode(std::shared_ptr<SubscriberImpl> subscriber, int64_t &code) in GetSubscriberCode()
125 int32_t SetSubscriberCode(std::shared_ptr<SubscriberImpl> subscriber, int32_t code) in SetSubscriberCode()
134 std::string GetSubscriberData(std::shared_ptr<SubscriberImpl> subscriber) in GetSubscriberData()
144 int32_t SetSubscriberData(std::shared_ptr<SubscriberImpl> subscriber, const char *data) in SetSubscriberData()
153 …int32_t SetSubscriberCodeAndData(std::shared_ptr<SubscriberImpl> subscriber, int32_t code, const c… in SetSubscriberCodeAndData()
162 void IsCommonEventSticky(std::shared_ptr<SubscriberImpl> subscriber, bool &data) in IsCommonEventSticky()
172 void IsCommonEventOrdered(std::shared_ptr<SubscriberImpl> subscriber, bool &data) in IsCommonEventOrdered()
/base/notification/distributed_notification_service/frameworks/test/moduletest/mock/
Dmock_common_event_manager.cpp27 for (auto subscriber : subscriberList) { in PublishCommonEvent() local
39 const std::shared_ptr<CommonEventSubscriber> &subscriber) in PublishCommonEvent()
44 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscri… in SubscribeCommonEvent()
50 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subsc… in UnSubscribeCommonEvent()
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_event_test.cpp80 …std::shared_ptr<UsbSubscriberTest> subscriber = std::make_shared<UsbSubscriberTest>(subscriberInfo… variable
105 …std::shared_ptr<UsbSubscriberTest> subscriber = std::make_shared<UsbSubscriberTest>(subscriberInfo… variable
130 …std::shared_ptr<UsbSubscriberTest> subscriber = std::make_shared<UsbSubscriberTest>(subscriberInfo… variable
184 …std::shared_ptr<UsbSubscriberTest> subscriber = std::make_shared<UsbSubscriberTest>(subscriberInfo… variable
220 …std::shared_ptr<UsbSubscriberTest> subscriber = std::make_shared<UsbSubscriberTest>(subscriberInfo… variable
254 …std::shared_ptr<UsbSubscriberTest> subscriber = std::make_shared<UsbSubscriberTest>(subscriberInfo… variable
/base/notification/common_event_service/frameworks/native/src/
Dcommon_event_manager.cpp61 const std::shared_ptr<CommonEventSubscriber> &subscriber) in PublishCommonEvent()
67 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in PublishCommonEventAsUser()
74 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in NewPublishCommonEventAsUser()
82const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT… in PublishCommonEvent()
88 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in PublishCommonEventAsUser()
95 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscri… in SubscribeCommonEvent()
100 …2_t CommonEventManager::NewSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subs… in NewSubscribeCommonEvent()
105 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subsc… in UnSubscribeCommonEvent()
110 …t CommonEventManager::NewUnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subs… in NewUnSubscribeCommonEvent()
/base/location/test/location_locator/mock/src/
Dmock_common_event_manager.cpp32 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in PublishCommonEvent()
38 const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid) in PublishCommonEvent()
43 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscri… in SubscribeCommonEvent()
48 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subsc… in UnSubscribeCommonEvent()
/base/location/test/location_manager/mock/src/
Dmock_common_event_manager.cpp32 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in PublishCommonEvent()
38 const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid) in PublishCommonEvent()
43 bool CommonEventManager::SubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subscri… in SubscribeCommonEvent()
48 bool CommonEventManager::UnSubscribeCommonEvent(const std::shared_ptr<CommonEventSubscriber> &subsc… in UnSubscribeCommonEvent()
/base/notification/distributed_notification_service/services/ans/src/
Dnotification_local_live_view_subscriber_manager.cpp38 sptr<AnsSubscriberLocalLiveViewInterface> subscriber {nullptr}; member
69const sptr<AnsSubscriberLocalLiveViewInterface> &subscriber, const sptr<NotificationSubscribeInfo>… in AddLocalLiveViewSubscriber()
107const sptr<AnsSubscriberLocalLiveViewInterface> &subscriber, const sptr<NotificationSubscribeInfo>… in RemoveLocalLiveViewSubscriber()
184 const sptr<AnsSubscriberLocalLiveViewInterface> &subscriber) in FindSubscriberRecord()
197 const sptr<AnsSubscriberLocalLiveViewInterface> &subscriber, in CreateSubscriberRecord()
214const sptr<AnsSubscriberLocalLiveViewInterface> &subscriber, const sptr<NotificationBundleOption> … in AddSubscriberInner()
236const sptr<AnsSubscriberLocalLiveViewInterface> &subscriber, const sptr<NotificationSubscribeInfo>… in RemoveSubscriberInner()
Dadvanced_notification_subscriber_service.cpp45 const sptr<AnsSubscriberInterface> &subscriber, const sptr<NotificationSubscribeInfo> &info) in Subscribe()
84 ErrCode AdvancedNotificationService::SubscribeSelf(const sptr<AnsSubscriberInterface> &subscriber) in SubscribeSelf()
132 const sptr<AnsSubscriberInterface> &subscriber, const sptr<NotificationSubscribeInfo> &info) in Unsubscribe()
/base/notification/common_event_service/services/test/unittest/
Dcommon_event_freeze_unit_test.cpp90 … std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(*subscribeInfoPtr); variable
122 … std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(*subscribeInfoPtr); variable
154 … std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(*subscribeInfoPtr); variable
204 … std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(*subscribeInfoPtr); variable
255 … std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(*subscribeInfoPtr); variable
298 … std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(*subscribeInfoPtr); variable
341 … std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(*subscribeInfoPtr); variable
384 … std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(*subscribeInfoPtr); variable
427 … std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(*subscribeInfoPtr); variable
457 … std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(*subscribeInfoPtr); variable
[all …]
Dcommon_event_unsubscribe_unit_test.cpp98 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
135 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
179 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
202 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
225 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
/base/security/security_guard/services/security_collector/src/
Dsecurity_collector_subscriber_manager.cpp51 for (const auto &subscriber : it->second) { in NotifySubscriber() local
63 … count = std::count_if(subscribers.begin(), subscribers.end(), [appName] (const auto &subscriber) { in GetAppSubscribeCount()
74 if (std::any_of(subscribers.begin(), subscribers.end(), [appName] (const auto &subscriber) { in GetAppSubscribeCount()
90 [remote] (const auto &subscriber) { return subscriber->GetRemote() == remote; }); in FindEventIds()
115 const std::shared_ptr<SecurityCollectorSubscriber> &subscriber) in SubscribeCollector()
172 for (auto subscriber: subscribers) { in UnsubscribeCollector() local
/base/notification/distributed_notification_service/services/test/moduletest/
Dans_module_test.cpp177 auto subscriber = new TestAnsSubscriber(); variable
216 auto subscriber = new TestAnsSubscriber(); variable
270 auto subscriber = new TestAnsSubscriber(); variable
310 auto subscriber = new TestAnsSubscriber(); variable
365 auto subscriber = new TestAnsSubscriber(); variable
405 auto subscriber = new TestAnsSubscriber(); variable
445 auto subscriber = new TestAnsSubscriber(); variable
485 auto subscriber = new TestAnsSubscriber(); variable
525 auto subscriber = new TestAnsSubscriber(); variable
565 auto subscriber = new TestAnsSubscriber(); variable
[all …]
/base/notification/distributed_notification_service/frameworks/core/src/
Dans_manager_proxy_subscribe.cpp30 ErrCode AnsManagerProxy::Subscribe(const sptr<AnsSubscriberInterface> &subscriber, in Subscribe()
77 ErrCode AnsManagerProxy::SubscribeSelf(const sptr<AnsSubscriberInterface> &subscriber) in SubscribeSelf()
112 …rrCode AnsManagerProxy::SubscribeLocalLiveView(const sptr<AnsSubscriberLocalLiveViewInterface> &su… in SubscribeLocalLiveView()
166 const sptr<AnsSubscriberInterface> &subscriber, const sptr<NotificationSubscribeInfo> &info) in Unsubscribe()
/base/security/security_guard/test/unittest/security_collector/interface_test/src/
Dcollector_interface_test.cpp91 std::shared_ptr<SecurityCollector::SecurityCollectorSubscriber> subscriber = variable
132 SecurityCollector::CollectorSubscriberTestImpl subscriber{event, duration, true}; variable
156 auto subscriber = std::make_shared<SecurityGuardTest::SecurityCollectorSubscriber> (event); variable
168 auto subscriber = std::make_shared<SecurityGuardTest::SecurityCollectorSubscriber> (event); variable
191 auto subscriber = std::make_shared<SecurityGuardTest::SecurityCollectorSubscriber> (event); variable
203 auto subscriber = std::make_shared<SecurityGuardTest::SecurityCollectorSubscriber> (event); variable
269 SecurityCollector::SecurityCollectorSubscribeInfo subscriber (event, -1, false); variable
286 SecurityCollector::SecurityCollectorSubscribeInfo subscriber (event, -1, false); variable
/base/usb/usb_manager/test/native/mock/src/
Dusb_event_mock_test.cpp118 …std::shared_ptr<UsbSubscriberMockTest> subscriber = std::make_shared<UsbSubscriberMockTest>(subscr… variable
146 …std::shared_ptr<UsbSubscriberMockTest> subscriber = std::make_shared<UsbSubscriberMockTest>(subscr… variable
174 …std::shared_ptr<UsbSubscriberMockTest> subscriber = std::make_shared<UsbSubscriberMockTest>(subscr… variable
231 …std::shared_ptr<UsbSubscriberMockTest> subscriber = std::make_shared<UsbSubscriberMockTest>(subscr… variable
265 …std::shared_ptr<UsbSubscriberMockTest> subscriber = std::make_shared<UsbSubscriberMockTest>(subscr… variable
299 …std::shared_ptr<UsbSubscriberMockTest> subscriber = std::make_shared<UsbSubscriberMockTest>(subscr… variable
/base/notification/common_event_service/frameworks/native/test/unittest/
Dcommon_event_subscribe_test.cpp158 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
260 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
281 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
329 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
392 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
423 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
447 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
641 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
661 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
680 std::shared_ptr<SubscriberTest> subscriber = std::make_shared<SubscriberTest>(subscribeInfo); variable
[all …]
Dcommon_event_unsubscribe_test.cpp158 …std::shared_ptr<DreivedSubscriber> subscriber = std::make_shared<DreivedSubscriber>(subscribeInfo); variable
175 …std::shared_ptr<DreivedSubscriber> subscriber = std::make_shared<DreivedSubscriber>(subscribeInfo); variable
191 …std::shared_ptr<DreivedSubscriber> subscriber = std::make_shared<DreivedSubscriber>(subscribeInfo); variable
208 …std::shared_ptr<DreivedSubscriber> subscriber = std::make_shared<DreivedSubscriber>(subscribeInfo); variable
226 …std::shared_ptr<DreivedSubscriber> subscriber = std::make_shared<DreivedSubscriber>(subscribeInfo); variable
242 std::shared_ptr<DreivedSubscriber> subscriber = nullptr; variable
/base/security/security_guard/interfaces/inner_api/collector/src/
Dcollector_manager.cpp25 int32_t CollectorManager::Subscribe(const std::shared_ptr<ICollectorSubscriber> &subscriber) in Subscribe()
69 int32_t CollectorManager::Unsubscribe(const std::shared_ptr<ICollectorSubscriber> &subscriber) in Unsubscribe()
135 int32_t CollectorManager::CollectorStart(const SecurityCollector::SecurityCollectorSubscribeInfo &s… in CollectorStart()
159 int32_t CollectorManager::CollectorStop(const SecurityCollector::SecurityCollectorSubscribeInfo &su… in CollectorStop()
/base/notification/common_event_service/frameworks/core/src/
Dcommon_event.cpp53 const std::shared_ptr<CommonEventSubscriber> &subscriber) in PublishCommonEvent()
72 const std::shared_ptr<CommonEventSubscriber> &subscriber, const int32_t &userId) in PublishCommonEventAsUser()
90const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, const int32_t &callerT… in PublishCommonEvent()
108 const std::shared_ptr<CommonEventSubscriber> &subscriber, const uid_t &uid, in PublishCommonEventAsUser()
127 …const CommonEventPublishInfo &publishInfo, const std::shared_ptr<CommonEventSubscriber> &subscribe… in PublishParameterCheck()
152 const std::shared_ptr<CommonEventSubscriber> &subscriber) in SubscribeCommonEvent()
194 const std::shared_ptr<CommonEventSubscriber> &subscriber) in UnSubscribeCommonEvent()
377const std::shared_ptr<CommonEventSubscriber> &subscriber, sptr<IRemoteObject> &commonEventListener) in CreateCommonEventListener()
437 auto subscriber = it->first; in Resubscribe() local
/base/notification/common_event_service/frameworks/core/test/unittest/common_event_branch_test/
Dcommon_event_branch_test.cpp82 std::shared_ptr<CommonEventSubscriber> subscriber = nullptr; variable
226 …std::shared_ptr<DreivedSubscriber> subscriber = std::make_shared<DreivedSubscriber>(subscribeInfo); variable
243 std::shared_ptr<CommonEventSubscriber> subscriber = nullptr; variable
260 std::shared_ptr<CommonEventSubscriber> subscriber = nullptr; variable
279 std::shared_ptr<CommonEventSubscriber> subscriber = nullptr; variable
/base/notification/common_event_service/interfaces/kits/ndk/src/
Doh_commonevent_wrapper.cpp102 void SubscriberManager::DestroySubscriber(CommonEvent_Subscriber* subscriber) in DestroySubscriber()
111 CommonEvent_ErrCode SubscriberManager::Subscribe(const CommonEvent_Subscriber* subscriber) in Subscribe()
125 CommonEvent_ErrCode SubscriberManager::UnSubscribe(const CommonEvent_Subscriber* subscriber) in UnSubscribe()
/base/powermgr/power_manager/test/unittest/src/
Dpower_coordination_lock_test.cpp378 …shared_ptr<PowerStateCommonEventSubscriber> subscriber = PowerStateCommonEventSubscriber::Register… variable
440 …shared_ptr<PowerStateCommonEventSubscriber> subscriber = PowerStateCommonEventSubscriber::Register… variable
493 …shared_ptr<PowerStateCommonEventSubscriber> subscriber = PowerStateCommonEventSubscriber::Register… variable
554 …shared_ptr<PowerStateCommonEventSubscriber> subscriber = PowerStateCommonEventSubscriber::Register… variable
607 …shared_ptr<PowerStateCommonEventSubscriber> subscriber = PowerStateCommonEventSubscriber::Register… variable
650 …shared_ptr<PowerStateCommonEventSubscriber> subscriber = PowerStateCommonEventSubscriber::Register… variable
718 …shared_ptr<PowerStateCommonEventSubscriber> subscriber = PowerStateCommonEventSubscriber::Register… variable
766 …shared_ptr<PowerStateCommonEventSubscriber> subscriber = PowerStateCommonEventSubscriber::Register… variable
/base/powermgr/thermal_manager/test/unittest/src/
Dthermal_level_event_test.cpp192 … shared_ptr<CommonEventThermalLevelTest> subscriber = CommonEventThermalLevelTest::RegisterEvent(); variable
223 … shared_ptr<CommonEventThermalLevelTest> subscriber = CommonEventThermalLevelTest::RegisterEvent(); variable
253 … shared_ptr<CommonEventThermalLevelTest> subscriber = CommonEventThermalLevelTest::RegisterEvent(); variable
282 … shared_ptr<CommonEventThermalLevelTest> subscriber = CommonEventThermalLevelTest::RegisterEvent(); variable
311 … shared_ptr<CommonEventThermalLevelTest> subscriber = CommonEventThermalLevelTest::RegisterEvent(); variable
/base/notification/distributed_notification_service/frameworks/test/moduletest/
Dans_innerkits_module_publish_test.cpp639 auto subscriber = TestAnsSubscriber(); variable
719 auto subscriber = TestAnsSubscriber(); variable
781 auto subscriber = TestAnsSubscriber(); variable
834 auto subscriber = TestAnsSubscriber(); variable
885 auto subscriber = TestAnsSubscriber(); variable
924 auto subscriber = TestAnsSubscriber(); variable
963 auto subscriber = TestAnsSubscriber(); variable
1004 auto subscriber = TestAnsSubscriber(); variable
1048 auto subscriber = TestAnsSubscriber(); variable
1096 auto subscriber = TestAnsSubscriber(); variable
[all …]
/base/account/os_account/test/fuzztest/osaccount/subscribeosaccount_fuzzer/
Dsubscribeosaccount_fuzzer.cpp36 std::shared_ptr<OsAccountSubscriber> subscriber = make_shared<TestOsAccountSubscriber>(); in SubscribeOsAccountFuzzTest() local
43 std::shared_ptr<OsAccountSubscriber> subscriber = make_shared<TestOsAccountSubscriber>(); in UnsubscribeOsAccountFuzzTest() local

1234567