Home
last modified time | relevance | path

Searched refs:hiddenapi (Results 1 – 20 of 20) sorted by relevance

/art/tools/hiddenapi/
DAndroid.bp18 name: "hiddenapi-defaults",
23 "hiddenapi.cc",
38 name: "hiddenapi",
39 defaults: ["hiddenapi-defaults"],
50 "hiddenapi-defaults",
Dhiddenapi.cc373 art::HiddenApi hiddenapi; in main() local
376 hiddenapi.ParseArgs(argc, argv); in main()
377 return hiddenapi.ProcessDexFiles() ? EXIT_SUCCESS : EXIT_FAILURE; in main()
/art/tools/veridex/
Dappcompat.sh48 --blacklist=${PACKAGING}/hiddenapi-blacklist.txt \
49 --light-greylist=${PACKAGING}/hiddenapi-light-greylist.txt \
50 --dark-greylist=${PACKAGING}/hiddenapi-dark-greylist.txt \
DAndroid.mk33 ${TARGET_OUT_COMMON_INTERMEDIATES}/PACKAGING/hiddenapi-light-greylist.txt \
34 ${TARGET_OUT_COMMON_INTERMEDIATES}/PACKAGING/hiddenapi-dark-greylist.txt \
35 ${TARGET_OUT_COMMON_INTERMEDIATES}/PACKAGING/hiddenapi-blacklist.txt
/art/runtime/
Dhidden_api_test.cc25 using hiddenapi::detail::MemberSignature;
26 using hiddenapi::GetActionFromAccessFlags;
91 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kNoChecks); in TEST_F()
92 ASSERT_EQ(GetActionFromAccessFlags(HiddenApiAccessFlags::kWhitelist), hiddenapi::kAllow); in TEST_F()
93 ASSERT_EQ(GetActionFromAccessFlags(HiddenApiAccessFlags::kLightGreylist), hiddenapi::kAllow); in TEST_F()
94 ASSERT_EQ(GetActionFromAccessFlags(HiddenApiAccessFlags::kDarkGreylist), hiddenapi::kAllow); in TEST_F()
95 ASSERT_EQ(GetActionFromAccessFlags(HiddenApiAccessFlags::kBlacklist), hiddenapi::kAllow); in TEST_F()
97 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kJustWarn); in TEST_F()
99 hiddenapi::kAllow); in TEST_F()
101 hiddenapi::kAllowButWarn); in TEST_F()
[all …]
Dhidden_api.h29 namespace hiddenapi {
Dhidden_api.cc34 namespace hiddenapi { namespace
Dwell_known_classes.cc291 hiddenapi::ScopedHiddenApiEnforcementPolicySetting hiddenapi_exemption( in Init()
292 hiddenapi::EnforcementPolicy::kNoChecks); in Init()
Doat_file_assistant_test.cc1420 hiddenapi::ScopedHiddenApiEnforcementPolicySetting hiddenapi_exemption( in TEST_F()
1421 hiddenapi::EnforcementPolicy::kNoChecks); in TEST_F()
1440 hiddenapi::ScopedHiddenApiEnforcementPolicySetting hiddenapi_exemption( in TEST_F()
1441 hiddenapi::EnforcementPolicy::kBlacklistOnly); in TEST_F()
Djni_internal.cc84 return hiddenapi::IsCallerTrusted(GetCallingClass(self, /* num_frames */ 1)); in IsCallerTrusted()
90 hiddenapi::Action action = hiddenapi::GetMemberAction( in ShouldBlockAccessToMember()
91 member, self, IsCallerTrusted, hiddenapi::kJNI); in ShouldBlockAccessToMember()
92 if (action != hiddenapi::kAllow) { in ShouldBlockAccessToMember()
93 hiddenapi::NotifyHiddenApiListener(member); in ShouldBlockAccessToMember()
96 return action == hiddenapi::kDeny; in ShouldBlockAccessToMember()
Druntime.cc271 hidden_api_policy_(hiddenapi::EnforcementPolicy::kNoChecks), in Runtime()
1219 ? hiddenapi::EnforcementPolicy::kDarkGreyAndBlackList in Init()
1220 : hiddenapi::EnforcementPolicy::kNoChecks; in Init()
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()
308 api_enforcement_policy = hiddenapi::EnforcementPolicyFromInt( 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.cc102 hiddenapi::IsCallerTrusted(visitor.caller->GetDeclaringClass()); in IsCallerTrusted()
109 hiddenapi::EnforcementPolicy policy = Runtime::Current()->GetHiddenApiEnforcementPolicy(); in ShouldEnforceHiddenApi()
110 return policy != hiddenapi::EnforcementPolicy::kNoChecks && !IsCallerTrusted(self); in ShouldEnforceHiddenApi()
118 hiddenapi::Action action = hiddenapi::GetMemberAction( in ShouldBlockAccessToMember()
119 member, self, IsCallerTrusted, hiddenapi::kReflection); in ShouldBlockAccessToMember()
120 if (action != hiddenapi::kAllow) { in ShouldBlockAccessToMember()
121 hiddenapi::NotifyHiddenApiListener(member); in ShouldBlockAccessToMember()
124 return action == hiddenapi::kDeny; in ShouldBlockAccessToMember()
140 return hiddenapi::GetMemberAction(member, in IsDiscoverable()
143 hiddenapi::kNone) in IsDiscoverable()
[all …]
/art/
DAndroid.bp54 "tools/hiddenapi",
DAndroid.mk439 define build-art-hiddenapi
442 …touch ${TARGET_OUT_COMMON_INTERMEDIATES}/PACKAGING/hiddenapi-{blacklist,dark-greylist,light-greyli…
446 $(eval $(call build-art-hiddenapi))
/art/test/
DAndroid.run-test.mk24 $(HOST_OUT_EXECUTABLES)/hiddenapi \
DAndroid.bp441 "674-hiddenapi/hiddenapi.cc",
/art/test/674-hiddenapi/
Dhiddenapi.cc31 runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kBlacklistOnly); in Java_Main_init()
/art/runtime/interpreter/
Dunstarted_runtime.cc185 constexpr hiddenapi::AccessMethod access_method = hiddenapi::kReflection; in ShouldBlockAccessToMember()
186 return hiddenapi::GetMemberAction( in ShouldBlockAccessToMember()
190 access_method) == hiddenapi::kDeny; in ShouldBlockAccessToMember()