Home
last modified time | relevance | path

Searched refs:SetNotificationsEnabledForBundle (Results 1 - 22 of 22) sorted by relevance

/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dpermission_filter_test.cpp90 NotificationPreferences::GetInstance()->SetNotificationsEnabledForBundle( in HWTEST_F()
H A Dnotification_preferences_test.cpp749 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetNotificationsEnabledForBundle(bundleOption_, false), in HWTEST_F()
761 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetNotificationsEnabledForBundle(bundleEmptyOption_, false), in HWTEST_F()
773 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetNotificationsEnabledForBundle(nullptr, false), in HWTEST_F()
784 ASSERT_EQ((int)NotificationPreferences::GetInstance()->SetNotificationsEnabledForBundle(bundleOption_, false), in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/include/
H A Dnotification_preferences.h213 ErrCode SetNotificationsEnabledForBundle(const sptr<NotificationBundleOption> &bundleOption, const bool enabled);
H A Dadvanced_notification_service.h456 ErrCode SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) override;
/base/notification/distributed_notification_service/frameworks/core/include/
H A Dans_manager_interface.h413 virtual ErrCode SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) = 0;
H A Dans_manager_proxy.h400 ErrCode SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) override;
H A Dans_manager_stub.h404 virtual ErrCode SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) override;
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_manager_stub_invalid.cpp277 ErrCode AnsManagerStub::SetNotificationsEnabledForBundle(const std::string &bundle, bool enabled) in SetNotificationsEnabledForBundle() function in OHOS::Notification::AnsManagerStub
279 ANS_LOGE("AnsManagerStub::SetNotificationsEnabledForBundle called!"); in SetNotificationsEnabledForBundle()
H A Dans_manager_proxy.cpp1038 ErrCode AnsManagerProxy::SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForBundle() function in OHOS::Notification::AnsManagerProxy
1042 ANS_LOGE("[SetNotificationsEnabledForBundle] fail: write interface token failed."); in SetNotificationsEnabledForBundle()
1047 ANS_LOGE("[SetNotificationsEnabledForBundle] fail: write deviceId failed"); in SetNotificationsEnabledForBundle()
1052 ANS_LOGE("[SetNotificationsEnabledForBundle] fail: write enabled failed"); in SetNotificationsEnabledForBundle()
1060 ANS_LOGE("[SetNotificationsEnabledForBundle] fail: transact ErrCode=%{public}d", result); in SetNotificationsEnabledForBundle()
1065 ANS_LOGE("[SetNotificationsEnabledForBundle] fail: read result failed."); in SetNotificationsEnabledForBundle()
H A Dans_notification.cpp980 return proxy->SetNotificationsEnabledForBundle(deviceId, enabled); in SetNotificationsEnabledForDefaultBundle()
H A Dans_manager_stub.cpp1382 ErrCode result = SetNotificationsEnabledForBundle(deviceId, enabled); in HandleSetNotificationsEnabledForBundle()
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
H A Dadvancednotificationservice_fuzzer.cpp100 service->SetNotificationsEnabledForBundle(stringData, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_publish_service.cpp83 result = NotificationPreferences::GetInstance()->SetNotificationsEnabledForBundle(bundle, enabled); in SetDefaultNotificationEnabled()
899 ErrCode AdvancedNotificationService::SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForBundle() function in OHOS::Notification::AdvancedNotificationService
976 result = NotificationPreferences::GetInstance()->SetNotificationsEnabledForBundle(bundle, enabled); in SetNotificationsEnabledForSpecialBundle()
H A Dadvanced_notification_utils.cpp614 auto errCode = NotificationPreferences::GetInstance()->SetNotificationsEnabledForBundle(bundleOption, true); in OnBundleDataAdd()
1895 saveRef = NotificationPreferences::GetInstance()->SetNotificationsEnabledForBundle(bundleOption, true); in InitNotificationEnableList()
H A Dnotification_preferences.cpp410 ErrCode NotificationPreferences::SetNotificationsEnabledForBundle( in SetNotificationsEnabledForBundle() function in OHOS::Notification::NotificationPreferences
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannexthree_fuzzer/
H A Dansmanagerstubannexthree_fuzzer.cpp370 ansManagerStub.SetNotificationsEnabledForBundle(stringData, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
H A Dans_notification_branch_test.cpp238 ErrCode SetNotificationsEnabledForBundle(const std::string &deviceId, bool enabled) override
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstubannex_fuzzer/
H A Dansmanagerstubannex_fuzzer.cpp378 ansManagerStub.SetNotificationsEnabledForBundle(stringData, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/
H A Dansmanagerstub_fuzzer.cpp379 ansManagerStub.SetNotificationsEnabledForBundle(stringData, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/test/moduletest/
H A Dans_module_test.cpp203 g_advancedNotificationService->SetNotificationsEnabledForBundle("", false); in HWTEST_F()
1713 g_advancedNotificationService->SetNotificationsEnabledForBundle("bundleName", false); in HWTEST_F()
2216 g_advancedNotificationService->SetNotificationsEnabledForBundle("bundleName", false); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_proxy_test/
H A Dans_manager_proxy_unit_test.cpp4024 * @tc.desc: test SetNotificationsEnabledForBundle function
4037 int32_t result = proxy->SetNotificationsEnabledForBundle("DeviceId", true); in HWTEST_F()
4043 * @tc.desc: test SetNotificationsEnabledForBundle function
4059 int32_t result = proxy->SetNotificationsEnabledForBundle("DeviceId", true); in HWTEST_F()
4064 * @tc.desc: test SetNotificationsEnabledForBundle function
4078 int32_t result = proxy->SetNotificationsEnabledForBundle("DeviceId", true); in HWTEST_F()
4084 * @tc.desc: test SetNotificationsEnabledForBundle function
4099 int32_t result = proxy->SetNotificationsEnabledForBundle("DeviceId", true); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_stub_test/
H A Dans_manager_stub_test.cpp4286 * @tc.desc: Test SetNotificationsEnabledForBundle return.
4295 ErrCode result = ansManagerStub_->SetNotificationsEnabledForBundle(bundle, enabled); in HWTEST_F()

Completed in 76 milliseconds