/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_helper.cpp | 495 ErrCode NotificationHelper::SetBadgeNumberByBundle(const NotificationBundleOption &bundleOption, int32_t badgeNumber) in SetBadgeNumberByBundle() function in OHOS::Notification::NotificationHelper 497 return DelayedSingleton<AnsNotification>::GetInstance()->SetBadgeNumberByBundle(bundleOption, badgeNumber); in SetBadgeNumberByBundle()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_helper.h | 914 static ErrCode SetBadgeNumberByBundle(const NotificationBundleOption &bundleOption, int32_t badgeNumber);
|
/base/notification/distributed_notification_service/frameworks/core/include/ |
H A D | ans_manager_interface.h | 838 virtual ErrCode SetBadgeNumberByBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t badgeNumber) = 0;
|
H A D | ans_manager_proxy.h | 825 ErrCode SetBadgeNumberByBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t badgeNumber) override;
|
H A D | ans_notification.h | 994 ErrCode SetBadgeNumberByBundle(const NotificationBundleOption &bundleOption, int32_t badgeNumber);
|
H A D | ans_manager_stub.h | 827 virtual ErrCode SetBadgeNumberByBundle(
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_manager_stub_invalid.cpp | 592 ErrCode AnsManagerStub::SetBadgeNumberByBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t badgeNumber) in SetBadgeNumberByBundle() function in OHOS::Notification::AnsManagerStub
|
H A D | ans_notification.cpp | 1770 ErrCode AnsNotification::SetBadgeNumberByBundle(const NotificationBundleOption &bundleOption, int32_t badgeNumber) in SetBadgeNumberByBundle() function in OHOS::Notification::AnsNotification 1788 return proxy->SetBadgeNumberByBundle(bundleInfo, badgeNumber); in SetBadgeNumberByBundle()
|
H A D | ans_manager_proxy.cpp | 1990 ErrCode AnsManagerProxy::SetBadgeNumberByBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t badgeNumber) in SetBadgeNumberByBundle() function in OHOS::Notification::AnsManagerProxy
|
H A D | ans_manager_stub.cpp | 2371 ErrCode result = SetBadgeNumberByBundle(bundleOption, badgeNumber); in HandleSetBadgeNumberByBundle()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
H A D | napi_display_badge.cpp | 328 asyncCallbackInfo->info.errorCode = NotificationHelper::SetBadgeNumberByBundle( in NapiSetBadgeNumberByBundle()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_helper_test.cpp | 1156 * @tc.desc: test SetBadgeNumberByBundle with invalid bundleOption, expect errorCode ERR_ANS_INVALID_PARAM. 1164 ErrCode ret = notificationHelper.SetBadgeNumberByBundle(bundleOption, badgeNumber); in HWTEST_F() 1170 * @tc.desc: test SetBadgeNumberByBundle with invalid bundle name, expect errorCode ERR_ANS_INVALID_BUNDLE. 1180 ErrCode ret = notificationHelper.SetBadgeNumberByBundle(bundleOption, badgeNumber); in HWTEST_F()
|
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/ |
H A D | advancednotificationservice_fuzzer.cpp | 177 service->SetBadgeNumberByBundle(bundleOption, fuzzData.GenerateRandomInt32()); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/ |
H A D | ans_notification_branch_test.cpp | 507 ErrCode SetBadgeNumberByBundle(const sptr<NotificationBundleOption>& bundleOption, int32_t badgeNumber) override
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/ |
H A D | ans_notification_unit_test.cpp | 1264 * @tc.desc: test SetBadgeNumberByBundle with empty bundleOption, expect ErrCode ERR_ANS_INVALID_PARAM.
1271 ErrCode res = ans_->SetBadgeNumberByBundle(bundleOption, badgeNumber);
in HWTEST_F() 1277 * @tc.desc: test SetBadgeNumberByBundle with invalid AnsManagerProxy, expect ErrCode ERR_ANS_SERVICE_NOT_CONNECTED.
1294 ErrCode res = ans_->SetBadgeNumberByBundle(bundleOption, badgeNumber);
in HWTEST_F()
|
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | advanced_notification_service.h | 981 ErrCode SetBadgeNumberByBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t badgeNumber) override;
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_service_test.cpp | 3596 * @tc.name : SetBadgeNumberByBundle 3597 * @tc.desc : Test SetBadgeNumberByBundle with valid parameters, expect error code ERR_OK. 3609 ASSERT_EQ(advancedNotificationService_->SetBadgeNumberByBundle(bundleOption, badgeNumber), ERR_OK); in HWTEST_F() 3614 * @tc.name : SetBadgeNumberByBundle 3615 * @tc.desc : Test SetBadgeNumberByBundle with nullptr bundle option, expect error code ERR_ANS_INVALID_PARAM. 3623 ASSERT_EQ(advancedNotificationService_->SetBadgeNumberByBundle(bundleOption, badgeNumber), ERR_ANS_INVALID_PARAM); in HWTEST_F()
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | advanced_notification_publish_service.cpp | 2282 ErrCode AdvancedNotificationService::SetBadgeNumberByBundle( in SetBadgeNumberByBundle() function in OHOS::Notification::AdvancedNotificationService
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_proxy_test/ |
H A D | ans_manager_proxy_unit_test.cpp | 7744 * @tc.desc: test SetBadgeNumberByBundle with null bundleOption, expect ErrCode ERR_ANS_INVALID_PARAM.
7755 int32_t result = proxy->SetBadgeNumberByBundle(nullptr, badgeNumber);
in HWTEST_F() 7761 * @tc.desc: test SetBadgeNumberByBundle with invalid proxy object, expect ErrCode ERR_ANS_PARCELABLE_FAILED.
7776 int32_t result = proxy->SetBadgeNumberByBundle(bundleOption, badgeNumber);
in HWTEST_F() 7782 * @tc.desc: test SetBadgeNumberByBundle with empty bundleOption, expect ErrCode ERR_ANS_PARCELABLE_FAILED.
7799 int32_t result = proxy->SetBadgeNumberByBundle(bundleOption, badgeNumber);
in HWTEST_F()
|