/base/notification/distributed_notification_service/test/fuzztest/getbundleimportance_fuzzer/ |
H A D | getbundleimportance_fuzzer.cpp | 31 // test IsAllowedNotify function
in DoSomethingInterestingWithMyAPI() 33 Notification::NotificationHelper::IsAllowedNotify(allowed);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/getallactivenotifications_fuzzer/ |
H A D | getallactivenotifications_fuzzer.cpp | 26 // test IsAllowedNotify function
in DoSomethingInterestingWithMyAPI() 33 Notification::NotificationHelper::IsAllowedNotify(bundleOption, allowed);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_helper.cpp | 161 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 D | notification_helper.h | 360 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 D | publishcontinuoustasknotification_fuzzer.cpp | 89 // test IsAllowedNotify function
in DoSomethingInterestingWithMyAPI() 90 return Notification::NotificationHelper::IsAllowedNotify(style, support);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_innerkits_module_setting_test.cpp | 103 EXPECT_EQ(ERR_ANS_PERMISSION_DENIED, NotificationHelper::IsAllowedNotify(bundleOption, enabled)); in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | enable_notification.cpp | 260 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 D | ans_notification.h | 294 ErrCode IsAllowedNotify(bool &allowed); 576 ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed); 873 ErrCode IsAllowedNotify(const int32_t &userId, bool &allowed);
|
H A D | ans_manager_interface.h | 504 virtual ErrCode IsAllowedNotify(bool &allowed) = 0;
|
H A D | ans_manager_proxy.h | 492 ErrCode IsAllowedNotify(bool &allowed) override;
|
/base/notification/distributed_notification_service/test/fuzztest/reminderdatamanager_fuzzer/ |
H A D | reminderdatamanager_fuzzer.cpp | 102 manager->IsAllowedNotify(reminder); in DoSomethingInterestingWithReminder()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_manager_impl.cpp | 333 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 D | napi_enable_notification.cpp | 153 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 D | notification_service_test.cpp | 361 * @tc.desc: IsAllowedNotify
375 errCode = advancedNotificationService_->IsAllowedNotify(allowed);
in BENCHMARK_F()
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_helper_test.cpp | 400 * @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 D | advanced_notification_service_branch_test.cpp | 573 * @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 D | reminder_data_manager_test.cpp | 375 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 D | ans_notification_unit_test.cpp | 617 * @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 D | ans_notification.cpp | 472 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 D | ans_manager_stub_invalid.cpp | 341 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 D | reminder_data_manager.h | 492 bool IsAllowedNotify(const sptr<ReminderRequest> &reminder) const;
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/ |
H A D | notification_subscriber_manager_branch_test.cpp | 670 * @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 D | advancednotificationservice_fuzzer.cpp | 111 service->IsAllowedNotify(allowed); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/ |
H A D | ansmanagerstubannexthree_fuzzer.cpp | 376 ansManagerStub.IsAllowedNotify(allowed);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/ |
H A D | ans_notification_branch_test.cpp | 297 ErrCode IsAllowedNotify(bool &allowed) override
|