Home
last modified time | relevance | path

Searched refs:items (Results 1 – 25 of 32) sorted by relevance

12

/dalvik/dexgen/src/com/android/dexgen/dex/file/
DUniformListItem.java46 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 …]
DAnnotationSetItem.java42 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()
DUniformItemSection.java46 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()
DMixedItemSection.java64 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 …]
DMapItem.java73 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()
DMemberIdsSection.java39 for (Object i : items()) { in orderItems()
DStatistics.java61 Collection<? extends Item> items = list.items(); in addAll() local
62 for (Item item : items) { in addAll()
DProtoIdsSection.java50 public Collection<? extends Item> items() { in items() method in ProtoIdsSection
135 for (Object i : items()) { in orderItems()
DHeaderSection.java54 public Collection<? extends Item> items() { in items() method in HeaderSection
DTypeIdsSection.java50 public Collection<? extends Item> items() { in items() method in TypeIdsSection
187 for (Object i : items()) { in orderItems()
DFieldIdsSection.java50 public Collection<? extends Item> items() { in items() method in FieldIdsSection
DSection.java224 public abstract Collection<? extends Item> items(); in items() method in Section
DMethodIdsSection.java50 public Collection<? extends Item> items() { in items() method in MethodIdsSection
/dalvik/dx/src/com/android/dx/dex/file/
DUniformListItem.java44 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 …]
DAnnotationSetItem.java42 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()
DUniformItemSection.java45 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()
DMixedItemSection.java63 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 …]
DMapItem.java72 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()
DMemberIdsSection.java50 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()
DStatistics.java60 Collection<? extends Item> items = list.items(); in addAll() local
61 for (Item item : items) { in addAll()
DProtoIdsSection.java49 public Collection<? extends Item> items() { in items() method in ProtoIdsSection
134 for (Object i : items()) { in orderItems()
DHeaderSection.java53 public Collection<? extends Item> items() { in items() method in HeaderSection
DTypeIdsSection.java54 public Collection<? extends Item> items() { in items() method in TypeIdsSection
193 for (Object i : items()) { in orderItems()
DSection.java223 public abstract Collection<? extends Item> items(); in items() method in Section
DMethodIdsSection.java50 public Collection<? extends Item> items() { in items() method in MethodIdsSection

12