Searched refs:EnforcementPolicy (Results 1 – 10 of 10) sorted by relevance
35 enum class EnforcementPolicy { enum42 inline EnforcementPolicy EnforcementPolicyFromInt(int api_policy_int) { in EnforcementPolicyFromInt()44 DCHECK_LE(api_policy_int, static_cast<int>(EnforcementPolicy::kMax)); in EnforcementPolicyFromInt()45 return static_cast<EnforcementPolicy>(api_policy_int); in EnforcementPolicyFromInt()144 explicit ScopedHiddenApiEnforcementPolicySetting(EnforcementPolicy new_policy) in ScopedHiddenApiEnforcementPolicySetting()154 const EnforcementPolicy initial_policy_;218 EnforcementPolicy policy)419 EnforcementPolicy policy = Runtime::Current()->GetHiddenApiEnforcementPolicy(); in ShouldDenyAccessToMember()420 if (policy == EnforcementPolicy::kDisabled) { in ShouldDenyAccessToMember()446 EnforcementPolicy policy = Runtime::Current()->GetCorePlatformApiEnforcementPolicy(); in ShouldDenyAccessToMember()[all …]
413 EnforcementPolicy policy) { in HandleCorePlatformApiViolation()414 DCHECK(policy != EnforcementPolicy::kDisabled) in HandleCorePlatformApiViolation()424 if (policy == EnforcementPolicy::kJustWarn) { in HandleCorePlatformApiViolation()430 return policy == EnforcementPolicy::kEnabled; in HandleCorePlatformApiViolation()438 EnforcementPolicy policy = runtime->GetHiddenApiEnforcementPolicy(); in ShouldDenyAccessToMemberImpl()439 DCHECK(policy != EnforcementPolicy::kDisabled) in ShouldDenyAccessToMemberImpl()443 (policy == EnforcementPolicy::kEnabled) && in ShouldDenyAccessToMemberImpl()497 EnforcementPolicy policy);501 EnforcementPolicy policy);
123 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy,125 hiddenapi::EnforcementPolicy::kDisabled)126 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy,128 hiddenapi::EnforcementPolicy::kDisabled)
61 std::initializer_list<std::pair<const char*, hiddenapi::EnforcementPolicy>>;76 {{"disabled", hiddenapi::EnforcementPolicy::kDisabled}, in MakeParser()77 {"just-warn", hiddenapi::EnforcementPolicy::kJustWarn}, in MakeParser()78 {"enabled", hiddenapi::EnforcementPolicy::kEnabled}}; in MakeParser()80 static_cast<size_t>(hiddenapi::EnforcementPolicy::kMax) + 1); in MakeParser()347 .WithType<hiddenapi::EnforcementPolicy>() in MakeParser()351 .WithType<hiddenapi::EnforcementPolicy>() in MakeParser()
55 enum class EnforcementPolicy; variable552 void SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetHiddenApiEnforcementPolicy()556 hiddenapi::EnforcementPolicy GetHiddenApiEnforcementPolicy() const { in GetHiddenApiEnforcementPolicy()560 void SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetCorePlatformApiEnforcementPolicy()564 hiddenapi::EnforcementPolicy GetCorePlatformApiEnforcementPolicy() const { in GetCorePlatformApiEnforcementPolicy()1142 hiddenapi::EnforcementPolicy hidden_api_policy_;1145 hiddenapi::EnforcementPolicy core_platform_api_policy_;
109 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kJustWarn); in TEST_F()116 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in TEST_F()125 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in TEST_F()134 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in TEST_F()
56 if (runtime->GetHiddenApiEnforcementPolicy() == hiddenapi::EnforcementPolicy::kEnabled) { in Dex2Oat()
301 hiddenapi::EnforcementPolicy::kDisabled); in Init()
288 hiddenapi::EnforcementPolicy api_enforcement_policy = hiddenapi::EnforcementPolicy::kDisabled; in ZygoteHooks_nativePostForkChild()373 bool do_hidden_api_checks = api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled; in ZygoteHooks_nativePostForkChild()380 if (api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled && in ZygoteHooks_nativePostForkChild()
34 runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init()35 runtime->SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init()