/dalvik/dx/src/com/android/dx/dex/file/ |
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 | 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 | 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 | 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 | 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/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/tests/004-annotations/ |
D | expected.txt | 7 annotations on TYPE class android.test.anno.SimplyNoted(2): 13 annotations on CTOR android.test.anno.SimplyNoted(): 16 constructor parameter annotations: 17 annotations on CTOR android.test.anno.SimplyNoted(int): 20 constructor parameter annotations: 23 annotations on METH public int android.test.anno.SimplyNoted.foo(): 26 method parameter annotations: 27 annotations on FIELD public static int android.test.anno.SimplyNoted.mOneFoo: 30 annotations on FIELD public int android.test.anno.SimplyNoted.mFoo: 34 annotations on TYPE interface android.test.anno.INoted(1): [all …]
|
D | info.txt | 1 Test a bunch of uses of annotations.
|
/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() 70 return annotations; in getAnnotations()
|
D | AttRuntimeVisibleAnnotations.java | 36 public AttRuntimeVisibleAnnotations(Annotations annotations, in AttRuntimeVisibleAnnotations() argument 38 super(ATTRIBUTE_NAME, annotations, byteLength); in AttRuntimeVisibleAnnotations()
|
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()
|
/dalvik/dx/src/com/android/dx/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/libcore/luni/src/test/java/tests/api/java/lang/reflect/ |
D | AccessibleObjectTest.java | 199 Annotation[] annotations = ao.getAnnotations(); in test_getAnnotations() local 200 assertEquals(2, annotations.length); in test_getAnnotations() 203 ignoreOrder.add(annotations[0].annotationType()); in test_getAnnotations() 204 ignoreOrder.add(annotations[1].annotationType()); in test_getAnnotations() 220 Annotation[] annotations = ao.getDeclaredAnnotations(); in test_getDeclaredAnnotations() local 221 assertEquals(2, annotations.length); in test_getDeclaredAnnotations() 224 ignoreOrder.add(annotations[0].annotationType()); in test_getDeclaredAnnotations() 225 ignoreOrder.add(annotations[1].annotationType()); in test_getDeclaredAnnotations()
|
D | MethodTest.java | 445 Annotation[][] annotations = method.getParameterAnnotations(); in test_getParameterAnnotations() local 446 assertEquals(3, annotations.length); in test_getParameterAnnotations() 449 annotations[0].length); in test_getParameterAnnotations() 451 annotationSet.add(annotations[0][0].annotationType()); in test_getParameterAnnotations() 452 annotationSet.add(annotations[0][1].annotationType()); in test_getParameterAnnotations() 460 1, annotations[1].length); in test_getParameterAnnotations() 462 annotationSet.add(annotations[1][0].annotationType()); in test_getParameterAnnotations() 467 annotations[2].length); in test_getParameterAnnotations()
|
D | ConstructorTest.java | 158 Annotation[] annotations = ctor1.getDeclaredAnnotations(); in test_getDeclaredAnnotations() local 160 annotations.length); in test_getDeclaredAnnotations() 162 ignoreOrder.add(annotations[0].annotationType()); in test_getDeclaredAnnotations() 163 ignoreOrder.add(annotations[1].annotationType()); in test_getDeclaredAnnotations()
|
/dalvik/dx/src/com/android/dx/cf/direct/ |
D | AnnotationParser.java | 191 Annotations annotations = parseAnnotations(visibility); in parseAnnotationsList() local 192 outerList.set(i, annotations); in parseAnnotationsList() 218 Annotations annotations = new Annotations(); in parseAnnotations() local 227 annotations.add(annotation); in parseAnnotations() 234 annotations.setImmutable(); in parseAnnotations() 235 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 | 165 Annotations annotations = in processFields() local 167 if (annotations.size() != 0) { in processFields() 168 out.addFieldAnnotations(field, annotations); in processFields() 326 Annotations annotations = in processMethods() local 328 if (annotations.size() != 0) { in processMethods() 329 out.addMethodAnnotations(meth, annotations); in processMethods()
|
/dalvik/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/lang/ |
D | PackageTest.java | 445 Annotation [] annotations = p.getAnnotations(); in test_getAnnotations() local 446 assertEquals(1, annotations.length); in test_getAnnotations() 463 Annotation [] annotations = p.getDeclaredAnnotations(); in test_getDeclaredAnnotations() local 464 assertEquals(1, annotations.length); in test_getDeclaredAnnotations()
|
D | ClassTest.java | 171 Annotation [] annotations = PublicTestClass.class.getAnnotations(); in test_getAnnotations() local 172 assertEquals(1, annotations.length); in test_getAnnotations() 173 assertEquals(TestAnnotation.class, annotations[0].annotationType()); in test_getAnnotations() 175 annotations = ExtendTestClass.class.getAnnotations(); in test_getAnnotations() 176 assertEquals(2, annotations.length); in test_getAnnotations() 178 for(int i = 0; i < annotations.length; i++) { in test_getAnnotations() 179 Class<? extends Annotation> type = annotations[i].annotationType(); in test_getAnnotations() 413 Annotation [] annotations = PublicTestClass.class.getDeclaredAnnotations(); in test_getDeclaredAnnotations() local 414 assertEquals(1, annotations.length); in test_getDeclaredAnnotations() 416 annotations = ExtendTestClass.class.getDeclaredAnnotations(); in test_getDeclaredAnnotations() [all …]
|
/dalvik/libcore/luni-kernel/src/main/java/java/lang/reflect/ |
D | Method.java | 259 Annotation[][] annotations = new Annotation[size][]; in noAnnotations() local 261 annotations[i] = NO_ANNOTATIONS; in noAnnotations() 263 return annotations; in noAnnotations()
|
/dalvik/libcore/annotation/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | AnnotationTest.java | 56 Annotation [] annotations = AnnotatedClass.class.getDeclaredAnnotations(); in test_annotationType() local 57 assertEquals(1, annotations.length); in test_annotationType() 58 Annotation anno = annotations[0]; in test_annotationType()
|