/base/theme/screenlock_mgr/frameworks/js/napi/include/ |
D | napi_screenlock_ability.h | 26 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/ |
D | getbundleimportance_fuzzer.cpp | 32 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/ |
D | getallactivenotifications_fuzzer.cpp | 32 bool allowed = *data % ENABLE; in DoSomethingInterestingWithMyAPI() local 33 Notification::NotificationHelper::IsAllowedNotify(bundleOption, allowed); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/ |
D | advancednotificationservice_fuzzer.cpp | 92 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/ |
D | advanced_notification_service_branch_test.cpp | 584 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/ |
D | notification_helper.h | 250 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/ |
D | notification_helper.cpp | 137 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/ |
D | napi_enable_notification.cpp | 112 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/ |
D | enable_notification.cpp | 205 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/ |
D | ans_notification.h | 248 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);
|
D | ans_manager_interface.h | 403 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;
|
D | ans_manager_proxy.h | 392 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;
|
D | ans_manager_stub.h | 410 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/ |
D | napi_screenlock_ability.cpp | 152 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/ |
D | enable_notification.h | 44 bool allowed = false; member
|
/base/notification/distributed_notification_service/test/fuzztest/ansmanagerstub_fuzzer/ |
D | ansmanagerstub_fuzzer.cpp | 159 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/ |
D | notification_helper_test.cpp | 382 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/ |
D | notification_service_test.cpp | 368 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/ |
D | notification_subscriber_manager_branch_test.cpp | 758 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/ |
D | ans_notification_branch_test.cpp | 255 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/ |
D | advanced_notification_service.h | 420 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/ |
D | ans_notification.cpp | 310 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()
|
D | ans_manager_stub.cpp | 1139 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/ |
D | hilogd.te | 95 # 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/ |
D | ans_notification_unit_test.cpp | 331 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);
|