Searched refs:items (Results 1 - 25 of 34) sorted by relevance

12

/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DUniformListItem.java26 * Class that represents a contiguous list of uniform items. Each
30 * <p>This class inherits its alignment from its items, bumped up to
31 * {@code 4} if the items have a looser alignment requirement. If
46 private final List<T> items; field in class:UniformListItem
53 * @param items {@code non-null and non-empty;} list of items to represent
55 public UniformListItem(ItemType itemType, List<T> items) { argument
56 super(getAlignment(items), writeSize(items));
62 this.items
74 getAlignment(List<? extends OffsettedItem> items) argument
93 writeSize(List<? extends OffsettedItem> items) argument
[all...]
H A DUniformItemSection.java26 * {@link Item} objects. Each of the items must have the same size in
46 Collection<? extends Item> items = items();
47 int sz = items.size();
54 return sz * items.iterator().next().writeSize();
75 for (Item one : items()) {
86 for (Item one : items()) {
96 * Since all items must be the same size, we can use the size
106 * Alters or picks the order for items in this instance if desired,
107 * so that subsequent calls to {@link #items} wil
[all...]
H A DAnnotationSetItem.java38 * {@code non-null;} set of annotations as individual items in an array.
42 private final AnnotationItem[] items; field in class:AnnotationSetItem
53 this.items = new AnnotationItem[annotations.size()];
57 items[at] = new AnnotationItem(a);
117 int size = items.length;
120 items[i] = byteData.intern(items[i]);
128 AnnotationItem.sortByTypeIdIndex(items);
135 int size = items.length;
145 AnnotationItem item = items[
[all...]
H A DMemberIdsSection.java39 for (Object i : items()) {
H A DMixedItemSection.java63 /** {@code non-null;} the items in this part */
64 private final ArrayList<OffsettedItem> items; field in class:MixedItemSection
66 /** {@code non-null;} items that have been explicitly interned */
69 /** {@code non-null;} how to sort the items */
86 * @param sort how the items should be sorted in the final output
92 this.items = new ArrayList<OffsettedItem>(100);
100 public Collection<? extends Item> items() { method in class:MixedItemSection
101 return items;
119 * Gets the size of this instance, in items.
124 return items
[all...]
H A DMapItem.java53 * {@code > 0;} count of items covered; {@code 1} if this
73 if (mapSection.items().size() != 0) {
75 "mapSection.items().size() != 0");
78 ArrayList<MapItem> items = new ArrayList<MapItem>(50);
86 for (Item item : section.items()) {
90 items.add(new MapItem(currentType, section,
102 // Add a MapItem for the final items in the section.
103 items.add(new MapItem(currentType, section,
107 items.add(new MapItem(mapSection));
112 new UniformListItem<MapItem>(ItemType.TYPE_MAP_LIST, items));
[all...]
H A DHeaderSection.java54 public Collection<? extends Item> items() { method in class:HeaderSection
H A DStatistics.java56 * Adds the given list of items to the statistics.
58 * @param list {@code non-null;} the list of items to add
61 Collection<? extends Item> items = list.items();
62 for (Item item : items) {
H A DProtoIdsSection.java50 public Collection<? extends Item> items() { method in class:ProtoIdsSection
135 for (Object i : items()) {
H A DTypeIdsSection.java50 public Collection<? extends Item> items() { method in class:TypeIdsSection
187 for (Object i : items()) {
H A DFieldIdsSection.java50 public Collection<? extends Item> items() { method in class:FieldIdsSection
H A DMethodIdsSection.java50 public Collection<? extends Item> items() { method in class:MethodIdsSection
H A DSection.java25 * of items of some sort or other.
219 * Gets the collection of all the items in this section.
222 * @return {@code non-null;} the items
224 public abstract Collection<? extends Item> items(); method in class:Section
/dalvik/dx/src/com/android/dx/dex/file/
H A DUniformListItem.java24 * Class that represents a contiguous list of uniform items. Each
28 * <p>This class inherits its alignment from its items, bumped up to
29 * {@code 4} if the items have a looser alignment requirement. If
44 private final List<T> items; field in class:UniformListItem
51 * @param items {@code non-null and non-empty;} list of items to represent
53 public UniformListItem(ItemType itemType, List<T> items) { argument
54 super(getAlignment(items), writeSize(items));
60 this.items
72 getAlignment(List<? extends OffsettedItem> items) argument
91 writeSize(List<? extends OffsettedItem> items) argument
[all...]
H A DUniformItemSection.java25 * {@link Item} objects. Each of the items must have the same size in
45 Collection<? extends Item> items = items();
46 int sz = items.size();
53 return sz * items.iterator().next().writeSize();
74 for (Item one : items()) {
85 for (Item one : items()) {
95 * Since all items must be the same size, we can use the size
105 * Alters or picks the order for items in this instance if desired,
106 * so that subsequent calls to {@link #items} wil
[all...]
H A DAnnotationSetItem.java38 * {@code non-null;} set of annotations as individual items in an array.
42 private final AnnotationItem[] items; field in class:AnnotationSetItem
54 this.items = new AnnotationItem[annotations.size()];
58 items[at] = new AnnotationItem(a, dexFile);
119 int size = items.length;
122 items[i] = byteData.intern(items[i]);
130 AnnotationItem.sortByTypeIdIndex(items);
137 int size = items.length;
147 AnnotationItem item = items[
[all...]
H A DMemberIdsSection.java47 if (items().size() > DexFormat.MAX_MEMBER_IDX + 1) {
51 for (Object i : items()) {
59 for (Object member : items()) {
76 memberType, items().size(), DexFormat.MAX_MEMBER_IDX + 1);
H A DMixedItemSection.java63 /** {@code non-null;} the items in this part */
64 private final ArrayList<OffsettedItem> items; field in class:MixedItemSection
66 /** {@code non-null;} items that have been explicitly interned */
69 /** {@code non-null;} how to sort the items */
86 * @param sort how the items should be sorted in the final output
92 this.items = new ArrayList<OffsettedItem>(100);
100 public Collection<? extends Item> items() { method in class:MixedItemSection
101 return items;
119 * Gets the size of this instance, in items.
124 return items
[all...]
H A DMapItem.java52 * {@code > 0;} count of items covered; {@code 1} if this
72 if (mapSection.items().size() != 0) {
74 "mapSection.items().size() != 0");
77 ArrayList<MapItem> items = new ArrayList<MapItem>(50);
85 for (Item item : section.items()) {
89 items.add(new MapItem(currentType, section,
101 // Add a MapItem for the final items in the section.
102 items.add(new MapItem(currentType, section,
106 items.add(new MapItem(mapSection));
111 new UniformListItem<MapItem>(ItemType.TYPE_MAP_LIST, items));
[all...]
H A DHeaderSection.java53 public Collection<? extends Item> items() { method in class:HeaderSection
H A DStatistics.java55 * Adds the given list of items to the statistics.
57 * @param list {@code non-null;} the list of items to add
60 Collection<? extends Item> items = list.items();
61 for (Item item : items) {
H A DTypeIdsSection.java51 public Collection<? extends Item> items() { method in class:TypeIdsSection
90 items().size(), DexFormat.MAX_MEMBER_IDX + 1));
192 for (Object i : items()) {
H A DProtoIdsSection.java50 public Collection<? extends Item> items() { method in class:ProtoIdsSection
150 for (Object i : items()) {
H A DCallSiteIdsSection.java70 public Collection<? extends Item> items() { method in class:CallSiteIdsSection
H A DMethodHandlesSection.java54 public Collection<? extends Item> items() { method in class:MethodHandlesSection

Completed in 166 milliseconds

12