Home
last modified time | relevance | path

Searched refs:classDef (Results 1 – 7 of 7) sorted by relevance

/dalvik/dx/src/com/android/dx/merge/
DSortableType.java50 private final ClassDef classDef; field in SortableType
53 public SortableType(Dex dex, IndexMap indexMap, ClassDef classDef) { in SortableType() argument
56 this.classDef = classDef; in SortableType()
68 return classDef; in getClassDef()
72 return classDef.getTypeIndex(); in getTypeIndex()
82 if (classDef.getSupertypeIndex() == ClassDef.NO_INDEX) { in tryAssignDepth()
84 } else if (classDef.getSupertypeIndex() == classDef.getTypeIndex()) { in tryAssignDepth()
86 throw new DexException("Class with type index " + classDef.getTypeIndex() in tryAssignDepth()
89 SortableType sortableSupertype = types[classDef.getSupertypeIndex()]; in tryAssignDepth()
99 for (short interfaceIndex : classDef.getInterfaces()) { in tryAssignDepth()
DIndexMap.java245 public ClassDef adjust(ClassDef classDef) { in adjust() argument
246 return new ClassDef(target, classDef.getOffset(), adjustType(classDef.getTypeIndex()), in adjust()
247 classDef.getAccessFlags(), adjustType(classDef.getSupertypeIndex()), in adjust()
248 adjustTypeListOffset(classDef.getInterfacesOffset()), classDef.getSourceFileIndex(), in adjust()
249 classDef.getAnnotationsOffset(), classDef.getClassDataOffset(), in adjust()
250 classDef.getStaticValuesOffset()); in adjust()
DDexMerger.java652 for (ClassDef classDef : buffer.classDefs()) { in readSortableTypes()
654 new SortableType(buffer, indexMap, classDef)); in readSortableTypes()
660 + buffer.typeNames().get(classDef.getTypeIndex())); in readSortableTypes()
730 private void transformClassDef(Dex in, ClassDef classDef, IndexMap indexMap) { in transformClassDef() argument
732 idsDefsOut.writeInt(classDef.getTypeIndex()); in transformClassDef()
733 idsDefsOut.writeInt(classDef.getAccessFlags()); in transformClassDef()
734 idsDefsOut.writeInt(classDef.getSupertypeIndex()); in transformClassDef()
735 idsDefsOut.writeInt(classDef.getInterfacesOffset()); in transformClassDef()
737 int sourceFileIndex = indexMap.adjustString(classDef.getSourceFileIndex()); in transformClassDef()
740 int annotationsOff = classDef.getAnnotationsOffset(); in transformClassDef()
[all …]
/dalvik/dx/src/com/android/dx/command/findusages/
DFindUsages.java120 for (ClassDef classDef : dex.classDefs()) { in findUsages()
121 currentClass = classDef; in findUsages()
124 if (classDef.getClassDataOffset() == 0) { in findUsages()
128 ClassData classData = dex.readClassData(classDef); in findUsages()
195 for (ClassDef classDef : dex.classDefs()) { in findAssignableTypes()
196 if (assignableTypes.contains(classDef.getSupertypeIndex())) { in findAssignableTypes()
197 assignableTypes.add(classDef.getTypeIndex()); in findAssignableTypes()
201 for (int implemented : classDef.getInterfaces()) { in findAssignableTypes()
203 assignableTypes.add(classDef.getTypeIndex()); in findAssignableTypes()
/dalvik/dx/src/com/android/dx/command/grep/
DGrep.java90 for (ClassDef classDef : dex.classDefs()) { in grep()
91 currentClass = classDef; in grep()
94 if (classDef.getClassDataOffset() == 0) { in grep()
98 ClassData classData = dex.readClassData(classDef); in grep()
101 int staticValuesOffset = classDef.getStaticValuesOffset(); in grep()
/dalvik/dx/src/com/android/dx/io/
DDexIndexPrinter.java112 for (ClassDef classDef : dex.classDefs()) { in printClassDefs()
113 System.out.println("class def " + index + ": " + classDef); in printClassDefs()
/dalvik/dx/src/com/android/dex/
DDex.java251 public ClassData readClassData(ClassDef classDef) { in readClassData() argument
252 int offset = classDef.getClassDataOffset(); in readClassData()