Home
last modified time | relevance | path

Searched refs:removeReason (Results 1 - 25 of 29) sorted by relevance

12

/base/notification/distributed_notification_service/frameworks/js/napi/src/subscribe/
H A Dnapi_remove.cpp34 removeInfo->params.removeReason); in NapiRemoveExecuteCallback()
37 removeInfo->params.removeReason); in NapiRemoveExecuteCallback()
41 infos.key.id, infos.key.label, removeInfo->params.removeReason); in NapiRemoveExecuteCallback()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dremove.cpp41 int32_t removeReason = 0; in ParseRemoveReason() local
42 napi_get_value_int32(env, value, &removeReason); in ParseRemoveReason()
43 if (!Common::IsValidRemoveReason(removeReason)) { in ParseRemoveReason()
47 params.removeReason = removeReason; in ParseRemoveReason()
92 // argv[1]:removeReason in ParseHashcodeTypeParams()
119 // argv[2]:removeReason in ParseBundleOptionTypeParams()
288 removeInfo->params.removeReason); in RemoveExecuteCallback()
292 infos.key.id, infos.key.label, removeInfo->params.removeReason); in RemoveExecuteCallback()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
H A Dans_notification_branch_test.cpp181 ErrCode Delete(const std::string &key, int32_t removeReason) override
187 const std::string &label, int32_t removeReason) override
197 ErrCode RemoveNotifications(const std::vector<std::string> &hashcodes, int32_t removeReason) override
626 int32_t removeReason = 1; in HWTEST_F() local
627 ErrCode ret = ansNotification->RemoveNotifications(hashcodes, removeReason); in HWTEST_F()
645 int32_t removeReason = 1; in HWTEST_F() local
646 ErrCode ret = ansNotification->RemoveNotifications(hashcodes, removeReason); in HWTEST_F()
664 int32_t removeReason = 1; in HWTEST_F() local
665 ansNotification->RemoveNotifications(hashcodes, removeReason); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_helper.cpp241 ErrCode NotificationHelper::RemoveNotification(const std::string &key, int32_t removeReason) in RemoveNotification() argument
243 return DelayedSingleton<AnsNotification>::GetInstance()->RemoveNotification(key, removeReason); in RemoveNotification()
247 const int32_t notificationId, const std::string &label, int32_t removeReason) in RemoveNotification()
250 notificationId, label, removeReason); in RemoveNotification()
258 ErrCode NotificationHelper::RemoveNotifications(const std::vector<std::string> hashcodes, int32_t removeReason) in RemoveNotifications() argument
260 return DelayedSingleton<AnsNotification>::GetInstance()->RemoveNotifications(hashcodes, removeReason); in RemoveNotifications()
246 RemoveNotification(const NotificationBundleOption &bundleOption, const int32_t notificationId, const std::string &label, int32_t removeReason) RemoveNotification() argument
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_helper.h524 * @param removeReason Indicates the reason of remove notification.
527 static ErrCode RemoveNotification(const std::string &key, int32_t removeReason);
536 * @param removeReason Indicates the reason of remove notification.
540 const int32_t notificationId, const std::string &label, int32_t removeReason);
551 static ErrCode RemoveNotifications(const std::vector<std::string> hashcodes, int32_t removeReason);
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_publish_service.cpp534 ErrCode AdvancedNotificationService::Delete(const std::string &key, int32_t removeReason) in Delete() argument
542 ReportDeleteFailedEventPush(haMetaMessage, removeReason, message); in Delete()
551 ReportDeleteFailedEventPush(haMetaMessage, removeReason, message); in Delete()
562 return ExcuteDelete(key, removeReason); in Delete()
565 ErrCode AdvancedNotificationService::ExcuteDelete(const std::string &key, const int32_t removeReason) in ExcuteDelete() argument
576 result = RemoveFromNotificationList(key, notification, false, removeReason); in ExcuteDelete()
582 UpdateRecentNotification(notification, true, removeReason); in ExcuteDelete()
584 NotificationSubscriberManager::GetInstance()->NotifyCanceled(notification, nullptr, removeReason); in ExcuteDelete()
1447 int32_t notificationId, const std::string &label, int32_t removeReason) in RemoveNotification()
1457 ReportDeleteFailedEventPush(haMetaMessage, removeReason, messag in RemoveNotification()
1446 RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId, const std::string &label, int32_t removeReason) RemoveNotification() argument
1663 RemoveNotifications( const std::vector<std::string> &keys, int32_t removeReason) RemoveNotifications() argument
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Dremove.h35 int32_t removeReason = NotificationConstant::CANCEL_REASON_DELETE; member
/base/notification/distributed_notification_service/frameworks/core/include/
H A Dans_manager_interface.h321 * @param removeReason Indicates the reason of remove notification.
324 virtual ErrCode Delete(const std::string &key, int32_t removeReason) = 0;
332 * @param removeReason Indicates the reason of remove notification.
336 const std::string &label, int32_t removeReason) = 0;
346 virtual ErrCode RemoveNotifications(const std::vector<std::string> &hashcodes, int32_t removeReason) = 0;
H A Dans_manager_proxy.h310 * @param removeReason Indicates the reason of remove notification.
314 const std::string &label, int32_t removeReason) override;
324 ErrCode RemoveNotifications(const std::vector<std::string> &hashcodes, int32_t removeReason) override;
330 * @param removeReason Indicates the reason of remove notification.
333 ErrCode Delete(const std::string &key, int32_t removeReason) override;
H A Dans_notification.h457 * @param removeReason Indicates the reason of remove notification.
460 ErrCode RemoveNotification(const std::string &key, int32_t removeReason);
469 * @param removeReason Indicates the reason of remove notification.
473 const std::string &label, int32_t removeReason);
484 ErrCode RemoveNotifications(const std::vector<std::string> hashcodes, int32_t removeReason);
H A Dans_manager_stub.h314 * @param removeReason Indicates the reason of remove notification.
318 const std::string &label, int32_t removeReason) override;
328 ErrCode RemoveNotifications(const std::vector<std::string> &keys, int32_t removeReason) override;
334 * @param removeReason Indicates the reason of remove notification.
337 virtual ErrCode Delete(const std::string &key, int32_t removeReason) override;
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_manager_stub_invalid.cpp211 int notificationId, const std::string &label, int32_t removeReason) in RemoveNotification()
223 ErrCode AnsManagerStub::RemoveNotifications(const std::vector<std::string> &keys, int32_t removeReason) in RemoveNotifications() argument
229 ErrCode AnsManagerStub::Delete(const std::string &key, int32_t removeReason) in Delete() argument
210 RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int notificationId, const std::string &label, int32_t removeReason) RemoveNotification() argument
H A Dans_notification.cpp745 ErrCode AnsNotification::RemoveNotification(const std::string &key, int32_t removeReason) in RemoveNotification() argument
747 ANS_LOGI("enter RemoveNotification,key:%{public}s,removeReason:%{public}d", in RemoveNotification()
748 key.c_str(), removeReason); in RemoveNotification()
760 return proxy->Delete(key, removeReason); in RemoveNotification()
764 const int32_t notificationId, const std::string &label, int32_t removeReason) in RemoveNotification()
767 bundleOption.GetBundleName().c_str(), notificationId, removeReason); in RemoveNotification()
781 return proxy->RemoveNotification(bo, notificationId, label, removeReason); in RemoveNotification()
802 ErrCode AnsNotification::RemoveNotifications(const std::vector<std::string> hashcodes, int32_t removeReason) in RemoveNotifications() argument
804 ANS_LOGI("enter RemoveNotifications,removeReason:%{public}d", removeReason); in RemoveNotifications()
763 RemoveNotification(const NotificationBundleOption &bundleOption, const int32_t notificationId, const std::string &label, int32_t removeReason) RemoveNotification() argument
[all...]
H A Dans_manager_stub.cpp1164 int32_t removeReason = 0; in HandleRemoveNotification() local
1165 if (!data.ReadInt32(removeReason)) { in HandleRemoveNotification()
1166 ANS_LOGE("[HandleRemoveNotification] fail: read removeReason failed"); in HandleRemoveNotification()
1170 ErrCode result = RemoveNotification(bundleOption, notificationId, label, removeReason); in HandleRemoveNotification()
1208 int32_t removeReason = 0; in HandleRemoveNotifications() local
1209 if (!data.ReadInt32(removeReason)) { in HandleRemoveNotifications()
1210 ANS_LOGE("read removeReason failed"); in HandleRemoveNotifications()
1214 ErrCode result = RemoveNotifications(keys, removeReason); in HandleRemoveNotifications()
1231 int32_t removeReason = 0; in HandleDelete() local
1232 if (!data.ReadInt32(removeReason)) { in HandleDelete()
[all...]
H A Dans_manager_proxy.cpp767 int32_t notificationId, const std::string &label, int32_t removeReason) in RemoveNotification()
795 if (!data.WriteInt32(removeReason)) { in RemoveNotification()
796 ANS_LOGE("[RemoveNotification] fail: write removeReason failed"); in RemoveNotification()
850 ErrCode AnsManagerProxy::RemoveNotifications(const std::vector<std::string> &keys, int32_t removeReason) in RemoveNotifications() argument
873 if (!data.WriteInt32(removeReason)) { in RemoveNotifications()
874 ANS_LOGE("fail: write removeReason failed"); in RemoveNotifications()
894 ErrCode AnsManagerProxy::Delete(const std::string &key, int32_t removeReason) in Delete() argument
912 if (!data.WriteInt32(removeReason)) { in Delete()
913 ANS_LOGE("[Delete] fail: write removeReason failed"); in Delete()
766 RemoveNotification(const sptr<NotificationBundleOption> &bundleOption, int32_t notificationId, const std::string &label, int32_t removeReason) RemoveNotification() argument
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_annex_test/
H A Dans_notification_annex_test.cpp145 int32_t removeReason = 10; in HWTEST_F() local
151 ErrCode ret3 = ans_->RemoveNotification(bundleOption, notificationId, label, removeReason); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_publish_service_test.cpp587 int removeReason = 1; in HWTEST_F() local
588 auto ret = advancedNotificationService_->RemoveNotifications(keys, removeReason); in HWTEST_F()
593 ret = advancedNotificationService_->RemoveNotifications(keys, removeReason); in HWTEST_F()
598 ret = advancedNotificationService_->RemoveNotifications(keys, removeReason); in HWTEST_F()
611 int removeReason = 1; in HWTEST_F() local
623 ret = advancedNotificationService_->RemoveNotifications(keys, removeReason); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
H A Dnotification_subscriber_manager_branch_test.cpp457 int32_t removeReason = 1; in HWTEST_F() local
462 ASSERT_EQ(advancedNotificationService.Delete(key, removeReason), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F()
760 int32_t removeReason = 1; in HWTEST_F() local
765 ASSERT_EQ(advancedNotificationService.RemoveNotification(bundleOption, notificationId, label, removeReason), in HWTEST_F()
779 int32_t removeReason = 1; in HWTEST_F() local
785 ASSERT_EQ(advancedNotificationService.RemoveNotification(bundleOption, notificationId, label, removeReason), in HWTEST_F()
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
H A Dadvancednotificationservice_fuzzer.cpp91 int32_t removeReason = fuzzData.GenerateRandomInt32(); in DoSomethingInterestingWithMyAPI() local
92 service->RemoveNotification(bundleOption, notificationId, stringData, removeReason); in DoSomethingInterestingWithMyAPI()
94 service->Delete(stringData, removeReason); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/include/
H A Dadvanced_notification_service.h362 * @param removeReason Indicates the reason of remove notification.
366 const std::string &label, int32_t removeReason) override;
378 ErrCode RemoveNotifications(const std::vector<std::string> &keys, int32_t removeReason) override;
386 * @param removeReason Indicates the reason of remove notification.
389 ErrCode Delete(const std::string &key, int32_t removeReason) override;
1220 bool isCancel, int32_t removeReason);
1419 ErrCode ExcuteDelete(const std::string &key, const int32_t removeReason);
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/
H A Dansmanagerstubannexthree_fuzzer.cpp358 int32_t removeReason = fuzzData.GetData<int32_t>(); in DoSomethingInterestingWithMyAPI() local
359 ansManagerStub.RemoveNotification(bundleOption, notificationId, stringData, removeReason); in DoSomethingInterestingWithMyAPI()
361 ansManagerStub.Delete(stringData, removeReason); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannex_fuzzer/
H A Dansmanagerstubannex_fuzzer.cpp366 int32_t removeReason = fuzzData.GetData<int32_t>(); in DoSomethingInterestingWithMyAPI() local
367 ansManagerStub.RemoveNotification(bundleOption, notificationId, stringData, removeReason); in DoSomethingInterestingWithMyAPI()
369 ansManagerStub.Delete(stringData, removeReason); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/
H A Dansmanagerstub_fuzzer.cpp367 int32_t removeReason = fuzzData.GetData<int32_t>(); in DoSomethingInterestingWithMyAPI() local
368 ansManagerStub.RemoveNotification(bundleOption, notificationId, stringData, removeReason); in DoSomethingInterestingWithMyAPI()
370 ansManagerStub.Delete(stringData, removeReason); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_stub_test/
H A Dans_manager_stub_test.cpp1361 int32_t removeReason = 2; in HWTEST_F() local
1367 data.WriteInt32(removeReason); in HWTEST_F()
1388 int32_t removeReason = 2; in HWTEST_F() local
1393 data.WriteInt32(removeReason); in HWTEST_F()
1414 int32_t removeReason = 2; in HWTEST_F() local
1419 data.WriteInt32(removeReason); in HWTEST_F()
1440 int32_t removeReason = 2; in HWTEST_F() local
1445 data.WriteInt32(removeReason); in HWTEST_F()
1453 * @tc.desc: Test if the removeReason in data is null.
1532 int32_t removeReason in HWTEST_F() local
1555 int32_t removeReason = 2; HWTEST_F() local
4178 int32_t removeReason = 2; HWTEST_F() local
4205 int32_t removeReason = 2; HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_helper_test.cpp481 int32_t removeReason = 2; in HWTEST_F() local
483 ErrCode ret = notificationHelper.RemoveNotification(key, removeReason); in HWTEST_F()
498 int32_t removeReason = 2; in HWTEST_F() local
500 ErrCode ret = notificationHelper.RemoveNotification(bundleOption, notificationId, label, removeReason); in HWTEST_F()

Completed in 66 milliseconds

12