/foundation/resourceschedule/background_task_mgr/services/continuous_task/include/ |
H A D | task_notification_subscriber.h | 25 class TaskNotificationSubscriber : public Notification::NotificationSubscriber {
31 void OnCanceled(const std::shared_ptr<Notification::Notification> &request,
32 const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap, int deleteReason) override;
33 void OnConsumed(const std::shared_ptr<Notification::Notification> &request,
34 const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap) override;
35 void OnUpdate(const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap) override;
38 const std::shared_ptr<Notification::NotificationDoNotDisturbDate> &date) override;
40 const std::shared_ptr<Notification [all...] |
/foundation/resourceschedule/background_task_mgr/services/continuous_task/src/ |
H A D | task_notification_subscriber.cpp | 47 void TaskNotificationSubscriber::OnCanceled(const std::shared_ptr<Notification::Notification> ¬ification,
in OnCanceled() 48 const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap, int deleteReason)
in OnCanceled() 54 Notification::NotificationRequest request = notification->GetNotificationRequest();
in OnCanceled() 69 if (deleteReason == Notification::NotificationConstant::APP_CANCEL_REASON_DELETE) {
in OnCanceled() 90 void TaskNotificationSubscriber::OnConsumed(const std::shared_ptr<Notification::Notification> ¬ification,
in OnConsumed() 91 const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap) {}
in OnConsumed() 94 const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap) {}
in OnUpdate() 99 const std::shared_ptr<Notification in OnDoNotDisturbDateChange() [all...] |
H A D | notification_tools.cpp | 75 std::shared_ptr<Notification::NotificationLocalLiveViewContent> liveContent in PublishNotification() 76 = std::make_shared<Notification::NotificationLocalLiveViewContent>(); in PublishNotification() 97 Notification::NotificationRequest notificationRequest = Notification::NotificationRequest(); in PublishNotification() 98 notificationRequest.SetContent(std::make_shared<Notification::NotificationContent>(liveContent)); in PublishNotification() 107 notificationRequest.SetSlotType(Notification::NotificationConstant::SlotType::LIVE_VIEW); in PublishNotification() 114 if (Notification::NotificationHelper::PublishNotification(notificationRequest) != ERR_OK) { in PublishNotification() 130 if (Notification::NotificationHelper::CancelNotification(label, id) != ERR_OK) { in CancelNotification() 141 std::vector<sptr<Notification::Notification>> notification in GetAllActiveNotificationsLabels() [all...] |
H A D | bg_continuous_task_mgr.cpp | 150 Notification::NotificationHelper::UnSubscribeNotification(*subscriber_);
in Clear() 304 if (Notification::NotificationHelper::SubscribeNotificationSelf(*subscriber_) != ERR_OK) {
in RegisterNotificationSubscriber()
|
/foundation/resourceschedule/background_task_mgr/services/test/unittest/mock/ |
H A D | mock_notification_helper.cpp | 42 namespace Notification { namespace 86 ErrCode NotificationHelper::GetAllActiveNotifications(std::vector<sptr<Notification>> ¬ification) in GetAllActiveNotifications() 97 auto notification1 = sptr<Notification>(new Notification(notificationRequest1)); in GetAllActiveNotifications() 102 auto notification2 = sptr<Notification>(new Notification(notificationRequest1)); in GetAllActiveNotifications() 107 auto notification3 = sptr<Notification>(new Notification(notificationRequest1)); in GetAllActiveNotifications() 112 auto notification4 = sptr<Notification>(new Notification(notificationRequest in GetAllActiveNotifications() [all...] |
/foundation/communication/nfc/services/src/notification/ |
H A D | nfc_notification.cpp | 43 class NfcNotificationSubscriber : public Notification::NotificationSubscriber {
46 void OnUpdate(const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap) {}
in OnUpdate() 47 void OnDoNotDisturbDateChange(const std::shared_ptr<Notification::NotificationDoNotDisturbDate> &date) {}
in OnDoNotDisturbDateChange() 49 const std::shared_ptr<Notification::EnabledNotificationCallbackData> &callbackData) {}
in OnEnabledNotificationChanged() 51 void OnCanceled(const std::shared_ptr<OHOS::Notification::Notification> &request,
in OnCanceled() 52 const std::shared_ptr<Notification::NotificationSortingMap> &sortingMap, int deleteReason)
in OnCanceled() 60 if (deleteReason == Notification::NotificationConstant::CLICK_REASON_DELETE && g_ntfCallback) {
in OnCanceled() 64 void OnConsumed(const std::shared_ptr<OHOS::Notification::Notification> in OnCanceled() [all...] |
/foundation/filemanagement/storage_service/services/storage_manager/volume/test/ |
H A D | notification_test.cpp | 51 std::shared_ptr<Notification> notification = DelayedSingleton<Notification>::GetInstance(); in HWTEST_F() 75 std::shared_ptr<Notification> notification = DelayedSingleton<Notification>::GetInstance(); in HWTEST_F() 101 std::shared_ptr<Notification> notification = DelayedSingleton<Notification>::GetInstance(); in HWTEST_F() 125 std::shared_ptr<Notification> notification = DelayedSingleton<Notification>::GetInstance(); in HWTEST_F() 149 std::shared_ptr<Notification> notification = DelayedSingleton<Notification> in HWTEST_F() [all...] |
/foundation/multimedia/audio_framework/services/audio_policy/safe_volume_notification/src/ |
H A D | audio_safe_volume_notification_impl.cpp | 74 std::shared_ptr<Notification::NotificationNormalContent> content) in SetTitleAndText() 134 Notification::NotificationRequest& request) in SetActionButton() 153 std::shared_ptr<Notification::NotificationActionButton> actionButtonDeal = in SetActionButton() 154 Notification::NotificationActionButton::Create(nullptr, buttonName, wantAgentDeal); in SetActionButton() 234 std::shared_ptr<Notification::NotificationNormalContent> normalContent = in PublishSafeVolumeNotification() 235 std::make_shared<Notification::NotificationNormalContent>(); in PublishSafeVolumeNotification() 246 std::shared_ptr<Notification::NotificationContent> content = in PublishSafeVolumeNotification() 247 std::make_shared<Notification::NotificationContent>(normalContent); in PublishSafeVolumeNotification() 254 Notification::NotificationRequest request; in PublishSafeVolumeNotification() 262 request.SetAutoDeletedTime(OHOS::Notification in PublishSafeVolumeNotification() [all...] |
/foundation/filemanagement/storage_service/services/storage_manager/volume/src/ |
H A D | notification.cpp | 30 Notification::Notification() {} in Notification() function in OHOS::StorageManager::Notification 31 Notification::~Notification() {} in ~Notification() 33 void Notification::NotifyVolumeChange(VolumeState notifyCode, std::shared_ptr<VolumeExternal> volume) in NotifyVolumeChange() 38 LOGE("Notification::NotifyVolumeChange volume is nullptr"); in NotifyVolumeChange()
|
H A D | volume_manager_service.cpp | 36 DelayedSingleton<Notification>::GetInstance()->NotifyVolumeChange(state, volume); in VolumeStateNotify()
|
/foundation/filemanagement/storage_service/services/storage_manager/include/volume/ |
H A D | notification.h | 25 class Notification final : public NoCopyable { 26 DECLARE_DELAYED_SINGLETON(Notification);
|
/foundation/ability/ability_runtime/test/unittest/appkit/ohos_application_test/ |
H A D | ohos_application_test.cpp | 130 sptr<Notification::MockIRemoteObject> token = new (std::nothrow) Notification::MockIRemoteObject(); in HWTEST_F() 148 sptr<Notification::MockIRemoteObject> token = new (std::nothrow) Notification::MockIRemoteObject(); in HWTEST_F() 292 sptr<Notification::MockIRemoteObject> token = new (std::nothrow) Notification::MockIRemoteObject(); in HWTEST_F() 373 sptr<Notification::MockIRemoteObject> token = new (std::nothrow) Notification::MockIRemoteObject(); in HWTEST_F() 449 sptr<Notification::MockIRemoteObject> token = new (std::nothrow) Notification in HWTEST_F() [all...] |
H A D | mock_i_remote_object.h | 25 namespace Notification { namespace 80 } // namespace Notification
|
/foundation/communication/bluetooth/interfaces/inner_api/include/ |
H A D | bluetooth_avrcp_ct.h | 343 class Notification { class in OHOS::Bluetooth::AvrcpCtResponse 345 Notification(uint8_t playStatus, uint8_t volume) : playStatus_(playStatus), volume_(volume) in Notification() function in OHOS::Bluetooth::AvrcpCtResponse::Notification 347 explicit Notification(uint64_t uid) : uid_(uid) in Notification() function in OHOS::Bluetooth::AvrcpCtResponse::Notification 349 explicit Notification(uint32_t playbackPos) : playbackPos_(playbackPos) in Notification() function in OHOS::Bluetooth::AvrcpCtResponse::Notification 351 Notification(const std::vector<uint8_t> &attributes, const std::vector<uint8_t> &values) in Notification() function in OHOS::Bluetooth::AvrcpCtResponse::Notification 354 Notification(uint16_t playerId, uint16_t uidCounter) : playerId_(playerId), uidCounter_(uidCounter) in Notification() function in OHOS::Bluetooth::AvrcpCtResponse::Notification 356 explicit Notification(uint16_t uidCounter) : uidCounter_(uidCounter) in Notification() function in OHOS::Bluetooth::AvrcpCtResponse::Notification 358 ~Notification() in ~Notification() 369 Notification() = delete; 403 // The unique pointer to the <b>AvrcpCtResponse::Notification</ [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/include/ |
H A D | kv_types_util.h | 38 using Notification = OHOS::DistributedKv::SwitchNotification; 94 API_EXPORT bool Marshalling(const Notification &input, MessageParcel &data); 96 API_EXPORT bool Unmarshalling(Notification &output, MessageParcel &data);
|
/foundation/ability/ability_runtime/test/unittest/appkit/ohos_application_first_test/ |
H A D | mock_i_remote_object.h | 25 namespace Notification { namespace 80 } // namespace Notification
|
H A D | ohos_application_first_test.cpp | 404 sptr<Notification::MockIRemoteObject> token = new (std::nothrow) Notification::MockIRemoteObject(); 561 sptr<Notification::MockIRemoteObject> token = new (std::nothrow) Notification::MockIRemoteObject(); 576 sptr<Notification::MockIRemoteObject> token = nullptr; 594 sptr<Notification::MockIRemoteObject> token = new (std::nothrow) Notification::MockIRemoteObject();
|
/foundation/multimedia/audio_framework/services/audio_policy/safe_volume_notification/include/ |
H A D | audio_safe_volume_notification_impl.h | 41 bool SetTitleAndText(int32_t notificationId, std::shared_ptr<Notification::NotificationNormalContent> content);
|
/foundation/resourceschedule/background_task_mgr/services/test/unittest/ |
H A D | bgtask_misc_unit_test.cpp | 267 auto notificationMap = std::make_shared<Notification::NotificationSortingMap>(); in HWTEST_F() 268 auto notificationRequest = sptr<Notification::NotificationRequest>(new Notification::NotificationRequest()); in HWTEST_F() 269 auto notification = std::make_shared<Notification::Notification>(notificationRequest); in HWTEST_F() 282 Notification::NotificationConstant::APP_CANCEL_REASON_DELETE); in HWTEST_F() 288 Notification::NotificationConstant::USER_STOPPED_REASON_DELETE); in HWTEST_F() 293 Notification::NotificationConstant::USER_STOPPED_REASON_DELETE); in HWTEST_F()
|
/foundation/distributeddatamgr/kv_store/frameworks/innerkitsimpl/kvdb/src/ |
H A D | kv_types_util.cpp | 218 bool Marshalling(const Notification &input, MessageParcel &data) in Marshalling() 225 bool Unmarshalling(Notification &output, MessageParcel &data) in Unmarshalling()
|
/foundation/multimedia/player_framework/services/services/screen_capture/server/ |
H A D | screen_capture_server.h | 65 using namespace OHOS::Notification; 70 class NotificationSubscriber : public OHOS::Notification::NotificationLocalLiveViewSubscriber { 75 OHOS::sptr<OHOS::Notification::NotificationButtonOption> buttonOption) override;
|
H A D | screen_capture_server.cpp | 111 OHOS::sptr<OHOS::Notification::NotificationButtonOption> buttonOption) in OnResponse()
|
/foundation/communication/bluetooth/frameworks/inner/src/ |
H A D | bluetooth_avrcp_ct.cpp | 754 resp.notify_ = std::make_unique<AvrcpCtResponse::Notification>(playStatus, 0x00); in OnPlaybackStatusChanged() 766 resp.notify_ = std::make_unique<AvrcpCtResponse::Notification>(uid); in OnTrackChanged() 801 resp.notify_ = std::make_unique<AvrcpCtResponse::Notification>(playbackPos); in OnPlaybackPosChanged() 814 resp.notify_ = std::make_unique<AvrcpCtResponse::Notification>(attributes, values); in OnPlayerAppSettingChanged() 850 resp.notify_ = std::make_unique<AvrcpCtResponse::Notification>(uidCounter); in OnAddressedPlayerChanged() 863 resp.notify_ = std::make_unique<AvrcpCtResponse::Notification>(uidCounter); in OnUidChanged() 876 resp.notify_ = std::make_unique<AvrcpCtResponse::Notification>(0x00, volume); in OnVolumeChanged()
|
/foundation/multimedia/av_session/services/session/server/ |
H A D | avsession_service.cpp | 103 class NotificationSubscriber : public Notification::NotificationLocalLiveViewSubscriber { 106 void OnResponse(int32_t notificationId, sptr<Notification::NotificationButtonOption> buttonOption) {} in OnResponse() 671 int32_t ret = Notification::NotificationHelper::CancelNotification(0); in UpdateFrontSession() 2065 int32_t ret = Notification::NotificationHelper::CancelNotification(0); in HandleSessionRelease() 2834 int32_t result = Notification::NotificationHelper::SubscribeLocalLiveViewNotification(NOTIFICATION_SUBSCRIBER); in NotifySystemUI() 2837 Notification::NotificationRequest request; in NotifySystemUI() 2838 std::shared_ptr<Notification::NotificationLocalLiveViewContent> localLiveViewContent = in NotifySystemUI() 2839 std::make_shared<Notification::NotificationLocalLiveViewContent>(); in NotifySystemUI() 2845 std::shared_ptr<Notification::NotificationContent> content = in NotifySystemUI() 2846 std::make_shared<Notification in NotifySystemUI() [all...] |