Home
last modified time | relevance | path

Searched refs:IsAllowedNotify (Results 1 - 25 of 37) sorted by relevance

12

/base/notification/distributed_notification_service/test/fuzztest/getbundleimportance_fuzzer/
H A Dgetbundleimportance_fuzzer.cpp31 // test IsAllowedNotify function in DoSomethingInterestingWithMyAPI()
33 Notification::NotificationHelper::IsAllowedNotify(allowed); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/getallactivenotifications_fuzzer/
H A Dgetallactivenotifications_fuzzer.cpp26 // test IsAllowedNotify function in DoSomethingInterestingWithMyAPI()
33 Notification::NotificationHelper::IsAllowedNotify(bundleOption, allowed); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_helper.cpp161 ErrCode NotificationHelper::IsAllowedNotify(bool &allowed) in IsAllowedNotify() function in OHOS::Notification::NotificationHelper
163 return DelayedSingleton<AnsNotification>::GetInstance()->IsAllowedNotify(allowed); in IsAllowedNotify()
309 ErrCode NotificationHelper::IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed) in IsAllowedNotify() function in OHOS::Notification::NotificationHelper
311 return DelayedSingleton<AnsNotification>::GetInstance()->IsAllowedNotify(bundleOption, allowed); in IsAllowedNotify()
433 ErrCode NotificationHelper::IsAllowedNotify(const int32_t &userId, bool &allowed) in IsAllowedNotify() function in OHOS::Notification::NotificationHelper
435 return DelayedSingleton<AnsNotification>::GetInstance()->IsAllowedNotify(userId, allowed); in IsAllowedNotify()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_helper.h360 static ErrCode IsAllowedNotify(bool &allowed);
609 static ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed);
820 static ErrCode IsAllowedNotify(const int32_t &userId, bool &allowed);
/base/notification/distributed_notification_service/test/fuzztest/publishcontinuoustasknotification_fuzzer/
H A Dpublishcontinuoustasknotification_fuzzer.cpp89 // test IsAllowedNotify function in DoSomethingInterestingWithMyAPI()
90 return Notification::NotificationHelper::IsAllowedNotify(style, support); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_innerkits_module_setting_test.cpp103 EXPECT_EQ(ERR_ANS_PERMISSION_DENIED, NotificationHelper::IsAllowedNotify(bundleOption, enabled)); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Denable_notification.cpp260 asynccallbackinfo->info.errorCode = NotificationHelper::IsAllowedNotify( in IsNotificationEnabled()
264 asynccallbackinfo->info.errorCode = NotificationHelper::IsAllowedNotify( in IsNotificationEnabled()
267 asynccallbackinfo->info.errorCode = NotificationHelper::IsAllowedNotify( in IsNotificationEnabled()
/base/notification/distributed_notification_service/frameworks/core/include/
H A Dans_notification.h294 ErrCode IsAllowedNotify(bool &allowed);
576 ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed);
873 ErrCode IsAllowedNotify(const int32_t &userId, bool &allowed);
H A Dans_manager_interface.h504 virtual ErrCode IsAllowedNotify(bool &allowed) = 0;
H A Dans_manager_proxy.h492 ErrCode IsAllowedNotify(bool &allowed) override;
/base/notification/distributed_notification_service/test/fuzztest/reminderdatamanager_fuzzer/
H A Dreminderdatamanager_fuzzer.cpp102 manager->IsAllowedNotify(reminder); in DoSomethingInterestingWithReminder()
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_manager_impl.cpp333 errorCode = NotificationHelper::IsAllowedNotify(params.option, allowed); in IsNotificationEnabled()
336 errorCode = NotificationHelper::IsAllowedNotify(params.userId, allowed); in IsNotificationEnabled()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dnapi_enable_notification.cpp153 asynccallbackinfo->info.errorCode = NotificationHelper::IsAllowedNotify( in NapiIsNotificationEnabled()
157 asynccallbackinfo->info.errorCode = NotificationHelper::IsAllowedNotify( in NapiIsNotificationEnabled()
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
H A Dnotification_service_test.cpp361 * @tc.desc: IsAllowedNotify
375 errCode = advancedNotificationService_->IsAllowedNotify(allowed); in BENCHMARK_F()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_helper_test.cpp400 * @tc.desc: Test IsAllowedNotify parameters.
408 ErrCode ret = notificationHelper.IsAllowedNotify(allowed); in HWTEST_F()
606 * @tc.desc: Test IsAllowedNotify parameters.
615 ErrCode ret = notificationHelper.IsAllowedNotify(bundleOption, allowed); in HWTEST_F()
926 * @tc.desc: Test IsAllowedNotify parameters.
935 ErrCode ret = notificationHelper.IsAllowedNotify(userId, allowed); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_service_branch_test.cpp573 * @tc.desc : Test IsAllowedNotify function return ERR_ANS_NON_SYSTEM_APP.
582 ASSERT_EQ(advancedNotificationService_->IsAllowedNotify(allowed), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F()
588 * @tc.desc : Test IsAllowedNotify function return ERR_ANS_PERMISSION_DENIED.
597 ASSERT_EQ(advancedNotificationService_->IsAllowedNotify(allowed), ERR_ANS_PERMISSION_DENIED); in HWTEST_F()
H A Dreminder_data_manager_test.cpp375 manager->IsAllowedNotify(reminder); in HWTEST_F()
376 manager->IsAllowedNotify(nullptr); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/
H A Dans_notification_unit_test.cpp617 * @tc.desc: test IsAllowedNotify ErrCode ERR_ANS_SERVICE_NOT_CONNECTED.
630 ErrCode ret1 = ans_->IsAllowedNotify(allowed); in HWTEST_F()
637 ErrCode ret3 = ans_->IsAllowedNotify(bundleOption, allowed); in HWTEST_F()
929 ErrCode ret2 = ans_->IsAllowedNotify(userId, allowed); in HWTEST_F()
932 ErrCode ret3 = ans_->IsAllowedNotify(userId1, allowed); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_notification.cpp472 ErrCode AnsNotification::IsAllowedNotify(bool &allowed) in IsAllowedNotify() function in OHOS::Notification::AnsNotification
479 return proxy->IsAllowedNotify(allowed); in IsAllowedNotify()
946 ErrCode AnsNotification::IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed) in IsAllowedNotify() function in OHOS::Notification::AnsNotification
1567 ErrCode AnsNotification::IsAllowedNotify(const int32_t &userId, bool &allowed) in IsAllowedNotify() function in OHOS::Notification::AnsNotification
H A Dans_manager_stub_invalid.cpp341 ErrCode AnsManagerStub::IsAllowedNotify(bool &allowed) in IsAllowedNotify() function in OHOS::Notification::AnsManagerStub
343 ANS_LOGE("AnsManagerStub::IsAllowedNotify called!"); in IsAllowedNotify()
/base/notification/distributed_notification_service/services/ans/include/
H A Dreminder_data_manager.h492 bool IsAllowedNotify(const sptr<ReminderRequest> &reminder) const;
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
H A Dnotification_subscriber_manager_branch_test.cpp670 * @tc.desc : Test IsAllowedNotify function and CheckPermission is false
679 ASSERT_EQ(advancedNotificationService.IsAllowedNotify(enabled), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F()
685 * @tc.desc : Test IsAllowedNotify function and CheckPermission is false
694 ASSERT_EQ(advancedNotificationService.IsAllowedNotify(enabled), ERR_ANS_GET_ACTIVE_USER_FAILED); in HWTEST_F()
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
H A Dadvancednotificationservice_fuzzer.cpp111 service->IsAllowedNotify(allowed); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/
H A Dansmanagerstubannexthree_fuzzer.cpp376 ansManagerStub.IsAllowedNotify(allowed); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
H A Dans_notification_branch_test.cpp297 ErrCode IsAllowedNotify(bool &allowed) override

Completed in 40 milliseconds

12