Home
last modified time | relevance | path

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

123

/art/runtime/
Dhidden_api_test.cc34 using hiddenapi::detail::MemberSignature;
35 using hiddenapi::detail::ShouldDenyAccessToMemberImpl;
104 hiddenapi::Domain expected_domain, in CheckAllDexFilesInDomain()
108 hiddenapi::AccessContext context(loader, dex_file.get()); in CheckAllDexFilesInDomain()
184 bool ShouldDenyAccess(hiddenapi::ApiList list) REQUIRES_SHARED(Locks::mutator_lock_) { in ShouldDenyAccess()
190 /* access_method= */ hiddenapi::AccessMethod::kNone); in ShouldDenyAccess()
193 void TestLocation(const std::string& location, hiddenapi::Domain expected_domain) { in TestLocation()
234 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kJustWarn); in TEST_F()
235 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Sdk()), false); in TEST_F()
236 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Unsupported()), false); in TEST_F()
[all …]
Druntime.h60 namespace hiddenapi {
599 void SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetHiddenApiEnforcementPolicy()
603 hiddenapi::EnforcementPolicy GetHiddenApiEnforcementPolicy() const { in GetHiddenApiEnforcementPolicy()
607 void SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetCorePlatformApiEnforcementPolicy()
611 hiddenapi::EnforcementPolicy GetCorePlatformApiEnforcementPolicy() const { in GetCorePlatformApiEnforcementPolicy()
615 void SetTestApiEnforcementPolicy(hiddenapi::EnforcementPolicy policy) { in SetTestApiEnforcementPolicy()
619 hiddenapi::EnforcementPolicy GetTestApiEnforcementPolicy() const { in GetTestApiEnforcementPolicy()
1336 hiddenapi::EnforcementPolicy hidden_api_policy_;
1339 hiddenapi::EnforcementPolicy core_platform_api_policy_;
1342 hiddenapi::EnforcementPolicy test_api_policy_;
Dparsed_options.cc64 std::initializer_list<std::pair<const char*, hiddenapi::EnforcementPolicy>>;
79 {{"disabled", hiddenapi::EnforcementPolicy::kDisabled}, in MakeParser()
80 {"just-warn", hiddenapi::EnforcementPolicy::kJustWarn}, in MakeParser()
81 {"enabled", hiddenapi::EnforcementPolicy::kEnabled}}; in MakeParser()
83 static_cast<size_t>(hiddenapi::EnforcementPolicy::kMax) + 1); in MakeParser()
406 .WithType<hiddenapi::EnforcementPolicy>() in MakeParser()
410 .WithType<hiddenapi::EnforcementPolicy>() in MakeParser()
Druntime_options.def135 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy,
137 hiddenapi::EnforcementPolicy::kDisabled)
138 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy,
140 hiddenapi::EnforcementPolicy::kDisabled)
/art/tools/veridex/
Dapi_list_filter.h30 std::set<hiddenapi::ApiList> exclude_set; in ApiListFilter()
40 hiddenapi::ApiList list = hiddenapi::ApiList::FromName(name); in ApiListFilter()
49 lists_.push_back(hiddenapi::ApiList()); in ApiListFilter()
51 for (size_t i = 0; i < hiddenapi::ApiList::kValueCount; ++i) { in ApiListFilter()
52 hiddenapi::ApiList list = hiddenapi::ApiList(i); in ApiListFilter()
59 bool Matches(hiddenapi::ApiList list) const { in Matches()
69 std::vector<hiddenapi::ApiList> lists_;
Dhidden_api.h46 hiddenapi::ApiList GetApiList(const std::string& name) const { in GetApiList()
48 return (it == api_list_.end()) ? hiddenapi::ApiList() : it->second; in GetApiList()
95 void AddSignatureToApiList(const std::string& signature, hiddenapi::ApiList membership);
106 std::map<std::string, hiddenapi::ApiList> api_list_;
115 uint32_t api_counts[hiddenapi::ApiList::kValueSize] = {};
Dhidden_api.cc36 hiddenapi::ApiList membership; in HiddenApi()
37 bool success = hiddenapi::ApiList::FromNames(values.begin() + 1, values.end(), &membership); in HiddenApi()
60 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 \
Dhidden_api_finder.cc189 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first); in Dump()
205 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first); in Dump()
223 hiddenapi::ApiList api_list = hidden_api_.GetApiList(full_name); in Dump()
Dveridex.cc274 DumpApiListStats(os, stats, hiddenapi::ApiList(), api_list_filter); in DumpSummaryStats()
275 for (size_t i = 0; i < hiddenapi::ApiList::kValueCount; ++i) { in DumpSummaryStats()
276 DumpApiListStats(os, stats, hiddenapi::ApiList(i), api_list_filter); in DumpSummaryStats()
282 const hiddenapi::ApiList& api_list, in DumpApiListStats()
/art/tools/hiddenapi/
Dhiddenapi_test.cc174 hiddenapi::ApiList GetFieldHiddenFlags(const char* name, in GetFieldHiddenFlags()
182 return hiddenapi::ApiList::Sdk(); in GetFieldHiddenFlags()
191 return hiddenapi::ApiList(field.GetHiddenapiFlags()); in GetFieldHiddenFlags()
200 hiddenapi::ApiList GetMethodHiddenFlags(const char* name, in GetMethodHiddenFlags()
209 return hiddenapi::ApiList::Sdk(); in GetMethodHiddenFlags()
220 return hiddenapi::ApiList(method.GetHiddenapiFlags()); in GetMethodHiddenFlags()
229 hiddenapi::ApiList GetIFieldHiddenFlags(const DexFile& dex_file) { in GetIFieldHiddenFlags()
233 hiddenapi::ApiList GetSFieldHiddenFlags(const DexFile& dex_file) { in GetSFieldHiddenFlags()
237 hiddenapi::ApiList GetIMethodHiddenFlags(const DexFile& dex_file) { in GetIMethodHiddenFlags()
242 hiddenapi::ApiList GetSMethodHiddenFlags(const DexFile& dex_file) { in GetSMethodHiddenFlags()
[all …]
DAndroid.bp27 name: "hiddenapi-defaults",
32 "hiddenapi.cc",
48 name: "hiddenapi",
50 "hiddenapi-defaults",
69 "hiddenapi-defaults",
/art/build/boot/
DAndroid.bp74 blocked: ["hiddenapi/hiddenapi-blocked.txt"],
75 max_target_o_low_priority: ["hiddenapi/hiddenapi-max-target-o-low-priority.txt"],
76 unsupported_packages: ["hiddenapi/hiddenapi-unsupported-packages.txt"],
/art/build/boot/hiddenapi/
DOWNERS1 # soong-team@ as the hiddenapi files are tightly coupled with Soong
4 # compat-team@ for changes to hiddenapi files
/art/runtime/native/
Ddalvik_system_ZygoteHooks.cc312 hiddenapi::EnforcementPolicy api_enforcement_policy = hiddenapi::EnforcementPolicy::kDisabled; in ZygoteHooks_nativePostForkChild()
326 api_enforcement_policy = hiddenapi::EnforcementPolicyFromInt( in ZygoteHooks_nativePostForkChild()
331 runtime->SetTestApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kDisabled); in ZygoteHooks_nativePostForkChild()
333 runtime->SetTestApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in ZygoteHooks_nativePostForkChild()
401 bool do_hidden_api_checks = api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled; in ZygoteHooks_nativePostForkChild()
408 if (api_enforcement_policy != hiddenapi::EnforcementPolicy::kDisabled && in ZygoteHooks_nativePostForkChild()
Djava_lang_Class.cc66 static hiddenapi::AccessContext GetReflectionCaller(Thread* self) in GetReflectionCaller()
131 return caller.IsNull() ? hiddenapi::AccessContext(/* is_trusted= */ true) in GetReflectionCaller()
132 : hiddenapi::AccessContext(caller); in GetReflectionCaller()
135 static std::function<hiddenapi::AccessContext()> GetHiddenapiAccessContextFunction(Thread* self) { in GetHiddenapiAccessContextFunction()
144 return hiddenapi::ShouldDenyAccessToMember(member, in ShouldDenyAccessToMember()
146 hiddenapi::AccessMethod::kReflection); in ShouldDenyAccessToMember()
155 const hiddenapi::AccessContext& access_context, in IsDiscoverable()
162 return !hiddenapi::ShouldDenyAccessToMember( in IsDiscoverable()
163 member, access_context, hiddenapi::AccessMethod::kNone); in IsDiscoverable()
296 hiddenapi::AccessContext hiddenapi_context = GetReflectionCaller(self); in GetDeclaredFields()
[all …]
/art/test/822-hiddenapi-future/
Dinfo.txt1 Tests that future hiddenapi flags do not crash the runtime.
/art/libartbase/base/
Dhiddenapi_flags.cc20 namespace hiddenapi { namespace
Dhiddenapi_domain.h21 namespace hiddenapi {
Dhiddenapi_stubs.h24 namespace hiddenapi {
/art/test/817-hiddenapi/
Dinfo.txt1 Test that even if hiddenapi bits are not propagated up the hierarchy, the
/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.cc37 runtime->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init()
38 runtime->SetCorePlatformApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kEnabled); in Java_Main_init()
40 static_cast<uint32_t>(hiddenapi::ApiList::MaxTargetO().GetMaxAllowedSdkVersion())); in Java_Main_init()
50 (is_core_platform == JNI_FALSE) ? hiddenapi::Domain::kPlatform in Java_Main_setDexDomain()
51 : hiddenapi::Domain::kCorePlatform); in Java_Main_setDexDomain()
/art/
DPREUPLOAD.cfg4 hidden_api_txt_checksorted_hook = ${REPO_ROOT}/tools/platform-compat/hiddenapi/checksorted_sha.sh $…
/art/libdexfile/dex/
Dclass_accessor-inl.h72 DCHECK(hiddenapi::ApiList(hiddenapi_flags_).IsValid()); in Read()
86 DCHECK(hiddenapi::ApiList(hiddenapi_flags_).IsValid()); in Read()

123