Searched refs:EnforcementPolicy (Results 1 – 12 of 12) sorted by relevance
/art/runtime/ |
D | hidden_api.h | 38 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 …]
|
D | hidden_api.cc | 455 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 …]
|
D | runtime.h | 58 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_;
|
D | parsed_options.cc | 63 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()
|
D | runtime_options.def | 129 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, 131 hiddenapi::EnforcementPolicy::kDisabled) 132 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, 134 hiddenapi::EnforcementPolicy::kDisabled)
|
D | hidden_api_test.cc | 126 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()
|
D | dexopt_test.cc | 57 if (runtime->GetHiddenApiEnforcementPolicy() == hiddenapi::EnforcementPolicy::kEnabled) { in Dex2Oat()
|
D | runtime.cc | 287 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()
|
D | well_known_classes.cc | 329 hiddenapi::EnforcementPolicy::kDisabled); in Init() 383 hiddenapi::EnforcementPolicy::kDisabled); in InitFieldsAndMethodsOnly()
|
/art/runtime/native/ |
D | dalvik_system_ZygoteHooks.cc | 304 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/ |
D | hiddenapi.cc | 37 runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init() 38 runtime->SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init()
|
/art/runtime/jni/ |
D | jni_env_ext.cc | 314 runtime->SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kDisabled); in SetTableOverride()
|