/art/tools/veridex/ |
D | hidden_api.h | 38 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
|
D | hidden_api.cc | 35 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()
|
D | appcompat.sh | 25 -e ${SCRIPT_DIR}/hiddenapi-flags.csv && \ 30 --api-flags=${SCRIPT_DIR}/hiddenapi-flags.csv \
|
D | veridex.cc | 251 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()
|
D | hidden_api_finder.cc | 182 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()
|
D | precise_hidden_api_finder.cc | 103 hiddenapi::ApiList api_list = hidden_api_.GetApiList(full_name); in Dump()
|
/art/runtime/ |
D | hidden_api_test.cc | 32 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 …]
|
D | runtime_options.def | 123 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, 125 hiddenapi::EnforcementPolicy::kDisabled) 126 RUNTIME_OPTIONS_KEY (hiddenapi::EnforcementPolicy, 128 hiddenapi::EnforcementPolicy::kDisabled)
|
D | runtime.h | 54 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_;
|
D | parsed_options.cc | 61 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()
|
D | art_method.cc | 711 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()
|
D | dexopt_test.cc | 56 if (runtime->GetHiddenApiEnforcementPolicy() == hiddenapi::EnforcementPolicy::kEnabled) { in Dex2Oat()
|
/art/tools/hiddenapi/ |
D | hiddenapi_test.cc | 175 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 …]
|
D | Android.bp | 18 name: "hiddenapi-defaults", 23 "hiddenapi.cc", 41 name: "hiddenapi", 42 defaults: ["hiddenapi-defaults"], 53 "hiddenapi-defaults",
|
/art/libartbase/base/ |
D | hiddenapi_flags.cc | 20 namespace hiddenapi { namespace
|
D | hiddenapi_domain.h | 21 namespace hiddenapi {
|
D | hiddenapi_stubs.h | 24 namespace hiddenapi {
|
/art/runtime/native/ |
D | dalvik_system_ZygoteHooks.cc | 288 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()
|
D | java_lang_Class.cc | 59 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/ |
D | info.txt | 2 would try to get their class def to find hiddenapi flags in the dex file, but class def if not
|
/art/test/674-hiddenapi/ |
D | hiddenapi.cc | 34 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/ |
D | build_linux_bionic_tests.sh | 81 $soong_out/bin/hiddenapi
|
/art/libdexfile/dex/ |
D | class_accessor-inl.h | 72 DCHECK(hiddenapi::ApiList(hiddenapi_flags_).IsValid()); in Read() 86 DCHECK(hiddenapi::ApiList(hiddenapi_flags_).IsValid()); in Read()
|
/art/runtime/mirror/ |
D | class.cc | 1307 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/ |
D | Android.run-test.mk | 24 $(HOST_OUT_EXECUTABLES)/hiddenapi \
|