Home
last modified time | relevance | path

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

/base/notification/distributed_notification_service/test/fuzztest/setnotificationsenabledforallbundles_fuzzer/
H A Dsetnotificationsenabledforallbundles_fuzzer.cpp26 // test SetNotificationsEnabledForAllBundles function in DoSomethingInterestingWithMyAPI()
29 Notification::NotificationHelper::SetNotificationsEnabledForAllBundles(stringData, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/notificationhelper_fuzzer/
H A Dnotificationhelper_fuzzer.cpp40 notificationHelper.SetNotificationsEnabledForAllBundles(intData, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_helper.cpp314 ErrCode NotificationHelper::SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForAllBundles() function in OHOS::Notification::NotificationHelper
316 return DelayedSingleton<AnsNotification>::GetInstance()->SetNotificationsEnabledForAllBundles(deviceId, enabled); in SetNotificationsEnabledForAllBundles()
438 ErrCode NotificationHelper::SetNotificationsEnabledForAllBundles(const int32_t &userId, bool enabled) in SetNotificationsEnabledForAllBundles() function in OHOS::Notification::NotificationHelper
440 return DelayedSingleton<AnsNotification>::GetInstance()->SetNotificationsEnabledForAllBundles( in SetNotificationsEnabledForAllBundles()
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_helper.h622 static ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled);
832 static ErrCode SetNotificationsEnabledForAllBundles(const int32_t &userId, bool enabled);
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
H A Dnotification_service_test.cpp344 * @tc.desc: SetNotificationsEnabledForAllBundles
352 ErrCode errCode = advancedNotificationService_->SetNotificationsEnabledForAllBundles(std::string(), true); in BENCHMARK_F()
369 ErrCode errCode = advancedNotificationService_->SetNotificationsEnabledForAllBundles(std::string(), true); in BENCHMARK_F()
/base/notification/distributed_notification_service/frameworks/core/include/
H A Dans_notification.h589 ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled);
885 ErrCode SetNotificationsEnabledForAllBundles(const int32_t &userId, bool enabled);
H A Dans_manager_interface.h422 virtual ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) = 0;
H A Dans_manager_proxy.h409 ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) override;
H A Dans_manager_stub.h413 virtual ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) override;
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_publish_service_test.cpp415 auto ret = advancedNotificationService_->SetNotificationsEnabledForAllBundles(std::string(), false); in HWTEST_F()
436 auto ret = advancedNotificationService_->SetNotificationsEnabledForAllBundles(std::string(), true); in HWTEST_F()
458 auto ret = advancedNotificationService_->SetNotificationsEnabledForAllBundles(std::string(), false); in HWTEST_F()
476 * @tc.desc: Test SetNotificationsEnabledForAllBundles
484 auto ret = advancedNotificationService_->SetNotificationsEnabledForAllBundles("", enabled); in HWTEST_F()
H A Dadvanced_notification_service_branch_test.cpp527 * @tc.desc : Test SetNotificationsEnabledForAllBundles function return ERR_ANS_NON_SYSTEM_APP.
535 ASSERT_EQ(advancedNotificationService_->SetNotificationsEnabledForAllBundles( in HWTEST_F()
542 * @tc.desc : Test SetNotificationsEnabledForAllBundles function return ERR_ANS_PERMISSION_DENIED.
550 ASSERT_EQ(advancedNotificationService_->SetNotificationsEnabledForAllBundles( in HWTEST_F()
H A Dadvanced_notification_service_test.cpp712 * @tc.desc : Test SetNotificationsEnabledForAllBundles function
717 (int)advancedNotificationService_->SetNotificationsEnabledForAllBundles(std::string(), true), (int)ERR_OK); in HWTEST_F()
742 (int)advancedNotificationService_->SetNotificationsEnabledForAllBundles(std::string(), true), (int)ERR_OK); in HWTEST_F()
757 (int)advancedNotificationService_->SetNotificationsEnabledForAllBundles(std::string(), true), (int)ERR_OK); in HWTEST_F()
771 (int)advancedNotificationService_->SetNotificationsEnabledForAllBundles(std::string(), true), (int)ERR_OK); in HWTEST_F()
787 (int)advancedNotificationService_->SetNotificationsEnabledForAllBundles(std::string(), true), (int)ERR_OK); in HWTEST_F()
1504 ASSERT_EQ(advancedNotificationService_->SetNotificationsEnabledForAllBundles(key, enable), in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_helper_test.cpp621 * @tc.desc: Test SetNotificationsEnabledForAllBundles parameters.
630 ErrCode ret = notificationHelper.SetNotificationsEnabledForAllBundles(deviceId, enabled); in HWTEST_F()
896 * @tc.desc: Test SetNotificationsEnabledForAllBundles parameters.
905 ErrCode ret = notificationHelper.SetNotificationsEnabledForAllBundles(userId, enabled); in HWTEST_F()
941 * @tc.desc: Test SetNotificationsEnabledForAllBundles parameters.
950 ErrCode ret = notificationHelper.SetNotificationsEnabledForAllBundles(userId, enabled); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_manager_stub_invalid.cpp283 ErrCode AnsManagerStub::SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForAllBundles() function in OHOS::Notification::AnsManagerStub
285 ANS_LOGE("AnsManagerStub::SetNotificationsEnabledForAllBundles called!"); in SetNotificationsEnabledForAllBundles()
H A Dans_notification.cpp963 ErrCode AnsNotification::SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForAllBundles() function in OHOS::Notification::AnsNotification
970 return proxy->SetNotificationsEnabledForAllBundles(deviceId, enabled); in SetNotificationsEnabledForAllBundles()
1583 ErrCode AnsNotification::SetNotificationsEnabledForAllBundles(const int32_t &userId, bool enabled) in SetNotificationsEnabledForAllBundles() function in OHOS::Notification::AnsNotification
H A Dans_manager_proxy.cpp1072 ErrCode AnsManagerProxy::SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForAllBundles() function in OHOS::Notification::AnsManagerProxy
1076 ANS_LOGE("[SetNotificationsEnabledForAllBundles] fail: write interface token failed."); in SetNotificationsEnabledForAllBundles()
1081 ANS_LOGE("[SetNotificationsEnabledForAllBundles] fail: write deviceId failed"); in SetNotificationsEnabledForAllBundles()
1086 ANS_LOGE("[SetNotificationsEnabledForAllBundles] fail: write enabled failed"); in SetNotificationsEnabledForAllBundles()
1095 ANS_LOGE("[SetNotificationsEnabledForAllBundles] fail: transact ErrCode=%{public}d", result); in SetNotificationsEnabledForAllBundles()
1100 ANS_LOGE("[SetNotificationsEnabledForAllBundles] fail: read result failed."); in SetNotificationsEnabledForAllBundles()
H A Dans_manager_stub.cpp1404 ErrCode result = SetNotificationsEnabledForAllBundles(deviceId, enabled); in HandleSetNotificationsEnabledForAllBundles()
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
H A Dnotification_subscriber_manager_branch_test.cpp618 * @tc.desc : Test SetNotificationsEnabledForAllBundles function and CheckPermission is false
628 ASSERT_EQ(advancedNotificationService.SetNotificationsEnabledForAllBundles(deviceId, enabled), in HWTEST_F()
635 * @tc.desc : Test SetNotificationsEnabledForAllBundles function and GetActiveUserId is false
645 ASSERT_EQ(advancedNotificationService.SetNotificationsEnabledForAllBundles(deviceId, enabled), in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/
H A Dans_notification_unit_test.cpp745 * @tc.desc: test SetNotificationsEnabledForAllBundles ErrCode ERR_ANS_SERVICE_NOT_CONNECTED.
759 ErrCode ret1 = ans_->SetNotificationsEnabledForAllBundles(deviceId, enabled); in HWTEST_F()
935 ErrCode ret4 = ans_->SetNotificationsEnabledForAllBundles(userId, enabled); in HWTEST_F()
937 ErrCode ret5 = ans_->SetNotificationsEnabledForAllBundles(userId1, enabled); in HWTEST_F()
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
H A Dadvancednotificationservice_fuzzer.cpp101 service->SetNotificationsEnabledForAllBundles(stringData, enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
H A Dans_notification_branch_test.cpp243 ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) override
/base/notification/distributed_notification_service/services/ans/include/
H A Dadvanced_notification_service.h465 ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) override;
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_proxy_test/
H A Dans_manager_proxy_unit_test.cpp4105 * @tc.desc: test SetNotificationsEnabledForAllBundles function
4118 int32_t result = proxy->SetNotificationsEnabledForAllBundles("DeviceId", true); in HWTEST_F()
4124 * @tc.desc: test SetNotificationsEnabledForAllBundles function
4140 int32_t result = proxy->SetNotificationsEnabledForAllBundles("DeviceId", true); in HWTEST_F()
4145 * @tc.desc: test SetNotificationsEnabledForAllBundles function
4159 int32_t result = proxy->SetNotificationsEnabledForAllBundles("DeviceId", true); in HWTEST_F()
4165 * @tc.desc: test SetNotificationsEnabledForAllBundles function
4180 int32_t result = proxy->SetNotificationsEnabledForAllBundles("DeviceId", true); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_publish_service.cpp904 ErrCode AdvancedNotificationService::SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) in SetNotificationsEnabledForAllBundles() function in OHOS::Notification::AdvancedNotificationService
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_stub_test/
H A Dans_manager_stub_test.cpp4301 * @tc.desc: Test SetNotificationsEnabledForAllBundles return.
4310 ErrCode result = ansManagerStub_->SetNotificationsEnabledForAllBundles(deviceId, enabled); in HWTEST_F()

Completed in 115 milliseconds