Home
last modified time | relevance | path

Searched refs:annotations (Results 1 – 25 of 34) sorted by relevance

12

/dalvik/dx/src/com/android/dx/dex/file/
DAnnotationSetRefItem.java33 private AnnotationSetItem annotations; field in AnnotationSetRefItem
40 public AnnotationSetRefItem(AnnotationSetItem annotations) { in AnnotationSetRefItem() argument
43 if (annotations == null) { in AnnotationSetRefItem()
47 this.annotations = annotations; in AnnotationSetRefItem()
60 annotations = wordData.intern(annotations); in addContents()
66 return annotations.toHuman(); in toHuman()
72 int annotationsOff = annotations.getAbsoluteOffset(); in writeTo0()
DAnnotationSetItem.java35 private final Annotations annotations; field in AnnotationSetItem
50 public AnnotationSetItem(Annotations annotations, DexFile dexFile) { in AnnotationSetItem() argument
51 super(ALIGNMENT, writeSize(annotations)); in AnnotationSetItem()
53 this.annotations = annotations; in AnnotationSetItem()
54 this.items = new AnnotationItem[annotations.size()]; in AnnotationSetItem()
57 for (Annotation a : annotations.getAnnotations()) { in AnnotationSetItem()
69 private static int writeSize(Annotations annotations) { in writeSize() argument
73 return (annotations.size() * ENTRY_WRITE_SIZE) + 4; in writeSize()
86 return annotations; in getAnnotations()
92 return annotations.hashCode(); in hashCode()
[all …]
DFieldAnnotationStruct.java34 private AnnotationSetItem annotations; field in FieldAnnotationStruct
43 AnnotationSetItem annotations) { in FieldAnnotationStruct() argument
48 if (annotations == null) { in FieldAnnotationStruct()
53 this.annotations = annotations; in FieldAnnotationStruct()
81 annotations = wordData.intern(annotations); in addContents()
87 int annotationsOff = annotations.getAbsoluteOffset(); in writeTo()
102 return field.toHuman() + ": " + annotations; in toHuman()
120 return annotations.getAnnotations(); in getAnnotations()
DMethodAnnotationStruct.java34 private AnnotationSetItem annotations; field in MethodAnnotationStruct
43 AnnotationSetItem annotations) { in MethodAnnotationStruct() argument
48 if (annotations == null) { in MethodAnnotationStruct()
53 this.annotations = annotations; in MethodAnnotationStruct()
81 annotations = wordData.intern(annotations); in addContents()
87 int annotationsOff = annotations.getAbsoluteOffset(); in writeTo()
102 return method.toHuman() + ": " + annotations; in toHuman()
120 return annotations.getAnnotations(); in getAnnotations()
DAnnotationsDirectoryItem.java138 public void setClassAnnotations(Annotations annotations, DexFile dexFile) { in setClassAnnotations() argument
139 if (annotations == null) { in setClassAnnotations()
148 classAnnotations = new AnnotationSetItem(annotations, dexFile); in setClassAnnotations()
159 Annotations annotations, DexFile dexFile) { in addFieldAnnotations() argument
165 new AnnotationSetItem(annotations, dexFile))); in addFieldAnnotations()
176 Annotations annotations, DexFile dexFile) { in addMethodAnnotations() argument
182 new AnnotationSetItem(annotations, dexFile))); in addMethodAnnotations()
DClassDefItem.java327 public void setClassAnnotations(Annotations annotations, DexFile dexFile) { in setClassAnnotations() argument
328 annotationsDirectory.setClassAnnotations(annotations, dexFile); in setClassAnnotations()
339 Annotations annotations, DexFile dexFile) { in addFieldAnnotations() argument
340 annotationsDirectory.addFieldAnnotations(field, annotations, dexFile); in addFieldAnnotations()
351 Annotations annotations, DexFile dexFile) { in addMethodAnnotations() argument
352 annotationsDirectory.addMethodAnnotations(method, annotations, dexFile); in addMethodAnnotations()
DParameterAnnotationStruct.java72 Annotations annotations = annotationsList.get(i); in ParameterAnnotationStruct() local
73 AnnotationSetItem item = new AnnotationSetItem(annotations, dexFile); in ParameterAnnotationStruct()
/dalvik/dexgen/src/com/android/dexgen/dex/file/
DAnnotationSetRefItem.java33 private AnnotationSetItem annotations; field in AnnotationSetRefItem
40 public AnnotationSetRefItem(AnnotationSetItem annotations) { in AnnotationSetRefItem() argument
43 if (annotations == null) { in AnnotationSetRefItem()
47 this.annotations = annotations; in AnnotationSetRefItem()
60 annotations = wordData.intern(annotations); in addContents()
66 return annotations.toHuman(); in toHuman()
72 int annotationsOff = annotations.getAbsoluteOffset(); in writeTo0()
DAnnotationSetItem.java35 private final Annotations annotations; field in AnnotationSetItem
49 public AnnotationSetItem(Annotations annotations) { in AnnotationSetItem() argument
50 super(ALIGNMENT, writeSize(annotations)); in AnnotationSetItem()
52 this.annotations = annotations; in AnnotationSetItem()
53 this.items = new AnnotationItem[annotations.size()]; in AnnotationSetItem()
56 for (Annotation a : annotations.getAnnotations()) { in AnnotationSetItem()
68 private static int writeSize(Annotations annotations) { in writeSize() argument
72 return (annotations.size() * ENTRY_WRITE_SIZE) + 4; in writeSize()
85 return annotations; in getAnnotations()
91 return annotations.hashCode(); in hashCode()
[all …]
DMethodAnnotationStruct.java34 private AnnotationSetItem annotations; field in MethodAnnotationStruct
43 AnnotationSetItem annotations) { in MethodAnnotationStruct() argument
48 if (annotations == null) { in MethodAnnotationStruct()
53 this.annotations = annotations; in MethodAnnotationStruct()
81 annotations = wordData.intern(annotations); in addContents()
87 int annotationsOff = annotations.getAbsoluteOffset(); in writeTo()
102 return method.toHuman() + ": " + annotations; in toHuman()
120 return annotations.getAnnotations(); in getAnnotations()
DFieldAnnotationStruct.java34 private AnnotationSetItem annotations; field in FieldAnnotationStruct
43 AnnotationSetItem annotations) { in FieldAnnotationStruct() argument
48 if (annotations == null) { in FieldAnnotationStruct()
53 this.annotations = annotations; in FieldAnnotationStruct()
81 annotations = wordData.intern(annotations); in addContents()
87 int annotationsOff = annotations.getAbsoluteOffset(); in writeTo()
102 return field.toHuman() + ": " + annotations; in toHuman()
120 return annotations.getAnnotations(); in getAnnotations()
DAnnotationsDirectoryItem.java137 public void setClassAnnotations(Annotations annotations) { in setClassAnnotations() argument
138 if (annotations == null) { in setClassAnnotations()
147 classAnnotations = new AnnotationSetItem(annotations); in setClassAnnotations()
157 Annotations annotations) { in addFieldAnnotations() argument
163 new AnnotationSetItem(annotations))); in addFieldAnnotations()
173 Annotations annotations) { in addMethodAnnotations() argument
179 new AnnotationSetItem(annotations))); in addMethodAnnotations()
DClassDefItem.java328 public void setClassAnnotations(Annotations annotations) { in setClassAnnotations() argument
329 annotationsDirectory.setClassAnnotations(annotations); in setClassAnnotations()
339 Annotations annotations) { in addFieldAnnotations() argument
340 annotationsDirectory.addFieldAnnotations(field, annotations); in addFieldAnnotations()
350 Annotations annotations) { in addMethodAnnotations() argument
351 annotationsDirectory.addMethodAnnotations(method, annotations); in addMethodAnnotations()
DParameterAnnotationStruct.java71 Annotations annotations = annotationsList.get(i); in ParameterAnnotationStruct() local
72 AnnotationSetItem item = new AnnotationSetItem(annotations); in ParameterAnnotationStruct()
/dalvik/dx/src/com/android/dx/cf/attrib/
DBaseAnnotations.java27 private final Annotations annotations; field in BaseAnnotations
41 public BaseAnnotations(String attributeName, Annotations annotations, in BaseAnnotations() argument
46 if (annotations.isMutable()) { in BaseAnnotations()
54 this.annotations = annotations; in BaseAnnotations()
70 return annotations; in getAnnotations()
DAttRuntimeInvisibleAnnotations.java36 public AttRuntimeInvisibleAnnotations(Annotations annotations, in AttRuntimeInvisibleAnnotations() argument
38 super(ATTRIBUTE_NAME, annotations, byteLength); in AttRuntimeInvisibleAnnotations()
DAttRuntimeVisibleAnnotations.java36 public AttRuntimeVisibleAnnotations(Annotations annotations, in AttRuntimeVisibleAnnotations() argument
38 super(ATTRIBUTE_NAME, annotations, byteLength); in AttRuntimeVisibleAnnotations()
DAttRuntimeVisibleParameterAnnotations.java39 AnnotationsList annotations, int byteLength) { in AttRuntimeVisibleParameterAnnotations() argument
40 super(ATTRIBUTE_NAME, annotations, byteLength); in AttRuntimeVisibleParameterAnnotations()
/dalvik/dx/src/com/android/dx/rop/annotation/
DAnnotations.java39 private final TreeMap<CstType, Annotation> annotations; field in Annotations
71 public static Annotations combine(Annotations annotations, in combine() argument
75 result.addAll(annotations); in combine()
86 annotations = new TreeMap<CstType, Annotation>(); in Annotations()
92 return annotations.hashCode(); in hashCode()
104 return annotations.equals(otherAnnotations.annotations); in equals()
109 Iterator<Annotation> thisIter = annotations.values().iterator(); in compareTo()
110 Iterator<Annotation> otherIter = other.annotations.values().iterator(); in compareTo()
138 for (Annotation a : annotations.values()) { in toString()
157 return annotations.size(); in size()
[all …]
/dalvik/dexgen/src/com/android/dexgen/rop/annotation/
DAnnotations.java40 private final TreeMap<CstType, Annotation> annotations; field in Annotations
72 public static Annotations combine(Annotations annotations, in combine() argument
76 result.addAll(annotations); in combine()
87 annotations = new TreeMap<CstType, Annotation>(); in Annotations()
93 return annotations.hashCode(); in hashCode()
105 return annotations.equals(otherAnnotations.annotations); in equals()
110 Iterator<Annotation> thisIter = annotations.values().iterator(); in compareTo()
111 Iterator<Annotation> otherIter = other.annotations.values().iterator(); in compareTo()
139 for (Annotation a : annotations.values()) { in toString()
158 return annotations.size(); in size()
[all …]
/dalvik/dx/src/com/android/dx/util/
DByteArrayAnnotatedOutput.java57 private ArrayList<Annotation> annotations; field in ByteArrayAnnotatedOutput
114 this.annotations = null; in ByteArrayAnnotatedOutput()
354 return (annotations != null); in annotates()
364 if (annotations == null) { in annotate()
369 annotations.add(new Annotation(cursor, msg)); in annotate()
374 if (annotations == null) { in annotate()
380 int asz = annotations.size(); in annotate()
381 int lastEnd = (asz == 0) ? 0 : annotations.get(asz - 1).getEnd(); in annotate()
390 annotations.add(new Annotation(startAt, startAt + amt, msg)); in annotate()
395 if (annotations == null) { in endAnnotation()
[all …]
/dalvik/dexgen/src/com/android/dexgen/util/
DByteArrayAnnotatedOutput.java54 private ArrayList<Annotation> annotations; field in ByteArrayAnnotatedOutput
102 this.annotations = null; in ByteArrayAnnotatedOutput()
358 return (annotations != null); in annotates()
368 if (annotations == null) { in annotate()
373 annotations.add(new Annotation(cursor, msg)); in annotate()
378 if (annotations == null) { in annotate()
384 int asz = annotations.size(); in annotate()
385 int lastEnd = (asz == 0) ? 0 : annotations.get(asz - 1).getEnd(); in annotate()
394 annotations.add(new Annotation(startAt, startAt + amt, msg)); in annotate()
399 if (annotations == null) { in endAnnotation()
[all …]
/dalvik/dx/src/com/android/dx/cf/direct/
DAnnotationParser.java188 Annotations annotations = parseAnnotations(visibility); in parseAnnotationsList() local
189 outerList.set(i, annotations); in parseAnnotationsList()
215 Annotations annotations = new Annotations(); in parseAnnotations() local
224 annotations.add(annotation); in parseAnnotations()
231 annotations.setImmutable(); in parseAnnotations()
232 return annotations; in parseAnnotations()
/dalvik/dx/tests/108-string-annotation/
Dinfo.txt2 string annotations get represented reasonably.
/dalvik/dx/tests/133-source-debug-extension/
Dinfo.txt5 NB dalvik/dexdump does not have support for DEX annotations so the test

12