/base/notification/distributed_notification_service/test/fuzztest/enabledistributed_fuzzer/ |
H A D | enabledistributed_fuzzer.cpp | 26 // test EnableDistributed function
in DoSomethingInterestingWithMyAPI() 28 Notification::NotificationHelper::EnableDistributed(enabled);
in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | init.cpp | 76 DECLARE_NAPI_FUNCTION("enableDistributed", EnableDistributed), in NotificationInit()
|
H A D | distributed.cpp | 253 napi_value EnableDistributed(napi_env env, napi_callback_info info) in EnableDistributed() function 280 ANS_LOGD("EnableDistributed work excute."); in EnableDistributed() 284 NotificationHelper::EnableDistributed(asynccallbackinfo->params.enable); in EnableDistributed() 288 ANS_LOGD("EnableDistributed work complete."); in EnableDistributed() 300 ANS_LOGD("EnableDistributed work complete end."); in EnableDistributed()
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
H A D | distributed.h | 106 napi_value EnableDistributed(napi_env env, napi_callback_info info);
|
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_helper.cpp | 393 ErrCode NotificationHelper::EnableDistributed(const bool enabled) in EnableDistributed() function in OHOS::Notification::NotificationHelper 395 return DelayedSingleton<AnsNotification>::GetInstance()->EnableDistributed(enabled); in EnableDistributed()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_helper.h | 745 static ErrCode EnableDistributed(const bool enabled);
|
/base/notification/distributed_notification_service/services/ans/test/unittest/ |
H A D | advanced_notification_service_branch_test.cpp | 818 * @tc.desc : Test EnableDistributed function return ERR_ANS_NON_SYSTEM_APP. 829 ASSERT_EQ(advancedNotificationService_->EnableDistributed(enabled), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 837 * @tc.desc : Test EnableDistributed function return ERR_ANS_PERMISSION_DENIED. 848 ASSERT_EQ(advancedNotificationService_->EnableDistributed(enabled), ERR_ANS_PERMISSION_DENIED); in HWTEST_F()
|
H A D | advanced_notification_service_test.cpp | 1096 * @tc.desc : Test EnableDistributed function when the result is ERR_OK 1105 ASSERT_EQ(advancedNotificationService_->EnableDistributed(enabled), (int)ERR_OK); in HWTEST_F() 1530 ASSERT_EQ(advancedNotificationService_->EnableDistributed(enable), ERR_OK); in HWTEST_F() 3308 ret = advancedNotificationService_->EnableDistributed(enabled); in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/core/include/ |
H A D | ans_manager_interface.h | 620 virtual ErrCode EnableDistributed(bool enabled) = 0;
|
H A D | ans_manager_proxy.h | 608 ErrCode EnableDistributed(bool enabled) override;
|
H A D | ans_notification.h | 730 ErrCode EnableDistributed(const bool enabled);
|
H A D | ans_manager_stub.h | 608 virtual ErrCode EnableDistributed(bool enabled) override;
|
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_manager_stub_invalid.cpp | 427 ErrCode AnsManagerStub::EnableDistributed(bool enabled) in EnableDistributed() function in OHOS::Notification::AnsManagerStub 429 ANS_LOGE("AnsManagerStub::EnableDistributed called!"); in EnableDistributed()
|
H A D | ans_notification.cpp | 1241 ErrCode AnsNotification::EnableDistributed(const bool enabled) in EnableDistributed() function in OHOS::Notification::AnsNotification 1249 return proxy->EnableDistributed(enabled); in EnableDistributed()
|
H A D | ans_manager_proxy.cpp | 1517 ErrCode AnsManagerProxy::EnableDistributed(bool enabled) in EnableDistributed() function in OHOS::Notification::AnsManagerProxy 1521 ANS_LOGE("[EnableDistributed] fail: write interface token failed."); in EnableDistributed() 1526 ANS_LOGE("[EnableDistributed] fail: write enabled failed"); in EnableDistributed() 1534 ANS_LOGE("[EnableDistributed] fail: transact ErrCode=%{public}d", result); in EnableDistributed() 1539 ANS_LOGE("[EnableDistributed] fail: read result failed."); in EnableDistributed()
|
H A D | ans_manager_stub.cpp | 1776 ErrCode result = EnableDistributed(enabled); in HandleEnableDistributed()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
H A D | napi_distributed.cpp | 133 NotificationHelper::EnableDistributed(asynccallbackinfo->params.enable); in NapiEnableDistributed()
|
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/ |
H A D | advancednotificationservice_fuzzer.cpp | 125 service->EnableDistributed(enabled); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/ |
H A D | ans_notification_branch_test.cpp | 369 ErrCode EnableDistributed(bool enabled) override
|
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_helper_test.cpp | 780 * @tc.desc: Test EnableDistributed parameters. 788 notificationHelper.EnableDistributed(enabled); in HWTEST_F()
|
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | advanced_notification_service.h | 665 ErrCode EnableDistributed(bool enabled) override;
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/ |
H A D | notification_subscriber_manager_branch_test.cpp | 981 * @tc.desc : Test EnableDistributed function and CheckPermission is false
990 ASSERT_EQ(advancedNotificationService.EnableDistributed(enabled), ERR_ANS_NON_SYSTEM_APP);
in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/test/moduletest/ |
H A D | ans_fw_module_test.cpp | 1680 ASSERT_EQ(NotificationHelper::EnableDistributed(false), ERR_OK); in HWTEST_F() 1684 ASSERT_EQ(NotificationHelper::EnableDistributed(true), ERR_OK); in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/ |
H A D | ans_notification_unit_test.cpp | 867 ErrCode ret2 = ans_->EnableDistributed(enabled);
in HWTEST_F()
|
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_proxy_test/ |
H A D | ans_manager_proxy_unit_test.cpp | 5794 * @tc.desc: test EnableDistributed function
5807 int32_t result = proxy->EnableDistributed(true);
in HWTEST_F() 5813 * @tc.desc: test EnableDistributed function
5829 int32_t result = proxy->EnableDistributed(true);
in HWTEST_F() 5834 * @tc.desc: test EnableDistributed function
5848 int32_t result = proxy->EnableDistributed(true);
in HWTEST_F() 5854 * @tc.desc: test EnableDistributed function
5869 int32_t result = proxy->EnableDistributed(true);
in HWTEST_F()
|