Home
last modified time | relevance | path

Searched refs:ApiList (Results 1 – 17 of 17) sorted by relevance

/art/libartbase/base/
Dhiddenapi_flags.h74 class ApiList {
146 explicit ApiList(Value val, uint32_t domain_apis = 0u)
152 explicit ApiList(DomainApi val) : ApiList(Value::kInvalid, helper::ToBit(val)) {} in ApiList() function
172 ApiList() : ApiList(Value::kInvalid) {} in ApiList() function
174 explicit ApiList(uint32_t dex_flags) : dex_flags_(dex_flags) { in ApiList() function
179 static ApiList Whitelist() { return ApiList(Value::kWhitelist); } in Whitelist()
180 static ApiList Greylist() { return ApiList(Value::kGreylist); } in Greylist()
181 static ApiList Blacklist() { return ApiList(Value::kBlacklist); } in Blacklist()
182 static ApiList GreylistMaxO() { return ApiList(Value::kGreylistMaxO); } in GreylistMaxO()
183 static ApiList GreylistMaxP() { return ApiList(Value::kGreylistMaxP); } in GreylistMaxP()
[all …]
Dhiddenapi_flags.cc22 constexpr const char* ApiList::kValueNames[ApiList::kValueCount];
23 constexpr const char* ApiList::kDomainApiNames[ApiList::kDomainApiCount];
24 constexpr SdkVersion ApiList::kMaxSdkVersions[ApiList::kValueCount];
/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()
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/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 …]
Dhiddenapi.cc605 void WriteFlags(const ApiList& flags) { in WriteFlags()
951 std::map<std::string, ApiList> api_list = OpenApiFile(api_flags_path_); in EncodeAccessFlags()
972 builder.WriteFlags(api_list_found ? it->second : ApiList::Whitelist()); in EncodeAccessFlags()
991 std::map<std::string, ApiList> OpenApiFile(const std::string& path) { in OpenApiFile()
996 std::map<std::string, ApiList> api_flag_map; in OpenApiFile()
1011 ApiList membership; in OpenApiFile()
1013 bool success = ApiList::FromNames(values.begin() + 1, values.end(), &membership); in OpenApiFile()
/art/runtime/
Dhidden_api_test.cc78 bool ShouldDenyAccess(hiddenapi::ApiList list) REQUIRES_SHARED(Locks::mutator_lock_) { in ShouldDenyAccess()
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()
118 static_cast<uint32_t>(hiddenapi::ApiList::GreylistMaxO().GetMaxAllowedSdkVersion())); in TEST_F()
119 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Whitelist()), false); in TEST_F()
120 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Greylist()), false); in TEST_F()
121 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::GreylistMaxP()), false); in TEST_F()
[all …]
Dhidden_api.cc200 hiddenapi::ApiList list, in WarnAboutAccess()
355 ApiList flags; in GetDexFlags()
373 flags = ApiList::Greylist(); in GetDexFlags()
378 flags = ApiList(dex_member.GetHiddenapiFlags()); in GetDexFlags()
398 flags = ApiList(dex_member.GetHiddenapiFlags()); in GetDexFlags()
434 bool ShouldDenyAccessToMemberImpl(T* member, ApiList api_list, AccessMethod access_method) { in ShouldDenyAccessToMemberImpl()
503 ApiList api_list,
506 ApiList api_list,
Dhidden_api.h196 void WarnAboutAccess(AccessMethod access_method, ApiList list, bool access_denied);
222 bool ShouldDenyAccessToMemberImpl(T* member, ApiList api_list, AccessMethod access_method)
236 ApiList api_list(dex_flags); in CreateRuntimeFlags_Impl()
239 if (api_list.Contains(ApiList::Whitelist())) { in CreateRuntimeFlags_Impl()
244 if (api_list.Contains(ApiList::CorePlatformApi())) { in CreateRuntimeFlags_Impl()
430 ApiList api_list(detail::GetDexFlags(member)); in ShouldDenyAccessToMember()
/art/libdexfile/dex/
Dclass_accessor-inl.h72 DCHECK(hiddenapi::ApiList(hiddenapi_flags_).IsValid()); in Read()
86 DCHECK(hiddenapi::ApiList(hiddenapi_flags_).IsValid()); in Read()
Ddex_file_verifier.cc1633 if (!hiddenapi::ApiList(decoded_flags).IsValid()) { in CheckIntraHiddenapiClassData()
/art/test/674-hiddenapi/
Dhiddenapi.cc37 static_cast<uint32_t>(hiddenapi::ApiList::GreylistMaxO().GetMaxAllowedSdkVersion())); in Java_Main_init()
/art/dexdump/
Ddexdump.cc1208 hiddenapi::ApiList api_list(hiddenapi_flags); in GetHiddenapiFlagStr()
/art/dexlayout/
Ddexlayout.cc228 hiddenapi::ApiList(hiddenapi_flags).Dump(ss); in GetHiddenapiFlagStr()