/dalvik/dx/tests/119-merge-conflict/com/android/dx/merge/ |
D | MergeConflictTest.java | 19 import com.android.dex.Dex; 27 Dex a = resourceToDexBuffer("/testdata/A.dex"); in testMergeConflict() 28 Dex b = resourceToDexBuffer("/testdata/B.dex"); in testMergeConflict() 31 Dex ab = new DexMerger(new Dex[]{a, b}, CollisionPolicy.FAIL).merge(); in testMergeConflict() 34 DexMerger dexMerger = new DexMerger(new Dex[]{a, ab}, CollisionPolicy.FAIL); in testMergeConflict() 43 private Dex resourceToDexBuffer(String resource) throws IOException { in resourceToDexBuffer() 44 return new Dex(getClass().getResourceAsStream(resource)); in resourceToDexBuffer()
|
/dalvik/dx/src/com/android/dx/merge/ |
D | DexMerger.java | 24 import com.android.dex.Dex; 43 private final Dex[] dexes; 50 private final Dex dexOut; 52 private final Dex.Section headerOut; 55 private final Dex.Section idsDefsOut; 57 private final Dex.Section mapListOut; 59 private final Dex.Section typeListOut; 61 private final Dex.Section classDataOut; 63 private final Dex.Section codeOut; 65 private final Dex.Section stringDataOut; [all …]
|
D | SortableType.java | 20 import com.android.dex.Dex; 48 private final Dex dex; 53 public SortableType(Dex dex, IndexMap indexMap, ClassDef classDef) { in SortableType() 59 public Dex getDex() { in getDex()
|
D | IndexMap.java | 22 import com.android.dex.Dex; 62 private final Dex target; 77 public IndexMap(Dex target, TableOfContents tableOfContents) { in IndexMap()
|
/dalvik/dx/tests/115-merge/com/android/dx/merge/ |
D | DexMergeTest.java | 19 import com.android.dex.Dex; 143 Dex dexA = resourceToDexBuffer("/testdata/Basic.dex"); in testMergedOutputSizeIsBounded() 144 Dex dexB = resourceToDexBuffer("/testdata/TryCatchFinally.dex"); in testMergedOutputSizeIsBounded() 145 Dex merged = new DexMerger(new Dex[]{dexA, dexB}, CollisionPolicy.KEEP_FIRST, in testMergedOutputSizeIsBounded() 150 DexMerger dexMerger = new DexMerger(new Dex[]{dexA, merged}, in testMergedOutputSizeIsBounded() 162 Dex dexA = resourceToDexBuffer(dexAResource); in mergeAndLoad() 163 Dex dexB = resourceToDexBuffer(dexBResource); in mergeAndLoad() 164 Dex merged = new DexMerger(new Dex[]{dexA, dexB}, CollisionPolicy.KEEP_FIRST, in mergeAndLoad() 175 private Dex resourceToDexBuffer(String resource) throws IOException { in resourceToDexBuffer() 176 return new Dex(getClass().getResourceAsStream(resource)); in resourceToDexBuffer()
|
/dalvik/dx/junit-tests/com/android/dx/merge/ |
D | DexMergerTest.java | 22 import com.android.dex.Dex; 49 List<Dex> outputDexes = new ArrayList<>(); in test_merge_dexesWithEmptyFieldsSection() 53 Dex merged = in test_merge_dexesWithEmptyFieldsSection() 55 outputDexes.toArray(new Dex[outputDexes.size()]), in test_merge_dexesWithEmptyFieldsSection() 64 private Dex getDexForClass(Class<?> clazz) throws IOException { in getDexForClass() 79 return new Dex(Files.readAllBytes(output.resolve("classes.dex"))); in getDexForClass()
|
/dalvik/dx/src/com/android/dx/command/grep/ |
D | Main.java | 19 import com.android.dex.Dex; 30 Dex dex = new Dex(new File(dexFile)); in main()
|
D | Grep.java | 21 import com.android.dex.Dex; 32 private final Dex dex; 42 public Grep(final Dex dex, Pattern pattern, final PrintWriter out) { in Grep() 120 private Set<Integer> getStringIds(Dex dex, Pattern pattern) { in getStringIds()
|
/dalvik/dx/src/com/android/dx/command/findusages/ |
D | Main.java | 19 import com.android.dex.Dex; 30 Dex dex = new Dex(new File(dexFile)); in main()
|
D | FindUsages.java | 21 import com.android.dex.Dex; 35 private final Dex dex; 44 public FindUsages(final Dex dex, String declaredBy, String memberName, final PrintWriter out) { in FindUsages() 156 private Set<Integer> getFieldIds(Dex dex, Set<Integer> memberNameIndexes, int declaringType) { in getFieldIds() 173 private Set<Integer> getMethodIds(Dex dex, Set<Integer> memberNameIndexes, int declaringType) { in getMethodIds() 191 private Set<Integer> findAssignableTypes(Dex dex, int typeIndex) { in findAssignableTypes()
|
/dalvik/dx/src/com/android/dex/ |
D | CallSiteId.java | 19 import com.android.dex.Dex.Section; 27 private final Dex dex; 30 public CallSiteId(Dex dex, int offset) { in CallSiteId()
|
D | Annotation.java | 25 private final Dex dex; 29 public Annotation(Dex dex, byte visibility, EncodedValue encodedAnnotation) { in Annotation() 49 public void writeTo(Dex.Section out) { in writeTo()
|
D | ProtoId.java | 22 private final Dex dex; 27 public ProtoId(Dex dex, int shortyIndex, int returnTypeIndex, int parametersOffset) { in ProtoId() 54 public void writeTo(Dex.Section out) { in writeTo()
|
D | FieldId.java | 22 private final Dex dex; 27 public FieldId(Dex dex, int declaringClassIndex, int typeIndex, int nameIndex) { in FieldId() 57 public void writeTo(Dex.Section out) { in writeTo()
|
D | TypeList.java | 23 public static final TypeList EMPTY = new TypeList(null, Dex.EMPTY_SHORT_ARRAY); 25 private final Dex dex; 28 public TypeList(Dex dex, short[] types) { in TypeList()
|
D | MethodId.java | 22 private final Dex dex; 27 public MethodId(Dex dex, int declaringClassIndex, int protoIndex, int nameIndex) { in MethodId() 57 public void writeTo(Dex.Section out) { in writeTo()
|
D | MethodHandle.java | 19 import com.android.dex.Dex.Section; 71 private final Dex dex; 78 Dex dex, in MethodHandle()
|
D | ClassDef.java | 24 private final Dex buffer; 35 public ClassDef(Dex buffer, int offset, int typeIndex, int accessFlags, in ClassDef()
|
D | Dex.java | 51 public final class Dex { class 74 public Dex(byte[] data) throws IOException { in Dex() method in Dex 78 private Dex(ByteBuffer data) throws IOException { in Dex() method in Dex 87 public Dex(int byteCount) throws IOException { in Dex() method in Dex 95 public Dex(InputStream in) throws IOException { in Dex() method in Dex 106 public Dex(File file) throws IOException { in Dex() method in Dex 397 return new TypeList(Dex.this, types); in readTypeList() 426 return new FieldId(Dex.this, declaringClassIndex, typeIndex, nameIndex); in readFieldId() 433 return new MethodId(Dex.this, declaringClassIndex, protoIndex, nameIndex); in readMethodId() 440 return new ProtoId(Dex.this, shortyIndex, returnTypeIndex, parametersOffset); in readProtoId() [all …]
|
D | TableOfContents.java | 71 public void readFrom(Dex dex) throws IOException { in readFrom() 77 private void readHeader(Dex.Section headerIn) throws UnsupportedEncodingException { in readHeader() 123 private void readMap(Dex.Section in) throws IOException { in readMap() 174 public void writeHeader(Dex.Section out, int api) throws IOException { in writeHeader() 200 public void writeMap(Dex.Section out) throws IOException { in writeMap()
|
D | EncodedValue.java | 40 public void writeTo(Dex.Section out) { in writeTo()
|
/dalvik/dx/tests/127-merge-stress/com/android/dx/merge/ |
D | MergeTest.java | 19 import com.android.dex.Dex; 51 MergeTask(String[] dexFiles, Dex[] dexesToMerge) throws IOException { in MergeTask() 89 Dex[] dexesToMerge = new Dex[numDex]; in main() 92 dexesToMerge[j] = new Dex(new File(fileNames[j])); in main()
|
/dalvik/dx/src/com/android/dx/io/ |
D | DexIndexPrinter.java | 20 import com.android.dex.Dex; 32 private final Dex dex; 36 this.dex = new Dex(file); in DexIndexPrinter() 96 Dex.Section in = dex.open(tableOfContents.typeLists.off); in printTypeLists()
|
/dalvik/dx/src/com/android/dx/command/dexer/ |
D | Main.java | 19 import com.android.dex.Dex; 461 Dex dexA = null; in mergeIncremental() 462 Dex dexB = null; in mergeIncremental() 465 dexA = new Dex(update); in mergeIncremental() 469 dexB = new Dex(base); in mergeIncremental() 472 Dex result; in mergeIncremental() 480 … result = new DexMerger(new Dex[] {dexA, dexB}, CollisionPolicy.KEEP_FIRST, context).merge(); in mergeIncremental() 493 ArrayList<Dex> dexes = new ArrayList<Dex>(); in mergeLibraryDexBuffers() 495 dexes.add(new Dex(outArray)); in mergeLibraryDexBuffers() 498 dexes.add(new Dex(libraryDex)); in mergeLibraryDexBuffers() [all …]
|