Home
last modified time | relevance | path

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

/art/runtime/
Dhidden_api.h38 enum class EnforcementPolicy { enum
45 inline EnforcementPolicy EnforcementPolicyFromInt(int api_policy_int) { in EnforcementPolicyFromInt()
47 DCHECK_LE(api_policy_int, static_cast<int>(EnforcementPolicy::kMax)); in EnforcementPolicyFromInt()
48 return static_cast<EnforcementPolicy>(api_policy_int); in EnforcementPolicyFromInt()
147 explicit ScopedHiddenApiEnforcementPolicySetting(EnforcementPolicy new_policy) in ScopedHiddenApiEnforcementPolicySetting()
157 const EnforcementPolicy initial_policy_;
223 EnforcementPolicy policy)
433 EnforcementPolicy policy = Runtime::Current()->GetHiddenApiEnforcementPolicy(); in ShouldDenyAccessToMember()
434 if (policy == EnforcementPolicy::kDisabled) { in ShouldDenyAccessToMember()
460 EnforcementPolicy policy = Runtime::Current()->GetCorePlatformApiEnforcementPolicy(); in ShouldDenyAccessToMember()
[all …]
Dhidden_api.cc455 EnforcementPolicy policy) { in HandleCorePlatformApiViolation()
456 DCHECK(policy != EnforcementPolicy::kDisabled) in HandleCorePlatformApiViolation()
466 if (policy == EnforcementPolicy::kJustWarn) { in HandleCorePlatformApiViolation()
472 return policy == EnforcementPolicy::kEnabled; in HandleCorePlatformApiViolation()
480 EnforcementPolicy hiddenApiPolicy = runtime->GetHiddenApiEnforcementPolicy(); in ShouldDenyAccessToMemberImpl()
481 DCHECK(hiddenApiPolicy != EnforcementPolicy::kDisabled) in ShouldDenyAccessToMemberImpl()
495 EnforcementPolicy testApiPolicy = runtime->GetTestApiEnforcementPolicy(); in ShouldDenyAccessToMemberImpl()
498 if (hiddenApiPolicy == EnforcementPolicy::kEnabled) { in ShouldDenyAccessToMemberImpl()
499 if (testApiPolicy == EnforcementPolicy::kDisabled && api_list.IsTestApi()) { in ShouldDenyAccessToMemberImpl()
558 EnforcementPolicy policy);
[all …]
Druntime.h58 enum class EnforcementPolicy; variable
587 void SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetHiddenApiEnforcementPolicy()
591 hiddenapi::EnforcementPolicy GetHiddenApiEnforcementPolicy() const { in GetHiddenApiEnforcementPolicy()
595 void SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetCorePlatformApiEnforcementPolicy()
599 hiddenapi::EnforcementPolicy GetCorePlatformApiEnforcementPolicy() const { in GetCorePlatformApiEnforcementPolicy()
603 void SetTestApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetTestApiEnforcementPolicy()
607 hiddenapi::EnforcementPolicy GetTestApiEnforcementPolicy() const { in GetTestApiEnforcementPolicy()
1248 hiddenapi::EnforcementPolicy hidden_api_policy_;
1251 hiddenapi::EnforcementPolicy core_platform_api_policy_;
1254 hiddenapi::EnforcementPolicy test_api_policy_;
Dparsed_options.cc63 std::initializer_list<std::pair<const char*, hiddenapi::EnforcementPolicy>>;
78 {{"disabled", hiddenapi::EnforcementPolicy::kDisabled}, in MakeParser()
79 {"just-warn", hiddenapi::EnforcementPolicy::kJustWarn}, in MakeParser()
80 {"enabled", hiddenapi::EnforcementPolicy::kEnabled}}; in MakeParser()
82 static_cast<size_t>(hiddenapi::EnforcementPolicy::kMax) + 1); in MakeParser()
390 .WithType<hiddenapi::EnforcementPolicy>() in MakeParser()
394 .WithType<hiddenapi::EnforcementPolicy>() in MakeParser()
Druntime_options.def129 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy,
131 hiddenapi::EnforcementPolicy::kDisabled)
132 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy,
134 hiddenapi::EnforcementPolicy::kDisabled)
Dhidden_api_test.cc126 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kJustWarn); in TEST_F()
135 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in TEST_F()
148 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in TEST_F()
168 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in TEST_F()
181 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in TEST_F()
194 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in TEST_F()
211 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in TEST_F()
216 runtime_->SetTestApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in TEST_F()
233 runtime_->SetTestApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kDisabled); in TEST_F()
Ddexopt_test.cc57 if (runtime->GetHiddenApiEnforcementPolicy() == hiddenapi::EnforcementPolicy::kEnabled) { in Dex2Oat()
Druntime.cc287 hidden_api_policy_(hiddenapi::EnforcementPolicy::kDisabled), in Runtime()
288 core_platform_api_policy_(hiddenapi::EnforcementPolicy::kDisabled), in Runtime()
289 test_api_policy_(hiddenapi::EnforcementPolicy::kDisabled), in Runtime()
1325 DCHECK(!is_zygote_ || hidden_api_policy_ == hiddenapi::EnforcementPolicy::kDisabled); in Init()
1331 if (core_platform_api_policy_ != hiddenapi::EnforcementPolicy::kDisabled) { in Init()
1333 << (core_platform_api_policy_ == hiddenapi::EnforcementPolicy::kEnabled ? "true" : "false"); in Init()
Dwell_known_classes.cc329 hiddenapi::EnforcementPolicy::kDisabled); in Init()
383 hiddenapi::EnforcementPolicy::kDisabled); in InitFieldsAndMethodsOnly()
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc304 hiddenapi::EnforcementPolicy api_enforcement_policy = hiddenapi::EnforcementPolicy::kDisabled; in ZygoteHooks_nativePostForkChild()
323 runtime->SetTestApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kDisabled); in ZygoteHooks_nativePostForkChild()
325 runtime->SetTestApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in ZygoteHooks_nativePostForkChild()
393 bool do_hidden_api_checks = api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled; in ZygoteHooks_nativePostForkChild()
400 if (api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled && in ZygoteHooks_nativePostForkChild()
/art/test/674-hiddenapi/
Dhiddenapi.cc37 runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init()
38 runtime->SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init()
/art/runtime/jni/
Djni_env_ext.cc314 runtime->SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kDisabled); in SetTableOverride()