Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 69) sorted by relevance

123

/dalvik/dx/junit-tests/com/android/dx/util/
DIntListTest.java24 IntList list = new IntList(sz); in test_contains() local
26 list.add(i * 2); in test_contains()
29 boolean contains = list.contains(i); in test_contains()
36 assertFalse(label(sz, -1), list.contains(-1)); in test_contains()
37 assertFalse(label(sz, sz * 2), list.contains(sz * 2)); in test_contains()
42 IntList list = new IntList(2); in test_addSorted() local
44 list.add(9); in test_addSorted()
45 list.add(12); in test_addSorted()
47 assertTrue(list.contains(9)); in test_addSorted()
48 assertTrue(list.contains(12)); in test_addSorted()
[all …]
/dalvik/vm/
DPointerSet.cpp27 const void** list; member
40 const void* cur = pSet->list[i]; in verifySorted()
60 pSet->list = (const void**)malloc(sizeof(void*) * initialSize); in dvmPointerSetAlloc()
61 if (pSet->list == NULL) { in dvmPointerSetAlloc()
80 if (pSet->list != NULL) { in dvmPointerSetFree()
81 free(pSet->list); in dvmPointerSetFree()
82 pSet->list = NULL; in dvmPointerSetFree()
108 return pSet->list[i]; in dvmPointerSetGetEntry()
134 newList = (const void**)realloc(pSet->list, pSet->alloc * sizeof(void*)); in dvmPointerSetAddEntry()
139 pSet->list = newList; in dvmPointerSetAddEntry()
[all …]
/dalvik/dx/src/com/android/dx/rop/cst/
DCstArray.java27 private final List list; field in CstArray
34 public CstArray(List list) { in CstArray() argument
35 if (list == null) { in CstArray()
39 list.throwIfMutable(); in CstArray()
41 this.list = list; in CstArray()
51 return list.equals(((CstArray) other).list); in equals()
57 return list.hashCode(); in hashCode()
63 return list.compareTo(((CstArray) other).list); in compareTo0()
69 return list.toString("array{", ", ", "}"); in toString()
86 return list.toHuman("{", ", ", "}"); in toHuman()
[all …]
/dalvik/dexgen/src/com/android/dexgen/rop/cst/
DCstArray.java28 private final List list; field in CstArray
35 public CstArray(List list) { in CstArray() argument
36 if (list == null) { in CstArray()
40 list.throwIfMutable(); in CstArray()
42 this.list = list; in CstArray()
52 return list.equals(((CstArray) other).list); in equals()
58 return list.hashCode(); in hashCode()
64 return list.compareTo(((CstArray) other).list); in compareTo0()
70 return list.toString("array{", ", ", "}"); in toString()
87 return list.toHuman("{", ", ", "}"); in toHuman()
[all …]
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DTypeListItem.java40 private final TypeList list; field in TypeListItem
47 public TypeListItem(TypeList list) { in TypeListItem() argument
48 super(ALIGNMENT, (list.size() * ELEMENT_SIZE) + HEADER_SIZE); in TypeListItem()
50 this.list = list; in TypeListItem()
56 return StdTypeList.hashContents(list); in hashCode()
68 int sz = list.size(); in addContents()
71 typeIds.intern(list.getType(i)); in addContents()
87 return list; in getList()
94 int sz = list.size(); in writeTo0()
100 Type one = list.getType(i); in writeTo0()
[all …]
DHeaderSection.java30 private final List<HeaderItem> list; field in HeaderSection
43 this.list = Collections.singletonList(item); in HeaderSection()
55 return list; in items()
DAnnotationUtils.java210 CstArray.List list = new CstArray.List(size); in makeSignature() local
213 list.set(i, new CstString(pieces.get(i))); in makeSignature()
216 list.setImmutable(); in makeSignature()
218 result.put(new NameValuePair(VALUE_UTF, new CstArray(list))); in makeSignature()
245 CstArray.List list = new CstArray.List(size); in makeCstArray() local
248 list.set(i, CstType.intern(types.getType(i))); in makeCstArray()
251 list.setImmutable(); in makeCstArray()
252 return new CstArray(list); in makeCstArray()
DCatchStructs.java149 CatchHandlerList list = mapping.getKey(); in encode() local
150 int listSize = list.size(); in encode()
151 boolean catchesAll = list.catchesAll(); in encode()
165 CatchHandlerList.Entry entry = list.get(i); in encode()
172 out.writeUnsignedLeb128(list.get(listSize).getHandler()); in encode()
278 CatchHandlerList list = mapping.getKey(); in annotateEntries() local
286 lastList = list; in annotateEntries()
DClassDataItem.java311 CstArray.List list = new CstArray.List(size); in makeStaticValuesConstant() local
318 list.set(i, cst); in makeStaticValuesConstant()
320 list.setImmutable(); in makeStaticValuesConstant()
322 return new CstArray(list); in makeStaticValuesConstant()
396 String label, ArrayList<? extends EncodedMember> list) { in encodeList() argument
397 int size = list.size(); in encodeList()
409 lastIndex = list.get(i).encode(file, out, lastIndex, i); in encodeList()
DAnnotationsDirectoryItem.java189 AnnotationsList list) { in addParameterAnnotations() argument
194 parameterAnnotations.add(new ParameterAnnotationStruct(method, list)); in addParameterAnnotations()
345 private static int listSize(ArrayList<?> list) { in listSize() argument
346 if (list == null) { in listSize()
350 return list.size(); in listSize()
/dalvik/dx/src/com/android/dx/dex/file/
DTypeListItem.java40 private final TypeList list; field in TypeListItem
47 public TypeListItem(TypeList list) { in TypeListItem() argument
48 super(ALIGNMENT, (list.size() * ELEMENT_SIZE) + HEADER_SIZE); in TypeListItem()
50 this.list = list; in TypeListItem()
56 return StdTypeList.hashContents(list); in hashCode()
68 int sz = list.size(); in addContents()
71 typeIds.intern(list.getType(i)); in addContents()
87 return list; in getList()
94 int sz = list.size(); in writeTo0()
100 Type one = list.getType(i); in writeTo0()
[all …]
DHeaderSection.java30 private final List<HeaderItem> list; field in HeaderSection
43 this.list = Collections.singletonList(item); in HeaderSection()
55 return list; in items()
DAnnotationUtils.java208 CstArray.List list = new CstArray.List(size); in makeSignature() local
211 list.set(i, new CstString(pieces.get(i))); in makeSignature()
214 list.setImmutable(); in makeSignature()
216 result.put(new NameValuePair(VALUE_STRING, new CstArray(list))); in makeSignature()
243 CstArray.List list = new CstArray.List(size); in makeCstArray() local
246 list.set(i, CstType.intern(types.getType(i))); in makeCstArray()
249 list.setImmutable(); in makeCstArray()
250 return new CstArray(list); in makeCstArray()
DCatchStructs.java147 CatchHandlerList list = mapping.getKey(); in encode() local
148 int listSize = list.size(); in encode()
149 boolean catchesAll = list.catchesAll(); in encode()
163 CatchHandlerList.Entry entry = list.get(i); in encode()
170 out.writeUleb128(list.get(listSize).getHandler()); in encode()
276 CatchHandlerList list = mapping.getKey(); in annotateEntries() local
284 lastList = list; in annotateEntries()
DClassDataItem.java308 CstArray.List list = new CstArray.List(size); in makeStaticValuesConstant() local
315 list.set(i, cst); in makeStaticValuesConstant()
317 list.setImmutable(); in makeStaticValuesConstant()
319 return new CstArray(list); in makeStaticValuesConstant()
393 String label, ArrayList<? extends EncodedMember> list) { in encodeList() argument
394 int size = list.size(); in encodeList()
406 lastIndex = list.get(i).encode(file, out, lastIndex, i); in encodeList()
DAnnotationsDirectoryItem.java189 AnnotationsList list) { in addParameterAnnotations() argument
194 parameterAnnotations.add(new ParameterAnnotationStruct(method, list)); in addParameterAnnotations()
345 private static int listSize(ArrayList<?> list) { in listSize() argument
346 if (list == null) { in listSize()
350 return list.size(); in listSize()
/dalvik/vm/alloc/
DMarkSweep.cpp365 static void enqueuePendingReference(Object *ref, Object **list) in enqueuePendingReference() argument
368 assert(list != NULL); in enqueuePendingReference()
370 if (*list == NULL) { in enqueuePendingReference()
372 *list = ref; in enqueuePendingReference()
374 Object *head = dvmGetFieldObject(*list, offset); in enqueuePendingReference()
376 dvmSetFieldObject(*list, offset, ref); in enqueuePendingReference()
384 static Object *dequeuePendingReference(Object **list) in dequeuePendingReference() argument
386 assert(list != NULL); in dequeuePendingReference()
387 assert(*list != NULL); in dequeuePendingReference()
389 Object *head = dvmGetFieldObject(*list, offset); in dequeuePendingReference()
[all …]
/dalvik/dx/src/com/android/dx/cf/direct/
DAttributeListParser.java43 private final StdAttributeList list; field in AttributeListParser
76 this.list = new StdAttributeList(size); in AttributeListParser()
107 return list; in getList()
123 int sz = list.size(); in parse()
145 list.set(i, attrib); in parse()
DStdAttributeFactory.java399 TypeList list = cf.makeTypeList(offset, count); in exceptions() local
400 return new AttExceptions(list); in exceptions()
428 InnerClassList list = new InnerClassList(count); in innerClasses() local
438 list.set(i, innerClass, outerClass, name, accessFlags); in innerClasses()
456 list.setImmutable(); in innerClasses()
457 return new AttInnerClasses(list); in innerClasses()
484 LineNumberList list = new LineNumberList(count); in lineNumberTable() local
489 list.set(i, startPc, lineNumber); in lineNumberTable()
497 list.setImmutable(); in lineNumberTable()
498 return new AttLineNumberTable(list); in lineNumberTable()
[all …]
/dalvik/dx/src/com/android/dx/dex/code/
DInsnFormat.java182 protected static String regListString(RegisterSpecList list) { in regListString() argument
183 int sz = list.size(); in regListString()
192 sb.append(list.get(i).regString()); in regListString()
207 protected static String regRangeString(RegisterSpecList list) { in regRangeString() argument
208 int size = list.size(); in regRangeString()
219 sb.append(list.get(0).regString()); in regRangeString()
223 RegisterSpec lastReg = list.get(size - 1); in regRangeString()
232 sb.append(list.get(0).regString()); in regRangeString()
438 protected static boolean isRegListSequential(RegisterSpecList list) { in isRegListSequential() argument
439 int sz = list.size(); in isRegListSequential()
[all …]
/dalvik/tools/dexdeps/
DREADME.txt4 This tool dumps a list of fields and methods that a DEX file uses but does
5 not define. When combined with a list of public APIs, it can be used to
31 Indicates that output should only include a list of classes, as
/dalvik/tests/061-out-of-memory/src/
DMain.java73 LinkedList<Object> list = new LinkedList<Object>(); in testOomeSmallInternal() local
82 list.add((Object)new byte[objSize]); in testOomeSmallInternal()
/dalvik/dx/tests/034-dex-minimal/
Dexpected.txt50 |[70] map list
66 | map list: 1 item; 28 bytes total
/dalvik/tests/062-character-encodings/
Dinfo.txt1 Test that the list of character encodings is what we expect.
/dalvik/dexgen/src/com/android/dexgen/rop/type/
DStdTypeList.java233 public static String toHuman(TypeList list) { in toHuman() argument
234 int size = list.size(); in toHuman()
246 sb.append(list.getType(i).toHuman()); in toHuman()
260 public static int hashContents(TypeList list) { in hashContents() argument
261 int size = list.size(); in hashContents()
265 hash = (hash * 31) + list.getType(i).hashCode(); in hashContents()

123