Home
last modified time | relevance | path

Searched refs:notification (Results 1 - 25 of 98) sorted by relevance

1234

/base/notification/distributed_notification_service/test/fuzztest/notification_fuzzer/
H A Dnotification_fuzzer.cpp18 #include "notification.h"
31 Notification::Notification notification(stringData, request); in DoSomethingInterestingWithMyAPI()
32 notification.EnableLight(); in DoSomethingInterestingWithMyAPI()
33 notification.EnableSound(); in DoSomethingInterestingWithMyAPI()
34 notification.EnableVibrate(); in DoSomethingInterestingWithMyAPI()
35 notification.GetBundleName(); in DoSomethingInterestingWithMyAPI()
36 notification.GetCreateBundle(); in DoSomethingInterestingWithMyAPI()
37 notification.GetLabel(); in DoSomethingInterestingWithMyAPI()
38 notification.GetLedLightColor(); in DoSomethingInterestingWithMyAPI()
39 notification in DoSomethingInterestingWithMyAPI()
[all...]
/base/telephony/call_manager/test/fuzztest/callnotification_fuzzer/
H A Dcallnotification_fuzzer.cpp44 std::shared_ptr<IncomingCallNotification> notification = std::make_shared<IncomingCallNotification>(); in IncomingCallNotificationFunc() local
52 notification->NewCallCreated(callObjectPtr); in IncomingCallNotificationFunc()
53 notification->CallStateUpdated(callObjectPtr, priorState, nextState); in IncomingCallNotificationFunc()
54 notification->IncomingCallActivated(callObjectPtr); in IncomingCallNotificationFunc()
55 notification->IncomingCallHungUp(callObjectPtr, true, message); in IncomingCallNotificationFunc()
56 notification->CallDestroyed(details); in IncomingCallNotificationFunc()
57 notification->PublishIncomingCallNotification(callObjectPtr); in IncomingCallNotificationFunc()
58 notification->CancelIncomingCallNotification(); in IncomingCallNotificationFunc()
59 notification->IsFullScreen(); in IncomingCallNotificationFunc()
68 std::shared_ptr<IncomingCallWakeup> notification in IncomingCallWakeupFunc() local
91 std::shared_ptr<ProximitySensor> notification = std::make_shared<ProximitySensor>(); ProximitySensorFunc() local
112 std::shared_ptr<StatusBar> notification = std::make_shared<StatusBar>(); StatusBarFunc() local
136 std::shared_ptr<WiredHeadset> notification = std::make_shared<WiredHeadset>(); WiredHeadsetHandlerFunc() local
184 std::shared_ptr<MissedCallNotification> notification = std::make_shared<MissedCallNotification>(); MissedCallNotificationFunc() local
208 std::shared_ptr<RejectCallSms> notification = std::make_shared<RejectCallSms>(); RejectCallSmsFunc() local
[all...]
/base/notification/distributed_notification_service/test/fuzztest/readfromparcel_fuzzer/
H A Dreadfromparcel_fuzzer.cpp18 #include "notification.h"
37 Notification::Notification notification(request); in DoSomethingInterestingWithMyAPI()
39 notification.MarshallingString(parcel); in DoSomethingInterestingWithMyAPI()
40 notification.MarshallingInt32(parcel); in DoSomethingInterestingWithMyAPI()
41 notification.MarshallingInt64(parcel); in DoSomethingInterestingWithMyAPI()
42 notification.MarshallingParcelable(parcel); in DoSomethingInterestingWithMyAPI()
43 notification.Marshalling(parcel); in DoSomethingInterestingWithMyAPI()
44 notification.ReadFromParcelBool(parcel); in DoSomethingInterestingWithMyAPI()
45 notification.ReadFromParcelString(parcel); in DoSomethingInterestingWithMyAPI()
46 notification in DoSomethingInterestingWithMyAPI()
[all...]
/base/notification/distributed_notification_service/services/ans/src/
H A Dnotification_slot_filter.cpp34 record->notification->SetEnableLight(true); in OnPublish()
35 record->notification->SetLedLightColor(record->slot->GetLedLightColor()); in OnPublish()
37 record->notification->SetEnableLight(false); in OnPublish()
41 record->notification->SetEnableVibration(true); in OnPublish()
42 record->notification->SetVibrationStyle(record->slot->GetVibrationStyle()); in OnPublish()
44 record->notification->SetEnableVibration(false); in OnPublish()
49 record->notification->SetEnableSound(true); in OnPublish()
50 record->notification->SetSound(record->slot->GetSound()); in OnPublish()
52 record->notification->SetEnableSound(false); in OnPublish()
H A Dnotification_subscriber_manager.cpp110 message.Message("Subscribe notification: " + GetClientBundleName() + " user " + in AddSubscriber()
145 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in NotifyConsumed()
153 std::bind(&NotificationSubscriberManager::NotifyConsumedInner, this, notification, notificationMap); in NotifyConsumed()
180 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32_t deleteReason) in NotifyCanceled()
185 notifications.emplace_back(notification); in NotifyCanceled()
194 &NotificationSubscriberManager::NotifyCanceledInner, this, notification, notificationMap, deleteReason); in NotifyCanceled()
417 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in NotifyConsumedInner()
420 ANS_LOGD("%{public}s notification->GetUserId <%{public}d>", __FUNCTION__, notification->GetUserId()); in NotifyConsumedInner()
424 __FUNCTION__, record->userId, notification in NotifyConsumedInner()
144 NotifyConsumed( const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) NotifyConsumed() argument
179 NotifyCanceled( const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32_t deleteReason) NotifyCanceled() argument
416 NotifyConsumedInner( const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) NotifyConsumedInner() argument
470 sptr<Notification> notification = notifications[i]; BatchNotifyConsumedInner() local
486 NotifyCanceledInner( const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32_t deleteReason) NotifyCanceledInner() argument
512 IsSubscribedBysubscriber( const std::shared_ptr<SubscriberRecord> &record, const sptr<Notification> &notification) IsSubscribedBysubscriber() argument
565 sptr<Notification> notification = notifications[i]; BatchNotifyCanceledInner() local
[all...]
H A Dadvanced_notification_utils.cpp168 sorting.SetKey(record->notification->GetKey()); in GenerateSortingMap()
280 // get other bundle notification need controller permission in GetActiveNotificationByFilter()
282 ANS_LOGI("Get self notification uid: %{public}d, curUid: %{public}d.", in GetActiveNotificationByFilter()
369 if (record->notification == nullptr || record->request == nullptr) { in ActiveNotificationDump()
372 if (userId != SUBSCRIBE_USER_INIT && userId != record->notification->GetUserId()) { in ActiveNotificationDump()
375 if (recvUserId != SUBSCRIBE_USER_INIT && recvUserId != record->notification->GetRecvUserId()) { in ActiveNotificationDump()
378 if (!bundle.empty() && bundle != record->notification->GetBundleName()) { in ActiveNotificationDump()
388 stream << "\tUserId: " << record->notification->GetUserId() << "\n"; in ActiveNotificationDump()
390 stream << "\tOwnerBundleName: " << record->notification->GetBundleName() << "\n"; in ActiveNotificationDump()
400 stream << "\t\tId: " << record->notification in ActiveNotificationDump()
1261 DoDistributedDelete( const std::string deviceId, const std::string bundleName, const sptr<Notification> notification) DoDistributedDelete() argument
2029 sptr<Notification> notification = nullptr; OnRecoverLiveView() local
[all...]
H A Dadvanced_notification_publish_service.cpp60 const static std::string NOTIFICATION_EVENT_PUSH_AGENT = "notification.event.PUSH_AGENT";
206 record->notification = new (std::nothrow) Notification(request); in PublishNotificationForIndirectProxy()
207 if (record->notification == nullptr) { in PublishNotificationForIndirectProxy()
208 ANS_LOGE("Failed to create notification"); in PublishNotificationForIndirectProxy()
237 ANS_LOGE("Failed to assign notification list"); in PublishNotificationForIndirectProxy()
242 NotificationSubscriberManager::GetInstance()->NotifyConsumed(record->notification, sortingMap); in PublishNotificationForIndirectProxy()
335 sptr<Notification> notification = nullptr; in ExcuteCancelAll()
346 result = RemoveFromNotificationList(key, notification, true, reason); in ExcuteCancelAll()
351 if (notification != nullptr) { in ExcuteCancelAll()
352 UpdateRecentNotification(notification, tru in ExcuteCancelAll()
504 PublishAsBundle( const sptr<NotificationRequest> notification, const std::string &representativeBundle) PublishAsBundle() argument
1737 sptr<Notification> notification = nullptr; RemoveNotificationBySlot() local
2025 sptr<Notification> notification = nullptr; RemoveNotificationFromRecordList() local
[all...]
H A Dadvanced_notification_service.cpp358 if (!IsNotificationExists(record->notification->GetKey())) { in AssignToNotificationList()
391 sptr<Notification> notification = nullptr; in CancelPreparedNotification()
392 result = RemoveFromNotificationList(bundleOption, label, notificationId, notification, true); in CancelPreparedNotification()
397 if (notification != nullptr) { in CancelPreparedNotification()
398 UpdateRecentNotification(notification, true, reason); in CancelPreparedNotification()
399 CancelTimer(notification->GetAutoDeletedTimer()); in CancelPreparedNotification()
400 NotificationSubscriberManager::GetInstance()->NotifyCanceled(notification, nullptr, reason); in CancelPreparedNotification()
402 DoDistributedDelete("", "", notification); in CancelPreparedNotification()
472 record->notification->SetFinishTimer(timerId); in StartFinishTimer()
491 CancelTimer(record->notification in CancelFinishTimer()
1232 RemoveFromNotificationList(const sptr<NotificationBundleOption> &bundleOption, const std::string &label, int32_t notificationId, sptr<Notification> &notification, bool isCancel) RemoveFromNotificationList() argument
1285 RemoveFromNotificationList( const std::string &key, sptr<Notification> &notification, bool isCancel, int32_t removeReason) RemoveFromNotificationList() argument
1320 RemoveFromNotificationListForDeleteAll( const std::string &key, const int32_t &userId, sptr<Notification> &notification) RemoveFromNotificationListForDeleteAll() argument
1505 UpdateRecentNotification(sptr<Notification> &notification, bool isDelete, int32_t reason) UpdateRecentNotification() argument
[all...]
H A Dadvanced_notification_live_view_service.cpp65 ANS_LOGE("Delete notification failed."); in RecoverLiveViewFromDb()
73 ANS_LOGE("Fill notification record failed."); in RecoverLiveViewFromDb()
95 ANS_LOGE("Add notification to record list failed."); in RecoverLiveViewFromDb()
98 UpdateRecentNotification(record->notification, false, 0); in RecoverLiveViewFromDb()
165 ANS_LOGE("Live View cancel, delete notification failed."); in ProcForDeleteLiveView()
193 notificationRecord->notification != nullptr && in OnSubscriberAdd()
194 notificationRecord->notification->GetNotificationRequest().IsCommonLiveView()) { in OnSubscriberAdd()
195 notifications.emplace_back(notificationRecord->notification); in OnSubscriberAdd()
200 ANS_LOGI("No notification to consume."); in OnSubscriberAdd()
204 ANS_LOGI("Consume notification coun in OnSubscriberAdd()
[all...]
H A Dnotification_local_live_view_subscriber_manager.cpp130 void NotificationLocalLiveViewSubscriberManager::NotifyTriggerResponse(const sptr<Notification> &notification, in NotifyTriggerResponse() argument
140 this, notification, buttonOption); in NotifyTriggerResponse()
256 const sptr<Notification> &notification, const sptr<NotificationButtonOption> buttonOption) in NotifyTriggerResponseInner()
263 if (notification->GetNotificationRequestPoint()->GetAgentBundle() != nullptr) { in NotifyTriggerResponseInner()
264 sendUserId = notification->GetNotificationRequestPoint()->GetAgentBundle()->GetUid(); in NotifyTriggerResponseInner()
265 bundleName = notification->GetNotificationRequestPoint()->GetAgentBundle()->GetBundleName(); in NotifyTriggerResponseInner()
267 sendUserId = notification->GetUid(); in NotifyTriggerResponseInner()
268 bundleName = notification->GetBundleName(); in NotifyTriggerResponseInner()
277 record->subscriber->OnResponse(notification->GetId(), buttonOption); in NotifyTriggerResponseInner()
255 NotifyTriggerResponseInner( const sptr<Notification> &notification, const sptr<NotificationButtonOption> buttonOption) NotifyTriggerResponseInner() argument
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon_convert_notification.cpp34 const napi_env &env, const OHOS::Notification::Notification *notification, napi_value &result) in SetNotificationByDistributedOptions()
37 if (notification == nullptr) { in SetNotificationByDistributedOptions()
38 ANS_LOGE("notification is nullptr"); in SetNotificationByDistributedOptions()
42 NotificationDistributedOptions options = notification->GetNotificationRequest().GetNotificationDistributedOptions(); in SetNotificationByDistributedOptions()
45 if (notification->GetDeviceId().empty()) { in SetNotificationByDistributedOptions()
82 if (!AnsEnumUtil::DeviceRemindTypeCToJS(notification->GetRemindType(), outType)) { in SetNotificationByDistributedOptions()
92 const napi_env &env, const OHOS::Notification::Notification *notification, napi_value &result) in SetNotification()
96 if (notification == nullptr) { in SetNotification()
97 ANS_LOGE("notification is nullptr"); in SetNotification()
101 NotificationRequest request = notification in SetNotification()
33 SetNotificationByDistributedOptions( const napi_env &env, const OHOS::Notification::Notification *notification, napi_value &result) SetNotificationByDistributedOptions() argument
91 SetNotification( const napi_env &env, const OHOS::Notification::Notification *notification, napi_value &result) SetNotification() argument
[all...]
/base/notification/distributed_notification_service/test/fuzztest/notificationannex_fuzzer/
H A Dnotificationannex_fuzzer.cpp18 #include "notification.h"
31 Notification::Notification notification(stringData, request); in DoSomethingInterestingWithMyAPI()
32 notification.GetSourceType(); in DoSomethingInterestingWithMyAPI()
33 notification.GetDeviceId(); in DoSomethingInterestingWithMyAPI()
35 notification.SetSound(sound); in DoSomethingInterestingWithMyAPI()
37 return notification.MarshallingBool(parcel); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/notificationhelper_fuzzer/
H A Dnotificationhelper_fuzzer.cpp30 Notification::NotificationRequest notification; in DoSomethingInterestingWithMyAPI() local
31 notification.SetOwnerUid(fuzzData.GenerateRandomInt32()); in DoSomethingInterestingWithMyAPI()
32 notification.SetCreatorUid(fuzzData.GenerateRandomInt32()); in DoSomethingInterestingWithMyAPI()
33 notification.SetSlotType(Notification::NotificationConstant::SlotType::LIVE_VIEW); in DoSomethingInterestingWithMyAPI()
35 notification.SetContent(std::make_shared<Notification::NotificationContent>(content)); in DoSomethingInterestingWithMyAPI()
36 notificationHelper.PublishNotificationAsBundle(representativeBundle, notification); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_subscriber_listener.cpp53 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in OnConsumed()
62 std::shared_ptr<Notification> sharedNotification = std::make_shared<Notification>(*notification); in OnConsumed()
77 for (auto notification : notifications) { in OnConsumedList()
78 OnConsumed(notification, notificationMap); in OnConsumedList()
83 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32_t deleteReason) in OnCanceled()
92 subscriber->OnCanceled(std::make_shared<Notification>(*notification), in OnCanceled()
95 subscriber->OnCanceled(std::make_shared<Notification>(*notification), in OnCanceled()
109 for (auto notification : notifications) { in OnBatchCanceled()
110 notificationList.emplace_back(std::make_shared<Notification>(*notification)); in OnBatchCanceled()
134 for (auto notification in OnCanceledList()
52 OnConsumed( const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) OnConsumed() argument
82 OnCanceled( const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32_t deleteReason) OnCanceled() argument
[all...]
H A Dans_subscriber_proxy.cpp91 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in OnConsumed()
93 if (notification == nullptr) { in OnConsumed()
94 ANS_LOGE("[OnConsumed] fail: notification is nullptr."); in OnConsumed()
99 if (notification->GetNotificationRequest().IsCommonLiveView()) { in OnConsumed()
110 if (!data.WriteParcelable(notification)) { in OnConsumed()
111 ANS_LOGE("[OnConsumed] fail: write notification failed."); in OnConsumed()
141 ANS_LOGE("Invalid notification to consumed."); in OnConsumedList()
178 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32_t deleteReason) in OnCanceled()
180 if (notification == nullptr) { in OnCanceled()
181 ANS_LOGE("[OnCanceled] fail: notification i in OnCanceled()
90 OnConsumed( const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) OnConsumed() argument
177 OnCanceled( const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32_t deleteReason) OnCanceled() argument
243 sptr<Notification> notification = notifications[i]; OnCanceledList() local
[all...]
H A Dans_subscriber_stub.cpp108 sptr<Notification> notification = data.ReadParcelable<Notification>(); in HandleOnConsumedMap() local
109 if (!notification) { in HandleOnConsumedMap()
110 ANS_LOGW("[HandleOnConsumedMap] fail: notification ReadParcelable failed"); in HandleOnConsumedMap()
129 OnConsumed(notification, notificationMap); in HandleOnConsumedMap()
164 sptr<Notification> notification = data.ReadParcelable<Notification>(); in HandleOnCanceledMap() local
165 if (!notification) { in HandleOnCanceledMap()
166 ANS_LOGW("[HandleOnCanceledMap] fail: notification ReadParcelable failed"); in HandleOnCanceledMap()
191 OnCanceled(notification, notificationMap, reason); in HandleOnCanceledMap()
314 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) in OnConsumed()
322 const sptr<Notification> &notification, cons in OnCanceled()
313 OnConsumed( const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) OnConsumed() argument
321 OnCanceled( const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap, int32_t deleteReason) OnCanceled() argument
[all...]
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_subscriber_stub_test/
H A Dans_subscriber_stub_unit_test.cpp156 * @tc.desc: test notification failed
179 sptr<Notification> notification = new Notification(); in HWTEST_F() local
180 data.WriteParcelable(notification); in HWTEST_F()
196 sptr<Notification> notification = new Notification(); in HWTEST_F() local
197 data.WriteParcelable(notification); in HWTEST_F()
215 sptr<Notification> notification = new Notification(); in HWTEST_F() local
216 data.WriteParcelable(notification); in HWTEST_F()
228 * @tc.desc: test notification failed
250 sptr<Notification> notification = new Notification(); in HWTEST_F() local
252 notifications.emplace_back(notification); in HWTEST_F()
275 sptr<Notification> notification = new Notification(); HWTEST_F() local
303 sptr<Notification> notification = new Notification(); HWTEST_F() local
347 sptr<Notification> notification = new Notification(); HWTEST_F() local
364 sptr<Notification> notification = new Notification(); HWTEST_F() local
383 sptr<Notification> notification = new Notification(); HWTEST_F() local
404 sptr<Notification> notification = new Notification(); HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_subscriber_proxy_branch_test/
H A Dans_subscriber_proxy_branch_test.cpp27 #include "notification.h"
93 sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notification(request); in HWTEST_F() local
95 notifications.emplace_back(notification); in HWTEST_F()
117 sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notification(request); in HWTEST_F() local
119 notifications.emplace_back(notification); in HWTEST_F()
158 sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notification(); in HWTEST_F() local
160 notifications.emplace_back(notification); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dnotification_subscriber_manager_test.cpp151 sptr<Notification> notification = new Notification(request); in HWTEST_F() local
153 notificationSubscriberManager_->NotifyConsumed(notification, notificationMap); in HWTEST_F()
171 sptr<Notification> notification = new Notification(request); in HWTEST_F() local
174 notificationSubscriberManager_->NotifyCanceled(notification, notificationMap, deleteReason); in HWTEST_F()
241 sptr<Notification> notification = new Notification(request); in HWTEST_F() local
244 notifications.emplace_back(notification); in HWTEST_F()
271 * @tc.name : BatchNotifyConsumedInner and subscriber isn't subscribed to this notification
281 sptr<Notification> notification = new Notification(request); in HWTEST_F() local
284 notifications.emplace_back(notification); in HWTEST_F()
310 sptr<Notification> notification in HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
H A Dans_notification_branch_test.cpp29 #include "notification.h"
51 ErrCode Publish(const std::string &label, const sptr<NotificationRequest> &notification) override
56 ErrCode PublishNotificationForIndirectProxy(const sptr<NotificationRequest> &notification) override
161 const sptr<NotificationRequest> notification, const std::string &representativeBundle) override
739 auto notification = std::make_shared<AnsNotification>(); in HWTEST_F() local
740 EXPECT_TRUE(notification->CanPublishLiveViewContent(request)); in HWTEST_F()
758 auto notification = std::make_shared<AnsNotification>(); in HWTEST_F() local
759 EXPECT_FALSE(notification->CanPublishLiveViewContent(request)); in HWTEST_F()
776 auto notification = std::make_shared<AnsNotification>(); in HWTEST_F() local
777 EXPECT_TRUE(notification in HWTEST_F()
795 auto notification = std::make_shared<AnsNotification>(); HWTEST_F() local
814 auto notification = std::make_shared<AnsNotification>(); HWTEST_F() local
833 auto notification = std::make_shared<AnsNotification>(); HWTEST_F() local
847 auto notification = std::make_shared<AnsNotification>(); HWTEST_F() local
862 auto notification = std::make_shared<AnsNotification>(); HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/services/ans/include/
H A Dnotification_subscriber_manager.h67 * @param notification Indicates the Notification object.
70 void NotifyConsumed(const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap);
78 * @param notification Indicates the Notification object.
82 void NotifyCanceled(const sptr<Notification> &notification,
156 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap);
159 void NotifyCanceledInner(const sptr<Notification> &notification,
169 const std::shared_ptr<SubscriberRecord> &record, const sptr<Notification> &notification);
/base/notification/distributed_notification_service/test/fuzztest/anssubscriberproxy_fuzzer/
H A Danssubscriberproxy_fuzzer.cpp44 sptr<Notification::Notification> notification = new Notification::Notification(request); in DoSomethingInterestingWithMyAPI() local
47 ansSubscriberProxy.OnConsumed(notification, notificationMap); in DoSomethingInterestingWithMyAPI()
50 ansSubscriberProxy.OnCanceled(notification, notificationMap, deleteReason); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_subscriber_proxy_test/
H A Dans_subscriber_proxy_unit_test.cpp27 #include "notification.h"
164 sptr<OHOS::Notification::Notification> notification = in HWTEST_F() local
166 ASSERT_NE(nullptr, notification); in HWTEST_F()
169 proxy->OnConsumed(notification, notificationMap); in HWTEST_F()
190 sptr<OHOS::Notification::Notification> notification = in HWTEST_F() local
192 ASSERT_NE(nullptr, notification); in HWTEST_F()
195 proxy->OnConsumed(notification, notificationMap); in HWTEST_F()
236 sptr<OHOS::Notification::Notification> notification = in HWTEST_F() local
238 ASSERT_NE(nullptr, notification); in HWTEST_F()
239 proxy->OnConsumed(notification, nullpt in HWTEST_F()
277 sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notification(request); HWTEST_F() local
320 sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notification(request); HWTEST_F() local
345 sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notification(request); HWTEST_F() local
371 sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notification(request); HWTEST_F() local
418 sptr<OHOS::Notification::Notification> notification = new (std::nothrow) OHOS::Notification::Notification(request); HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/test/fuzztest/getallactivenotifications_fuzzer/
H A Dgetallactivenotifications_fuzzer.cpp35 sptr<Notification::Notification> notification = nullptr; in DoSomethingInterestingWithMyAPI() local
37 notifications.emplace_back(notification); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/include/
H A Dans_subscriber_interface.h23 #include "notification.h"
51 * @brief The callback function on a notification published.
53 * @param notification Indicates the consumed notification.
57 const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap) = 0;
63 * @brief The callback function on a notification canceled.
65 * @param notification Indicates the canceled notification.
69 virtual void OnCanceled(const sptr<Notification> &notification, const sptr<NotificationSortingMap> &notificationMap,
90 * @brief The callback function on the notification enable
[all...]

Completed in 17 milliseconds

1234