Home
last modified time | relevance | path

Searched refs:notificationId (Results 1 – 25 of 42) sorted by relevance

12

/base/notification/distributed_notification_service/test/fuzztest/settemplate_fuzzer/
Dsettemplate_fuzzer.cpp31 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
32 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
45 request.SetProgressBar(notificationId, notificationId, enabled); in DoSomethingInterestingWithMyAPI()
57 request.SetCreatorUid(notificationId); in DoSomethingInterestingWithMyAPI()
59 request.SetOwnerUid(notificationId); in DoSomethingInterestingWithMyAPI()
66 request.SetCreatorUserId(notificationId); in DoSomethingInterestingWithMyAPI()
68 request.SetOwnerUserId(notificationId); in DoSomethingInterestingWithMyAPI()
79 request.SetReceiverUserId(notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/cancelnotification_fuzzer/
Dcancelnotification_fuzzer.cpp24 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
28 Notification::NotificationHelper::CancelNotification(notificationId); in DoSomethingInterestingWithMyAPI()
29 … return Notification::NotificationHelper::CancelNotification(label, notificationId) == ERR_OK; in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/cancelasbundle_fuzzer/
Dcancelasbundle_fuzzer.cpp24 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
27 notificationId, representativeBundle, userId) == ERR_OK; in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/notificationrequestannex_fuzzer/
Dnotificationrequestannex_fuzzer.cpp26 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
27 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannextwo_fuzzer/
Dansmanagerstubannextwo_fuzzer.cpp39 int notificationId = 1; in DoSomethingInterestingWithMyAPI() local
40 ansManagerStub.Cancel(notificationId, stringData); in DoSomethingInterestingWithMyAPI()
76 ansManagerStub.SetNotificationBadgeNum(notificationId); in DoSomethingInterestingWithMyAPI()
77 ansManagerStub.GetBundleImportance(notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
Dnotification_subscriber_manager_branch_test.cpp454 int32_t notificationId = 1; variable
461 …EXPECT_EQ(advancedNotificationService.CancelAsBundle(notificationId, representativeBundle, userId),
810 int32_t notificationId = 1; variable
819 …EXPECT_EQ(advancedNotificationService.RemoveNotification(bundleOption, notificationId, label, remo…
831 int32_t notificationId = 0; variable
838 bundleOption->SetUid(notificationId);
841 …EXPECT_EQ(advancedNotificationService.RemoveNotification(bundleOption, notificationId, label, remo…
874 int32_t notificationId = 0; variable
875 bundleOption->SetUid(notificationId);
912 int32_t notificationId = 0; variable
[all …]
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_helper.h135 static ErrCode CancelNotification(int32_t notificationId);
144 static ErrCode CancelNotification(const std::string &label, int32_t notificationId);
164 …static ErrCode CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int…
373 const int32_t notificationId, const std::string &label, int32_t removeReason);
639 … static ErrCode CancelContinuousTaskNotification(const std::string &label, int32_t notificationId);
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_helper.cpp73 ErrCode NotificationHelper::CancelNotification(int32_t notificationId) in CancelNotification() argument
75 return DelayedSingleton<AnsNotification>::GetInstance()->CancelNotification(notificationId); in CancelNotification()
78 ErrCode NotificationHelper::CancelNotification(const std::string &label, int32_t notificationId) in CancelNotification() argument
80 …return DelayedSingleton<AnsNotification>::GetInstance()->CancelNotification(label, notificationId); in CancelNotification()
89 int32_t notificationId, const std::string &representativeBundle, int32_t userId) in CancelAsBundle() argument
92 notificationId, representativeBundle, userId); in CancelAsBundle()
190 const int32_t notificationId, const std::string &label, int32_t removeReason) in RemoveNotification() argument
193 notificationId, label, removeReason); in RemoveNotification()
337 …ificationHelper::CancelContinuousTaskNotification(const std::string &label, int32_t notificationId) in CancelContinuousTaskNotification() argument
339 …Singleton<AnsNotification>::GetInstance()->CancelContinuousTaskNotification(label, notificationId); in CancelContinuousTaskNotification()
/base/notification/distributed_notification_service/services/ans/src/
Devent_report.cpp129 EVENT_PARAM_NOTIFICATION_ID, eventInfo.notificationId, in InnerSendPublishErrorEvent()
141 EVENT_PARAM_NOTIFICATION_ID, eventInfo.notificationId, in InnerSendFlowControlOccurEvent()
194 EVENT_PARAM_NOTIFICATION_ID, eventInfo.notificationId, in InnerSendPublishEvent()
205 EVENT_PARAM_NOTIFICATION_ID, eventInfo.notificationId, in InnerSendCancelEvent()
216 EVENT_PARAM_NOTIFICATION_ID, eventInfo.notificationId, in InnerSendRemoveEvent()
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
Dadvancednotificationservice_fuzzer.cpp36 int notificationId = static_cast<int>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
37 advancedNotificationService.Cancel(notificationId, stringData); in DoSomethingInterestingWithMyAPI()
40 advancedNotificationService.CancelAsBundle(notificationId, stringData, userId); in DoSomethingInterestingWithMyAPI()
72 …advancedNotificationService.RemoveNotification(bundleOption, notificationId, stringData, removeRea… in DoSomethingInterestingWithMyAPI()
112 advancedNotificationService.CancelContinuousTaskNotification(stringData, notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dnotification_hisysevent_test.cpp116 int32_t notificationId =5; in HWTEST_F() local
118 NotificationRequest notificationRequest(notificationId); in HWTEST_F()
164 eventInfo.notificationId = TEST_NOTIFICATION_ID; in HWTEST_F()
190 eventInfo.notificationId = TEST_NOTIFICATION_ID; in HWTEST_F()
334 eventInfo.notificationId = TEST_NOTIFICATION_ID; in HWTEST_F()
360 eventInfo.notificationId = TEST_NOTIFICATION_ID; in HWTEST_F()
386 eventInfo.notificationId = TEST_NOTIFICATION_ID; in HWTEST_F()
Dadvanced_notification_service_branch_test.cpp196 int32_t notificationId = 1; variable
200 notificationId, representativeBundle, userId), ERR_ANS_NON_SYSTEM_APP);
215 int32_t notificationId = 1; variable
219 notificationId, representativeBundle, userId), ERR_ANS_PERMISSION_DENIED);
684 int32_t notificationId = 1; variable
688 notificationId, label, NotificationConstant::CANCEL_REASON_DELETE);
/base/notification/distributed_notification_service/frameworks/core/include/
Dans_notification.h134 ErrCode CancelNotification(int32_t notificationId);
143 ErrCode CancelNotification(const std::string &label, int32_t notificationId);
163 …ErrCode CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t us…
370 …Code RemoveNotification(const NotificationBundleOption &bundleOption, const int32_t notificationId,
639 ErrCode CancelContinuousTaskNotification(const std::string &label, int32_t notificationId);
Dans_manager_interface.h61 virtual ErrCode Cancel(int notificationId, const std::string &label) = 0;
81 int32_t notificationId, const std::string &representativeBundle, int32_t userId) = 0;
267 … ErrCode RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int notificationId,
529 …ual ErrCode CancelContinuousTaskNotification(const std::string &label, int32_t notificationId) = 0;
Dans_manager_proxy.h51 ErrCode Cancel(int32_t notificationId, const std::string &label) override;
70 …ErrCode CancelAsBundle(int32_t notificationId, const std::string &representativeBundle, int32_t us…
247 …Code RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId,
518 …ErrCode CancelContinuousTaskNotification(const std::string &label, int32_t notificationId) overrid…
/base/notification/distributed_notification_service/test/fuzztest/setprogressbar_fuzzer/
Dsetprogressbar_fuzzer.cpp27 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
28 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/notificationrequest_fuzzer/
Dnotificationrequest_fuzzer.cpp32 int32_t notificationId = static_cast<int32_t>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
33 Notification::NotificationRequest request(notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/
Dansmanagerstubannexthree_fuzzer.cpp33 int notificationId = 1; in DoSomethingInterestingWithMyAPI() local
36 ansManagerStub.RemoveNotification(bundleOption, notificationId, stringData, removeReason); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/include/
Dadvanced_notification_service.h78 ErrCode Cancel(int32_t notificationId, const std::string &label) override;
98 int32_t notificationId, const std::string &representativeBundle, int32_t userId) override;
275 …Code RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId,
546 …ErrCode CancelContinuousTaskNotification(const std::string &label, int32_t notificationId) overrid…
689 …int32_t notificationId, const std::string &label, const sptr<NotificationBundleOption> &bundleOpti…
747 int32_t notificationId, sptr<Notification> &notification, bool isCancel = false);
818 void SendCancelHiSysEvent(int32_t notificationId, const std::string &label,
820 void SendRemoveHiSysEvent(int32_t notificationId, const std::string &label,
Devent_report.h46 int32_t notificationId = 0; member
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/
Dansmanagerstub_fuzzer.cpp108 int notificationId = static_cast<int>(GetU32Data(data)); in DoSomethingInterestingWithMyAPI() local
109 ansManagerStub.Cancel(notificationId, stringData); in DoSomethingInterestingWithMyAPI()
112 ansManagerStub.CancelAsBundle(notificationId, stringData, userId); in DoSomethingInterestingWithMyAPI()
144 ansManagerStub.RemoveNotification(bundleOption, notificationId, stringData, removeReason); in DoSomethingInterestingWithMyAPI()
177 ansManagerStub.CancelContinuousTaskNotification(stringData, notificationId); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_helper_test.cpp211 int32_t notificationId = 10; variable
213 ErrCode ret = notificationHelper.CancelNotification(notificationId);
226 int32_t notificationId = 10; variable
228 ErrCode ret = notificationHelper.CancelNotification(label, notificationId);
253 int32_t notificationId = 10; variable
257 ErrCode ret = notificationHelper.CancelAsBundle(notificationId, representativeBundle, userId);
469 int32_t notificationId = 10; variable
473 …ErrCode ret = notificationHelper.RemoveNotification(bundleOption, notificationId, label, removeRea…
846 int32_t notificationId = 10; variable
848 ErrCode ret = notificationHelper.CancelContinuousTaskNotification(label, notificationId);
/base/notification/distributed_notification_service/frameworks/core/src/
Dans_notification.cpp166 ErrCode AnsNotification::CancelNotification(int32_t notificationId) in CancelNotification() argument
168 return CancelNotification("", notificationId); in CancelNotification()
171 ErrCode AnsNotification::CancelNotification(const std::string &label, int32_t notificationId) in CancelNotification() argument
178 return ansManagerProxy_->Cancel(notificationId, label); in CancelNotification()
191 int32_t notificationId, const std::string &representativeBundle, int32_t userId) in CancelAsBundle() argument
197 return ansManagerProxy_->CancelAsBundle(notificationId, representativeBundle, userId); in CancelAsBundle()
458 const int32_t notificationId, const std::string &label, int32_t removeReason) in RemoveNotification() argument
472 return ansManagerProxy_->RemoveNotification(bo, notificationId, label, removeReason); in RemoveNotification()
797 …AnsNotification::CancelContinuousTaskNotification(const std::string &label, int32_t notificationId) in CancelContinuousTaskNotification() argument
804 return ansManagerProxy_->CancelContinuousTaskNotification(label, notificationId); in CancelContinuousTaskNotification()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
Dans_notification_branch_test.cpp56 ErrCode Cancel(int notificationId, const std::string &label) override in Cancel() argument
67 int32_t notificationId, const std::string &representativeBundle, int32_t userId) override in CancelAsBundle() argument
169 … ErrCode RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int notificationId, in RemoveNotification() argument
331 …ErrCode CancelContinuousTaskNotification(const std::string &label, int32_t notificationId) override in CancelContinuousTaskNotification() argument
/base/notification/distributed_notification_service/frameworks/test/moduletest/
DReminderHelperTest.js1405 notificationId:100, property
1437 expect(reminders[i].notificationId).assertEqual(100);
1438 … console.log("getValidReminders, notificationId = " + reminders[i].notificationId);
1492 notificationId:100, property
1524 expect(reminders[i].notificationId).assertEqual(100);
1525 … console.log("getValidReminders, notificationId = " + reminders[i].notificationId);
1579 notificationId:100, property
1641 notificationId:100, property

12