Searched refs:list (Results 1 - 25 of 51) sorted by relevance

123

/dalvik/dx/junit-tests/com/android/dx/util/
H A DIntListTest.java24 IntList list = new IntList(sz);
26 list.add(i * 2);
29 boolean contains = list.contains(i);
36 assertFalse(label(sz, -1), list.contains(-1));
37 assertFalse(label(sz, sz * 2), list.contains(sz * 2));
42 IntList list = new IntList(2);
44 list.add(9);
45 list.add(12);
47 assertTrue(list.contains(9));
48 assertTrue(list
[all...]
/dalvik/dx/src/com/android/dx/rop/cst/
H A DCstArray.java25 /** {@code non-null;} the actual list of contents */
26 private final List list; field in class:CstArray
31 * @param list {@code non-null;} the actual list of contents
33 public CstArray(List list) { argument
34 if (list == null) {
35 throw new NullPointerException("list == null");
38 list.throwIfMutable();
40 this.list = list;
[all...]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
H A DTypeListItem.java27 * Representation of a list of class references.
39 /** {@code non-null;} the actual list */
40 private final TypeList list; field in class:TypeListItem
45 * @param list {@code non-null;} the actual list
47 public TypeListItem(TypeList list) { argument
48 super(ALIGNMENT, (list.size() * ELEMENT_SIZE) + HEADER_SIZE);
50 this.list = list;
56 return StdTypeList.hashContents(list);
[all...]
H A DHeaderSection.java29 /** {@code non-null;} the list of the one item in the section */
30 private final List<HeaderItem> list; field in class:HeaderSection
43 this.list = Collections.singletonList(item);
55 return list;
H A DAnnotationUtils.java150 * @param types {@code non-null;} the list of (the types of) the member classes
210 CstArray.List list = new CstArray.List(size);
213 list.set(i, new CstString(pieces.get(i)));
216 list.setImmutable();
218 result.put(new NameValuePair(VALUE_UTF, new CstArray(list)));
226 * @param types {@code non-null;} the list of thrown types
240 * @param types {@code non-null;} the type list
245 CstArray.List list = new CstArray.List(size);
248 list.set(i, CstType.intern(types.getType(i)));
251 list
[all...]
H A DCatchStructs.java55 * {@code null-ok;} the encoded handler list, if calculated; set in
95 * Gets the size of the tries list, in entries.
97 * @return {@code >= 0;} the tries list size
128 * First add a map entry for each unique list. The tree structure
149 CatchHandlerList list = mapping.getKey();
150 int listSize = list.size();
151 boolean catchesAll = list.catchesAll();
157 // A size <= 0 means that the list ends with a catch-all.
165 CatchHandlerList.Entry entry = list.get(i);
172 out.writeUnsignedLeb128(list
[all...]
H A DClassDataItem.java47 /** {@code non-null;} list of static fields */
50 /** {@code non-null;} list of initial values for static fields */
53 /** {@code non-null;} list of instance fields */
56 /** {@code non-null;} list of direct methods */
59 /** {@code non-null;} list of virtual methods */
62 /** {@code null-ok;} static initializer list; set in {@link #addContents} */
177 * Gets all the methods in this class. The returned list is not linked
179 * the objects contained in the list are shared.
181 * @return {@code non-null;} list of all methods
311 CstArray.List list
395 encodeList(DexFile file, AnnotatedOutput out, String label, ArrayList<? extends EncodedMember> list) argument
[all...]
H A DAnnotationsDirectoryItem.java40 /** write size of a list element, in bytes */
186 * @param list {@code non-null;} associated list of annotation sets to add
189 AnnotationsList list) {
194 parameterAnnotations.add(new ParameterAnnotationStruct(method, list));
339 * Gets the list size of the given list, or {@code 0} if given
342 * @param list {@code null-ok;} the list in question
345 private static int listSize(ArrayList<?> list) { argument
188 addParameterAnnotations(CstMethodRef method, AnnotationsList list) argument
[all...]
/dalvik/dexgen/src/com/android/dexgen/rop/cst/
H A DCstArray.java27 /** {@code non-null;} the actual list of contents */
28 private final List list; field in class:CstArray
33 * @param list {@code non-null;} the actual list of contents
35 public CstArray(List list) { argument
36 if (list == null) {
37 throw new NullPointerException("list == null");
40 list.throwIfMutable();
42 this.list = list;
[all...]
/dalvik/dx/src/com/android/dx/dex/file/
H A DTypeListItem.java26 * Representation of a list of class references.
38 /** {@code non-null;} the actual list */
39 private final TypeList list; field in class:TypeListItem
44 * @param list {@code non-null;} the actual list
46 public TypeListItem(TypeList list) { argument
47 super(ALIGNMENT, (list.size() * ELEMENT_SIZE) + HEADER_SIZE);
49 this.list = list;
55 return StdTypeList.hashContents(list);
[all...]
H A DHeaderSection.java28 /** {@code non-null;} the list of the one item in the section */
29 private final List<HeaderItem> list; field in class:HeaderSection
42 this.list = Collections.singletonList(item);
54 return list;
H A DAnnotationUtils.java153 * @param types {@code non-null;} the list of (the types of) the member classes
213 CstArray.List list = new CstArray.List(size);
216 list.set(i, new CstString(pieces.get(i)));
219 list.setImmutable();
221 result.put(new NameValuePair(VALUE_STRING, new CstArray(list)));
229 * @param types {@code non-null;} the list of thrown types
243 * @param types {@code non-null;} the type list
248 CstArray.List list = new CstArray.List(size);
251 list.set(i, CstType.intern(types.getType(i)));
254 list
[all...]
H A DCatchStructs.java52 * {@code null-ok;} the encoded handler list, if calculated; set in
92 * Gets the size of the tries list, in entries.
94 * @return {@code >= 0;} the tries list size
125 * First add a map entry for each unique list. The tree structure
146 CatchHandlerList list = mapping.getKey();
147 int listSize = list.size();
148 boolean catchesAll = list.catchesAll();
154 // A size <= 0 means that the list ends with a catch-all.
162 CatchHandlerList.Entry entry = list.get(i);
169 out.writeUleb128(list
[all...]
H A DClassDataItem.java43 /** {@code non-null;} list of static fields */
46 /** {@code non-null;} list of initial values for static fields */
49 /** {@code non-null;} list of instance fields */
52 /** {@code non-null;} list of direct methods */
55 /** {@code non-null;} list of virtual methods */
58 /** {@code null-ok;} static initializer list; set in {@link #addContents} */
173 * Gets all the methods in this class. The returned list is not linked
175 * the objects contained in the list are shared.
177 * @return {@code non-null;} list of all methods
307 CstArray.List list
391 encodeList(DexFile file, AnnotatedOutput out, String label, ArrayList<? extends EncodedMember> list) argument
[all...]
H A DAnnotationsDirectoryItem.java39 /** write size of a list element, in bytes */
185 * @param list {@code non-null;} associated list of annotation sets to add
188 AnnotationsList list) {
193 parameterAnnotations.add(new ParameterAnnotationStruct(method, list));
338 * Gets the list size of the given list, or {@code 0} if given
341 * @param list {@code null-ok;} the list in question
344 private static int listSize(ArrayList<?> list) { argument
187 addParameterAnnotations(CstMethodRef method, AnnotationsList list) argument
[all...]
H A DValueEncoder.java272 CstArray.List list = ((CstArray) array).getList();
273 int size = list.size();
282 Constant cst = list.get(i);
416 CstArray.List list = ((CstArray) cst).getList();
417 int size = list.size();
419 addContents(file, list.get(i));
/dalvik/vm/
H A DPointerSet.cpp22 * Sorted, expanding list of pointers.
27 const void** list; member in struct:PointerSet
40 const void* cur = pSet->list[i];
60 pSet->list = (const void**)malloc(sizeof(void*) * initialSize);
61 if (pSet->list == NULL) {
80 if (pSet->list != NULL) {
81 free(pSet->list);
82 pSet->list = NULL;
96 * Get the number of pointers currently stored in the list.
104 * Get the Nth entry from the list
[all...]
/dalvik/dx/src/com/android/dx/cf/direct/
H A DAttributeListParser.java36 /** offset in the byte array of the classfile to the start of the list */
42 /** {@code non-null;} list of parsed attributes */
43 private final StdAttributeList list; field in class:AttributeListParser
45 /** {@code >= -1;} the end offset of this list in the byte array of the
57 * @param offset offset in {@code bytes} to the start of the list
76 this.list = new StdAttributeList(size);
101 * Gets the parsed list.
103 * @return {@code non-null;} the list
107 return list;
123 int sz = list
[all...]
H A DStdAttributeFactory.java398 TypeList list = cf.makeTypeList(offset, count);
399 return new AttExceptions(list);
427 InnerClassList list = new InnerClassList(count);
437 list.set(i, innerClass, outerClass, name, accessFlags);
455 list.setImmutable();
456 return new AttInnerClasses(list);
483 LineNumberList list = new LineNumberList(count);
488 list.set(i, startPc, lineNumber);
496 list.setImmutable();
497 return new AttLineNumberTable(list);
[all...]
/dalvik/dx/src/com/android/dx/dex/code/
H A DInsnFormat.java141 * register list that are compatible to this format
176 * Helper method to return a register list string.
178 * @param list {@code non-null;} the list of registers
181 protected static String regListString(RegisterSpecList list) { argument
182 int sz = list.size();
191 sb.append(list.get(i).regString());
202 * @param list {@code non-null;} the list of registers (which must be
206 protected static String regRangeString(RegisterSpecList list) { argument
437 isRegListSequential(RegisterSpecList list) argument
[all...]
H A DDalvInsnList.java47 * identical to the ones in the given list, in the same order.
49 * @param list {@code non-null;} the list to use for elements
55 public static DalvInsnList makeImmutable(ArrayList<DalvInsn> list, argument
57 int size = list.size();
61 result.set(i, list.get(i));
71 * @param size the size of the list
/dalvik/vm/alloc/
H A DMarkSweep.cpp365 static void enqueuePendingReference(Object *ref, Object **list) argument
368 assert(list != NULL);
370 if (*list == NULL) {
372 *list = ref;
374 Object *head = dvmGetFieldObject(*list, offset);
376 dvmSetFieldObject(*list, offset, ref);
384 static Object *dequeuePendingReference(Object **list) argument
386 assert(list != NULL);
387 assert(*list != NULL);
389 Object *head = dvmGetFieldObject(*list, offse
420 Object **list = NULL; local
668 preserveSomeSoftReferences(Object **list) argument
706 clearWhiteReferences(Object **list) argument
730 enqueueFinalizerReferences(Object **list) argument
[all...]
/dalvik/tests/061-out-of-memory/src/
H A DMain.java67 * list afterwards. Even if we null out list when we're done, the conservative
73 LinkedList<Object> list = new LinkedList<Object>();
82 list.add((Object)new byte[objSize]);
/dalvik/dexgen/src/com/android/dexgen/dex/code/
H A DDalvInsnList.java47 * identical to the ones in the given list, in the same order.
49 * @param list {@code non-null;} the list to use for elements
55 public static DalvInsnList makeImmutable(ArrayList<DalvInsn> list, argument
57 int size = list.size();
61 result.set(i, list.get(i));
71 * @param size the size of the list
/dalvik/dexgen/src/com/android/dexgen/rop/type/
H A DStdTypeList.java29 /** {@code non-null;} the list {@code [int]} */
32 /** {@code non-null;} the list {@code [long]} */
35 /** {@code non-null;} the list {@code [float]} */
38 /** {@code non-null;} the list {@code [double]} */
41 /** {@code non-null;} the list {@code [Object]} */
44 /** {@code non-null;} the list {@code [ReturnAddress]} */
48 /** {@code non-null;} the list {@code [Throwable]} */
52 /** {@code non-null;} the list {@code [int, int]} */
56 /** {@code non-null;} the list {@code [long, long]} */
60 /** {@code non-null;} the list {
233 toHuman(TypeList list) argument
260 hashContents(TypeList list) argument
[all...]

Completed in 359 milliseconds

123