Home
last modified time | relevance | path

Searched refs:Notification (Results 1 - 24 of 24) sorted by relevance

/foundation/resourceschedule/background_task_mgr/services/continuous_task/include/
H A Dtask_notification_subscriber.h25 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 Dtask_notification_subscriber.cpp47 void TaskNotificationSubscriber::OnCanceled(const std::shared_ptr<Notification::Notification> &notification, 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> &notification, 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 Dnotification_tools.cpp75 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 Dbg_continuous_task_mgr.cpp150 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 Dmock_notification_helper.cpp42 namespace Notification { namespace
86 ErrCode NotificationHelper::GetAllActiveNotifications(std::vector<sptr<Notification>> &notification) 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 Dnfc_notification.cpp43 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 Dnotification_test.cpp51 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 Daudio_safe_volume_notification_impl.cpp74 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 Dnotification.cpp30 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 Dvolume_manager_service.cpp36 DelayedSingleton<Notification>::GetInstance()->NotifyVolumeChange(state, volume); in VolumeStateNotify()
/foundation/filemanagement/storage_service/services/storage_manager/include/volume/
H A Dnotification.h25 class Notification final : public NoCopyable {
26 DECLARE_DELAYED_SINGLETON(Notification);
/foundation/ability/ability_runtime/test/unittest/appkit/ohos_application_test/
H A Dohos_application_test.cpp130 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 Dmock_i_remote_object.h25 namespace Notification { namespace
80 } // namespace Notification
/foundation/communication/bluetooth/interfaces/inner_api/include/
H A Dbluetooth_avrcp_ct.h343 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 Dkv_types_util.h38 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 Dmock_i_remote_object.h25 namespace Notification { namespace
80 } // namespace Notification
H A Dohos_application_first_test.cpp404 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 Daudio_safe_volume_notification_impl.h41 bool SetTitleAndText(int32_t notificationId, std::shared_ptr<Notification::NotificationNormalContent> content);
/foundation/resourceschedule/background_task_mgr/services/test/unittest/
H A Dbgtask_misc_unit_test.cpp267 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 Dkv_types_util.cpp218 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 Dscreen_capture_server.h65 using namespace OHOS::Notification;
70 class NotificationSubscriber : public OHOS::Notification::NotificationLocalLiveViewSubscriber {
75 OHOS::sptr<OHOS::Notification::NotificationButtonOption> buttonOption) override;
H A Dscreen_capture_server.cpp111 OHOS::sptr<OHOS::Notification::NotificationButtonOption> buttonOption) in OnResponse()
/foundation/communication/bluetooth/frameworks/inner/src/
H A Dbluetooth_avrcp_ct.cpp754 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 Davsession_service.cpp103 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...]

Completed in 25 milliseconds