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.java49 private ClassDef classDef; field in SortableType
52 public SortableType(Dex dex, IndexMap indexMap, ClassDef classDef) { in SortableType() argument
55 this.classDef = classDef; in SortableType()
67 return classDef; in getClassDef()
71 return classDef.getTypeIndex(); in getTypeIndex()
81 if (classDef.getSupertypeIndex() == ClassDef.NO_INDEX) { in tryAssignDepth()
83 } else if (classDef.getSupertypeIndex() == classDef.getTypeIndex()) { in tryAssignDepth()
85 throw new DexException("Class with type index " + classDef.getTypeIndex() in tryAssignDepth()
88 SortableType sortableSupertype = types[classDef.getSupertypeIndex()]; in tryAssignDepth()
98 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.java653 for (ClassDef classDef : buffer.classDefs()) { in readSortableTypes()
655 new SortableType(buffer, indexMap, classDef)); in readSortableTypes()
661 + buffer.typeNames().get(classDef.getTypeIndex())); in readSortableTypes()
731 private void transformClassDef(Dex in, ClassDef classDef, IndexMap indexMap) { in transformClassDef() argument
733 idsDefsOut.writeInt(classDef.getTypeIndex()); in transformClassDef()
734 idsDefsOut.writeInt(classDef.getAccessFlags()); in transformClassDef()
735 idsDefsOut.writeInt(classDef.getSupertypeIndex()); in transformClassDef()
736 idsDefsOut.writeInt(classDef.getInterfacesOffset()); in transformClassDef()
738 int sourceFileIndex = indexMap.adjustString(classDef.getSourceFileIndex()); in transformClassDef()
741 int annotationsOff = classDef.getAnnotationsOffset(); in transformClassDef()
[all …]
/dalvik/dx/src/com/android/dx/command/findusages/
DFindUsages.java118 for (ClassDef classDef : dex.classDefs()) { in findUsages()
119 currentClass = classDef; in findUsages()
122 if (classDef.getClassDataOffset() == 0) { in findUsages()
126 ClassData classData = dex.readClassData(classDef); in findUsages()
193 for (ClassDef classDef : dex.classDefs()) { in findAssignableTypes()
194 if (assignableTypes.contains(classDef.getSupertypeIndex())) { in findAssignableTypes()
195 assignableTypes.add(classDef.getTypeIndex()); in findAssignableTypes()
199 for (int implemented : classDef.getInterfaces()) { in findAssignableTypes()
201 assignableTypes.add(classDef.getTypeIndex()); in findAssignableTypes()
/dalvik/dx/src/com/android/dx/command/grep/
DGrep.java89 for (ClassDef classDef : dex.classDefs()) { in grep()
90 currentClass = classDef; in grep()
93 if (classDef.getClassDataOffset() == 0) { in grep()
97 ClassData classData = dex.readClassData(classDef); in grep()
100 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.java252 public ClassData readClassData(ClassDef classDef) { in readClassData() argument
253 int offset = classDef.getClassDataOffset(); in readClassData()