/art/libartbase/base/ |
D | hiddenapi_flags.h | 81 class ApiList { 168 explicit ApiList(Value val, uint32_t domain_apis = 0u) 174 explicit ApiList(DomainApi val) : ApiList(Value::kInvalid, helper::ToBit(val)) {} in ApiList() function 196 ApiList() : ApiList(Value::kInvalid) {} in ApiList() function 198 explicit ApiList(uint32_t dex_flags) : dex_flags_(dex_flags) { in ApiList() function 203 static ApiList Sdk() { return ApiList(Value::kSdk); } in Sdk() 204 static ApiList Unsupported() { return ApiList(Value::kUnsupported); } in Unsupported() 205 static ApiList Blocked() { return ApiList(Value::kBlocked); } in Blocked() 206 static ApiList MaxTargetO() { return ApiList(Value::kMaxTargetO); } in MaxTargetO() 207 static ApiList MaxTargetP() { return ApiList(Value::kMaxTargetP); } in MaxTargetP() [all …]
|
/art/runtime/ |
D | hidden_api_test.cc | 190 bool ShouldDenyAccess(hiddenapi::ApiList list) REQUIRES_SHARED(Locks::mutator_lock_) { in ShouldDenyAccess() 271 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Sdk()), false); in TEST_F() 272 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Unsupported()), false); in TEST_F() 273 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::MaxTargetS()), false); in TEST_F() 274 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::MaxTargetR()), false); in TEST_F() 275 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::MaxTargetQ()), false); in TEST_F() 276 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::MaxTargetP()), false); in TEST_F() 277 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::MaxTargetO()), false); in TEST_F() 278 ASSERT_EQ(ShouldDenyAccess(hiddenapi::ApiList::Blocked()), false); in TEST_F() 282 static_cast<uint32_t>(hiddenapi::ApiList::MaxTargetO().GetMaxAllowedSdkVersion())); in TEST_F() [all …]
|
D | hidden_api.cc | 328 hiddenapi::ApiList list, in WarnAboutAccess() 498 ApiList flags; in GetDexFlags() 516 flags = ApiList::Unsupported(); in GetDexFlags() 521 flags = ApiList(dex_member.GetHiddenapiFlags()); in GetDexFlags() 541 flags = ApiList(dex_member.GetHiddenapiFlags()); in GetDexFlags() 577 bool ShouldDenyAccessToMemberImpl(T* member, ApiList api_list, AccessMethod access_method) { in ShouldDenyAccessToMemberImpl() 668 ApiList api_list, 671 ApiList api_list, 741 ApiList api_list(detail::GetDexFlags(member)); in ShouldDenyAccessToMember()
|
D | hidden_api.h | 207 void WarnAboutAccess(AccessMethod access_method, ApiList list, bool access_denied); 233 bool ShouldDenyAccessToMemberImpl(T* member, ApiList api_list, AccessMethod access_method) 247 ApiList api_list(dex_flags); in CreateRuntimeFlags_Impl() 250 if (api_list.Contains(ApiList::Sdk())) { in CreateRuntimeFlags_Impl() 255 if (api_list.Contains(ApiList::CorePlatformApi())) { in CreateRuntimeFlags_Impl()
|
/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 | 37 hiddenapi::ApiList membership; in HiddenApi() 38 bool success = hiddenapi::ApiList::FromNames(values.begin() + 1, values.end(), &membership); in HiddenApi() 69 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 | 275 DumpApiListStats(os, stats, hiddenapi::ApiList(), api_list_filter); in DumpSummaryStats() 276 for (size_t i = 0; i < hiddenapi::ApiList::kValueCount; ++i) { in DumpSummaryStats() 277 DumpApiListStats(os, stats, hiddenapi::ApiList(i), api_list_filter); in DumpSummaryStats() 283 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 | 176 hiddenapi::ApiList GetFieldHiddenFlags(const char* name, in GetFieldHiddenFlags() 184 return hiddenapi::ApiList::Sdk(); in GetFieldHiddenFlags() 193 return hiddenapi::ApiList(field.GetHiddenapiFlags()); in GetFieldHiddenFlags() 202 hiddenapi::ApiList GetMethodHiddenFlags(const char* name, in GetMethodHiddenFlags() 211 return hiddenapi::ApiList::Sdk(); in GetMethodHiddenFlags() 222 return hiddenapi::ApiList(method.GetHiddenapiFlags()); in GetMethodHiddenFlags() 231 hiddenapi::ApiList GetIFieldHiddenFlags(const DexFile& dex_file) { in GetIFieldHiddenFlags() 235 hiddenapi::ApiList GetSFieldHiddenFlags(const DexFile& dex_file) { in GetSFieldHiddenFlags() 239 hiddenapi::ApiList GetIMethodHiddenFlags(const DexFile& dex_file) { in GetIMethodHiddenFlags() 244 hiddenapi::ApiList GetSMethodHiddenFlags(const DexFile& dex_file) { in GetSMethodHiddenFlags() [all …]
|
D | hiddenapi.cc | 609 void WriteFlags(const ApiList& flags) { in WriteFlags() 819 max_hiddenapi_level_ = ApiList::FromName(value); in ParseArgs() 879 std::map<std::string, ApiList> api_list = OpenApiFile(api_flags_path_); in EncodeAccessFlags() 901 ApiList without_domain(it->second.GetIntValue()); in EncodeAccessFlags() 907 builder.WriteFlags(api_list_found ? it->second : ApiList::Sdk()); in EncodeAccessFlags() 938 std::map<std::string, ApiList> OpenApiFile(const std::string& path) { in OpenApiFile() 943 std::map<std::string, ApiList> api_flag_map; in OpenApiFile() 959 ApiList membership; in OpenApiFile() 963 bool success = ApiList::FromNames(apiListBegin, apiListEnd, &membership); in OpenApiFile() 1101 ApiList max_hiddenapi_level_;
|
/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 | 2621 if (!hiddenapi::ApiList(decoded_flags).IsValid()) { in CheckInterHiddenapiClassData()
|
/art/test/674-hiddenapi/ |
D | hiddenapi.cc | 37 static_cast<uint32_t>(hiddenapi::ApiList::MaxTargetO().GetMaxAllowedSdkVersion())); in Java_Main_init()
|
/art/dexdump/ |
D | dexdump.cc | 1337 hiddenapi::ApiList api_list(hiddenapi_flags); in GetHiddenapiFlagStr()
|
/art/runtime/mirror/ |
D | class.cc | 2223 hiddenapi::ApiList api_list(hiddenapi::detail::GetDexFlags(interface_method)); in IsInterfaceMethodAccessible()
|