/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
D | ExecutableParameterTest.java | 17 package libcore.java.lang.reflect.annotations; 27 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA; 28 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationB; 29 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationC; 30 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationD; 31 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container; 32 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated; 34 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY; 35 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.annotationsToTypes; 36 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertAnnotationsMa… [all …]
|
D | PackageTest.java | 17 package libcore.java.lang.reflect.annotations; 22 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container; 23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated; 24 import libcore.java.lang.reflect.annotations.multipleannotation.MultipleAnnotation; 25 import libcore.java.lang.reflect.annotations.multipleannotationexplicitsingle.MultipleAnnotationExp… 26 import libcore.java.lang.reflect.annotations.multipleannotationoddity.MultipleAnnotationOddity; 27 import libcore.java.lang.reflect.annotations.noannotation.NoAnnotation; 28 import libcore.java.lang.reflect.annotations.singleannotation.SingleAnnotation; 30 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY; 31 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn… [all …]
|
D | AnnotatedElementTestSupport.java | 17 package libcore.java.lang.reflect.annotations; 166 static Set<Class<? extends Annotation>> annotationsToTypes(Annotation[] annotations) { in annotationsToTypes() argument 168 for (Annotation annotation : annotations) { in annotationsToTypes() 228 Annotation[] annotations = annotatedElement.getDeclaredAnnotationsByType(annotationType); in assertGetDeclaredAnnotationsByType() local 229 assertAnnotationsMatch(annotations, expectedAnnotationStrings); in assertGetDeclaredAnnotationsByType() 240 Annotation[] annotations = annotatedElement.getAnnotationsByType(annotationType); in assertGetAnnotationsByType() local 241 assertAnnotationsMatch(annotations, expectedAnnotationStrings); in assertGetAnnotationsByType() 258 static void assertAnnotationsMatch(Annotation[] annotations, in assertAnnotationsMatch() argument 278 String[] actualAnnotationStrings = createAnnotationTestStrings(annotations); in assertAnnotationsMatch() 286 private static String[] createAnnotationTestStrings(Annotation[] annotations) { in createAnnotationTestStrings() argument [all …]
|
D | ConstructorTest.java | 17 package libcore.java.lang.reflect.annotations; 23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA; 24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationC; 25 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container; 26 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated; 28 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY; 29 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.checkAnnotatedEleme… 30 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn… 31 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertIsAnnotationP…
|
D | MethodTest.java | 17 package libcore.java.lang.reflect.annotations; 23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationB; 24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationC; 25 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container; 26 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated; 28 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY; 29 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.checkAnnotatedEleme… 30 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn… 31 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertIsAnnotationP…
|
D | FieldTest.java | 17 package libcore.java.lang.reflect.annotations; 23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA; 24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationD; 25 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container; 26 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated; 28 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY; 29 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.checkAnnotatedEleme… 30 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn… 31 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertIsAnnotationP…
|
D | ClassTest.java | 17 package libcore.java.lang.reflect.annotations; 22 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA; 23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationB; 24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container; 25 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated; 27 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY; 28 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.checkAnnotatedEleme… 29 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.checkAnnotatedEleme… 30 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn… 31 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertIsAnnotationP…
|
D | AnnotationsTest.java | 16 package libcore.java.lang.reflect.annotations; 21 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA; 22 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationB;
|
D | AnnotatedElementParameterTest.java | 17 package libcore.java.lang.reflect.annotations; 26 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationA; 27 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationB; 28 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationC; 29 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.AnnotationD; 30 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container; 31 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated; 33 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.EXPECT_EMPTY; 34 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertGetDeclaredAn… 35 import static libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.assertIsAnnotationP… [all …]
|
/libcore/ojluni/annotations/ |
D | README | 3 mechanism is used instead of adding the annotations to the main source 9 libcore/ojluni/annotations/sdk: 10 - Contains annotations to be included in the public SDK, for example 11 annotations specifying additional details about method contracts. 13 libcore/ojluni/annotations/sdk/nullability: 14 - Contains annotations to be included in the public SDK specifically 16 will cause the annotations to be validated for correctness and completeness. 19 …annotations/sdk/nullability/$(dirname ${FILE}) && cp out/soong/.intermediates/libcore/openjdk-sdk-… 20 3. Add nullability annotations to the new files. 25 libcore/ojluni/annotations/mmodule: [all …]
|
/libcore/luni/src/main/java/libcore/reflect/ |
D | AnnotatedElements.java | 48 Annotation[] annotations = element.getDeclaredAnnotations(); in getDirectOrIndirectAnnotationsByType() local 56 for (int i = 0; i < annotations.length; ++i) { in getDirectOrIndirectAnnotationsByType() 57 if (annotationClass.isInstance(annotations[i])) { in getDirectOrIndirectAnnotationsByType() 59 unfoldedAnnotations.add((T)annotations[i]); // Safe, guarded by above check. in getDirectOrIndirectAnnotationsByType() 61 repeatableAnnotationClass.isInstance(annotations[i])) { in getDirectOrIndirectAnnotationsByType() 63 insertAnnotationValues(annotations[i], annotationClass, unfoldedAnnotations); in getDirectOrIndirectAnnotationsByType()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/ |
D | AccessibleObjectTest.java | 157 Annotation[] annotations = ao.getAnnotations(); in test_getAnnotations() local 158 assertEquals(2, annotations.length); in test_getAnnotations() 161 ignoreOrder.add(annotations[0].annotationType()); in test_getAnnotations() 162 ignoreOrder.add(annotations[1].annotationType()); in test_getAnnotations() 172 Annotation[] annotations = ao.getDeclaredAnnotations(); in test_getDeclaredAnnotations() local 173 assertEquals(2, annotations.length); in test_getDeclaredAnnotations() 176 ignoreOrder.add(annotations[0].annotationType()); in test_getDeclaredAnnotations() 177 ignoreOrder.add(annotations[1].annotationType()); in test_getDeclaredAnnotations()
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/multipleannotationexplicitsingle/ |
D | package-info.java | 21 package libcore.java.lang.reflect.annotations.multipleannotationexplicitsingle; 23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container; 24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
|
D | MultipleAnnotationExplicitSingle.java | 17 package libcore.java.lang.reflect.annotations.multipleannotationexplicitsingle; 19 import libcore.java.lang.reflect.annotations.PackageTest;
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/multipleannotationoddity/ |
D | package-info.java | 22 package libcore.java.lang.reflect.annotations.multipleannotationoddity; 24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Container; 25 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
|
D | MultipleAnnotationOddity.java | 17 package libcore.java.lang.reflect.annotations.multipleannotationoddity; 19 import libcore.java.lang.reflect.annotations.PackageTest;
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/ |
D | MapTest.java | 33 import org.testng.annotations.AfterClass; 34 import org.testng.annotations.AfterMethod; 35 import org.testng.annotations.BeforeClass; 36 import org.testng.annotations.BeforeMethod; 37 import org.testng.annotations.Test;
|
/libcore/ |
D | nullability_annotated_classes.txt | 1 # The following classes have nullability annotations directly in their source 3 # with annotations in stub files under ojluni/annotations/sdk/nullability/
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/singleannotation/ |
D | SingleAnnotation.java | 17 package libcore.java.lang.reflect.annotations.singleannotation; 19 import libcore.java.lang.reflect.annotations.PackageTest;
|
D | package-info.java | 21 package libcore.java.lang.reflect.annotations.singleannotation; 23 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/noannotation/ |
D | NoAnnotation.java | 17 package libcore.java.lang.reflect.annotations.noannotation; 19 import libcore.java.lang.reflect.annotations.PackageTest;
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/multipleannotation/ |
D | MultipleAnnotation.java | 16 package libcore.java.lang.reflect.annotations.multipleannotation; 18 import libcore.java.lang.reflect.annotations.PackageTest;
|
D | package-info.java | 22 package libcore.java.lang.reflect.annotations.multipleannotation; 24 import libcore.java.lang.reflect.annotations.AnnotatedElementTestSupport.Repeated;
|
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
D | LoggingTestCase.java | 33 import org.testng.annotations.AfterMethod; 34 import org.testng.annotations.BeforeMethod; 35 import org.testng.annotations.Test;
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
D | LoggingTestCase.java | 33 import org.testng.annotations.AfterMethod; 34 import org.testng.annotations.BeforeMethod; 35 import org.testng.annotations.Test;
|