/base/notification/distributed_notification_service/test/fuzztest/settemplate_fuzzer/ |
D | settemplate_fuzzer.cpp | 31 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/ |
D | cancelnotification_fuzzer.cpp | 24 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/ |
D | cancelasbundle_fuzzer.cpp | 24 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/ |
D | notificationrequestannex_fuzzer.cpp | 26 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/ |
D | ansmanagerstubannextwo_fuzzer.cpp | 39 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/ |
D | notification_subscriber_manager_branch_test.cpp | 454 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/ |
D | notification_helper.h | 135 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/ |
D | notification_helper.cpp | 73 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/ |
D | event_report.cpp | 129 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/ |
D | advancednotificationservice_fuzzer.cpp | 36 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/ |
D | notification_hisysevent_test.cpp | 116 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()
|
D | advanced_notification_service_branch_test.cpp | 196 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/ |
D | ans_notification.h | 134 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);
|
D | ans_manager_interface.h | 61 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;
|
D | ans_manager_proxy.h | 51 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/ |
D | setprogressbar_fuzzer.cpp | 27 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/ |
D | notificationrequest_fuzzer.cpp | 32 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/ |
D | ansmanagerstubannexthree_fuzzer.cpp | 33 int notificationId = 1; in DoSomethingInterestingWithMyAPI() local 36 ansManagerStub.RemoveNotification(bundleOption, notificationId, stringData, removeReason); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/services/ans/include/ |
D | advanced_notification_service.h | 78 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> ¬ification, bool isCancel = false); 818 void SendCancelHiSysEvent(int32_t notificationId, const std::string &label, 820 void SendRemoveHiSysEvent(int32_t notificationId, const std::string &label,
|
D | event_report.h | 46 int32_t notificationId = 0; member
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/ |
D | ansmanagerstub_fuzzer.cpp | 108 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/ |
D | notification_helper_test.cpp | 211 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/ |
D | ans_notification.cpp | 166 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/ |
D | ans_notification_branch_test.cpp | 56 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/ |
D | ReminderHelperTest.js | 1405 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
|