/art/runtime/verifier/ |
D | class_verifier.cc | 59 const dex::ClassDef* class_def = klass->GetClassDef(); in VerifyClass() local 68 } else if (class_def == nullptr) { in VerifyClass() 87 *class_def, in VerifyClass() 99 const dex::ClassDef& class_def, in VerifyClass() argument 106 if ((class_def.access_flags_ & (kAccAbstract | kAccFinal)) == (kAccAbstract | kAccFinal)) { in VerifyClass() 108 *error += PrettyDescriptor(dex_file->GetClassDescriptor(class_def)); in VerifyClass() 113 ClassAccessor accessor(*dex_file, class_def); in VerifyClass() 130 const InvokeType type = method.GetInvokeType(class_def.access_flags_); in VerifyClass() 147 class_def, in VerifyClass() 164 *error += PrettyDescriptor(dex_file->GetClassDescriptor(class_def)); in VerifyClass()
|
D | method_verifier_test.cc | 61 const dex::ClassDef& class_def = dex.GetClassDef(i); in VerifyDexFile() local 62 const char* descriptor = dex.GetClassDescriptor(class_def); in VerifyDexFile()
|
D | class_verifier.h | 65 const dex::ClassDef& class_def,
|
D | method_verifier.h | 115 const dex::ClassDef& class_def, 262 const dex::ClassDef& class_def,
|
D | verifier_deps.h | 72 void RecordClassVerified(const DexFile& dex_file, const dex::ClassDef& class_def) 77 const dex::ClassDef& class_def, 83 static void MaybeRecordClassRedefinition(const DexFile& dex_file, const dex::ClassDef& class_def)
|
D | verifier_deps.cc | 118 const dex::ClassDef* class_def = klass->GetClassDef(); in GetClassDescriptorStringId() local 119 DCHECK(class_def != nullptr) << klass->PrettyClass(); in GetClassDescriptorStringId() 120 const dex::TypeId& type_id = dex_file.GetTypeId(class_def->class_idx_); in GetClassDescriptorStringId() 516 const dex::ClassDef& class_def) { in MaybeRecordClassRedefinition() argument 521 dex_deps->redefined_classes_[dex_file.GetIndexForClassDef(class_def)] = true; in MaybeRecordClassRedefinition() 526 const dex::ClassDef& class_def, in MaybeRecordVerificationStatus() argument 533 thread_deps->RecordClassVerified(dex_file, class_def); in MaybeRecordVerificationStatus() 538 void VerifierDeps::RecordClassVerified(const DexFile& dex_file, const dex::ClassDef& class_def) { in RecordClassVerified() argument 541 dex_deps->verified_classes_[dex_file.GetIndexForClassDef(class_def)] = true; in RecordClassVerified()
|
/art/runtime/dex/ |
D | dex_file_annotations.h | 87 const dex::ClassDef& class_def, 92 const dex::ClassDef& class_def, 97 const dex::ClassDef& class_def, 106 const dex::ClassDef& class_def, 110 const dex::ClassDef& class_def); 149 const dex::ClassDef& class_def) in RuntimeEncodedStaticFieldValueIterator() argument 151 : EncodedStaticFieldValueIterator(*dex_cache->GetDexFile(), class_def), in RuntimeEncodedStaticFieldValueIterator()
|
D | dex_file_annotations.cc | 121 const dex::ClassDef* class_def) REQUIRES_SHARED(Locks::mutator_lock_) in ClassData() argument 125 class_def_(class_def) { in ClassData() 152 const dex::ClassDef& class_def, in FindAnnotationSetForField() argument 155 const AnnotationsDirectoryItem* annotations_dir = dex_file.GetAnnotationsDirectory(class_def); in FindAnnotationSetForField() 175 const dex::ClassDef* class_def = klass->GetClassDef(); in FindAnnotationSetForField() local 176 if (class_def == nullptr) { in FindAnnotationSetForField() 180 return FindAnnotationSetForField(*field->GetDexFile(), *class_def, field->GetDexFieldIndex()); in FindAnnotationSetForField() 286 const dex::ClassDef& class_def, in FindAnnotationSetForMethod() argument 288 const AnnotationsDirectoryItem* annotations_dir = dex_file.GetAnnotationsDirectory(class_def); in FindAnnotationSetForMethod() 341 const dex::ClassDef* class_def = klass.GetClassDef(); in FindAnnotationSetForClass() local [all …]
|
/art/dexlayout/ |
D | dex_visualize.cc | 257 dex_ir::ClassDef* class_def = header->ClassDefs()[class_index]; in VisualizeDexLayout() local 258 dex::TypeIndex type_idx(class_def->ClassType()->GetIndex()); in VisualizeDexLayout() 262 dumper->DumpAddressRange(class_def, class_index); in VisualizeDexLayout() 264 dumper->DumpTypeId(class_def->ClassType(), class_index); in VisualizeDexLayout() 266 dumper->DumpTypeId(class_def->Superclass(), class_index); in VisualizeDexLayout() 270 dumper->DumpAddressRange(class_def->InterfacesOffset(), kInterfaceSizeKludge, class_index); in VisualizeDexLayout() 272 dumper->DumpStringId(class_def->SourceFile(), class_index); in VisualizeDexLayout() 274 dumper->DumpAddressRange(class_def->Annotations(), class_index); in VisualizeDexLayout() 277 dex_ir::ClassData* class_data = class_def->GetClassData(); in VisualizeDexLayout()
|
D | dex_writer.cc | 490 dex_ir::ClassDef* class_def = header_->ClassDefs()[i]; in WriteHiddenapiClassData() local 492 DCHECK(item->GetClassDef() == class_def); in WriteHiddenapiClassData() 495 dex_ir::ClassData* class_data = class_def->GetClassData(); in WriteHiddenapiClassData() 631 for (auto& class_def : header_->ClassDefs()) { in WriteClassDefs() local 634 stream->Skip(class_def->GetSize()); in WriteClassDefs() 636 class_def_buffer[0] = class_def->ClassType()->GetIndex(); in WriteClassDefs() 637 class_def_buffer[1] = class_def->GetAccessFlags(); in WriteClassDefs() 638 class_def_buffer[2] = class_def->Superclass() == nullptr ? dex::kDexNoIndex : in WriteClassDefs() 639 class_def->Superclass()->GetIndex(); in WriteClassDefs() 640 class_def_buffer[3] = class_def->InterfacesOffset(); in WriteClassDefs() [all …]
|
D | compact_dex_writer.cc | 52 for (auto& class_def : header_->ClassDefs()) { in WriteDebugInfoOffsetTable() local 54 dex_ir::ClassData* class_data = class_def->GetClassData(); in WriteDebugInfoOffsetTable() 240 for (auto& class_def : header_->ClassDefs()) { in SortDebugInfosByMethodIndex() local 242 dex_ir::ClassData* class_data = class_def->GetClassData(); in SortDebugInfosByMethodIndex() 340 for (auto& class_def : header_->ClassDefs()) { in CanGenerateCompactDex() local 342 dex_ir::ClassData* class_data = class_def->GetClassData(); in CanGenerateCompactDex()
|
D | dex_ir_builder.cc | 169 ClassData* CreateClassData(const DexFile& dex_file, const dex::ClassDef& class_def); 303 const dex::ClassDef& class_def = dex_file.GetClassDef(i); in DexIrBuilder() local 304 const char* descriptor = dex_file.GetClassDescriptor(class_def); in DexIrBuilder() 639 for (auto& class_def : header_->ClassDefs()) { in AddHiddenapiClassDataFromMapListSection() local 640 uint32_t index = class_def->GetIndex(); in AddHiddenapiClassDataFromMapListSection() 641 ClassData* class_data = class_def->GetClassData(); in AddHiddenapiClassDataFromMapListSection() 666 class_def.get(), in AddHiddenapiClassDataFromMapListSection() 944 const dex::ClassDef& class_def) { in CreateClassData() argument 947 const uint32_t offset = class_def.class_data_off_; in CreateClassData() 950 ClassAccessor accessor(dex_file, class_def); in CreateClassData() [all …]
|
/art/libdexfile/dex/ |
D | dex_file.h | 330 uint32_t FindCodeItemOffset(const dex::ClassDef& class_def, 408 uint16_t GetIndexForClassDef(const dex::ClassDef& class_def) const { in GetIndexForClassDef() argument 409 CHECK_GE(&class_def, class_defs_) << GetLocation(); in GetIndexForClassDef() 410 CHECK_LT(&class_def, class_defs_ + header_->class_defs_size_) << GetLocation(); in GetIndexForClassDef() 411 return &class_def - class_defs_; in GetIndexForClassDef() 415 const char* GetClassDescriptor(const dex::ClassDef& class_def) const; 420 const dex::TypeList* GetInterfacesList(const dex::ClassDef& class_def) const { in GetInterfacesList() argument 421 return DataPointer<dex::TypeList>(class_def.interfaces_off_); in GetInterfacesList() 443 const uint8_t* GetClassData(const dex::ClassDef& class_def) const { in GetClassData() argument 444 return DataPointer<uint8_t>(class_def.class_data_off_); in GetClassData() [all …]
|
D | type_lookup_table.cc | 50 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_idx); in Create() local 51 const dex::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in Create() 65 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_idx); in Create() local 66 const dex::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in Create()
|
D | class_accessor_test.cc | 33 const dex::ClassDef& class_def = dex_file->GetClassDef(accessor.GetClassDefIndex()); in TEST_F() local 34 EXPECT_EQ(accessor.GetDescriptor(), dex_file->StringByTypeIdx(class_def.class_idx_)); in TEST_F()
|
D | dex_file_verifier.h | 98 bool CheckStaticFieldTypes(const dex::ClassDef* class_def); 113 const dex::ClassDef** class_def); 122 const dex::ClassDef** class_def);
|
D | class_accessor-inl.h | 36 const dex::ClassDef& class_def, in ClassAccessor() argument 39 dex_file.GetClassData(class_def), in ClassAccessor() 40 dex_file.GetIndexForClassDef(class_def), in ClassAccessor()
|
D | dex_file_verifier.cc | 943 const dex::ClassDef* class_def = class_def_begin + i; in FindClassIndexAndDef() local 944 if (class_def->class_idx_ == *class_type_index) { in FindClassIndexAndDef() 945 *output_class_def = class_def; in FindClassIndexAndDef() 967 bool DexFileVerifier::CheckStaticFieldTypes(const dex::ClassDef* class_def) { in CheckStaticFieldTypes() argument 968 if (class_def == nullptr) { in CheckStaticFieldTypes() 973 EncodedStaticFieldValueIterator array_it(*dex_file_, *class_def); in CheckStaticFieldTypes() 1071 const dex::ClassDef** class_def) { in CheckIntraClassDataItemFields() argument 1081 *have_class = FindClassIndexAndDef(field->GetIndex(), true, class_type_index, class_def); in CheckIntraClassDataItemFields() 1090 DCHECK(*class_def != nullptr); in CheckIntraClassDataItemFields() 1101 (*class_def)->access_flags_, in CheckIntraClassDataItemFields() [all …]
|
D | art_dex_file_loader_test.cc | 117 const dex::ClassDef& class_def = raw->GetClassDef(0); in TEST_F() local 118 ASSERT_STREQ("LGetMethodSignature;", raw->GetClassDescriptor(class_def)); in TEST_F() 120 ClassAccessor accessor(*raw, class_def); in TEST_F()
|
D | dex_file.cc | 219 const ClassDef& class_def = GetClassDef(i); in FindClassDef() local 220 if (class_def.class_idx_ == type_idx) { in FindClassDef() 221 return &class_def; in FindClassDef() 227 uint32_t DexFile::FindCodeItemOffset(const ClassDef& class_def, uint32_t method_idx) const { in FindCodeItemOffset() argument 228 ClassAccessor accessor(*this, class_def); in FindCodeItemOffset()
|
/art/dexlist/ |
D | dexlist.cc | 137 const dex::ClassDef& class_def = pDexFile->GetClassDef(idx); in dumpClass() local 140 if (class_def.source_file_idx_.IsValid()) { in dumpClass() 141 fileName = pDexFile->StringDataByIdx(class_def.source_file_idx_); in dumpClass() 144 ClassAccessor accessor(*pDexFile, class_def); in dumpClass()
|
/art/runtime/ |
D | hidden_api.cc | 332 const dex::ClassDef& class_def, in VisitMembers() argument 334 ClassAccessor accessor(dex_file, class_def, /* parse_hiddenapi_class_data= */ true); in VisitMembers() 339 const dex::ClassDef& class_def, in VisitMembers() argument 341 ClassAccessor accessor(dex_file, class_def, /* parse_hiddenapi_class_data= */ true); in VisitMembers() 366 const dex::ClassDef* class_def = declaring_class->GetClassDef(); in GetDexFlags() local 367 if (class_def == nullptr) { in GetDexFlags() 381 VisitMembers(declaring_class->GetDexFile(), *class_def, fn_visit); in GetDexFlags()
|
D | module_exclusion_test.cc | 64 const dex::ClassDef& class_def = dex_file->GetClassDef(i); in DoTest() local 66 class_linker->ResolveType(class_def.class_idx_, dex_cache, class_loader); in DoTest()
|
/art/dex2oat/ |
D | verifier_deps_test.cc | 150 const dex::ClassDef* class_def = klass_Main_->GetClassDef(); in VerifyMethod() local 151 ClassAccessor accessor(*primary_dex_file_, *class_def); in VerifyMethod() 163 method.GetInvokeType(class_def->access_flags_)); in VerifyMethod() 172 *class_def, in VerifyMethod() 233 const dex::ClassDef& class_def = dex_file->GetClassDef(i); in VerifyClassStatus() local 234 const char* descriptor = dex_file->GetClassDescriptor(class_def); in VerifyClassStatus() 254 const dex::ClassDef* class_def = dex_file.FindClassDef(type_idx); in GetClassDefIndex() local 255 DCHECK(class_def != nullptr); in GetClassDefIndex() 256 return dex_file.GetIndexForClassDef(*class_def); in GetClassDefIndex()
|
/art/tools/hiddenapi/ |
D | hiddenapi_test.cc | 177 const dex::ClassDef& class_def, in GetFieldHiddenFlags() argument 179 ClassAccessor accessor(dex_file, class_def, /* parse hiddenapi flags */ true); in GetFieldHiddenFlags() 197 << dex_file.GetClassDescriptor(class_def); in GetFieldHiddenFlags() 204 const dex::ClassDef& class_def, in GetMethodHiddenFlags() argument 206 ClassAccessor accessor(dex_file, class_def, /* parse hiddenapi flags */ true); in GetMethodHiddenFlags() 226 << dex_file.GetClassDescriptor(class_def); in GetMethodHiddenFlags()
|