Home
last modified time | relevance | path

Searched refs:EnforcementPolicy (Results 1 – 11 of 11) sorted by relevance

/art/runtime/
Dhidden_api.h34 enum class EnforcementPolicy { enum
42 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()
76 EnforcementPolicy policy = Runtime::Current()->GetHiddenApiEnforcementPolicy(); in GetActionFromAccessFlags()
77 if (policy == EnforcementPolicy::kNoChecks) { in GetActionFromAccessFlags()
83 if (policy == EnforcementPolicy::kJustWarn) { in GetActionFromAccessFlags()
86 DCHECK(policy >= EnforcementPolicy::kDarkGreyAndBlackList); in GetActionFromAccessFlags()
100 explicit ScopedHiddenApiEnforcementPolicySetting(EnforcementPolicy new_policy) in ScopedHiddenApiEnforcementPolicySetting()
110 const EnforcementPolicy initial_policy_;
Dhidden_api.cc62 static constexpr bool EnumsEqual(EnforcementPolicy policy, HiddenApiAccessFlags::ApiList apiList) { in EnumsEqual()
68 EnumsEqual(EnforcementPolicy::kDarkGreyAndBlackList, HiddenApiAccessFlags::kDarkGreylist) &&
69 EnumsEqual(EnforcementPolicy::kBlacklistOnly, HiddenApiAccessFlags::kBlacklist),
72 EnforcementPolicy::kJustWarn < EnforcementPolicy::kDarkGreyAndBlackList &&
73 EnforcementPolicy::kDarkGreyAndBlackList < EnforcementPolicy::kBlacklistOnly,
Dhidden_api_test.cc91 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kNoChecks); in TEST_F()
97 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kJustWarn); in TEST_F()
107 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kDarkGreyAndBlackList); in TEST_F()
117 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kBlacklistOnly); in TEST_F()
Druntime.h53 enum class EnforcementPolicy; variable
531 void SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetHiddenApiEnforcementPolicy()
535 hiddenapi::EnforcementPolicy GetHiddenApiEnforcementPolicy() const { in GetHiddenApiEnforcementPolicy()
1026 hiddenapi::EnforcementPolicy hidden_api_policy_;
Druntime.cc271 hidden_api_policy_(hiddenapi::EnforcementPolicy::kNoChecks), in Runtime()
1219 ? hiddenapi::EnforcementPolicy::kDarkGreyAndBlackList in Init()
1220 : hiddenapi::EnforcementPolicy::kNoChecks; in Init()
Dwell_known_classes.cc292 hiddenapi::EnforcementPolicy::kNoChecks); in Init()
Doat_file_assistant_test.cc1421 hiddenapi::EnforcementPolicy::kNoChecks); in TEST_F()
1441 hiddenapi::EnforcementPolicy::kBlacklistOnly); in TEST_F()
Doat_file_assistant.cc827 if (runtime->GetHiddenApiEnforcementPolicy() != hiddenapi::EnforcementPolicy::kNoChecks) { in Dex2Oat()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc295 hiddenapi::EnforcementPolicy api_enforcement_policy = hiddenapi::EnforcementPolicy::kNoChecks; in ZygoteHooks_nativePostForkChild()
362 bool do_hidden_api_checks = api_enforcement_policy != hiddenapi::EnforcementPolicy::kNoChecks; in ZygoteHooks_nativePostForkChild()
369 if (api_enforcement_policy != hiddenapi::EnforcementPolicy::kNoChecks && in ZygoteHooks_nativePostForkChild()
Djava_lang_Class.cc109 hiddenapi::EnforcementPolicy policy = Runtime::Current()->GetHiddenApiEnforcementPolicy(); in ShouldEnforceHiddenApi()
110 return policy != hiddenapi::EnforcementPolicy::kNoChecks && !IsCallerTrusted(self); in ShouldEnforceHiddenApi()
/art/test/674-hiddenapi/
Dhiddenapi.cc31 runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kBlacklistOnly); in Java_Main_init()