Home
last modified time | relevance | path

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

/dalvik/dx/src/com/android/dx/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()
DStatistics.java61 Collection<? extends Item> items = list.items(); in addAll() local
62 for (Item item : items) { in addAll()
DMemberIdsSection.java39 for (Object i : items()) { in orderItems()
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
DStringIdsSection.java53 public Collection<? extends Item> items() { in items() method in StringIdsSection
DClassDefsSection.java57 public Collection<? extends Item> items() { in items() method in ClassDefsSection
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
DArrayBlockingQueue.java57 private final E[] items; field in ArrayBlockingQueue
83 return (++i == items.length)? 0 : i; in inc()
91 items[putIndex] = x; in insert()
102 final E[] items = this.items; in extract() local
103 E x = items[takeIndex]; in extract()
104 items[takeIndex] = null; in extract()
116 final E[] items = this.items; in removeAt() local
119 items[takeIndex] = null; in removeAt()
126 items[i] = items[nexti]; in removeAt()
129 items[i] = null; in removeAt()
[all …]
/dalvik/libcore/security/src/main/java/java/security/
DBasicPermissionCollection.java52 private transient Map<String, Permission> items = new HashMap<String, Permission>(); field in BasicPermissionCollection
98 items.put(name, permission); in add()
106 return Collections.enumeration(items.values()); in elements()
127 if (items.containsKey(checkName)) { in implies()
143 if (items.containsKey(new String(name, 0, pos + 2))) { in implies()
180 fields.put("permissions", new Hashtable<String, Permission>(items)); //$NON-NLS-1$ in writeObject()
193 items = new HashMap<String, Permission>(); in readObject()
198 items.putAll((Hashtable<String, Permission>) fields.get( in readObject()
200 for (Iterator<Permission> iter = items.values().iterator(); iter.hasNext();) { in readObject()
206 if (allEnabled && !items.containsKey("*")) { //$NON-NLS-1$ in readObject()
/dalvik/libcore/archive/src/main/native/
Dzipalloc.c27 void *zalloc PROTOTYPE ((void *opaque, U_32 items, U_32 size));
38 zalloc (void *opaque, U_32 items, U_32 size) in zalloc() argument
42 return hymem_allocate_memory (items * size); in zalloc()
Djava_util_zip_Deflater.c25 void *zalloc PROTOTYPE ((void *opaque, U_32 items, U_32 size));
Djava_util_zip_Inflater.c29 void *zalloc PROTOTYPE ((void *opaque, U_32 items, U_32 size));
Dzipsup.c85 void *zdataalloc PROTOTYPE ((void *opaque, U_32 items, U_32 size));
2252 zdataalloc (void *opaque, U_32 items, U_32 size) in zdataalloc() argument
2255 U_32 byteSize = items * size; in zdataalloc()
/dalvik/libcore/luni/src/test/java/com/google/coretests/
DPerfStatCollector.java158 ArrayList<Item> items; field in PerfStatCollector
166 items = new ArrayList(); in PerfStatCollector()
176 Iterator<Item> r = items.iterator(); in digest()
234 items.add(current); in startTest()
/dalvik/vm/arch/arm/
DCallOldABI.S120 @ want the first two items in argv to end up in r2/r3.
139 @ safe to load two items out of argv even if we're at the end.