Home
last modified time | relevance | path

Searched refs:SetBadgeNumberByBundle (Results 1 - 19 of 19) sorted by relevance

/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_helper.cpp495 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 Dnotification_helper.h914 static ErrCode SetBadgeNumberByBundle(const NotificationBundleOption &bundleOption, int32_t badgeNumber);
/base/notification/distributed_notification_service/frameworks/core/include/
H A Dans_manager_interface.h838 virtual ErrCode SetBadgeNumberByBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t badgeNumber) = 0;
H A Dans_manager_proxy.h825 ErrCode SetBadgeNumberByBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t badgeNumber) override;
H A Dans_notification.h994 ErrCode SetBadgeNumberByBundle(const NotificationBundleOption &bundleOption, int32_t badgeNumber);
H A Dans_manager_stub.h827 virtual ErrCode SetBadgeNumberByBundle(
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_manager_stub_invalid.cpp592 ErrCode AnsManagerStub::SetBadgeNumberByBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t badgeNumber) in SetBadgeNumberByBundle() function in OHOS::Notification::AnsManagerStub
H A Dans_notification.cpp1770 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 Dans_manager_proxy.cpp1990 ErrCode AnsManagerProxy::SetBadgeNumberByBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t badgeNumber) in SetBadgeNumberByBundle() function in OHOS::Notification::AnsManagerProxy
H A Dans_manager_stub.cpp2371 ErrCode result = SetBadgeNumberByBundle(bundleOption, badgeNumber); in HandleSetBadgeNumberByBundle()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dnapi_display_badge.cpp328 asyncCallbackInfo->info.errorCode = NotificationHelper::SetBadgeNumberByBundle( in NapiSetBadgeNumberByBundle()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_helper_test.cpp1156 * @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 Dadvancednotificationservice_fuzzer.cpp177 service->SetBadgeNumberByBundle(bundleOption, fuzzData.GenerateRandomInt32()); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
H A Dans_notification_branch_test.cpp507 ErrCode SetBadgeNumberByBundle(const sptr<NotificationBundleOption>& bundleOption, int32_t badgeNumber) override
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/
H A Dans_notification_unit_test.cpp1264 * @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 Dadvanced_notification_service.h981 ErrCode SetBadgeNumberByBundle(const sptr<NotificationBundleOption> &bundleOption, int32_t badgeNumber) override;
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_service_test.cpp3596 * @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 Dadvanced_notification_publish_service.cpp2282 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 Dans_manager_proxy_unit_test.cpp7744 * @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()

Completed in 49 milliseconds