Lines Matching refs:dexes
41 private final Dex[] dexes; field in DexMerger
87 public DexMerger(Dex[] dexes, CollisionPolicy collisionPolicy) in DexMerger() argument
89 this(dexes, collisionPolicy, new WriterSizes(dexes)); in DexMerger()
92 private DexMerger(Dex[] dexes, CollisionPolicy collisionPolicy, in DexMerger() argument
94 this.dexes = dexes; in DexMerger()
100 indexMaps = new IndexMap[dexes.length]; in DexMerger()
101 for (int i = 0; i < dexes.length; i++) { in DexMerger()
102 indexMaps[i] = new IndexMap(dexOut, dexes[i].getTableOfContents()); in DexMerger()
181 if (dexes.length == 1) { in merge()
182 return dexes[0]; in merge()
183 } else if (dexes.length == 0) { in merge()
208 for (int i = 0; i < dexes.length; i++) { in merge()
211 dexes[i].getTableOfContents().classDefs.size, in merge()
212 dexes[i].getLength() / 1024f); in merge()
238 TableOfContents.Section[] sections = new TableOfContents.Section[dexes.length]; in mergeSorted()
239 Dex.Section[] dexSections = new Dex.Section[dexes.length]; in mergeSorted()
240 int[] offsets = new int[dexes.length]; in mergeSorted()
241 int[] indexes = new int[dexes.length]; in mergeSorted()
248 for (int i = 0; i < dexes.length; i++) { in mergeSorted()
249 sections[i] = getSection(dexes[i].getTableOfContents()); in mergeSorted()
250 dexSections[i] = sections[i].exists() ? dexes[i].open(sections[i].off) : null; in mergeSorted()
296 for (int i = 0; i < dexes.length; i++) { in mergeUnsorted()
297 all.addAll(readUnsortedValues(dexes[i], indexMaps[i])); in mergeUnsorted()
362 for (int i = 0; i < dexes.length; i++) { in mergeApiLevels()
363 int dexMinApi = dexes[i].getTableOfContents().apiLevel; in mergeApiLevels()
545 for (int i = 0; i < dexes.length; i++) { in getSortedTypes()
546 readSortableTypes(sortableTypes, dexes[i], indexMaps[i]); in getSortedTypes()
603 for (int i = 0; i < dexes.length; i++) { in unionAnnotationSetsAndDirectories()
604 transformAnnotationSets(dexes[i], indexMaps[i]); in unionAnnotationSetsAndDirectories()
606 for (int i = 0; i < dexes.length; i++) { in unionAnnotationSetsAndDirectories()
607 transformAnnotationSetRefLists(dexes[i], indexMaps[i]); in unionAnnotationSetsAndDirectories()
609 for (int i = 0; i < dexes.length; i++) { in unionAnnotationSetsAndDirectories()
610 transformAnnotationDirectories(dexes[i], indexMaps[i]); in unionAnnotationSetsAndDirectories()
612 for (int i = 0; i < dexes.length; i++) { in unionAnnotationSetsAndDirectories()
613 transformStaticValues(dexes[i], indexMaps[i]); in unionAnnotationSetsAndDirectories()
1019 public WriterSizes(Dex[] dexes) { in WriterSizes() argument
1020 for (int i = 0; i < dexes.length; i++) { in WriterSizes()
1021 plus(dexes[i].getTableOfContents(), false); in WriterSizes()
1116 Dex[] dexes = new Dex[args.length - 1]; in main() local
1118 dexes[i - 1] = new Dex(new File(args[i])); in main()
1120 Dex merged = new DexMerger(dexes, CollisionPolicy.KEEP_FIRST).merge(); in main()