/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
D | ClassTest.java | 91 Class<Repeated> repeated = Repeated.class; in testIsAnnotationPresent() local 92 assertIsAnnotationPresent(NoAnnotation.class, repeated, false); in testIsAnnotationPresent() 93 assertIsAnnotationPresent(SingleAnnotation.class, repeated, true); in testIsAnnotationPresent() 94 assertIsAnnotationPresent(MultipleAnnotation.class, repeated, false); in testIsAnnotationPresent() 95 assertIsAnnotationPresent(MultipleAnnotationExplicitSingle.class, repeated, false); in testIsAnnotationPresent() 96 assertIsAnnotationPresent(MultipleAnnotationOddity.class, repeated, true); in testIsAnnotationPresent() 97 assertIsAnnotationPresent(InheritedNoNewAnnotation.class, repeated, true); in testIsAnnotationPresent() 98 assertIsAnnotationPresent(InheritedSingleWithNewSingleAnnotation.class, repeated, true); in testIsAnnotationPresent() 99 assertIsAnnotationPresent(InheritedSingleWithNewMultipleAnnotations.class, repeated, true); in testIsAnnotationPresent() 100 assertIsAnnotationPresent(InheritedMultipleWithNewSingleAnnotation.class, repeated, true); in testIsAnnotationPresent() [all …]
|
D | PackageTest.java | 38 Class<Repeated> repeated = Repeated.class; in testDeclaredAnnotation() local 39 checkDeclaredAnnotation(NoAnnotation.class, repeated, null); in testDeclaredAnnotation() 40 checkDeclaredAnnotation(SingleAnnotation.class, repeated, "@Repeated(1)"); in testDeclaredAnnotation() 41 checkDeclaredAnnotation(MultipleAnnotation.class, repeated, null); in testDeclaredAnnotation() 42 checkDeclaredAnnotation(MultipleAnnotationExplicitSingle.class, repeated, null); in testDeclaredAnnotation() 43 checkDeclaredAnnotation(MultipleAnnotationOddity.class, repeated, "@Repeated(1)"); in testDeclaredAnnotation() 69 Class<Repeated> repeated = Repeated.class; in testGetDeclaredAnnotationsByType() local 71 assertGetDeclaredAnnotationsByType(NoAnnotation.class, repeated, EXPECT_EMPTY); in testGetDeclaredAnnotationsByType() 72 assertGetDeclaredAnnotationsByType(SingleAnnotation.class, repeated, in testGetDeclaredAnnotationsByType() 74 assertGetDeclaredAnnotationsByType(MultipleAnnotation.class, repeated, in testGetDeclaredAnnotationsByType() [all …]
|
D | FieldTest.java | 68 Class<? extends Annotation> repeated = Repeated.class; in testDeclaredAnnotation() local 69 checkDeclaredAnnotation(c, "noAnnotation", repeated, null); in testDeclaredAnnotation() 70 checkDeclaredAnnotation(c, "multipleAnnotationOddity", repeated, "@Repeated(1)"); in testDeclaredAnnotation() 71 checkDeclaredAnnotation(c, "multipleAnnotationExplicitSingle", repeated, null); in testDeclaredAnnotation() 72 checkDeclaredAnnotation(c, "multipleAnnotation", repeated, null); in testDeclaredAnnotation() 73 checkDeclaredAnnotation(c, "singleAnnotation", repeated, "@Repeated(1)"); in testDeclaredAnnotation() 101 Class<? extends Annotation> repeated = Repeated.class; in testGetDeclaredAnnotationsByType() local 102 assertGetDeclaredAnnotationsByType(c, repeated, "noAnnotation", EXPECT_EMPTY); in testGetDeclaredAnnotationsByType() 103 assertGetDeclaredAnnotationsByType(c, repeated, "multipleAnnotationOddity", in testGetDeclaredAnnotationsByType() 105 assertGetDeclaredAnnotationsByType(c, repeated, "multipleAnnotationExplicitSingle", in testGetDeclaredAnnotationsByType() [all …]
|
D | MethodTest.java | 68 Class<? extends Annotation> repeated = Repeated.class; in testDeclaredAnnotation() local 69 checkDeclaredAnnotation(c, "noAnnotation", repeated, null); in testDeclaredAnnotation() 70 checkDeclaredAnnotation(c, "multipleAnnotationOddity", repeated, "@Repeated(1)"); in testDeclaredAnnotation() 71 checkDeclaredAnnotation(c, "multipleAnnotationExplicitSingle", repeated, null); in testDeclaredAnnotation() 72 checkDeclaredAnnotation(c, "multipleAnnotation", repeated, null); in testDeclaredAnnotation() 73 checkDeclaredAnnotation(c, "singleAnnotation", repeated, "@Repeated(1)"); in testDeclaredAnnotation() 101 Class<? extends Annotation> repeated = Repeated.class; in testGetDeclaredAnnotationsByType() local 102 assertGetDeclaredAnnotationsByType(c, repeated, "noAnnotation", EXPECT_EMPTY); in testGetDeclaredAnnotationsByType() 103 assertGetDeclaredAnnotationsByType(c, repeated, "multipleAnnotationOddity", in testGetDeclaredAnnotationsByType() 105 assertGetDeclaredAnnotationsByType(c, repeated, "multipleAnnotationExplicitSingle", in testGetDeclaredAnnotationsByType() [all …]
|
D | ConstructorTest.java | 69 Class<? extends Annotation> repeated = Repeated.class; in testDeclaredAnnotation() local 70 checkDeclaredAnnotation(c, 4, repeated, null); in testDeclaredAnnotation() 71 checkDeclaredAnnotation(c, 3, repeated, "@Repeated(1)"); in testDeclaredAnnotation() 72 checkDeclaredAnnotation(c, 2, repeated, null); in testDeclaredAnnotation() 73 checkDeclaredAnnotation(c, 1, repeated, null); in testDeclaredAnnotation() 74 checkDeclaredAnnotation(c, 0, repeated, "@Repeated(1)"); in testDeclaredAnnotation() 100 Class<? extends Annotation> repeated = Repeated.class; in testGetDeclaredAnnotationsByType() local 101 assertGetDeclaredAnnotationsByType(c, 4, repeated, EXPECT_EMPTY); in testGetDeclaredAnnotationsByType() 102 assertGetDeclaredAnnotationsByType(c, 3, repeated, in testGetDeclaredAnnotationsByType() 104 assertGetDeclaredAnnotationsByType(c, 2, repeated, "@Repeated(1)"); in testGetDeclaredAnnotationsByType() [all …]
|
D | AnnotatedElementParameterTest.java | 159 Class<? extends Annotation> repeated = Repeated.class; in testMethodDeclaredAnnotation_repeated() local 162 repeated, null); in testMethodDeclaredAnnotation_repeated() local 165 repeated, "@Repeated(1)"); in testMethodDeclaredAnnotation_repeated() local 168 repeated, null); in testMethodDeclaredAnnotation_repeated() local 171 repeated, null); in testMethodDeclaredAnnotation_repeated() local 174 repeated, "@Repeated(1)"); in testMethodDeclaredAnnotation_repeated() local 177 repeated, "@Repeated(1)"); in testMethodDeclaredAnnotation_repeated() local 180 repeated, "@Repeated(1)"); in testMethodDeclaredAnnotation_repeated() local 236 Class<? extends Annotation> repeated = Repeated.class; in testConstructorDeclaredAnnotation_repeated() local 239 repeated, null); in testConstructorDeclaredAnnotation_repeated() local [all …]
|
D | AnnotatedElementTestSupport.java | 301 Repeated repeated = (Repeated) annotation; in createArgumentsTestString() local 302 return "(" + repeated.value() + ")"; in createArgumentsTestString()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CharsetUtf8Benchmark.java | 38 int repeated) { in makeUnicodeRange() argument 48 for (int i = 0; i < repeated; i++) { in makeUnicodeRange()
|