Searched refs:EnforcementPolicy (Results 1 – 11 of 11) sorted by relevance
34 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()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_;
62 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,
91 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()
53 enum class EnforcementPolicy; variable531 void SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetHiddenApiEnforcementPolicy()535 hiddenapi::EnforcementPolicy GetHiddenApiEnforcementPolicy() const { in GetHiddenApiEnforcementPolicy()1026 hiddenapi::EnforcementPolicy hidden_api_policy_;
271 hidden_api_policy_(hiddenapi::EnforcementPolicy::kNoChecks), in Runtime()1219 ? hiddenapi::EnforcementPolicy::kDarkGreyAndBlackList in Init()1220 : hiddenapi::EnforcementPolicy::kNoChecks; in Init()
292 hiddenapi::EnforcementPolicy::kNoChecks); in Init()
1421 hiddenapi::EnforcementPolicy::kNoChecks); in TEST_F()1441 hiddenapi::EnforcementPolicy::kBlacklistOnly); in TEST_F()
827 if (runtime->GetHiddenApiEnforcementPolicy() != hiddenapi::EnforcementPolicy::kNoChecks) { in Dex2Oat()
295 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()
109 hiddenapi::EnforcementPolicy policy = Runtime::Current()->GetHiddenApiEnforcementPolicy(); in ShouldEnforceHiddenApi()110 return policy != hiddenapi::EnforcementPolicy::kNoChecks && !IsCallerTrusted(self); in ShouldEnforceHiddenApi()
31 runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kBlacklistOnly); in Java_Main_init()