Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 57) 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/dx/src/com/android/dx/rop/cst/
DCstArray.java26 private final List list; field in CstArray
33 public CstArray(List list) { in CstArray() argument
34 if (list == null) { in CstArray()
38 list.throwIfMutable(); in CstArray()
40 this.list = list; in CstArray()
50 return list.equals(((CstArray) other).list); in equals()
56 return list.hashCode(); in hashCode()
62 return list.compareTo(((CstArray) other).list); in compareTo0()
68 return list.toString("array{", ", ", "}"); in toString()
86 return list.toHuman("{", ", ", "}"); in toHuman()
[all …]
DCstCallSite.java43 List list = new List(3 + optionalArguments.size()); in make() local
44 list.set(0, bootstrapHandle); in make()
45 list.set(1, nat.getName()); in make()
46 list.set(2, new CstProtoRef(Prototype.fromDescriptor(nat.getDescriptor().getString()))); in make()
49 list.set(i + 3, optionalArguments.get(i)); in make()
52 list.setImmutable(); in make()
53 return new CstCallSite(list); in make()
61 private CstCallSite(List list) { in CstCallSite() argument
62 super(list); in CstCallSite()
/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.java39 private final TypeList list; field in TypeListItem
46 public TypeListItem(TypeList list) { in TypeListItem() argument
47 super(ALIGNMENT, (list.size() * ELEMENT_SIZE) + HEADER_SIZE); in TypeListItem()
49 this.list = list; in TypeListItem()
55 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.java29 private final List<HeaderItem> list; field in HeaderSection
42 this.list = Collections.singletonList(item); in HeaderSection()
54 return list; in items()
DAnnotationUtils.java211 CstArray.List list = new CstArray.List(size); in makeSignature() local
214 list.set(i, new CstString(pieces.get(i))); in makeSignature()
217 list.setImmutable(); in makeSignature()
219 result.put(new NameValuePair(VALUE_STRING, new CstArray(list))); in makeSignature()
260 CstArray.List list = new CstArray.List(size); in makeCstArray() local
263 list.set(i, CstType.intern(types.getType(i))); in makeCstArray()
266 list.setImmutable(); in makeCstArray()
267 return new CstArray(list); in makeCstArray()
DCatchStructs.java146 CatchHandlerList list = mapping.getKey(); in encode() local
147 int listSize = list.size(); in encode()
148 boolean catchesAll = list.catchesAll(); in encode()
162 CatchHandlerList.Entry entry = list.get(i); in encode()
169 out.writeUleb128(list.get(listSize).getHandler()); in encode()
275 CatchHandlerList list = mapping.getKey(); in annotateEntries() local
283 lastList = list; in annotateEntries()
DClassDataItem.java307 CstArray.List list = new CstArray.List(size); in makeStaticValuesConstant() local
314 list.set(i, cst); in makeStaticValuesConstant()
316 list.setImmutable(); in makeStaticValuesConstant()
318 return new CstArray(list); in makeStaticValuesConstant()
392 String label, ArrayList<? extends EncodedMember> list) { in encodeList() argument
393 int size = list.size(); in encodeList()
405 lastIndex = list.get(i).encode(file, out, lastIndex, i); in encodeList()
DAnnotationsDirectoryItem.java192 AnnotationsList list, DexFile dexFile) { in addParameterAnnotations() argument
197 parameterAnnotations.add(new ParameterAnnotationStruct(method, list, dexFile)); in addParameterAnnotations()
349 private static int listSize(ArrayList<?> list) { in listSize() argument
350 if (list == null) { in listSize()
354 return list.size(); in listSize()
/dalvik/dx/src/com/android/dx/dex/code/
DInsnFormat.java179 protected static String regListString(RegisterSpecList list) { in regListString() argument
180 int sz = list.size(); in regListString()
189 sb.append(list.get(i).regString()); in regListString()
204 protected static String regRangeString(RegisterSpecList list) { in regRangeString() argument
205 int size = list.size(); in regRangeString()
216 sb.append(list.get(0).regString()); in regRangeString()
220 RegisterSpec lastReg = list.get(size - 1); in regRangeString()
229 sb.append(list.get(0).regString()); in regRangeString()
392 protected static boolean isRegListSequential(RegisterSpecList list) { in isRegListSequential() argument
393 int sz = list.size(); in isRegListSequential()
[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.java434 TypeList list = cf.makeTypeList(offset, count); in exceptions() local
435 return new AttExceptions(list); in exceptions()
463 InnerClassList list = new InnerClassList(count); in innerClasses() local
473 list.set(i, innerClass, outerClass, name, accessFlags); in innerClasses()
491 list.setImmutable(); in innerClasses()
492 return new AttInnerClasses(list); in innerClasses()
519 LineNumberList list = new LineNumberList(count); in lineNumberTable() local
524 list.set(i, startPc, lineNumber); in lineNumberTable()
532 list.setImmutable(); in lineNumberTable()
533 return new AttLineNumberTable(list); in lineNumberTable()
[all …]
/dalvik/dx/tests/126-main-dex-list-one-dex/
Drun18 dx -JXmx1024m --dex --no-optimize --multi-dex --main-dex-list=main.list --output=out classes
/dalvik/dx/tests/125-main-dex-list/
Drun19 dx -JXmx1024m --dex --no-optimize --multi-dex --main-dex-list=main.list --minimal-main-dex --output…
/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/dx/tests/034-dex-minimal/
Dexpected.txt50 |[70] map list
66 | map list: 1 item; 28 bytes total
/dalvik/dx/src/com/android/dx/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()
/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