Home
last modified time | relevance | path

Searched refs:allowed (Results 1 - 25 of 36) sorted by relevance

12

/base/theme/screenlock_mgr/frameworks/js/napi/include/
H A 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()
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 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/
H A Dgetallactivenotifications_fuzzer.cpp32 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 Dadvanced_notification_service_branch_test.cpp581 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 Dadvanced_notification_publish_service_test.cpp512 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 Drust_key_enable_test.rs131 "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 Dnapi_enable_notification.cpp108 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 Dnapi_screenlock_ability.cpp176 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 Denable_notification.cpp212 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 Dnotification_helper.cpp161 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 Dnotification_manager_impl.cpp327 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 Dnotification_helper.h357 * @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 Dadvanced_notification_publish_service.cpp996 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 Dadvanced_notification_slot_service.cpp717 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 Dadvancednotificationservice_fuzzer.cpp110 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 Dnotification_service_test.cpp374 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 Denable_notification.h45 bool allowed = false; member
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
H A Dnotification_subscriber_manager_branch_test.cpp705 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 Dans_manager_interface.h499 * @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 Dans_manager_proxy.h487 * @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 Dans_notification.h291 * @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 Dans_manager_stub_invalid.cpp341 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 Dans_manager_stub.cpp1619 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 Dnotification_helper_test.cpp406 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 Dadvanced_notification_service.h542 * @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...]

Completed in 29 milliseconds

12