Home
last modified time | relevance | path

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

12

/base/notification/distributed_notification_service/test/fuzztest/enabledistributed_fuzzer/
H A Denabledistributed_fuzzer.cpp26 // test EnableDistributed function in DoSomethingInterestingWithMyAPI()
28 Notification::NotificationHelper::EnableDistributed(enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dinit.cpp76 DECLARE_NAPI_FUNCTION("enableDistributed", EnableDistributed), in NotificationInit()
H A Ddistributed.cpp253 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 Ddistributed.h106 napi_value EnableDistributed(napi_env env, napi_callback_info info);
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_helper.cpp393 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 Dnotification_helper.h745 static ErrCode EnableDistributed(const bool enabled);
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_service_branch_test.cpp818 * @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 Dadvanced_notification_service_test.cpp1096 * @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 Dans_manager_interface.h620 virtual ErrCode EnableDistributed(bool enabled) = 0;
H A Dans_manager_proxy.h608 ErrCode EnableDistributed(bool enabled) override;
H A Dans_notification.h730 ErrCode EnableDistributed(const bool enabled);
H A Dans_manager_stub.h608 virtual ErrCode EnableDistributed(bool enabled) override;
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_manager_stub_invalid.cpp427 ErrCode AnsManagerStub::EnableDistributed(bool enabled) in EnableDistributed() function in OHOS::Notification::AnsManagerStub
429 ANS_LOGE("AnsManagerStub::EnableDistributed called!"); in EnableDistributed()
H A Dans_notification.cpp1241 ErrCode AnsNotification::EnableDistributed(const bool enabled) in EnableDistributed() function in OHOS::Notification::AnsNotification
1249 return proxy->EnableDistributed(enabled); in EnableDistributed()
H A Dans_manager_proxy.cpp1517 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 Dans_manager_stub.cpp1776 ErrCode result = EnableDistributed(enabled); in HandleEnableDistributed()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dnapi_distributed.cpp133 NotificationHelper::EnableDistributed(asynccallbackinfo->params.enable); in NapiEnableDistributed()
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
H A Dadvancednotificationservice_fuzzer.cpp125 service->EnableDistributed(enabled); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
H A Dans_notification_branch_test.cpp369 ErrCode EnableDistributed(bool enabled) override
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_helper_test.cpp780 * @tc.desc: Test EnableDistributed parameters.
788 notificationHelper.EnableDistributed(enabled); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/include/
H A Dadvanced_notification_service.h665 ErrCode EnableDistributed(bool enabled) override;
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
H A Dnotification_subscriber_manager_branch_test.cpp981 * @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 Dans_fw_module_test.cpp1680 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 Dans_notification_unit_test.cpp867 ErrCode ret2 = ans_->EnableDistributed(enabled); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_proxy_test/
H A Dans_manager_proxy_unit_test.cpp5794 * @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()

Completed in 56 milliseconds

12