/art/libartbase/base/ |
D | hiddenapi_flags.h | 81 class ApiList { 161 explicit ApiList(Value val, uint32_t domain_apis = 0u) 167 explicit ApiList(DomainApi val) : ApiList(Value::kInvalid, helper::ToBit(val)) {} in ApiList() function 187 ApiList() : ApiList(Value::kInvalid) {} in ApiList() function 189 explicit ApiList(uint32_t dex_flags) : dex_flags_(dex_flags) { in ApiList() function 194 static ApiList Whitelist() { return ApiList(Value::kWhitelist); } in Whitelist() 195 static ApiList Greylist() { return ApiList(Value::kGreylist); } in Greylist() 196 static ApiList Blacklist() { return ApiList(Value::kBlacklist); } in Blacklist() 197 static ApiList GreylistMaxO() { return ApiList(Value::kGreylistMaxO); } in GreylistMaxO() 198 static ApiList GreylistMaxP() { return ApiList(Value::kGreylistMaxP); } in GreylistMaxP() [all …]
|
D | hiddenapi_flags.cc | 22 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/ |
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 | 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 | 95 bool ShouldDenyAccess(hiddenapi::ApiList list) REQUIRES_SHARED(Locks::mutator_lock_) { in ShouldDenyAccess() 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() 132 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::GreylistMaxO()), false); in TEST_F() 133 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Blacklist()), false); in TEST_F() 137 static_cast<uint32_t>(hiddenapi::ApiList::GreylistMaxO().GetMaxAllowedSdkVersion())); in TEST_F() 140 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Whitelist()), false); in TEST_F() [all …]
|
D | hidden_api.cc | 242 hiddenapi::ApiList list, in WarnAboutAccess() 397 ApiList flags; in GetDexFlags() 415 flags = ApiList::Greylist(); in GetDexFlags() 420 flags = ApiList(dex_member.GetHiddenapiFlags()); in GetDexFlags() 440 flags = ApiList(dex_member.GetHiddenapiFlags()); in GetDexFlags() 476 bool ShouldDenyAccessToMemberImpl(T* member, ApiList api_list, AccessMethod access_method) { in ShouldDenyAccessToMemberImpl() 564 ApiList api_list, 567 ApiList api_list,
|
D | hidden_api.h | 201 void WarnAboutAccess(AccessMethod access_method, ApiList list, bool access_denied); 227 bool ShouldDenyAccessToMemberImpl(T* member, ApiList api_list, AccessMethod access_method) 241 ApiList api_list(dex_flags); in CreateRuntimeFlags_Impl() 244 if (api_list.Contains(ApiList::Whitelist())) { in CreateRuntimeFlags_Impl() 249 if (api_list.Contains(ApiList::CorePlatformApi())) { in CreateRuntimeFlags_Impl() 444 ApiList api_list(detail::GetDexFlags(member)); in ShouldDenyAccessToMember()
|
/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 | hiddenapi.cc | 605 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/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_verifier.cc | 1929 if (!hiddenapi::ApiList(decoded_flags).IsValid()) { in CheckIntraHiddenapiClassData()
|
/art/test/674-hiddenapi/ |
D | hiddenapi.cc | 40 static_cast<uint32_t>(hiddenapi::ApiList::GreylistMaxO().GetMaxAllowedSdkVersion())); in Java_Main_init()
|
/art/dexdump/ |
D | dexdump.cc | 1247 hiddenapi::ApiList api_list(hiddenapi_flags); in GetHiddenapiFlagStr()
|
/art/dexlayout/ |
D | dexlayout.cc | 229 hiddenapi::ApiList(hiddenapi_flags).Dump(ss); in GetHiddenapiFlagStr()
|