/dalvik/dexgen/src/com/android/dexgen/dex/file/ |
D | AnnotationSetItem.java | 35 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 …]
|
D | AnnotationSetRefItem.java | 33 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()
|
D | MethodAnnotationStruct.java | 34 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()
|
D | FieldAnnotationStruct.java | 34 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()
|
D | AnnotationsDirectoryItem.java | 137 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()
|
D | ClassDefItem.java | 328 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()
|
D | ParameterAnnotationStruct.java | 71 Annotations annotations = annotationsList.get(i); in ParameterAnnotationStruct() local 72 AnnotationSetItem item = new AnnotationSetItem(annotations); in ParameterAnnotationStruct()
|
/dalvik/dx/src/com/android/dx/dex/file/ |
D | AnnotationSetItem.java | 35 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 …]
|
D | AnnotationSetRefItem.java | 33 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() 61 annotations = wordData.intern(annotations); in addContents() 67 return annotations.toHuman(); in toHuman() 73 int annotationsOff = annotations.getAbsoluteOffset(); in writeTo0()
|
D | MethodAnnotationStruct.java | 34 private AnnotationSetItem annotations; field in MethodAnnotationStruct 43 AnnotationSetItem annotations) { in MethodAnnotationStruct() argument 48 if (annotations == null) { in MethodAnnotationStruct() 53 this.annotations = annotations; in MethodAnnotationStruct() 84 annotations = wordData.intern(annotations); in addContents() 90 int annotationsOff = annotations.getAbsoluteOffset(); in writeTo() 106 return method.toHuman() + ": " + annotations; in toHuman() 124 return annotations.getAnnotations(); in getAnnotations()
|
D | FieldAnnotationStruct.java | 34 private AnnotationSetItem annotations; field in FieldAnnotationStruct 43 AnnotationSetItem annotations) { in FieldAnnotationStruct() argument 48 if (annotations == null) { in FieldAnnotationStruct() 53 this.annotations = annotations; in FieldAnnotationStruct() 84 annotations = wordData.intern(annotations); in addContents() 90 int annotationsOff = annotations.getAbsoluteOffset(); in writeTo() 106 return field.toHuman() + ": " + annotations; in toHuman() 124 return annotations.getAnnotations(); in getAnnotations()
|
D | AnnotationsDirectoryItem.java | 137 public void setClassAnnotations(Annotations annotations, DexFile dexFile) { in setClassAnnotations() argument 138 if (annotations == null) { in setClassAnnotations() 147 classAnnotations = new AnnotationSetItem(annotations, dexFile); in setClassAnnotations() 158 Annotations annotations, DexFile dexFile) { in addFieldAnnotations() argument 164 new AnnotationSetItem(annotations, dexFile))); in addFieldAnnotations() 175 Annotations annotations, DexFile dexFile) { in addMethodAnnotations() argument 181 new AnnotationSetItem(annotations, dexFile))); in addMethodAnnotations()
|
D | ClassDefItem.java | 326 public void setClassAnnotations(Annotations annotations, DexFile dexFile) { in setClassAnnotations() argument 327 annotationsDirectory.setClassAnnotations(annotations, dexFile); in setClassAnnotations() 338 Annotations annotations, DexFile dexFile) { in addFieldAnnotations() argument 339 annotationsDirectory.addFieldAnnotations(field, annotations, dexFile); in addFieldAnnotations() 350 Annotations annotations, DexFile dexFile) { in addMethodAnnotations() argument 351 annotationsDirectory.addMethodAnnotations(method, annotations, dexFile); in addMethodAnnotations()
|
D | ParameterAnnotationStruct.java | 71 Annotations annotations = annotationsList.get(i); in ParameterAnnotationStruct() local 72 AnnotationSetItem item = new AnnotationSetItem(annotations, dexFile); in ParameterAnnotationStruct()
|
/dalvik/dx/src/com/android/dx/rop/annotation/ |
D | Annotations.java | 39 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() 110 Iterator<Annotation> thisIter = annotations.values().iterator(); in compareTo() 111 Iterator<Annotation> otherIter = other.annotations.values().iterator(); in compareTo() 140 for (Annotation a : annotations.values()) { in toString() 159 return annotations.size(); in size() [all …]
|
/dalvik/dexgen/src/com/android/dexgen/rop/annotation/ |
D | Annotations.java | 40 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/cf/attrib/ |
D | BaseAnnotations.java | 27 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() 71 return annotations; in getAnnotations()
|
D | AttRuntimeInvisibleAnnotations.java | 36 public AttRuntimeInvisibleAnnotations(Annotations annotations, in AttRuntimeInvisibleAnnotations() argument 38 super(ATTRIBUTE_NAME, annotations, byteLength); in AttRuntimeInvisibleAnnotations()
|
D | AttRuntimeVisibleParameterAnnotations.java | 39 AnnotationsList annotations, int byteLength) { in AttRuntimeVisibleParameterAnnotations() argument 40 super(ATTRIBUTE_NAME, annotations, byteLength); in AttRuntimeVisibleParameterAnnotations()
|
D | AttRuntimeVisibleAnnotations.java | 36 public AttRuntimeVisibleAnnotations(Annotations annotations, in AttRuntimeVisibleAnnotations() argument 38 super(ATTRIBUTE_NAME, annotations, byteLength); in AttRuntimeVisibleAnnotations()
|
/dalvik/dexgen/src/com/android/dexgen/util/ |
D | ByteArrayAnnotatedOutput.java | 54 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/util/ |
D | ByteArrayAnnotatedOutput.java | 58 private ArrayList<Annotation> annotations; field in ByteArrayAnnotatedOutput 115 this.annotations = null; in ByteArrayAnnotatedOutput() 369 return (annotations != null); in annotates() 381 if (annotations == null) { in annotate() 386 annotations.add(new Annotation(cursor, msg)); in annotate() 392 if (annotations == null) { in annotate() 398 int asz = annotations.size(); in annotate() 399 int lastEnd = (asz == 0) ? 0 : annotations.get(asz - 1).getEnd(); in annotate() 408 annotations.add(new Annotation(startAt, startAt + amt, msg)); in annotate() 414 if (annotations == null) { in endAnnotation() [all …]
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | AnnotationParser.java | 188 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/ |
D | info.txt | 2 string annotations get represented reasonably.
|
/dalvik/dx/src/com/android/dx/dex/cf/ |
D | CfTranslator.java | 218 Annotations annotations = in processFields() local 220 if (annotations.size() != 0) { in processFields() 221 out.addFieldAnnotations(field, annotations, dexFile); in processFields() 383 Annotations annotations = in processMethods() local 385 if (annotations.size() != 0) { in processMethods() 386 out.addMethodAnnotations(meth, annotations, dexFile); in processMethods()
|