/art/runtime/ |
D | sdk_checker.cc | 113 const dex::TypeId* type_id = dex_file->FindTypeId(art_field->GetTypeDescriptor()); in ShouldDenyAccess() local 114 if (type_id == nullptr) { in ShouldDenyAccess() 118 const dex::FieldId* field_id = dex_file->FindFieldId(*declaring_type_id, *name_id, *type_id); in ShouldDenyAccess() 140 const dex::TypeId* type_id = dex_file->FindTypeId(descriptor); in ShouldDenyAccess() local 141 if (type_id != nullptr) { in ShouldDenyAccess() 142 dex::TypeIndex type_idx = dex_file->GetIndexForTypeId(*type_id); in ShouldDenyAccess()
|
D | class_linker_test.cc | 440 const dex::TypeId& type_id = dex.GetTypeId(dex::TypeIndex(i)); in AssertDexFile() local 441 const char* descriptor = dex.GetTypeDescriptor(type_id); in AssertDexFile() 1336 const dex::TypeId* type_id = dex_file->FindTypeId("LStaticsFromCode;"); in TEST_F() local 1337 ASSERT_TRUE(type_id != nullptr); in TEST_F() 1338 dex::TypeIndex type_idx = dex_file->GetIndexForTypeId(*type_id); in TEST_F()
|
D | oat_file.cc | 2270 const dex::TypeId* type_id = dex_file.FindTypeId(descriptor); in FindClassDef() local 2271 if (type_id != nullptr) { in FindClassDef() 2272 dex::TypeIndex type_idx = dex_file.GetIndexForTypeId(*type_id); in FindClassDef()
|
/art/libdexfile/dex/ |
D | dex_file-inl.h | 85 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()
|
D | dex_file.cc | 351 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId() local 352 const StringId& str_id = GetStringId(type_id.descriptor_idx_); in FindTypeId() 360 return &type_id; in FindTypeId() 371 const TypeId& type_id = GetTypeId(dex::TypeIndex(mid)); in FindTypeId() local 372 if (string_idx > type_id.descriptor_idx_) { in FindTypeId() 374 } else if (string_idx < type_id.descriptor_idx_) { in FindTypeId() 377 return &type_id; in FindTypeId() 456 const TypeId* type_id = FindTypeId(descriptor.c_str()); in CreateTypeList() local 457 if (type_id == nullptr) { in CreateTypeList() 460 dex::TypeIndex type_idx = GetIndexForTypeId(*type_id); in CreateTypeList() [all …]
|
D | type_lookup_table.cc | 51 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()
|
D | art_dex_file_loader_test.cc | 248 const dex::TypeId* type_id = java_lang_dex_file_->FindTypeId(type_str_idx); in TEST_F() local 249 ASSERT_EQ(type_id, java_lang_dex_file_->FindTypeId(type_str)); in TEST_F() 250 ASSERT_TRUE(type_id != nullptr); in TEST_F() 251 EXPECT_EQ(java_lang_dex_file_->GetIndexForTypeId(*type_id).index_, i); in TEST_F()
|
D | dex_file.h | 295 dex::TypeIndex GetIndexForTypeId(const dex::TypeId& type_id) const { in GetIndexForTypeId() argument 296 CHECK_GE(&type_id, type_ids_) << GetLocation(); in GetIndexForTypeId() 297 CHECK_LT(&type_id, type_ids_ + header_->type_ids_size_) << GetLocation(); in GetIndexForTypeId() 298 size_t result = &type_id - type_ids_; in GetIndexForTypeId() 309 const char* GetTypeDescriptor(const dex::TypeId& type_id) const; 351 const dex::TypeId& type_id = GetTypeId(field_id.class_idx_); in GetFieldDeclaringClassDescriptor() local 352 return GetTypeDescriptor(type_id); in GetFieldDeclaringClassDescriptor()
|
D | dex_file_verifier.cc | 149 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/ |
D | dex_visualize.cc | 125 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()
|
D | dexlayout.cc | 243 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 …]
|
D | dex_writer.cc | 270 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()
|
D | dex_ir.h | 87 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
|
D | dex_ir_builder.cc | 847 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()
|
/art/dex2oat/ |
D | dex2oat_vdex_test.cc | 102 const dex::TypeId* type_id = dex_file.FindTypeId(cls.c_str()); in GetClassDefIndex() local 103 DCHECK(type_id != nullptr); in GetClassDefIndex() 104 dex::TypeIndex type_idx = dex_file.GetIndexForTypeId(*type_id); in GetClassDefIndex()
|
D | verifier_deps_test.cc | 247 const dex::TypeId* type_id = dex_file.FindTypeId(cls.c_str()); in GetClassDefIndex() local 248 DCHECK(type_id != nullptr); in GetClassDefIndex() 249 dex::TypeIndex type_idx = dex_file.GetIndexForTypeId(*type_id); in GetClassDefIndex()
|
D | dex2oat_test.cc | 1153 const dex::TypeId* type_id = dex->FindTypeId("LManyMethods;"); in TEST_F() local 1154 dex::TypeIndex type_idx = dex->GetIndexForTypeId(*type_id); in TEST_F() 1252 const dex::TypeId* type_id = dex_file->FindTypeId("LManyMethods;"); in TEST_F() local 1253 ASSERT_TRUE(type_id != nullptr); in TEST_F() 1254 dex::TypeIndex type_idx = dex_file->GetIndexForTypeId(*type_id); in TEST_F()
|
/art/profman/ |
D | boot_image_profile.cc | 43 const dex::TypeId& type_id = ref.dex_file->GetTypeId(ref.TypeIndex()); in GetTypeDescriptor() local 44 return ref.dex_file->GetTypeDescriptor(type_id); in GetTypeDescriptor()
|
D | profman.cc | 1043 const dex::TypeId* type_id = dex_file->FindTypeId(klass_descriptor); in FindClassDef() local 1044 if (type_id != nullptr) { in FindClassDef() 1045 dex::TypeIndex type_index = dex_file->GetIndexForTypeId(*type_id); in FindClassDef() 1064 const dex::TypeId* type_id = dex_file->FindTypeId(klass_descriptor); in FindClass() local 1065 if (type_id != nullptr) { in FindClass() 1066 *class_ref = TypeReference(dex_file, dex_file->GetIndexForTypeId(*type_id)); in FindClass() 1507 const dex::TypeId *type_id = in ProcessLine() local 1509 if (type_id == nullptr) { in ProcessLine() 1517 class_ref.dex_file->GetIndexForTypeId(*type_id); in ProcessLine()
|
/art/runtime/verifier/ |
D | verifier_deps.cc | 103 const dex::TypeId& type_id = dex_file.GetTypeId(class_def->class_idx_); in GetClassDescriptorStringId() local 106 CHECK_EQ(GetIdFromString(dex_file, klass->GetDescriptor(&temp)), type_id.descriptor_idx_); in GetClassDescriptorStringId() 108 return type_id.descriptor_idx_; in GetClassDescriptorStringId()
|
/art/tools/hiddenapi/ |
D | hiddenapi_test.cc | 167 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/ |
D | class.cc | 1140 const dex::TypeId& type_id = dex_file.GetTypeId(klass->GetDexTypeIndex()); in GetDescriptor() local 1141 descriptor = dex_file.GetTypeDescriptor(type_id); in GetDescriptor() 1385 const dex::TypeId* type_id = dex_file.FindTypeId(GetDescriptor(&temp)); in FindTypeIndexInOtherDexFile() local 1386 return (type_id == nullptr) ? dex::TypeIndex() : dex_file.GetIndexForTypeId(*type_id); in FindTypeIndexInOtherDexFile()
|
D | class-inl.h | 882 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/dexdump/ |
D | dexdump.cc | 1783 const dex::TypeId& type_id = pDexFile->GetTypeId(type_idx); in dumpCallSite() local 1784 value = pDexFile->GetTypeDescriptor(type_id); in dumpCallSite()
|
/art/libprofile/profile/ |
D | profile_compilation_info.cc | 687 const dex::TypeId* type_id = dex_file.FindTypeId(descriptor); in FindOrCreateTypeIndex() local 688 if (type_id != nullptr) { in FindOrCreateTypeIndex() 689 return dex_file.GetIndexForTypeId(*type_id); in FindOrCreateTypeIndex()
|