Home
last modified time | relevance | path

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

12

/art/tools/veridex/
Dhidden_api.h38 hiddenapi::ApiList GetApiList(const std::string& name) const { in GetApiList()
40 return (it == api_list_.end()) ? hiddenapi::ApiList() : it->second; in GetApiList()
62 void AddSignatureToApiList(const std::string& signature, hiddenapi::ApiList membership);
64 std::map<std::string, hiddenapi::ApiList> api_list_;
71 uint32_t api_counts[hiddenapi::ApiList::kValueCount] = {}; // initialize all to zero
Dhidden_api.cc35 hiddenapi::ApiList membership; in HiddenApi()
36 bool success = hiddenapi::ApiList::FromNames(values.begin() + 1, values.end(), &membership); in HiddenApi()
40 if (sdk_uses_only != membership.Contains(hiddenapi::ApiList::Whitelist())) { in HiddenApi()
65 void HiddenApi::AddSignatureToApiList(const std::string& signature, hiddenapi::ApiList membership) { in AddSignatureToApiList()
Dappcompat.sh25 -e ${SCRIPT_DIR}/hiddenapi-flags.csv && \
30 --api-flags=${SCRIPT_DIR}/hiddenapi-flags.csv \
Dveridex.cc251 os << stats.api_counts[hiddenapi::ApiList::Whitelist().GetIntValue()] in DumpSummaryStats()
257 for (size_t i = 0; i < hiddenapi::ApiList::kValueCount; ++i) { in DumpSummaryStats()
258 hiddenapi::ApiList api_list = hiddenapi::ApiList(i); in DumpSummaryStats()
259 if (api_list != hiddenapi::ApiList::Whitelist()) { in DumpSummaryStats()
Dhidden_api_finder.cc182 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first); in Dump()
194 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first); in Dump()
208 hiddenapi::ApiList api_list = hidden_api_.GetApiList(full_name); in Dump()
Dprecise_hidden_api_finder.cc103 hiddenapi::ApiList api_list = hidden_api_.GetApiList(full_name); in Dump()
/art/runtime/
Dhidden_api_test.cc32 using hiddenapi::detail::MemberSignature;
33 using hiddenapi::detail::ShouldDenyAccessToMemberImpl;
78 bool ShouldDenyAccess(hiddenapi::ApiList list) REQUIRES_SHARED(Locks::mutator_lock_) { in ShouldDenyAccess()
84 /* access_method= */ hiddenapi::AccessMethod::kNone); in ShouldDenyAccess()
109 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kJustWarn); in TEST_F()
110 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Whitelist()), false); in TEST_F()
111 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Greylist()), false); in TEST_F()
112 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::GreylistMaxP()), false); in TEST_F()
113 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::GreylistMaxO()), false); in TEST_F()
114 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Blacklist()), false); in TEST_F()
[all …]
Druntime_options.def123 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy,
125 hiddenapi::EnforcementPolicy::kDisabled)
126 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy,
128 hiddenapi::EnforcementPolicy::kDisabled)
Druntime.h54 namespace hiddenapi {
552 void SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetHiddenApiEnforcementPolicy()
556 hiddenapi::EnforcementPolicy GetHiddenApiEnforcementPolicy() const { in GetHiddenApiEnforcementPolicy()
560 void SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetCorePlatformApiEnforcementPolicy()
564 hiddenapi::EnforcementPolicy GetCorePlatformApiEnforcementPolicy() const { in GetCorePlatformApiEnforcementPolicy()
1142 hiddenapi::EnforcementPolicy hidden_api_policy_;
1145 hiddenapi::EnforcementPolicy core_platform_api_policy_;
Dparsed_options.cc61 std::initializer_list<std::pair<const char*, hiddenapi::EnforcementPolicy>>;
76 {{"disabled", hiddenapi::EnforcementPolicy::kDisabled}, in MakeParser()
77 {"just-warn", hiddenapi::EnforcementPolicy::kJustWarn}, in MakeParser()
78 {"enabled", hiddenapi::EnforcementPolicy::kEnabled}}; in MakeParser()
80 static_cast<size_t>(hiddenapi::EnforcementPolicy::kMax) + 1); in MakeParser()
347 .WithType<hiddenapi::EnforcementPolicy>() in MakeParser()
351 .WithType<hiddenapi::EnforcementPolicy>() in MakeParser()
Dart_method.cc711 uint32_t hiddenapi_flags = hiddenapi::CreateRuntimeFlags(this); in SetIntrinsic()
729 DCHECK_EQ(hiddenapi_flags, hiddenapi::GetRuntimeFlags(this)) << PrettyMethod(); in SetIntrinsic()
742 uint32_t hiddenapi_runtime_flags = hiddenapi::GetRuntimeFlags(this); in SetNotIntrinsic()
749 DCHECK_EQ(hiddenapi_runtime_flags, hiddenapi::GetRuntimeFlags(this)); in SetNotIntrinsic()
Ddexopt_test.cc56 if (runtime->GetHiddenApiEnforcementPolicy() == hiddenapi::EnforcementPolicy::kEnabled) { in Dex2Oat()
/art/tools/hiddenapi/
Dhiddenapi_test.cc175 hiddenapi::ApiList GetFieldHiddenFlags(const char* name, in GetFieldHiddenFlags()
183 return hiddenapi::ApiList::Whitelist(); in GetFieldHiddenFlags()
192 return hiddenapi::ApiList(field.GetHiddenapiFlags()); in GetFieldHiddenFlags()
201 hiddenapi::ApiList GetMethodHiddenFlags(const char* name, in GetMethodHiddenFlags()
210 return hiddenapi::ApiList::Whitelist(); in GetMethodHiddenFlags()
221 return hiddenapi::ApiList(method.GetHiddenapiFlags()); in GetMethodHiddenFlags()
230 hiddenapi::ApiList GetIFieldHiddenFlags(const DexFile& dex_file) { in GetIFieldHiddenFlags()
234 hiddenapi::ApiList GetSFieldHiddenFlags(const DexFile& dex_file) { in GetSFieldHiddenFlags()
238 hiddenapi::ApiList GetIMethodHiddenFlags(const DexFile& dex_file) { in GetIMethodHiddenFlags()
243 hiddenapi::ApiList GetSMethodHiddenFlags(const DexFile& dex_file) { in GetSMethodHiddenFlags()
[all …]
DAndroid.bp18 name: "hiddenapi-defaults",
23 "hiddenapi.cc",
41 name: "hiddenapi",
42 defaults: ["hiddenapi-defaults"],
53 "hiddenapi-defaults",
/art/libartbase/base/
Dhiddenapi_flags.cc20 namespace hiddenapi { namespace
Dhiddenapi_domain.h21 namespace hiddenapi {
Dhiddenapi_stubs.h24 namespace hiddenapi {
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc288 hiddenapi::EnforcementPolicy api_enforcement_policy = hiddenapi::EnforcementPolicy::kDisabled; in ZygoteHooks_nativePostForkChild()
305 api_enforcement_policy = hiddenapi::EnforcementPolicyFromInt( in ZygoteHooks_nativePostForkChild()
373 bool do_hidden_api_checks = api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled; in ZygoteHooks_nativePostForkChild()
380 if (api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled && in ZygoteHooks_nativePostForkChild()
Djava_lang_Class.cc59 static hiddenapi::AccessContext GetReflectionCaller(Thread* self) in GetReflectionCaller()
112 return caller.IsNull() ? hiddenapi::AccessContext(/* is_trusted= */ true) in GetReflectionCaller()
113 : hiddenapi::AccessContext(caller); in GetReflectionCaller()
116 static std::function<hiddenapi::AccessContext()> GetHiddenapiAccessContextFunction(Thread* self) { in GetHiddenapiAccessContextFunction()
125 return hiddenapi::ShouldDenyAccessToMember(member, in ShouldDenyAccessToMember()
127 hiddenapi::AccessMethod::kReflection); in ShouldDenyAccessToMember()
136 const hiddenapi::AccessContext& access_context, in IsDiscoverable()
143 return !hiddenapi::ShouldDenyAccessToMember( in IsDiscoverable()
144 member, access_context, hiddenapi::AccessMethod::kNone); in IsDiscoverable()
265 hiddenapi::AccessContext hiddenapi_context = GetReflectionCaller(self); in GetDeclaredFields()
[all …]
/art/test/691-hiddenapi-proxy/
Dinfo.txt2 would try to get their class def to find hiddenapi flags in the dex file, but class def if not
/art/test/674-hiddenapi/
Dhiddenapi.cc34 runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init()
35 runtime->SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init()
37 static_cast<uint32_t>(hiddenapi::ApiList::GreylistMaxO().GetMaxAllowedSdkVersion())); in Java_Main_init()
47 (is_core_platform == JNI_FALSE) ? hiddenapi::Domain::kPlatform in Java_Main_setDexDomain()
48 : hiddenapi::Domain::kCorePlatform); in Java_Main_setDexDomain()
/art/tools/
Dbuild_linux_bionic_tests.sh81 $soong_out/bin/hiddenapi
/art/libdexfile/dex/
Dclass_accessor-inl.h72 DCHECK(hiddenapi::ApiList(hiddenapi_flags_).IsValid()); in Read()
86 DCHECK(hiddenapi::ApiList(hiddenapi_flags_).IsValid()); in Read()
/art/runtime/mirror/
Dclass.cc1307 const std::function<hiddenapi::AccessContext()>& fn_get_access_context) { in GetDeclaredMethodInternal()
1323 constexpr hiddenapi::AccessMethod access_method = hiddenapi::AccessMethod::kNone; in GetDeclaredMethodInternal()
1339 bool m_hidden = hiddenapi::ShouldDenyAccessToMember(&m, fn_get_access_context, access_method); in GetDeclaredMethodInternal()
1376 bool m_hidden = hiddenapi::ShouldDenyAccessToMember(&m, fn_get_access_context, access_method); in GetDeclaredMethodInternal()
1401 const std::function<hiddenapi::AccessContext()>& fn_get_access_context);
1408 const std::function<hiddenapi::AccessContext()>& fn_get_access_context);
1415 const std::function<hiddenapi::AccessContext()>& fn_get_access_context);
1422 const std::function<hiddenapi::AccessContext()>& fn_get_access_context);
/art/test/
DAndroid.run-test.mk24 $(HOST_OUT_EXECUTABLES)/hiddenapi \

12