/art/tools/veridex/ |
D | api_list_filter.h | 30 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_;
|
D | hidden_api.h | 46 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] = {};
|
D | hidden_api.cc | 36 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()
|
D | appcompat.sh | 25 -e ${SCRIPT_DIR}/hiddenapi-flags.csv && \ 30 --api-flags=${SCRIPT_DIR}/hiddenapi-flags.csv \
|
D | hidden_api_finder.cc | 182 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first); in Dump() 198 hiddenapi::ApiList api_list = hidden_api_.GetApiList(pair.first); in Dump() 216 hiddenapi::ApiList api_list = hidden_api_.GetApiList(full_name); in Dump()
|
D | veridex.cc | 274 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()
|
D | precise_hidden_api_finder.cc | 111 hiddenapi::ApiList api_list = hidden_api_.GetApiList(full_name); in Dump()
|
/art/runtime/ |
D | hidden_api_test.cc | 34 using hiddenapi::detail::MemberSignature; 35 using hiddenapi::detail::ShouldDenyAccessToMemberImpl; 95 bool ShouldDenyAccess(hiddenapi::ApiList list) REQUIRES_SHARED(Locks::mutator_lock_) { in ShouldDenyAccess() 101 /* access_method= */ hiddenapi::AccessMethod::kNone); in ShouldDenyAccess() 126 runtime_->SetHiddenApiEnforcementPolicy(hiddenapi::EnforcementPolicy::kJustWarn); in TEST_F() 127 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Whitelist()), false); in TEST_F() 128 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Greylist()), false); in TEST_F() 129 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::GreylistMaxR()), false); in TEST_F() 130 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::GreylistMaxQ()), false); in TEST_F() 131 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::GreylistMaxP()), false); in TEST_F() [all …]
|
D | runtime.h | 57 namespace hiddenapi { 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)
|
/art/tools/hiddenapi/ |
D | hiddenapi_test.cc | 174 hiddenapi::ApiList GetFieldHiddenFlags(const char* name, in GetFieldHiddenFlags() 182 return hiddenapi::ApiList::Whitelist(); in GetFieldHiddenFlags() 191 return hiddenapi::ApiList(field.GetHiddenapiFlags()); in GetFieldHiddenFlags() 200 hiddenapi::ApiList GetMethodHiddenFlags(const char* name, in GetMethodHiddenFlags() 209 return hiddenapi::ApiList::Whitelist(); 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 …]
|
D | Android.bp | 18 name: "hiddenapi-defaults", 23 "hiddenapi.cc", 38 name: "hiddenapi", 39 defaults: ["hiddenapi-defaults"], 59 "hiddenapi-defaults",
|
/art/runtime/native/ |
D | dalvik_system_ZygoteHooks.cc | 304 hiddenapi::EnforcementPolicy api_enforcement_policy = hiddenapi::EnforcementPolicy::kDisabled; in ZygoteHooks_nativePostForkChild() 318 api_enforcement_policy = hiddenapi::EnforcementPolicyFromInt( 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()
|
D | java_lang_Class.cc | 65 static hiddenapi::AccessContext GetReflectionCaller(Thread* self) in GetReflectionCaller() 129 return caller.IsNull() ? hiddenapi::AccessContext(/* is_trusted= */ true) in GetReflectionCaller() 130 : hiddenapi::AccessContext(caller); in GetReflectionCaller() 133 static std::function<hiddenapi::AccessContext()> GetHiddenapiAccessContextFunction(Thread* self) { in GetHiddenapiAccessContextFunction() 142 return hiddenapi::ShouldDenyAccessToMember(member, in ShouldDenyAccessToMember() 144 hiddenapi::AccessMethod::kReflection); in ShouldDenyAccessToMember() 153 const hiddenapi::AccessContext& access_context, in IsDiscoverable() 160 return !hiddenapi::ShouldDenyAccessToMember( in IsDiscoverable() 161 member, access_context, hiddenapi::AccessMethod::kNone); in IsDiscoverable() 294 hiddenapi::AccessContext hiddenapi_context = GetReflectionCaller(self); in GetDeclaredFields() [all …]
|
/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/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 | 37 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::GreylistMaxO().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/build/sdk/ |
D | Android.bp | 90 "hiddenapi", 96 // that are needed by hiddenapi.
|
/art/tools/ |
D | build_linux_bionic_tests.sh | 89 $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()
|
D | dex_file.h | 49 namespace hiddenapi { 766 hiddenapi::Domain GetHiddenapiDomain() const { return hiddenapi_domain_; } in GetHiddenapiDomain() 767 void SetHiddenapiDomain(hiddenapi::Domain value) const { hiddenapi_domain_ = value; } in SetHiddenapiDomain() 884 mutable hiddenapi::Domain hiddenapi_domain_;
|
/art/test/ |
D | Android.run-test.mk | 23 $(HOST_OUT_EXECUTABLES)/hiddenapi \
|