Home
last modified time | relevance | path

Searched refs:subscriber_ (Results 1 – 19 of 19) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_subscriber.cpp37 …riber::SubscriberImpl::SubscriberImpl(NotificationSubscriber &subscriber) : subscriber_(subscriber) in SubscriberImpl()
49 subscriber_.OnConnected(); in OnConnected()
59 subscriber_.OnDisconnected(); in OnDisconnected()
66 subscriber_.OnConsumed( in OnConsumed()
75 subscriber_.OnCanceled(std::make_shared<Notification>(*notification), in OnCanceled()
78 subscriber_.OnCanceled(std::make_shared<Notification>(*notification), in OnCanceled()
95 subscriber_.OnUpdate(std::make_shared<NotificationSortingMap>(*notificationMap)); in OnUpdated()
100 subscriber_.OnDoNotDisturbDateChange(std::make_shared<NotificationDoNotDisturbDate>(*date)); in OnDoNotDisturbDateChange()
107subscriber_.OnEnabledNotificationChanged(std::make_shared<EnabledNotificationCallbackData>(*callba… in OnEnabledNotificationChanged()
113 subscriber_.OnBadgeChanged(std::make_shared<BadgeNumberCallbackData>(*badgeData)); in OnBadgeChanged()
[all …]
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dnotification_subscriber_manager_test.cpp63 static sptr<AnsSubscriberInterface> subscriber_; member in OHOS::Notification::NotificationSubscriberManagerTest
69 sptr<AnsSubscriberInterface> NotificationSubscriberManagerTest::subscriber_ = nullptr; member in OHOS::Notification::NotificationSubscriberManagerTest
74 subscriber_ = testAnsSubscriber_.GetImpl(); in SetUpTestCase()
79 subscriber_ = nullptr; in TearDownTestCase()
88 notificationSubscriberManager_->AddSubscriber(subscriber_, nullptr); in SetUp()
93 notificationSubscriberManager_->RemoveSubscriber(subscriber_, nullptr); in TearDown()
111 EXPECT_EQ(notificationSubscriberManager_->AddSubscriber(subscriber_, info), (int)ERR_OK);
112 EXPECT_EQ(notificationSubscriberManager_->AddSubscriber(subscriber_, nullptr), (int)ERR_OK);
149 EXPECT_EQ(notificationSubscriberManager_->RemoveSubscriber(subscriber_, info), (int)ERR_OK);
/base/account/os_account/services/accountmgr/src/
Daccount_event_subscribe.cpp51 subscriber_ = std::make_shared<AccountEventSubscriberCallback>(subscribeInfo, callback_); in AccountEventSubscriber()
56 return EventFwk::CommonEventManager::SubscribeCommonEvent(subscriber_); in CreateEventSubscribe()
61 return EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriber_); in DestroyEventSubscribe()
/base/telephony/core_service/services/network_search/src/
Ddevice_state_observer.cpp45 subscriber_ = std::make_shared<DeviceStateEventSubscriber>(subscriberInfo); in StartEventSubscriber()
46 subscriber_->SetEventHandler(deviceStateHandler); in StartEventSubscriber()
47 subscriber_->InitEventMap(); in StartEventSubscriber()
51 …statusChangeListener_ = new (std::nothrow) SystemAbilityStatusChangeListener(subscriber_, sharingE… in StartEventSubscriber()
70 if (subscriber_ != nullptr) { in StopEventSubscriber()
71 bool subscribeResult = CommonEventManager::UnSubscribeCommonEvent(subscriber_); in StopEventSubscriber()
72 subscriber_ = nullptr; in StopEventSubscriber()
/base/usb/usb_manager/test/native/mock/src/
Dusb_impl_mock.cpp87 subscriber_ = subscriber; in BindUsbdSubscriber()
94 subscriber_ = nullptr; in UnbindUsbdSubscriber()
124 auto ret = subscriber_->PortChangedEvent(portInfo_); in SetPortRole()
131 auto ret = subscriber_->DeviceEvent(info); in SubscriberDeviceEvent()
/base/powermgr/thermal_manager/services/native/src/thermal_observer/
Dthermal_common_event_receiver.cpp32 if (subscriber_ == nullptr) { in ~ThermalCommonEventReceiver()
33 CommonEventManager::UnSubscribeCommonEvent(subscriber_); in ~ThermalCommonEventReceiver()
81 subscriber_ = s; in RegisterSubscriber()
/base/account/os_account/services/accountmgr/src/appaccount/
Dapp_account_common_event_observer.cpp50 subscriber_ = std::make_shared<AppAccountCommonEventSubscriber>( in AppAccountCommonEventObserver()
61 CommonEventManager::UnSubscribeCommonEvent(subscriber_); in ~AppAccountCommonEventObserver()
67 if (CommonEventManager::SubscribeCommonEvent(subscriber_)) { in SubscribeCommonEvent()
/base/notification/distributed_notification_service/services/ans/src/
Dsystem_event_observer.cpp41 subscriber_ = std::make_shared<SystemEventSubscriber>( in SystemEventObserver()
44 EventFwk::CommonEventManager::SubscribeCommonEvent(subscriber_); in SystemEventObserver()
49 EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriber_); in ~SystemEventObserver()
/base/notification/distributed_notification_service/services/ans/include/
Dsystem_event_observer.h48 std::shared_ptr<SystemEventSubscriber> subscriber_ = nullptr;
/base/location/services/location_locator/locator/source/
Dlocator_background_proxy.cpp87 if (subscriber_ == nullptr) { in SubscribeSaStatusChangeListerner()
88 subscriber_ = std::make_shared<UserSwitchSubscriber>(subscriberInfo); in SubscribeSaStatusChangeListerner()
91 statusChangeListener_ = new (std::nothrow) SystemAbilityStatusChangeListener(subscriber_); in SubscribeSaStatusChangeListerner()
442 std::shared_ptr<UserSwitchSubscriber> &subscriber) : subscriber_(subscriber) in SystemAbilityStatusChangeListener()
452 if (subscriber_ == nullptr) { in OnAddSystemAbility()
456 bool result = OHOS::EventFwk::CommonEventManager::SubscribeCommonEvent(subscriber_); in OnAddSystemAbility()
467 if (subscriber_ == nullptr) { in OnRemoveSystemAbility()
471 bool result = OHOS::EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriber_); in OnRemoveSystemAbility()
/base/account/os_account/services/accountmgr/include/appaccount/
Dapp_account_common_event_observer.h41 std::shared_ptr<AppAccountCommonEventSubscriber> subscriber_ = nullptr;
/base/account/os_account/services/accountmgr/include/
Daccount_event_subscribe.h53 std::shared_ptr<AccountEventSubscriberCallback> subscriber_ = nullptr; variable
/base/location/services/location_locator/locator/include/
Dlocator_background_proxy.h95 std::shared_ptr<UserSwitchSubscriber> subscriber_ = nullptr;
108 std::shared_ptr<UserSwitchSubscriber> subscriber_ = nullptr; variable
/base/powermgr/thermal_manager/services/native/include/thermal_observer/
Dthermal_common_event_receiver.h64 std::shared_ptr<Ces> subscriber_; variable
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_subscriber.h140 NotificationSubscriber &subscriber_;
/base/telephony/core_service/services/network_search/include/
Ddevice_state_observer.h89 std::shared_ptr<DeviceStateEventSubscriber> subscriber_;
/base/usb/usb_manager/test/native/mock/include/
Dusb_impl_mock.h102 sptr<IUsbdSubscriber> subscriber_ = nullptr;
/base/theme/wallpaper_mgr/services/src/
Dwallpaper_service.cpp190 subscriber_ = std::make_shared<WallpaperCommonEventSubscriber>(*this); in RegisterSubscriber()
191 bool subRes = OHOS::EventFwk::CommonEventManager::SubscribeCommonEvent(subscriber_); in RegisterSubscriber()
222 if (subscriber_ != nullptr) { in OnStop()
223 … bool unSubscribeResult = OHOS::EventFwk::CommonEventManager::UnSubscribeCommonEvent(subscriber_); in OnStop()
224 subscriber_ = nullptr; in OnStop()
/base/theme/wallpaper_mgr/services/include/
Dwallpaper_service.h172 std::shared_ptr<WallpaperCommonEventSubscriber> subscriber_; variable