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/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.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.java148 * @param types {@code non-null;} the list of (the types of) the member classes
208 CstArray.List list = new CstArray.List(size);
211 list.set(i, new CstString(pieces.get(i)));
214 list.setImmutable();
216 result.put(new NameValuePair(VALUE_STRING, new CstArray(list)));
224 * @param types {@code non-null;} the list of thrown types
238 * @param types {@code non-null;} the type list
243 CstArray.List list = new CstArray.List(size);
246 list.set(i, CstType.intern(types.getType(i)));
249 list
[all...]
H A DCatchStructs.java53 * {@code null-ok;} the encoded handler list, if calculated; set in
93 * Gets the size of the tries list, in entries.
95 * @return {@code >= 0;} the tries list size
126 * First add a map entry for each unique list. The tree structure
147 CatchHandlerList list = mapping.getKey();
148 int listSize = list.size();
149 boolean catchesAll = list.catchesAll();
155 // A size <= 0 means that the list ends with a catch-all.
163 CatchHandlerList.Entry entry = list.get(i);
170 out.writeUleb128(list
[all...]
H A DClassDataItem.java44 /** {@code non-null;} list of static fields */
47 /** {@code non-null;} list of initial values for static fields */
50 /** {@code non-null;} list of instance fields */
53 /** {@code non-null;} list of direct methods */
56 /** {@code non-null;} list of virtual methods */
59 /** {@code null-ok;} static initializer list; set in {@link #addContents} */
174 * Gets all the methods in this class. The returned list is not linked
176 * the objects contained in the list are shared.
178 * @return {@code non-null;} list of all methods
308 CstArray.List list
392 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...]
H A DValueEncoder.java271 CstArray.List list = ((CstArray) array).getList();
272 int size = list.size();
281 Constant cst = list.get(i);
518 CstArray.List list = ((CstArray) cst).getList();
519 int size = list.size();
521 addContents(file, list.get(i));
/dalvik/dx/src/com/android/dx/rop/cst/
H A DCstArray.java26 /** {@code non-null;} the actual list of contents */
27 private final List list; field in class:CstArray
32 * @param list {@code non-null;} the actual list of contents
34 public CstArray(List list) { argument
35 if (list == null) {
36 throw new NullPointerException("list == null");
39 list.throwIfMutable();
41 this.list = list;
[all...]
/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.java399 TypeList list = cf.makeTypeList(offset, count);
400 return new AttExceptions(list);
428 InnerClassList list = new InnerClassList(count);
438 list.set(i, innerClass, outerClass, name, accessFlags);
456 list.setImmutable();
457 return new AttInnerClasses(list);
484 LineNumberList list = new LineNumberList(count);
489 list.set(i, startPc, lineNumber);
497 list.setImmutable();
498 return new AttLineNumberTable(list);
[all...]
/dalvik/dx/src/com/android/dx/dex/code/
H A DInsnFormat.java142 * register list that are compatible to this format
177 * Helper method to return a register list string.
179 * @param list {@code non-null;} the list of registers
182 protected static String regListString(RegisterSpecList list) { argument
183 int sz = list.size();
192 sb.append(list.get(i).regString());
203 * @param list {@code non-null;} the list of registers (which must be
207 protected static String regRangeString(RegisterSpecList list) { argument
438 isRegListSequential(RegisterSpecList list) argument
[all...]
H A DDalvInsnList.java48 * identical to the ones in the given list, in the same order.
50 * @param list {@code non-null;} the list to use for elements
56 public static DalvInsnList makeImmutable(ArrayList<DalvInsn> list, argument
58 int size = list.size();
62 result.set(i, list.get(i));
72 * @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
667 preserveSomeSoftReferences(Object **list) argument
705 clearWhiteReferences(Object **list) argument
729 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 1499 milliseconds

123