Home
last modified time | relevance | path

Searched refs:type_id (Results 1 – 20 of 20) sorted by relevance

/art/runtime/
Dsdk_checker.cc110 const dex::TypeId* type_id = dex_file->FindTypeId(type_descriptor); in ShouldDenyAccess() local
111 if (type_id == nullptr) { in ShouldDenyAccess()
115 const dex::FieldId* field_id = dex_file->FindFieldId(*declaring_type_id, *name_id, *type_id); in ShouldDenyAccess()
137 const dex::TypeId* type_id = dex_file->FindTypeId(descriptor); in ShouldDenyAccess() local
138 if (type_id != nullptr) { in ShouldDenyAccess()
139 dex::TypeIndex type_idx = dex_file->GetIndexForTypeId(*type_id); in ShouldDenyAccess()
Dclass_linker_test.cc436 const dex::TypeId& type_id = dex.GetTypeId(dex::TypeIndex(i)); in AssertDexFile() local
437 const char* descriptor = dex.GetTypeDescriptor(type_id); in AssertDexFile()
1344 const dex::TypeId* type_id = dex_file->FindTypeId("LStaticsFromCode;"); in TEST_F() local
1345 ASSERT_TRUE(type_id != nullptr); in TEST_F()
1346 dex::TypeIndex type_idx = dex_file->GetIndexForTypeId(*type_id); in TEST_F()
/art/libdexfile/dex/
Dtype_lookup_table.cc47 const dex::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in Create() local
48 const dex::StringId& str_id = dex_file.GetStringId(type_id.descriptor_idx_); in Create()
62 const dex::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in Create() local
63 const dex::StringId& str_id = dex_file.GetStringId(type_id.descriptor_idx_); in Create()
Ddex_file.cc471 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId() local
472 std::string_view mid_descriptor = GetTypeDescriptorView(type_id); in FindTypeId()
479 return &type_id; in FindTypeId()
490 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId() local
491 if (string_idx > type_id.descriptor_idx_) { in FindTypeId()
493 } else if (string_idx < type_id.descriptor_idx_) { in FindTypeId()
496 return &type_id; in FindTypeId()
574 const TypeId* type_id = FindTypeId(descriptor); in CreateTypeList() local
575 if (type_id == nullptr) { in CreateTypeList()
578 dex::TypeIndex type_idx = GetIndexForTypeId(*type_id); in CreateTypeList()
[all …]
Dart_dex_file_loader_test.cc288 const dex::TypeId* type_id = java_lang_dex_file_->FindTypeId(type_str_idx); in TEST_F() local
289 ASSERT_EQ(type_id, java_lang_dex_file_->FindTypeId(type_str)); in TEST_F()
290 ASSERT_TRUE(type_id != nullptr); in TEST_F()
291 EXPECT_EQ(java_lang_dex_file_->GetIndexForTypeId(*type_id).index_, i); in TEST_F()
Ddex_file-inl.h102 inline const char* DexFile::GetTypeDescriptor(const dex::TypeId& type_id) const { in GetTypeDescriptor() argument
103 return GetStringData(type_id.descriptor_idx_); in GetTypeDescriptor()
110 inline std::string_view DexFile::GetTypeDescriptorView(const dex::TypeId& type_id) const { in GetTypeDescriptorView() argument
111 return GetStringView(type_id.descriptor_idx_); in GetTypeDescriptorView()
Ddex_file.h378 dex::TypeIndex GetIndexForTypeId(const dex::TypeId& type_id) const { in GetIndexForTypeId() argument
379 CHECK_GE(&type_id, type_ids_) << GetLocation(); in GetIndexForTypeId()
380 CHECK_LT(&type_id, type_ids_ + header_->type_ids_size_) << GetLocation(); in GetIndexForTypeId()
381 size_t result = &type_id - type_ids_; in GetIndexForTypeId()
387 const char* GetTypeDescriptor(const dex::TypeId& type_id) const;
389 std::string_view GetTypeDescriptorView(const dex::TypeId& type_id) const;
Ddex_file_verifier.cc196 const dex::TypeId& type_id = OffsetToPtr<dex::TypeId>(header_->type_ids_off_)[class_idx.index_]; in GetClass() local
201 return GetString(type_id.descriptor_idx_); in GetClass()
1275 const dex::TypeId& type_id = dex_file_->GetTypeId(dex_file_->GetFieldId(index).type_idx_); in CheckStaticFieldTypes() local
1277 dex_file_->GetStringData(dex_file_->GetStringId(type_id.descriptor_idx_)); in CheckStaticFieldTypes()
1369 const dex::TypeId* type_id = reinterpret_cast<const dex::TypeId*>(ptr_); in CheckIntraTypeIdItem() local
1370 if (!CheckIndex(type_id->descriptor_idx_.index_, in CheckIntraTypeIdItem()
/art/dex2oat/
Ddex2oat_vdex_test.cc99 const dex::TypeId* type_id = dex_file.FindTypeId(cls.c_str()); in GetClassDefIndex() local
100 DCHECK(type_id != nullptr); in GetClassDefIndex()
101 dex::TypeIndex type_idx = dex_file.GetIndexForTypeId(*type_id); in GetClassDefIndex()
Dverifier_deps_test.cc237 const dex::TypeId* type_id = dex_file.FindTypeId(cls.c_str()); in GetClassDefIndex() local
238 DCHECK(type_id != nullptr); in GetClassDefIndex()
239 dex::TypeIndex type_idx = dex_file.GetIndexForTypeId(*type_id); in GetClassDefIndex()
/art/profman/
Dboot_image_profile.cc43 const dex::TypeId& type_id = ref.dex_file->GetTypeId(ref.TypeIndex()); in GetTypeDescriptor() local
44 return ref.dex_file->GetTypeDescriptor(type_id); in GetTypeDescriptor()
Dprofman.cc1071 const dex::TypeId* type_id = dex_file->FindTypeId(klass_descriptor); in FindClassDef() local
1072 if (type_id != nullptr) { in FindClassDef()
1073 dex::TypeIndex type_index = dex_file->GetIndexForTypeId(*type_id); in FindClassDef()
1092 const dex::TypeId* type_id = dex_file->FindTypeId(klass_descriptor); in FindClass() local
1093 if (type_id != nullptr) { in FindClass()
1094 *class_ref = TypeReference(dex_file, dex_file->GetIndexForTypeId(*type_id)); in FindClass()
1554 const dex::TypeId *type_id = class_ref.dex_file->FindTypeId(receiver_descriptor); in ProcessLine() local
1555 if (type_id == nullptr) { in ProcessLine()
1563 class_ref.dex_file->GetIndexForTypeId(*type_id); in ProcessLine()
/art/runtime/verifier/
Dverifier_deps.cc100 const dex::TypeId& type_id = dex_file.GetTypeId(class_def->class_idx_); in GetClassDescriptorStringId() local
103 CHECK_EQ(GetIdFromString(dex_file, klass->GetDescriptor(&temp)), type_id.descriptor_idx_); in GetClassDescriptorStringId()
105 return type_id.descriptor_idx_; in GetClassDescriptorStringId()
/art/runtime/mirror/
Dclass-inl.h846 const dex::TypeId& type_id = dex_file.GetTypeId(klass->GetDexTypeIndex()); in DescriptorEquals() local
847 return strcmp(dex_file.GetTypeDescriptor(type_id), match) == 0; in DescriptorEquals()
866 const dex::TypeId& type_id = dex_file.GetTypeId(klass->GetDexTypeIndex()); in DescriptorHash() local
867 std::string_view descriptor = dex_file.GetTypeDescriptorView(type_id); in DescriptorHash()
Dclass.cc1495 const dex::TypeId& type_id = dex_file.GetTypeId(klass->GetDexTypeIndex()); in GetDescriptor() local
1496 descriptor = dex_file.GetTypeDescriptor(type_id); in GetDescriptor()
1831 const dex::TypeId* type_id = dex_file.FindTypeId(descriptor); in FindTypeIndexInOtherDexFile() local
1832 return (type_id == nullptr) ? dex::TypeIndex() : dex_file.GetIndexForTypeId(*type_id); in FindTypeIndexInOtherDexFile()
/art/tools/hiddenapi/
Dhiddenapi_test.cc169 const dex::TypeId* type_id = dex_file.FindTypeId(desc); in FindClass() local
170 CHECK(type_id != nullptr) << "Could not find class " << desc; in FindClass()
171 const dex::ClassDef* found = dex_file.FindClassDef(dex_file.GetIndexForTypeId(*type_id)); in FindClass()
/art/runtime/oat/
Doat_file.cc2364 const dex::TypeId* type_id = dex_file.FindTypeId(descriptor); in FindClassDef() local
2365 if (type_id != nullptr) { in FindClassDef()
2366 dex::TypeIndex type_idx = dex_file.GetIndexForTypeId(*type_id); in FindClassDef()
/art/dexdump/
Ddexdump.cc1873 const dex::TypeId& type_id = pDexFile->GetTypeId(type_idx); in dumpCallSite() local
1874 value = pDexFile->GetTypeDescriptor(type_id); in dumpCallSite()
/art/libprofile/profile/
Dprofile_compilation_info.cc705 const dex::TypeId* type_id = dex_file.FindTypeId(descriptor); in FindOrCreateTypeIndex() local
706 if (type_id != nullptr) { in FindOrCreateTypeIndex()
707 return dex_file.GetIndexForTypeId(*type_id); in FindOrCreateTypeIndex()
/art/dex2oat/linker/
Doat_writer.cc1420 const dex::TypeId& type_id = in StartClass() local
1422 const char* class_descriptor = dex_file->GetTypeDescriptor(type_id); in StartClass()