Home
last modified time | relevance | path

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

12

/art/runtime/verifier/
Dclass_verifier.cc59 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()
Dmethod_verifier_test.cc61 const dex::ClassDef& class_def = dex.GetClassDef(i); in VerifyDexFile() local
62 const char* descriptor = dex.GetClassDescriptor(class_def); in VerifyDexFile()
Dclass_verifier.h65 const dex::ClassDef& class_def,
Dmethod_verifier.h115 const dex::ClassDef& class_def,
262 const dex::ClassDef& class_def,
/art/dexlayout/
Ddexlayout.cc626 dex_ir::ClassDef* class_def = header_->ClassDefs()[idx]; in DumpClassDef() local
628 fprintf(out_file_, "class_idx : %d\n", class_def->ClassType()->GetIndex()); in DumpClassDef()
630 class_def->GetAccessFlags(), class_def->GetAccessFlags()); in DumpClassDef()
631 uint32_t superclass_idx = class_def->Superclass() == nullptr ? in DumpClassDef()
632 DexFile::kDexNoIndex16 : class_def->Superclass()->GetIndex(); in DumpClassDef()
635 class_def->InterfacesOffset(), class_def->InterfacesOffset()); in DumpClassDef()
637 if (class_def->SourceFile() != nullptr) { in DumpClassDef()
638 source_file_offset = class_def->SourceFile()->GetIndex(); in DumpClassDef()
642 if (class_def->Annotations() != nullptr) { in DumpClassDef()
643 annotations_offset = class_def->Annotations()->GetOffset(); in DumpClassDef()
[all …]
Ddex_visualize.cc257 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()
Ddex_writer.cc490 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 …]
Dcompact_dex_writer.cc52 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()
Ddex_ir_builder.cc169 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/runtime/dex/
Ddex_file_annotations.h87 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()
Ddex_file_annotations.cc121 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/libdexfile/dex/
Ddex_file.h330 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 …]
Dtype_lookup_table.cc50 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()
Dclass_accessor_test.cc33 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()
Ddex_file_verifier.h98 bool CheckStaticFieldTypes(const dex::ClassDef* class_def);
113 const dex::ClassDef** class_def);
122 const dex::ClassDef** class_def);
Dclass_accessor-inl.h36 const dex::ClassDef& class_def, in ClassAccessor() argument
39 dex_file.GetClassData(class_def), in ClassAccessor()
40 dex_file.GetIndexForClassDef(class_def), in ClassAccessor()
Ddex_file_verifier.cc943 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 …]
Dart_dex_file_loader_test.cc117 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()
Ddex_file.cc219 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/
Ddexlist.cc137 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/
Dhidden_api.cc332 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()
Dmodule_exclusion_test.cc64 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/driver/
Dcompiler_driver.cc347 const DexFile& dex_file, const dex::ClassDef& class_def) in GetDexToDexCompilationLevel() argument
357 const char* descriptor = dex_file.GetClassDescriptor(class_def); in GetDexToDexCompilationLevel()
392 const dex::ClassDef& class_def) { in GetDexToDexCompilationLevel() argument
397 return GetDexToDexCompilationLevel(self, driver, class_loader, dex_file, class_def); in GetDexToDexCompilationLevel()
1575 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in Visit() local
1584 class_linker->ResolveType(class_def.class_idx_, dex_cache, class_loader); in Visit()
1610 method.GetInvokeType(class_def.access_flags_)); in Visit()
1887 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in Visit() local
1888 const char* descriptor = dex_file.GetClassDescriptor(class_def); in Visit()
1914 class_def, in Visit()
[all …]
/art/dex2oat/
Dverifier_deps_test.cc150 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/
Dhiddenapi_test.cc177 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()

12