/art/libartbase/base/ |
D | hiddenapi_flags.h | 81 class ApiList { 165 explicit ApiList(Value val, uint32_t domain_apis = 0u) 171 explicit ApiList(DomainApi val) : ApiList(Value::kInvalid, helper::ToBit(val)) {} in ApiList() function 193 ApiList() : ApiList(Value::kInvalid) {} in ApiList() function 195 explicit ApiList(uint32_t dex_flags) : dex_flags_(dex_flags) { in ApiList() function 200 static ApiList Sdk() { return ApiList(Value::kSdk); } in Sdk() 201 static ApiList Unsupported() { return ApiList(Value::kUnsupported); } in Unsupported() 202 static ApiList Blocked() { return ApiList(Value::kBlocked); } in Blocked() 203 static ApiList MaxTargetO() { return ApiList(Value::kMaxTargetO); } in MaxTargetO() 204 static ApiList MaxTargetP() { return ApiList(Value::kMaxTargetP); } in MaxTargetP() [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/runtime/ |
D | hidden_api_test.cc | 184 bool ShouldDenyAccess(hiddenapi::ApiList list) REQUIRES_SHARED(Locks::mutator_lock_) { in ShouldDenyAccess() 235 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Sdk()), false); in TEST_F() 236 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Unsupported()), false); in TEST_F() 237 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::MaxTargetR()), false); in TEST_F() 238 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::MaxTargetQ()), false); in TEST_F() 239 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::MaxTargetP()), false); in TEST_F() 240 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::MaxTargetO()), false); in TEST_F() 241 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Blocked()), false); in TEST_F() 245 static_cast<uint32_t>(hiddenapi::ApiList::MaxTargetO().GetMaxAllowedSdkVersion())); in TEST_F() 248 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Sdk()), false); in TEST_F() [all …]
|
D | hidden_api.cc | 248 hiddenapi::ApiList list, in WarnAboutAccess() 416 ApiList flags; in GetDexFlags() 434 flags = ApiList::Unsupported(); in GetDexFlags() 439 flags = ApiList(dex_member.GetHiddenapiFlags()); in GetDexFlags() 459 flags = ApiList(dex_member.GetHiddenapiFlags()); in GetDexFlags() 495 bool ShouldDenyAccessToMemberImpl(T* member, ApiList api_list, AccessMethod access_method) { in ShouldDenyAccessToMemberImpl() 586 ApiList api_list, 589 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::Sdk())) { in CreateRuntimeFlags_Impl() 249 if (api_list.Contains(ApiList::CorePlatformApi())) { in CreateRuntimeFlags_Impl() 462 ApiList api_list(detail::GetDexFlags(member)); in ShouldDenyAccessToMember()
|
/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 | 189 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()
|
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/tools/hiddenapi/ |
D | hiddenapi_test.cc | 174 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 …]
|
D | hiddenapi.cc | 628 void WriteFlags(const ApiList& flags) { in WriteFlags() 985 std::map<std::string, ApiList> api_list = OpenApiFile(api_flags_path_); in EncodeAccessFlags() 1008 builder.WriteFlags(api_list_found ? it->second : ApiList::Sdk()); in EncodeAccessFlags() 1027 std::map<std::string, ApiList> OpenApiFile(const std::string& path) { in OpenApiFile() 1032 std::map<std::string, ApiList> api_flag_map; in OpenApiFile() 1049 return ApiList::CoerceAtMost(apiListName, in OpenApiFile() 1058 ApiList membership; in OpenApiFile() 1060 bool success = ApiList::FromNames(apiListBegin, apiListEnd, &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::MaxTargetO().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()
|