Home
last modified time | relevance | path

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

/art/libdexfile/dex/
Ddex_file-inl.h85 const dex::TypeId& type_id = GetTypeId(idx); in StringByTypeIdx() local
86 return StringDataAndUtf16LengthByIdx(type_id.descriptor_idx_, unicode_length); in StringByTypeIdx()
93 const dex::TypeId& type_id = GetTypeId(idx); in StringByTypeIdx() local
94 return StringDataByIdx(type_id.descriptor_idx_); in StringByTypeIdx()
97 inline const char* DexFile::GetTypeDescriptor(const dex::TypeId& type_id) const { in GetTypeDescriptor() argument
98 return StringDataByIdx(type_id.descriptor_idx_); in GetTypeDescriptor()
102 const dex::TypeId& type_id = GetTypeId(field_id.type_idx_); in GetFieldTypeDescriptor() local
103 return GetTypeDescriptor(type_id); in GetFieldTypeDescriptor()
112 const dex::TypeId& type_id = GetTypeId(method_id.class_idx_); in GetMethodDeclaringClassDescriptor() local
113 return GetTypeDescriptor(type_id); in GetMethodDeclaringClassDescriptor()
Ddex_file.cc334 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId() local
335 const StringId& str_id = GetStringId(type_id.descriptor_idx_); in FindTypeId()
343 return &type_id; in FindTypeId()
354 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId() local
355 if (string_idx > type_id.descriptor_idx_) { in FindTypeId()
357 } else if (string_idx < type_id.descriptor_idx_) { in FindTypeId()
360 return &type_id; in FindTypeId()
439 const TypeId* type_id = FindTypeId(descriptor.c_str()); in CreateTypeList() local
440 if (type_id == nullptr) { in CreateTypeList()
443 dex::TypeIndex type_idx = GetIndexForTypeId(*type_id); in CreateTypeList()
[all …]
Dtype_lookup_table.cc51 const dex::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in Create() local
52 const dex::StringId& str_id = dex_file.GetStringId(type_id.descriptor_idx_); in Create()
66 const dex::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in Create() local
67 const dex::StringId& str_id = dex_file.GetStringId(type_id.descriptor_idx_); in Create()
Dart_dex_file_loader_test.cc239 const dex::TypeId* type_id = java_lang_dex_file_->FindTypeId(type_str_idx); in TEST_F() local
240 ASSERT_EQ(type_id, java_lang_dex_file_->FindTypeId(type_str)); in TEST_F()
241 ASSERT_TRUE(type_id != nullptr); in TEST_F()
242 EXPECT_EQ(java_lang_dex_file_->GetIndexForTypeId(*type_id).index_, i); in TEST_F()
Ddex_file.h291 dex::TypeIndex GetIndexForTypeId(const dex::TypeId& type_id) const { in GetIndexForTypeId() argument
292 CHECK_GE(&type_id, type_ids_) << GetLocation(); in GetIndexForTypeId()
293 CHECK_LT(&type_id, type_ids_ + header_->type_ids_size_) << GetLocation(); in GetIndexForTypeId()
294 size_t result = &type_id - type_ids_; in GetIndexForTypeId()
305 const char* GetTypeDescriptor(const dex::TypeId& type_id) const;
340 const dex::TypeId& type_id = GetTypeId(field_id.class_idx_); in GetFieldDeclaringClassDescriptor() local
341 return GetTypeDescriptor(type_id); in GetFieldDeclaringClassDescriptor()
Ddex_file_verifier.cc149 const dex::TypeId* type_id = in GetClass() local
155 return GetString(begin, header, type_id->descriptor_idx_); in GetClass()
1141 const dex::TypeId& type_id = dex_file_->GetTypeId(dex_file_->GetFieldId(index).type_idx_); in CheckStaticFieldTypes() local
1143 dex_file_->GetStringData(dex_file_->GetStringId(type_id.descriptor_idx_)); in CheckStaticFieldTypes()
1232 const dex::TypeId* type_id = reinterpret_cast<const dex::TypeId*>(ptr_); in CheckIntraTypeIdItem() local
1233 if (!CheckIndex(type_id->descriptor_idx_.index_, in CheckIntraTypeIdItem()
/art/dexlayout/
Ddex_visualize.cc125 void DumpTypeId(const dex_ir::TypeId* type_id, int class_index) { in DumpTypeId() argument
126 DumpAddressRange(type_id, class_index); in DumpTypeId()
127 DumpStringId(type_id->GetStringId(), class_index); in DumpTypeId()
193 for (dex_ir::TypeId* type_id : fixups->TypeIds()) { in DumpMethodItem()
194 DumpTypeId(type_id, class_index); in DumpMethodItem()
Ddexlayout.cc243 for (const dex_ir::TypeId* type_id : *type_list->GetTypeList()) { in GetSignatureForProtoId()
244 result += type_id->GetStringId()->Data(); in GetSignatureForProtoId()
540 dex_ir::TypeId* type_id = data->GetTypeId(); in DumpEncodedValue() local
541 fputs(type_id->GetStringId()->Data(), out_file_); in DumpEncodedValue()
802 const dex_ir::TypeId* type_id = handler->GetTypeId(); in DumpCatches() local
803 const char* descriptor = (type_id == nullptr) ? "<any>" : type_id->GetStringId()->Data(); in DumpCatches()
1061 dex_ir::TypeId* type_id = header->GetTypeIdOrNullPtr(idx); in StringDataByTypeIdx() local
1062 if (type_id == nullptr) { in StringDataByTypeIdx()
1065 dex_ir::StringId* string_id = type_id->GetStringId(); in StringDataByTypeIdx()
1120 for (const dex_ir::TypeId* type_id : *parameter_type_vector) { in DumpCode()
[all …]
Ddex_writer.cc270 for (auto& type_id : header_->TypeIds()) { in WriteTypeIds() local
272 ProcessOffset(stream, type_id.get()); in WriteTypeIds()
273 descriptor_idx[0] = type_id->GetStringId()->GetIndex(); in WriteTypeIds()
274 stream->Write(descriptor_idx, type_id->GetSize()); in WriteTypeIds()
290 for (const dex_ir::TypeId* type_id : *type_list->GetTypeList()) { in WriteTypeLists()
291 list[0] = type_id->GetIndex(); in WriteTypeLists()
Ddex_ir_builder.cc847 const TypeId* type_id = header_->GetTypeIdOrNullPtr(type_index.index_); in DedupeOrCreateCodeItem() local
848 catch_all |= type_id == nullptr; in DedupeOrCreateCodeItem()
850 new TypeAddrPair(type_id, it.GetHandlerAddress()))); in DedupeOrCreateCodeItem()
888 const TypeId* type_id = in DedupeOrCreateCodeItem() local
892 std::unique_ptr<const TypeAddrPair>(new TypeAddrPair(type_id, addr))); in DedupeOrCreateCodeItem()
Ddex_ir.h87 virtual void Dispatch(const TypeId* type_id) = 0;
780 void SetTypeId(TypeId* type_id) { u_.type_val_ = type_id; } in SetTypeId() argument
956 TypeAddrPair(const TypeId* type_id, uint32_t address) : type_id_(type_id), address_(address) { } in TypeAddrPair() argument
/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.cc748 const dex::TypeId& type_id = dex_file->GetTypeId(type_index); in GetClassNamesAndMethods() local
749 out_lines->insert(std::string(dex_file->GetTypeDescriptor(type_id))); in GetClassNamesAndMethods()
921 const dex::TypeId* type_id = dex_file->FindTypeId(klass_descriptor.c_str()); in FindClass() local
922 if (type_id == nullptr) { in FindClass()
925 dex::TypeIndex type_index = dex_file->GetIndexForTypeId(*type_id); in FindClass()
/art/runtime/verifier/
Dverifier_deps.cc117 const dex::TypeId& type_id = dex_file.GetTypeId(class_def->class_idx_); in GetClassDescriptorStringId() local
120 CHECK_EQ(GetIdFromString(dex_file, klass->GetDescriptor(&temp)), type_id.descriptor_idx_); in GetClassDescriptorStringId()
122 return type_id.descriptor_idx_; in GetClassDescriptorStringId()
135 const dex::TypeId& type_id = dex_file.GetTypeId(type_idx); in TryGetClassDescriptorStringId() local
138 if (strcmp(dex_file.GetTypeDescriptor(type_id), in TryGetClassDescriptorStringId()
140 return type_id.descriptor_idx_; in TryGetClassDescriptorStringId()
/art/tools/hiddenapi/
Dhiddenapi_test.cc167 const dex::TypeId* type_id = dex_file.FindTypeId(desc); in FindClass() local
168 CHECK(type_id != nullptr) << "Could not find class " << desc; in FindClass()
169 const dex::ClassDef* found = dex_file.FindClassDef(dex_file.GetIndexForTypeId(*type_id)); in FindClass()
/art/runtime/mirror/
Dclass.cc1171 const dex::TypeId& type_id = dex_file.GetTypeId(klass->GetDexTypeIndex()); in GetDescriptor() local
1172 descriptor = dex_file.GetTypeDescriptor(type_id); in GetDescriptor()
1416 const dex::TypeId* type_id = dex_file.FindTypeId(GetDescriptor(&temp)); in FindTypeIndexInOtherDexFile() local
1417 return (type_id == nullptr) ? dex::TypeIndex() : dex_file.GetIndexForTypeId(*type_id); in FindTypeIndexInOtherDexFile()
Dclass-inl.h882 const dex::TypeId& type_id = dex_file.GetTypeId(klass->GetDexTypeIndex()); in DescriptorEquals() local
883 return strcmp(dex_file.GetTypeDescriptor(type_id), match) == 0; in DescriptorEquals()
/art/dex2oat/
Dverifier_deps_test.cc251 const dex::TypeId* type_id = dex_file.FindTypeId(cls.c_str()); in GetClassDefIndex() local
252 DCHECK(type_id != nullptr); in GetClassDefIndex()
253 dex::TypeIndex type_idx = dex_file.GetIndexForTypeId(*type_id); in GetClassDefIndex()
Ddex2oat_test.cc1361 const dex::TypeId* type_id = dex->FindTypeId("LManyMethods;"); in TEST_F() local
1362 dex::TypeIndex type_idx = dex->GetIndexForTypeId(*type_id); in TEST_F()
1460 const dex::TypeId* type_id = dex_file->FindTypeId("LManyMethods;"); in TEST_F() local
1461 ASSERT_TRUE(type_id != nullptr); in TEST_F()
1462 dex::TypeIndex type_idx = dex_file->GetIndexForTypeId(*type_id); in TEST_F()
/art/runtime/
Dclass_linker_test.cc440 const dex::TypeId& type_id = dex.GetTypeId(dex::TypeIndex(i)); in AssertDexFile() local
441 const char* descriptor = dex.GetTypeDescriptor(type_id); in AssertDexFile()
1333 const dex::TypeId* type_id = dex_file->FindTypeId("LStaticsFromCode;"); in TEST_F() local
1334 ASSERT_TRUE(type_id != nullptr); in TEST_F()
1335 dex::TypeIndex type_idx = dex_file->GetIndexForTypeId(*type_id); in TEST_F()
Doat_file.cc2047 const dex::TypeId* type_id = dex_file.FindTypeId(descriptor); in FindClassDef() local
2048 if (type_id != nullptr) { in FindClassDef()
2049 dex::TypeIndex type_idx = dex_file.GetIndexForTypeId(*type_id); in FindClassDef()
/art/dexdump/
Ddexdump.cc1802 const dex::TypeId& type_id = pDexFile->GetTypeId(type_idx); in dumpCallSite() local
1803 value = pDexFile->GetTypeDescriptor(type_id); in dumpCallSite()
/art/libprofile/profile/
Dprofile_compilation_info.cc2132 const dex::TypeId& type_id = dex_file->GetTypeId(type_idx); in GetClassDescriptors() local
2133 ret.insert(dex_file->GetTypeDescriptor(type_id)); in GetClassDescriptors()
/art/dex2oat/driver/
Dcompiler_driver.cc1163 const dex::TypeId& type_id = dex_file->GetTypeId(exception_type_idx); in LoadImageClasses() local
1164 const char* descriptor = dex_file->GetTypeDescriptor(type_id); in LoadImageClasses()
/art/dex2oat/linker/
Doat_writer.cc1624 const dex::TypeId& type_id = in IsImageClass() local
1626 const char* class_descriptor = dex_file_->GetTypeDescriptor(type_id); in IsImageClass()