/base/notification/distributed_notification_service/frameworks/ans/src/ |
D | notification_subscriber.cpp | 37 …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() 107 …subscriber_.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/ |
D | notification_subscriber_manager_test.cpp | 63 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/ |
D | account_event_subscribe.cpp | 51 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/ |
D | device_state_observer.cpp | 45 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/ |
D | usb_impl_mock.cpp | 87 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/ |
D | thermal_common_event_receiver.cpp | 32 if (subscriber_ == nullptr) { in ~ThermalCommonEventReceiver() 33 CommonEventManager::UnSubscribeCommonEvent(subscriber_); in ~ThermalCommonEventReceiver() 81 subscriber_ = s; in RegisterSubscriber()
|
/base/account/os_account/services/accountmgr/src/appaccount/ |
D | app_account_common_event_observer.cpp | 50 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/ |
D | system_event_observer.cpp | 41 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/ |
D | system_event_observer.h | 48 std::shared_ptr<SystemEventSubscriber> subscriber_ = nullptr;
|
/base/location/services/location_locator/locator/source/ |
D | locator_background_proxy.cpp | 87 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/ |
D | app_account_common_event_observer.h | 41 std::shared_ptr<AppAccountCommonEventSubscriber> subscriber_ = nullptr;
|
/base/account/os_account/services/accountmgr/include/ |
D | account_event_subscribe.h | 53 std::shared_ptr<AccountEventSubscriberCallback> subscriber_ = nullptr; variable
|
/base/location/services/location_locator/locator/include/ |
D | locator_background_proxy.h | 95 std::shared_ptr<UserSwitchSubscriber> subscriber_ = nullptr; 108 std::shared_ptr<UserSwitchSubscriber> subscriber_ = nullptr; variable
|
/base/powermgr/thermal_manager/services/native/include/thermal_observer/ |
D | thermal_common_event_receiver.h | 64 std::shared_ptr<Ces> subscriber_; variable
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
D | notification_subscriber.h | 140 NotificationSubscriber &subscriber_;
|
/base/telephony/core_service/services/network_search/include/ |
D | device_state_observer.h | 89 std::shared_ptr<DeviceStateEventSubscriber> subscriber_;
|
/base/usb/usb_manager/test/native/mock/include/ |
D | usb_impl_mock.h | 102 sptr<IUsbdSubscriber> subscriber_ = nullptr;
|
/base/theme/wallpaper_mgr/services/src/ |
D | wallpaper_service.cpp | 190 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/ |
D | wallpaper_service.h | 172 std::shared_ptr<WallpaperCommonEventSubscriber> subscriber_; variable
|