Home
last modified time | relevance | path

Searched refs:allowed (Results 1 – 25 of 35) sorted by relevance

12

/base/theme/screenlock_mgr/frameworks/js/napi/include/
Dnapi_screenlock_ability.h26 bool allowed; member
27 AsyncScreenLockInfo() : Context(nullptr, nullptr), allowed(false){}; in AsyncScreenLockInfo()
29 : Context(std::move(input), std::move(output)), allowed(false){}; in AsyncScreenLockInfo()
38 bool allowed; member
41 allowed(false){}; in SendEventInfo()
44 status(napi_generic_failure), allowed(false){}; in SendEventInfo()
/base/notification/distributed_notification_service/test/fuzztest/getbundleimportance_fuzzer/
Dgetbundleimportance_fuzzer.cpp32 bool allowed = true; in DoSomethingInterestingWithMyAPI() local
33 Notification::NotificationHelper::IsAllowedNotify(allowed); in DoSomethingInterestingWithMyAPI()
35 Notification::NotificationHelper::IsAllowedNotifySelf(allowed); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/getallactivenotifications_fuzzer/
Dgetallactivenotifications_fuzzer.cpp32 bool allowed = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
33 Notification::NotificationHelper::IsAllowedNotify(bundleOption, allowed); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/
Dadvancednotificationservice_fuzzer.cpp92 bool allowed = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
93 advancedNotificationService.IsAllowedNotify(allowed); in DoSomethingInterestingWithMyAPI()
94 advancedNotificationService.IsAllowedNotifySelf(allowed); in DoSomethingInterestingWithMyAPI()
95 advancedNotificationService.IsSpecialBundleAllowedNotify(bundleOption, allowed); in DoSomethingInterestingWithMyAPI()
122 advancedNotificationService.IsSpecialUserAllowedNotify(userId, allowed); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/services/ans/test/unittest/
Dadvanced_notification_service_branch_test.cpp584 bool allowed = false; variable
585 EXPECT_EQ(advancedNotificationService_->IsAllowedNotify(allowed), ERR_ANS_NON_SYSTEM_APP);
600 bool allowed = false; variable
601 EXPECT_EQ(advancedNotificationService_->IsAllowedNotify(allowed), ERR_ANS_PERMISSION_DENIED);
632 bool allowed = true; variable
634 …new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), allowed), ERR_ANS_NON_SYSTEM_AP…
649 bool allowed = true; variable
651 …new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), allowed), ERR_ANS_PERMISSION_DE…
667 bool allowed = true; variable
669 …new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), allowed), ERR_ANS_INVALID_BUNDL…
[all …]
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_helper.h250 static ErrCode IsAllowedNotify(bool &allowed);
258 static ErrCode IsAllowedNotifySelf(bool &allowed);
453 static ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed);
656 static ErrCode IsAllowedNotify(const int32_t &userId, bool &allowed);
/base/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_helper.cpp137 ErrCode NotificationHelper::IsAllowedNotify(bool &allowed) in IsAllowedNotify() argument
139 return DelayedSingleton<AnsNotification>::GetInstance()->IsAllowedNotify(allowed); in IsAllowedNotify()
142 ErrCode NotificationHelper::IsAllowedNotifySelf(bool &allowed) in IsAllowedNotifySelf() argument
144 return DelayedSingleton<AnsNotification>::GetInstance()->IsAllowedNotifySelf(allowed); in IsAllowedNotifySelf()
239 …de NotificationHelper::IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed) in IsAllowedNotify() argument
241 return DelayedSingleton<AnsNotification>::GetInstance()->IsAllowedNotify(bundleOption, allowed); in IsAllowedNotify()
347 ErrCode NotificationHelper::IsAllowedNotify(const int32_t &userId, bool &allowed) in IsAllowedNotify() argument
349 return DelayedSingleton<AnsNotification>::GetInstance()->IsAllowedNotify(userId, allowed); in IsAllowedNotify()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_enable_notification.cpp112 napi_get_boolean(env, asynccallbackinfo->allowed, &result); in AsyncCompleteCallbackNapiIsNotificationEnabled()
155 asynccallbackinfo->params.option, asynccallbackinfo->allowed); in NapiIsNotificationEnabled()
159 asynccallbackinfo->params.userId, asynccallbackinfo->allowed); in NapiIsNotificationEnabled()
162 asynccallbackinfo->allowed); in NapiIsNotificationEnabled()
165 asynccallbackinfo->info.errorCode, asynccallbackinfo->allowed); in NapiIsNotificationEnabled()
224 NotificationHelper::IsAllowedNotifySelf(asynccallbackinfo->allowed); in NapiIsNotificationEnabledSelf()
227 asynccallbackinfo->info.errorCode, asynccallbackinfo->allowed); in NapiIsNotificationEnabledSelf()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Denable_notification.cpp205 napi_get_boolean(env, asynccallbackinfo->allowed, &result); in AsyncCompleteCallbackIsNotificationEnabled()
252 asynccallbackinfo->params.option, asynccallbackinfo->allowed); in IsNotificationEnabled()
256 asynccallbackinfo->params.userId, asynccallbackinfo->allowed); in IsNotificationEnabled()
259 asynccallbackinfo->allowed); in IsNotificationEnabled()
262 asynccallbackinfo->info.errorCode, asynccallbackinfo->allowed); in IsNotificationEnabled()
319 NotificationHelper::IsAllowedNotifySelf(asynccallbackinfo->allowed); in IsNotificationEnabledSelf()
322 asynccallbackinfo->info.errorCode, asynccallbackinfo->allowed); in IsNotificationEnabledSelf()
/base/notification/distributed_notification_service/frameworks/core/include/
Dans_notification.h248 ErrCode IsAllowedNotify(bool &allowed);
256 ErrCode IsAllowedNotifySelf(bool &allowed);
452 ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed);
692 ErrCode IsAllowedNotify(const int32_t &userId, bool &allowed);
Dans_manager_interface.h403 virtual ErrCode IsAllowedNotify(bool &allowed) = 0;
411 virtual ErrCode IsAllowedNotifySelf(bool &allowed) = 0;
420 …sSpecialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &allowed) = 0;
578 virtual ErrCode IsSpecialUserAllowedNotify(const int32_t &userId, bool &allowed) = 0;
Dans_manager_proxy.h392 ErrCode IsAllowedNotify(bool &allowed) override;
400 ErrCode IsAllowedNotifySelf(bool &allowed) override;
409 …ialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &allowed) override;
567 ErrCode IsSpecialUserAllowedNotify(const int32_t &userId, bool &allowed) override;
Dans_manager_stub.h410 virtual ErrCode IsAllowedNotify(bool &allowed) override;
418 virtual ErrCode IsAllowedNotifySelf(bool &allowed) override;
428 const sptr<NotificationBundleOption> &bundleOption, bool &allowed) override;
588 virtual ErrCode IsSpecialUserAllowedNotify(const int32_t &userId, bool &allowed) override;
/base/theme/screenlock_mgr/frameworks/js/napi/src/
Dnapi_screenlock_ability.cpp152 napi_status status = napi_get_boolean(env, context->allowed, result); in NAPI_IsScreenLocked()
157 context->allowed = ScreenLockManager::GetInstance()->IsScreenLocked(); in NAPI_IsScreenLocked()
158 SCLOCK_HILOGD("NAPI_IsScreenLocked exec allowed = %{public}d ", context->allowed); in NAPI_IsScreenLocked()
373 napi_status status = napi_get_boolean(env, context->allowed, result); in NAPI_IsSecureMode()
379 context->allowed = ScreenLockManager::GetInstance()->GetSecure(); in NAPI_IsSecureMode()
380 SCLOCK_HILOGD("NAPI_IsSecureMode exec allowed = %{public}d ", context->allowed); in NAPI_IsSecureMode()
458 napi_status status = napi_get_boolean(env, context->allowed, result); in NAPI_ScreenLockSendEvent()
469 context->allowed = false; in NAPI_ScreenLockSendEvent()
472 context->allowed = true; in NAPI_ScreenLockSendEvent()
/base/notification/distributed_notification_service/frameworks/js/napi/include/
Denable_notification.h44 bool allowed = false; member
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/
Dansmanagerstub_fuzzer.cpp159 bool allowed = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local
160 ansManagerStub.IsAllowedNotify(allowed); in DoSomethingInterestingWithMyAPI()
161 ansManagerStub.IsSpecialBundleAllowedNotify(bundleOption, allowed); in DoSomethingInterestingWithMyAPI()
187 ansManagerStub.IsSpecialUserAllowedNotify(userId, allowed); in DoSomethingInterestingWithMyAPI()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_helper_test.cpp382 bool allowed = true; variable
384 ErrCode ret = notificationHelper.IsAllowedNotify(allowed);
396 bool allowed = true; variable
398 ErrCode ret = notificationHelper.IsAllowedNotifySelf(allowed);
586 bool allowed = true; variable
588 ErrCode ret = notificationHelper.IsAllowedNotify(bundleOption, allowed);
906 bool allowed = true; variable
908 ErrCode ret = notificationHelper.IsAllowedNotify(userId, allowed);
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/
Dnotification_service_test.cpp368 bool allowed = false; in BENCHMARK_F() local
369 errCode = advancedNotificationService_->IsAllowedNotify(allowed); in BENCHMARK_F()
370 if (!allowed || errCode != ERR_OK) { in BENCHMARK_F()
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
Dnotification_subscriber_manager_branch_test.cpp758 bool allowed = true; variable
764 …advancedNotificationService.IsSpecialBundleAllowedNotify(bundleOption, allowed), ERR_ANS_NON_SYSTE…
775 bool allowed = true; variable
780 …advancedNotificationService.IsSpecialBundleAllowedNotify(bundleOption, allowed), ERR_ANS_INVALID_B…
791 bool allowed = true; variable
798 EXPECT_EQ(advancedNotificationService.IsSpecialBundleAllowedNotify(bundleOption, allowed),
1172 bool allowed = true; variable
1179 …EXPECT_EQ(advancedNotificationService.IsSpecialUserAllowedNotify(userId, allowed), ERR_ANS_NON_SYS…
1190 bool allowed = true; variable
1197 …EXPECT_EQ(advancedNotificationService.SetNotificationsEnabledByUser(userId, allowed), ERR_ANS_NON_…
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
Dans_notification_branch_test.cpp255 ErrCode IsAllowedNotify(bool &allowed) override in IsAllowedNotify() argument
260 ErrCode IsAllowedNotifySelf(bool &allowed) override in IsAllowedNotifySelf() argument
265 …cialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &allowed) override in IsSpecialBundleAllowedNotify() argument
361 ErrCode IsSpecialUserAllowedNotify(const int32_t &userId, bool &allowed) override in IsSpecialUserAllowedNotify() argument
/base/notification/distributed_notification_service/services/ans/include/
Dadvanced_notification_service.h420 ErrCode IsAllowedNotify(bool &allowed) override;
428 ErrCode IsAllowedNotifySelf(bool &allowed) override;
437 …ialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &allowed) override;
595 ErrCode IsSpecialUserAllowedNotify(const int32_t &userId, bool &allowed) override;
781 ErrCode IsAllowedNotifySelf(const sptr<NotificationBundleOption> &bundleOption, bool &allowed);
/base/notification/distributed_notification_service/frameworks/core/src/
Dans_notification.cpp310 ErrCode AnsNotification::IsAllowedNotify(bool &allowed) in IsAllowedNotify() argument
316 return ansManagerProxy_->IsAllowedNotify(allowed); in IsAllowedNotify()
319 ErrCode AnsNotification::IsAllowedNotifySelf(bool &allowed) in IsAllowedNotifySelf() argument
326 return ansManagerProxy_->IsAllowedNotifySelf(allowed); in IsAllowedNotifySelf()
584 …rCode AnsNotification::IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed) in IsAllowedNotify() argument
597 return ansManagerProxy_->IsSpecialBundleAllowedNotify(bo, allowed); in IsAllowedNotify()
1139 ErrCode AnsNotification::IsAllowedNotify(const int32_t &userId, bool &allowed) in IsAllowedNotify() argument
1151 return ansManagerProxy_->IsSpecialUserAllowedNotify(userId, allowed); in IsAllowedNotify()
Dans_manager_stub.cpp1139 bool allowed = false; in HandleIsAllowedNotify() local
1140 ErrCode result = IsAllowedNotify(allowed); in HandleIsAllowedNotify()
1146 if (!reply.WriteBool(allowed)) { in HandleIsAllowedNotify()
1155 bool allowed = false; in HandleIsAllowedNotifySelf() local
1156 ErrCode result = IsAllowedNotifySelf(allowed); in HandleIsAllowedNotifySelf()
1162 if (!reply.WriteBool(allowed)) { in HandleIsAllowedNotifySelf()
1177 bool allowed = false; in HandleIsSpecialBundleAllowedNotify() local
1178 ErrCode result = IsSpecialBundleAllowedNotify(bundleOption, allowed); in HandleIsSpecialBundleAllowedNotify()
1184 if (!reply.WriteBool(allowed)) { in HandleIsSpecialBundleAllowedNotify()
1548 bool allowed = false; in HandleIsSpecialUserAllowedNotifyByUser() local
[all …]
/base/security/selinux_adapter/sepolicy/ohos_policy/hiviewdfx/hilog/system/
Dhilogd.te95 # hilogd is not allowed to write anywhere other than /data/log/hilog
114 # only init is allowed to enter the hilogd domain via exec()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/
Dans_notification_unit_test.cpp331 bool allowed = true; variable
332 ErrCode ret1 = ans_->IsAllowedNotify(allowed);
334 ErrCode ret2 = ans_->IsAllowedNotifySelf(allowed);
339 ErrCode ret3 = ans_->IsAllowedNotify(bundleOption, allowed);
631 bool allowed = true; variable
632 ErrCode ret2 = ans_->IsAllowedNotify(userId, allowed);
635 ErrCode ret3 = ans_->IsAllowedNotify(userId1, allowed);

12