/base/notification/distributed_notification_service/test/fuzztest/setnotificationsenabledforallbundles_fuzzer/ |
H A D | setnotificationsenabledforallbundles_fuzzer.cpp | 26 // test SetNotificationsEnabledForAllBundles function
in DoSomethingInterestingWithMyAPI() 29 Notification::NotificationHelper::SetNotificationsEnabledForAllBundles(stringData, enabled);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/notificationhelper_fuzzer/ |
H A D | notificationhelper_fuzzer.cpp | 40 notificationHelper.SetNotificationsEnabledForAllBundles(intData, enabled);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_helper.cpp | 314 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 D | notification_helper.h | 622 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 D | notification_service_test.cpp | 344 * @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 D | ans_notification.h | 589 ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled); 885 ErrCode SetNotificationsEnabledForAllBundles(const int32_t &userId, bool enabled);
|
H A D | ans_manager_interface.h | 422 virtual ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) = 0;
|
H A D | ans_manager_proxy.h | 409 ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) override;
|
H A D | ans_manager_stub.h | 413 virtual ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) override;
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_publish_service_test.cpp | 415 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 D | advanced_notification_service_branch_test.cpp | 527 * @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 D | advanced_notification_service_test.cpp | 712 * @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 D | notification_helper_test.cpp | 621 * @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 D | ans_manager_stub_invalid.cpp | 283 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 D | ans_notification.cpp | 963 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 D | ans_manager_proxy.cpp | 1072 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 D | ans_manager_stub.cpp | 1404 ErrCode result = SetNotificationsEnabledForAllBundles(deviceId, enabled); in HandleSetNotificationsEnabledForAllBundles()
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/ |
H A D | notification_subscriber_manager_branch_test.cpp | 618 * @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 D | ans_notification_unit_test.cpp | 745 * @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 D | advancednotificationservice_fuzzer.cpp | 101 service->SetNotificationsEnabledForAllBundles(stringData, enabled); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/ |
H A D | ans_notification_branch_test.cpp | 243 ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) override
|
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | advanced_notification_service.h | 465 ErrCode SetNotificationsEnabledForAllBundles(const std::string &deviceId, bool enabled) override;
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_proxy_test/ |
H A D | ans_manager_proxy_unit_test.cpp | 4105 * @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 D | advanced_notification_publish_service.cpp | 904 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 D | ans_manager_stub_test.cpp | 4301 * @tc.desc: Test SetNotificationsEnabledForAllBundles return. 4310 ErrCode result = ansManagerStub_->SetNotificationsEnabledForAllBundles(deviceId, enabled); in HWTEST_F()
|