/base/theme/screenlock_mgr/frameworks/js/napi/include/ |
H A 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() 52 bool allowed; member 55 allowed(false){}; in ScreenLockDisableInfo() 58 status(napi_generic_failure), allowed(false){}; in ScreenLockDisableInfo() 67 bool allowed; member 81 bool allowed; global() member [all...] |
/base/notification/distributed_notification_service/test/fuzztest/getbundleimportance_fuzzer/ |
H A 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/ |
H A 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/services/ans/test/unittest/ |
H A D | advanced_notification_service_branch_test.cpp | 581 bool allowed = false; in HWTEST_F() local 582 ASSERT_EQ(advancedNotificationService_->IsAllowedNotify(allowed), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 596 bool allowed = false; in HWTEST_F() local 597 ASSERT_EQ(advancedNotificationService_->IsAllowedNotify(allowed), ERR_ANS_PERMISSION_DENIED); in HWTEST_F() 628 bool allowed = true; in HWTEST_F() local 630 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), allowed), ERR_ANS_NON_SYSTEM_APP); in HWTEST_F() 644 bool allowed = true; in HWTEST_F() local 646 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), allowed), ERR_ANS_PERMISSION_DENIED); in HWTEST_F() 661 bool allowed = true; in HWTEST_F() local 663 new NotificationBundleOption(TEST_DEFUALT_BUNDLE, SYSTEM_APP_UID), allowed), ERR_ANS_INVALID_BUNDL in HWTEST_F() 897 bool allowed = true; HWTEST_F() local 917 bool allowed = true; HWTEST_F() local [all...] |
H A D | advanced_notification_publish_service_test.cpp | 512 bool allowed = false; in HWTEST_F() local 513 auto ret = advancedNotificationService_->IsAllowedNotify(allowed); in HWTEST_F() 525 bool allowed = false; in HWTEST_F() local 527 auto ret = advancedNotificationService_->IsAllowedNotifyForBundle(bundle, allowed); in HWTEST_F() 701 bool allowed = false; in HWTEST_F() local 702 ret = advancedNotificationService_->IsSpecialUserAllowedNotify(1, allowed); in HWTEST_F()
|
/base/security/code_signature/test/unittest/ |
H A D | rust_key_enable_test.rs | 131 "allowed-acls": [ in test_parse_enterprise_profile() 170 "allowed-acls": [ in test_parse_enterprise_normal_profile() 209 "allowed-acls": [ in test_parse_enterprise_mdm_profile() 248 "allowed-acls": [ in test_parse_debug_profile() 293 "allowed-acls": [ in test_parse_iternaltesting_profile() 337 "allowed-acls": [ in test_parse_invalid_profile() 372 "allowed-acls": [ in test_parse_invalid_profile() 408 "allowed-acls": [ in test_parse_invalid_profile()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
H A D | napi_enable_notification.cpp | 108 napi_get_boolean(env, asynccallbackinfo->allowed, &result); in AsyncCompleteCallbackNapiIsNotificationEnabled() 154 asynccallbackinfo->params.option, asynccallbackinfo->allowed); in NapiIsNotificationEnabled() 158 asynccallbackinfo->params.userId, asynccallbackinfo->allowed); in NapiIsNotificationEnabled() 161 asynccallbackinfo->allowed); in NapiIsNotificationEnabled() 163 ANS_LOGI("asynccallbackinfo->info.errorCode : %{public}d, allowed : %{public}d", in NapiIsNotificationEnabled() 164 asynccallbackinfo->info.errorCode, asynccallbackinfo->allowed); in NapiIsNotificationEnabled() 211 ANS_LOGE("Not allowed to query another application"); in NapiIsNotificationEnabledSelf() 214 NotificationHelper::IsAllowedNotifySelf(asynccallbackinfo->allowed); in NapiIsNotificationEnabledSelf() 216 ANS_LOGD("asynccallbackinfo->info.errorCode = %{public}d, allowed = %{public}d", in NapiIsNotificationEnabledSelf() 217 asynccallbackinfo->info.errorCode, asynccallbackinfo->allowed); in NapiIsNotificationEnabledSelf() 504 bool allowed = false; NapiIsNotificationEnabledSync() local [all...] |
/base/theme/screenlock_mgr/frameworks/js/napi/src/ |
H A D | napi_screenlock_ability.cpp | 176 napi_status status = napi_get_boolean(env, context->allowed, result); in NAPI_IsScreenLocked() 181 context->allowed = ScreenLockManager::GetInstance()->IsScreenLocked(); in NAPI_IsScreenLocked() 182 SCLOCK_HILOGD("NAPI_IsScreenLocked exec allowed = %{public}d ", context->allowed); in NAPI_IsScreenLocked() 406 napi_status status = napi_get_boolean(env, context->allowed, result); in NAPI_IsSecureMode() 412 context->allowed = ScreenLockManager::GetInstance()->GetSecure(); in NAPI_IsSecureMode() 413 SCLOCK_HILOGD("NAPI_IsSecureMode exec allowed = %{public}d ", context->allowed); in NAPI_IsSecureMode() 494 napi_status status = napi_get_boolean(env, context->allowed, result); in NAPI_ScreenLockSendEvent() 505 context->allowed in NAPI_ScreenLockSendEvent() [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | enable_notification.cpp | 212 napi_get_boolean(env, asynccallbackinfo->allowed, &result); in AsyncCompleteCallbackIsNotificationEnabled() 261 asynccallbackinfo->params.option, asynccallbackinfo->allowed); in IsNotificationEnabled() 265 asynccallbackinfo->params.userId, asynccallbackinfo->allowed); in IsNotificationEnabled() 268 asynccallbackinfo->allowed); in IsNotificationEnabled() 270 ANS_LOGI("asynccallbackinfo->info.errorCode = %{public}d, allowed = %{public}d", in IsNotificationEnabled() 271 asynccallbackinfo->info.errorCode, asynccallbackinfo->allowed); in IsNotificationEnabled() 318 ANS_LOGE("Not allowed to query another application."); in IsNotificationEnabledSelf() 321 NotificationHelper::IsAllowedNotifySelf(asynccallbackinfo->allowed); in IsNotificationEnabledSelf() 323 ANS_LOGI("asynccallbackinfo->info.errorCode = %{public}d, allowed = %{public}d", in IsNotificationEnabledSelf() 324 asynccallbackinfo->info.errorCode, asynccallbackinfo->allowed); in IsNotificationEnabledSelf() [all...] |
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_helper.cpp | 161 ErrCode NotificationHelper::IsAllowedNotify(bool &allowed) in IsAllowedNotify() argument 163 return DelayedSingleton<AnsNotification>::GetInstance()->IsAllowedNotify(allowed); in IsAllowedNotify() 166 ErrCode NotificationHelper::IsAllowedNotifySelf(bool &allowed) in IsAllowedNotifySelf() argument 168 return DelayedSingleton<AnsNotification>::GetInstance()->IsAllowedNotifySelf(allowed); in IsAllowedNotifySelf() 309 ErrCode NotificationHelper::IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed) in IsAllowedNotify() argument 311 return DelayedSingleton<AnsNotification>::GetInstance()->IsAllowedNotify(bundleOption, allowed); in IsAllowedNotify() 433 ErrCode NotificationHelper::IsAllowedNotify(const int32_t &userId, bool &allowed) in IsAllowedNotify() argument 435 return DelayedSingleton<AnsNotification>::GetInstance()->IsAllowedNotify(userId, allowed); in IsAllowedNotify()
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_manager_impl.cpp | 327 bool allowed = false; in IsNotificationEnabled() local 333 errorCode = NotificationHelper::IsAllowedNotify(params.option, allowed); in IsNotificationEnabled() 336 errorCode = NotificationHelper::IsAllowedNotify(params.userId, allowed); in IsNotificationEnabled() 338 errorCode = NotificationHelper::IsAllowedNotifySelf(allowed); in IsNotificationEnabled() 341 ret.data = allowed; in IsNotificationEnabled() 342 LOGI("errorCode : %{public}d, allowed : %{public}d", in IsNotificationEnabled() 343 errorCode, allowed); in IsNotificationEnabled()
|
/base/notification/distributed_notification_service/interfaces/inner_api/ |
H A D | notification_helper.h | 357 * @param allowed True if this application has the permission; returns false otherwise 358 * @return Returns is allowed notify result. 360 static ErrCode IsAllowedNotify(bool &allowed); 365 * @param allowed True if this application has the permission; returns false otherwise 366 * @return Returns is allowed notify result. 368 static ErrCode IsAllowedNotifySelf(bool &allowed); 606 * @param allowed True if the application has permissions; false otherwise. 607 * @return Returns is allowed notify result. 609 static ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed); 618 * indicates that notifications are allowed, an [all...] |
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | advanced_notification_publish_service.cpp | 996 ErrCode AdvancedNotificationService::IsAllowedNotify(bool &allowed) in IsAllowedNotify() argument 1022 allowed = false; in IsAllowedNotify() 1023 result = NotificationPreferences::GetInstance()->GetNotificationsEnabled(userId, allowed); in IsAllowedNotify() 1029 ErrCode AdvancedNotificationService::IsAllowedNotifySelf(bool &allowed) in IsAllowedNotifySelf() argument 1037 return IsAllowedNotifySelf(bundleOption, allowed); in IsAllowedNotifySelf() 1118 bool &allowed) in IsAllowedNotifySelf() 1132 allowed = false; in IsAllowedNotifySelf() 1133 result = NotificationPreferences::GetInstance()->GetNotificationsEnabled(userId, allowed); in IsAllowedNotifySelf() 1134 if (result == ERR_OK && allowed) { in IsAllowedNotifySelf() 1135 result = NotificationPreferences::GetInstance()->GetNotificationsEnabledForBundle(bundleOption, allowed); in IsAllowedNotifySelf() 1117 IsAllowedNotifySelf(const sptr<NotificationBundleOption> &bundleOption, bool &allowed) IsAllowedNotifySelf() argument 1146 IsAllowedNotifyForBundle(const sptr<NotificationBundleOption> &bundleOption, bool &allowed) IsAllowedNotifyForBundle() argument 1174 IsSpecialBundleAllowedNotify( const sptr<NotificationBundleOption> &bundleOption, bool &allowed) IsSpecialBundleAllowedNotify() argument 2060 IsSpecialUserAllowedNotify(const int32_t &userId, bool &allowed) IsSpecialUserAllowedNotify() argument [all...] |
H A D | advanced_notification_slot_service.cpp | 717 bool allowed = false; in AddSlotThenPublishEvent() local 718 ErrCode result = NotificationPreferences::GetInstance()->GetNotificationsEnabledForBundle(bundle, allowed); in AddSlotThenPublishEvent() 721 allowed = CheckApiCompatibility(bundle); in AddSlotThenPublishEvent() 722 SetDefaultNotificationEnabled(bundle, allowed); in AddSlotThenPublishEvent() 739 if (!slot->GetForceControl() && !allowed) { in AddSlotThenPublishEvent()
|
/base/notification/distributed_notification_service/test/fuzztest/advancednotificationservice_fuzzer/ |
H A D | advancednotificationservice_fuzzer.cpp | 110 bool allowed = fuzzData.GenerateRandomBool(); in DoSomethingInterestingWithMyAPI() local 111 service->IsAllowedNotify(allowed); in DoSomethingInterestingWithMyAPI() 112 service->IsAllowedNotifySelf(bundleOption, allowed); in DoSomethingInterestingWithMyAPI() 113 service->IsAllowedNotifyForBundle(bundleOption, allowed); in DoSomethingInterestingWithMyAPI() 114 service->IsSpecialBundleAllowedNotify(bundleOption, allowed); in DoSomethingInterestingWithMyAPI() 146 service->IsSpecialUserAllowedNotify(userId, allowed); in DoSomethingInterestingWithMyAPI()
|
/base/notification/distributed_notification_service/test/bechmarktest/notification_services_test/ |
H A D | notification_service_test.cpp | 374 bool allowed = false;
in BENCHMARK_F() local 375 errCode = advancedNotificationService_->IsAllowedNotify(allowed);
in BENCHMARK_F() 376 if (!allowed || errCode != ERR_OK) {
in BENCHMARK_F()
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
H A D | enable_notification.h | 45 bool allowed = false; member
|
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/ |
H A D | notification_subscriber_manager_branch_test.cpp | 705 bool allowed = true;
in HWTEST_F() local 711 advancedNotificationService.IsSpecialBundleAllowedNotify(bundleOption, allowed), ERR_ANS_NON_SYSTEM_APP);
in HWTEST_F() 722 bool allowed = true;
in HWTEST_F() local 727 advancedNotificationService.IsSpecialBundleAllowedNotify(bundleOption, allowed), ERR_ANS_INVALID_BUNDLE);
in HWTEST_F() 739 bool allowed = true;
in HWTEST_F() local 746 ASSERT_EQ(advancedNotificationService.IsSpecialBundleAllowedNotify(bundleOption, allowed),
in HWTEST_F() 1082 bool allowed = true;
in HWTEST_F() local 1087 ASSERT_EQ(advancedNotificationService.IsSpecialUserAllowedNotify(userId, allowed), ERR_ANS_NON_SYSTEM_APP);
in HWTEST_F() 1098 bool allowed = true;
in HWTEST_F() local 1103 ASSERT_EQ(advancedNotificationService.SetNotificationsEnabledByUser(userId, allowed), ERR_ANS_NON_SYSTEM_AP in HWTEST_F() [all...] |
/base/notification/distributed_notification_service/frameworks/core/include/ |
H A D | ans_manager_interface.h | 499 * @brief Checks whether this device is allowed to publish notifications. 501 * @param allowed Indicates the flag that allows notification. 504 virtual ErrCode IsAllowedNotify(bool &allowed) = 0; 507 * @brief Checks whether this application is allowed to publish notifications. 509 * @param allowed Indicates the flag that allows notification. 512 virtual ErrCode IsAllowedNotifySelf(bool &allowed) = 0; 531 * @brief Checks whether notifications are allowed for a specific bundle. 534 * @param allowed Indicates the flag that allows notification. 537 virtual ErrCode IsSpecialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &allowed) = 0; 740 * @brief Checks Whether the specified users is allowed t [all...] |
H A D | ans_manager_proxy.h | 487 * @brief Checks whether this device is allowed to publish notifications. 489 * @param allowed Indicates the flag that allows notification. 492 ErrCode IsAllowedNotify(bool &allowed) override; 495 * @brief Checks whether this application is allowed to publish notifications. 497 * @param allowed Indicates the flag that allows notification. 500 ErrCode IsAllowedNotifySelf(bool &allowed) override; 519 * @brief Checks whether notifications are allowed for a specific bundle. 522 * @param allowed Indicates the flag that allows notification. 525 ErrCode IsSpecialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &allowed) override; 728 * @brief Checks Whether the specified users is allowed t [all...] |
H A D | ans_notification.h | 291 * @param allowed True if this application has the permission; returns false otherwise 292 * @return Returns is allowed notify result. 294 ErrCode IsAllowedNotify(bool &allowed); 299 * @param allowed True if this application has the permission; returns false otherwise 300 * @return Returns is allowed notify result. 302 ErrCode IsAllowedNotifySelf(bool &allowed); 573 * @param allowed True if the application has permissions; returns false otherwise. 574 * @return Returns is allowed notify result. 576 ErrCode IsAllowedNotify(const NotificationBundleOption &bundleOption, bool &allowed); 585 * indicates that notifications are allowed, an [all...] |
/base/notification/distributed_notification_service/frameworks/core/src/ |
H A D | ans_manager_stub_invalid.cpp | 341 ErrCode AnsManagerStub::IsAllowedNotify(bool &allowed) in IsAllowedNotify() argument 347 ErrCode AnsManagerStub::IsAllowedNotifySelf(bool &allowed) in IsAllowedNotifySelf() argument 366 ErrCode AnsManagerStub::IsSpecialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &allowed) in IsSpecialBundleAllowedNotify() argument 517 ErrCode AnsManagerStub::IsSpecialUserAllowedNotify(const int32_t &userId, bool &allowed) in IsSpecialUserAllowedNotify() argument
|
H A D | ans_manager_stub.cpp | 1619 bool allowed = false; in HandleIsAllowedNotify() local 1620 ErrCode result = IsAllowedNotify(allowed); in HandleIsAllowedNotify() 1626 if (!reply.WriteBool(allowed)) { in HandleIsAllowedNotify() 1627 ANS_LOGE("[HandleIsAllowedNotify] fail: write allowed failed."); in HandleIsAllowedNotify() 1635 bool allowed = false; in HandleIsAllowedNotifySelf() local 1636 ErrCode result = IsAllowedNotifySelf(allowed); in HandleIsAllowedNotifySelf() 1642 if (!reply.WriteBool(allowed)) { in HandleIsAllowedNotifySelf() 1643 ANS_LOGE("[HandleIsAllowedNotifySelf] fail: write allowed failed."); in HandleIsAllowedNotifySelf() 1693 bool allowed = false; in HandleIsSpecialBundleAllowedNotify() local 1694 ErrCode result = IsSpecialBundleAllowedNotify(bundleOption, allowed); in HandleIsSpecialBundleAllowedNotify() 2098 bool allowed = false; HandleIsSpecialUserAllowedNotifyByUser() local [all...] |
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | notification_helper_test.cpp | 406 bool allowed = true; in HWTEST_F() local 408 ErrCode ret = notificationHelper.IsAllowedNotify(allowed); in HWTEST_F() 420 bool allowed = true; in HWTEST_F() local 422 ErrCode ret = notificationHelper.IsAllowedNotifySelf(allowed); in HWTEST_F() 613 bool allowed = true; in HWTEST_F() local 615 ErrCode ret = notificationHelper.IsAllowedNotify(bundleOption, allowed); in HWTEST_F() 933 bool allowed = true; in HWTEST_F() local 935 ErrCode ret = notificationHelper.IsAllowedNotify(userId, allowed); in HWTEST_F()
|
/base/notification/distributed_notification_service/services/ans/include/ |
H A D | advanced_notification_service.h | 542 * @brief Checks whether this device is allowed to publish notifications. 544 * @param allowed Indicates the flag that allows notification. 547 ErrCode IsAllowedNotify(bool &allowed) override; 550 * @brief Checks whether this application is allowed to publish notifications. 552 * @param allowed Indicates the flag that allows notification. 555 ErrCode IsAllowedNotifySelf(bool &allowed) override; 576 * @brief Checks whether notifications are allowed for a specific bundle. 579 * @param allowed Indicates the flag that allows notification. 582 ErrCode IsSpecialBundleAllowedNotify(const sptr<NotificationBundleOption> &bundleOption, bool &allowed) override; 790 * @brief Checks Whether the specified users is allowed t [all...] |