/dalvik/dx/src/com/android/dx/dex/file/ |
D | UniformListItem.java | 44 private final List<T> items; field in UniformListItem 53 public UniformListItem(ItemType itemType, List<T> items) { in UniformListItem() argument 54 super(getAlignment(items), writeSize(items)); in UniformListItem() 60 this.items = items; in UniformListItem() 72 private static int getAlignment(List<? extends OffsettedItem> items) { in getAlignment() argument 75 return Math.max(HEADER_SIZE, items.get(0).getAlignment()); in getAlignment() 91 private static int writeSize(List<? extends OffsettedItem> items) { in writeSize() argument 96 OffsettedItem first = items.get(0); in writeSize() 97 return (items.size() * first.writeSize()) + getAlignment(items); in writeSize() 112 sb.append(items); in toString() [all …]
|
D | AnnotationSetItem.java | 42 private final AnnotationItem[] items; field in AnnotationSetItem 54 this.items = new AnnotationItem[annotations.size()]; in AnnotationSetItem() 58 items[at] = new AnnotationItem(a, dexFile); in AnnotationSetItem() 118 int size = items.length; in addContents() 121 items[i] = byteData.intern(items[i]); in addContents() 129 AnnotationItem.sortByTypeIdIndex(items); in place0() 136 int size = items.length; in writeTo0() 146 AnnotationItem item = items[i]; in writeTo0() 152 items[i].annotateTo(out, " "); in writeTo0()
|
D | UniformItemSection.java | 45 Collection<? extends Item> items = items(); in writeSize() local 46 int sz = items.size(); in writeSize() 53 return sz * items.iterator().next().writeSize(); in writeSize() 74 for (Item one : items()) { in prepare0() 85 for (Item one : items()) { in writeTo0()
|
D | MixedItemSection.java | 63 private final ArrayList<OffsettedItem> items; field in MixedItemSection 91 this.items = new ArrayList<OffsettedItem>(100); in MixedItemSection() 99 public Collection<? extends Item> items() { in items() method in MixedItemSection 100 return items; in items() 123 return items.size(); in size() 181 items.add(item); in add() 240 for (OffsettedItem item : items) { in writeIndexAnnotation() 272 int sz = items.size(); in prepare0() 278 OffsettedItem one = items.get(i); in prepare0() 297 Collections.sort(items); in placeItems() [all …]
|
D | MapItem.java | 72 if (mapSection.items().size() != 0) { in addMap() 77 ArrayList<MapItem> items = new ArrayList<MapItem>(50); in addMap() local 85 for (Item item : section.items()) { in addMap() 89 items.add(new MapItem(currentType, section, in addMap() 102 items.add(new MapItem(currentType, section, in addMap() 106 items.add(new MapItem(mapSection)); in addMap() 111 new UniformListItem<MapItem>(ItemType.TYPE_MAP_LIST, items)); in addMap()
|
D | MemberIdsSection.java | 50 if (items().size() > DexFormat.MAX_MEMBER_IDX + 1) { in orderItems() 54 for (Object i : items()) { in orderItems() 62 for (Object member : items()) { in getTooManyMembersMessage() 78 memberType, items().size(), DexFormat.MAX_MEMBER_IDX + 1); in getTooManyMembersMessage()
|
D | Statistics.java | 60 Collection<? extends Item> items = list.items(); in addAll() local 61 for (Item item : items) { in addAll()
|
D | ProtoIdsSection.java | 49 public Collection<? extends Item> items() { in items() method in ProtoIdsSection 134 for (Object i : items()) { in orderItems()
|
D | HeaderSection.java | 53 public Collection<? extends Item> items() { in items() method in HeaderSection
|
D | TypeIdsSection.java | 54 public Collection<? extends Item> items() { in items() method in TypeIdsSection 193 for (Object i : items()) { in orderItems()
|
D | FieldIdsSection.java | 50 public Collection<? extends Item> items() { in items() method in FieldIdsSection
|
D | MethodIdsSection.java | 50 public Collection<? extends Item> items() { in items() method in MethodIdsSection
|
D | Section.java | 223 public abstract Collection<? extends Item> items(); in items() method in Section
|
/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | UniformListItem.java | 46 private final List<T> items; field in UniformListItem 55 public UniformListItem(ItemType itemType, List<T> items) { in UniformListItem() argument 56 super(getAlignment(items), writeSize(items)); in UniformListItem() 62 this.items = items; in UniformListItem() 74 private static int getAlignment(List<? extends OffsettedItem> items) { in getAlignment() argument 77 return Math.max(HEADER_SIZE, items.get(0).getAlignment()); in getAlignment() 93 private static int writeSize(List<? extends OffsettedItem> items) { in writeSize() argument 98 OffsettedItem first = items.get(0); in writeSize() 99 return (items.size() * first.writeSize()) + getAlignment(items); in writeSize() 114 sb.append(items); in toString() [all …]
|
D | AnnotationSetItem.java | 42 private final AnnotationItem[] items; field in AnnotationSetItem 53 this.items = new AnnotationItem[annotations.size()]; in AnnotationSetItem() 57 items[at] = new AnnotationItem(a); in AnnotationSetItem() 117 int size = items.length; in addContents() 120 items[i] = byteData.intern(items[i]); in addContents() 128 AnnotationItem.sortByTypeIdIndex(items); in place0() 135 int size = items.length; in writeTo0() 145 AnnotationItem item = items[i]; in writeTo0() 151 items[i].annotateTo(out, " "); in writeTo0()
|
D | UniformItemSection.java | 46 Collection<? extends Item> items = items(); in writeSize() local 47 int sz = items.size(); in writeSize() 54 return sz * items.iterator().next().writeSize(); in writeSize() 75 for (Item one : items()) { in prepare0() 86 for (Item one : items()) { in writeTo0()
|
D | MixedItemSection.java | 64 private final ArrayList<OffsettedItem> items; field in MixedItemSection 92 this.items = new ArrayList<OffsettedItem>(100); in MixedItemSection() 100 public Collection<? extends Item> items() { in items() method in MixedItemSection 101 return items; in items() 124 return items.size(); in size() 182 items.add(item); in add() 241 for (OffsettedItem item : items) { in writeIndexAnnotation() 273 int sz = items.size(); in prepare0() 279 OffsettedItem one = items.get(i); in prepare0() 298 Collections.sort(items); in placeItems() [all …]
|
D | MapItem.java | 73 if (mapSection.items().size() != 0) { in addMap() 78 ArrayList<MapItem> items = new ArrayList<MapItem>(50); in addMap() local 86 for (Item item : section.items()) { in addMap() 90 items.add(new MapItem(currentType, section, in addMap() 103 items.add(new MapItem(currentType, section, in addMap() 107 items.add(new MapItem(mapSection)); in addMap() 112 new UniformListItem<MapItem>(ItemType.TYPE_MAP_LIST, items)); in addMap()
|
D | MemberIdsSection.java | 39 for (Object i : items()) { in orderItems()
|
D | Statistics.java | 61 Collection<? extends Item> items = list.items(); in addAll() local 62 for (Item item : items) { in addAll()
|
D | ProtoIdsSection.java | 50 public Collection<? extends Item> items() { in items() method in ProtoIdsSection 135 for (Object i : items()) { in orderItems()
|
D | HeaderSection.java | 54 public Collection<? extends Item> items() { in items() method in HeaderSection
|
D | TypeIdsSection.java | 50 public Collection<? extends Item> items() { in items() method in TypeIdsSection 187 for (Object i : items()) { in orderItems()
|
D | MethodIdsSection.java | 50 public Collection<? extends Item> items() { in items() method in MethodIdsSection
|
D | Section.java | 224 public abstract Collection<? extends Item> items(); in items() method in Section
|