/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/ |
D | ClassTest.java | 104 Class<Container> container = Container.class; in testIsAnnotationPresent() local 106 assertIsAnnotationPresent(SingleAnnotation.class, container, false); in testIsAnnotationPresent() 107 assertIsAnnotationPresent(MultipleAnnotation.class, container, true); in testIsAnnotationPresent() 108 assertIsAnnotationPresent(MultipleAnnotationExplicitSingle.class, container, true); in testIsAnnotationPresent() 109 assertIsAnnotationPresent(MultipleAnnotationOddity.class, container, true); in testIsAnnotationPresent() 110 assertIsAnnotationPresent(InheritedNoNewAnnotation.class, container, false); in testIsAnnotationPresent() 111 assertIsAnnotationPresent(InheritedSingleWithNewSingleAnnotation.class, container, false); in testIsAnnotationPresent() 112 assertIsAnnotationPresent(InheritedSingleWithNewMultipleAnnotations.class, container, true); in testIsAnnotationPresent() 113 assertIsAnnotationPresent(InheritedMultipleWithNewSingleAnnotation.class, container, true); in testIsAnnotationPresent() 114 assertIsAnnotationPresent(InheritedMultipleWithNewMultipleAnnotations.class, container, in testIsAnnotationPresent() [all …]
|
D | PackageTest.java | 45 Class<Container> container = Container.class; in testDeclaredAnnotation() local 46 checkDeclaredAnnotation(NoAnnotation.class, container, null); in testDeclaredAnnotation() 47 checkDeclaredAnnotation(SingleAnnotation.class, container, null); in testDeclaredAnnotation() 48 checkDeclaredAnnotation(MultipleAnnotation.class, container, in testDeclaredAnnotation() 50 checkDeclaredAnnotation(MultipleAnnotationExplicitSingle.class, container, in testDeclaredAnnotation() 52 checkDeclaredAnnotation(MultipleAnnotationOddity.class, container, in testDeclaredAnnotation() 81 Class<Container> container = Container.class; in testGetDeclaredAnnotationsByType() local 82 assertGetDeclaredAnnotationsByType(NoAnnotation.class, container, EXPECT_EMPTY); in testGetDeclaredAnnotationsByType() 83 assertGetDeclaredAnnotationsByType(SingleAnnotation.class, container, EXPECT_EMPTY); in testGetDeclaredAnnotationsByType() 84 assertGetDeclaredAnnotationsByType(MultipleAnnotation.class, container, in testGetDeclaredAnnotationsByType() [all …]
|
D | FieldTest.java | 75 Class<? extends Annotation> container = Container.class; in testDeclaredAnnotation() local 76 checkDeclaredAnnotation(c, "noAnnotation", container, null); in testDeclaredAnnotation() 77 checkDeclaredAnnotation(c, "multipleAnnotationOddity", container, in testDeclaredAnnotation() 79 checkDeclaredAnnotation(c, "multipleAnnotationExplicitSingle", container, in testDeclaredAnnotation() 81 checkDeclaredAnnotation(c, "multipleAnnotation", container, in testDeclaredAnnotation() 83 checkDeclaredAnnotation(c, "singleAnnotation", container, null); in testDeclaredAnnotation() 111 Class<? extends Annotation> container = Container.class; in testGetDeclaredAnnotationsByType() local 112 assertGetDeclaredAnnotationsByType(c, container, "noAnnotation", EXPECT_EMPTY); in testGetDeclaredAnnotationsByType() 113 assertGetDeclaredAnnotationsByType(c, container, "multipleAnnotationOddity", in testGetDeclaredAnnotationsByType() 115 assertGetDeclaredAnnotationsByType(c, container, "multipleAnnotationExplicitSingle", in testGetDeclaredAnnotationsByType() [all …]
|
D | MethodTest.java | 75 Class<? extends Annotation> container = Container.class; in testDeclaredAnnotation() local 76 checkDeclaredAnnotation(c, "noAnnotation", container, null); in testDeclaredAnnotation() 77 checkDeclaredAnnotation(c, "multipleAnnotationOddity", container, in testDeclaredAnnotation() 79 checkDeclaredAnnotation(c, "multipleAnnotationExplicitSingle", container, in testDeclaredAnnotation() 81 checkDeclaredAnnotation(c, "multipleAnnotation", container, in testDeclaredAnnotation() 83 checkDeclaredAnnotation(c, "singleAnnotation", container, null); in testDeclaredAnnotation() 111 Class<? extends Annotation> container = Container.class; in testGetDeclaredAnnotationsByType() local 112 assertGetDeclaredAnnotationsByType(c, container, "noAnnotation", EXPECT_EMPTY); in testGetDeclaredAnnotationsByType() 113 assertGetDeclaredAnnotationsByType(c, container, "multipleAnnotationOddity", in testGetDeclaredAnnotationsByType() 115 assertGetDeclaredAnnotationsByType(c, container, "multipleAnnotationExplicitSingle", in testGetDeclaredAnnotationsByType() [all …]
|
D | ConstructorTest.java | 76 Class<? extends Annotation> container = Container.class; in testDeclaredAnnotation() local 77 checkDeclaredAnnotation(c, 4, container, null); in testDeclaredAnnotation() 78 checkDeclaredAnnotation(c, 3, container, "@Container({@Repeated(2), @Repeated(3)})"); in testDeclaredAnnotation() 79 checkDeclaredAnnotation(c, 2, container, "@Container({@Repeated(1)})"); in testDeclaredAnnotation() 80 checkDeclaredAnnotation(c, 1, container, "@Container({@Repeated(1), @Repeated(2)})"); in testDeclaredAnnotation() 81 checkDeclaredAnnotation(c, 0, container, null); in testDeclaredAnnotation() 108 Class<? extends Annotation> container = Container.class; in testGetDeclaredAnnotationsByType() local 109 assertGetDeclaredAnnotationsByType(c, 4, container, EXPECT_EMPTY); in testGetDeclaredAnnotationsByType() 110 assertGetDeclaredAnnotationsByType(c, 3, container, in testGetDeclaredAnnotationsByType() 112 assertGetDeclaredAnnotationsByType(c, 2, container, "@Container({@Repeated(1)})"); in testGetDeclaredAnnotationsByType() [all …]
|
D | AnnotatedElementParameterTest.java | 182 Class<? extends Annotation> container = Container.class; in testMethodDeclaredAnnotation_repeated() local 185 container, null); in testMethodDeclaredAnnotation_repeated() local 188 container, "@Container({@Repeated(2), @Repeated(3)})"); in testMethodDeclaredAnnotation_repeated() local 191 container, "@Container({@Repeated(1)})"); in testMethodDeclaredAnnotation_repeated() local 194 container, "@Container({@Repeated(1), @Repeated(2)})"); in testMethodDeclaredAnnotation_repeated() local 197 container, null); in testMethodDeclaredAnnotation_repeated() local 253 Class<? extends Annotation> container = Container.class; in testConstructorDeclaredAnnotation_repeated() local 256 container, null); in testConstructorDeclaredAnnotation_repeated() local 259 container, "@Container({@Repeated(2), @Repeated(3)})"); in testConstructorDeclaredAnnotation_repeated() local 262 container, "@Container({@Repeated(1)})"); in testConstructorDeclaredAnnotation_repeated() local [all …]
|
D | AnnotatedElementTestSupport.java | 304 Container container = (Container) annotation; in createArgumentsTestString() local 305 String[] repeatedValues = createAnnotationTestStrings(container.value()); in createArgumentsTestString()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | ReferencePipeline.java | 508 A container; 512 container = collector.supplier().get(); 514 forEach(u -> accumulator.accept(container, u)); 517 container = evaluate(ReduceOps.makeRef(collector)); 520 ? (R) container 521 : collector.finisher().apply(container);
|
D | Collectors.java | 908 A container = m.computeIfAbsent(key, k -> downstreamSupplier.get()); 909 downstreamAccumulator.accept(container, t);
|
/libcore/luni/src/test/java/libcore/android/system/ |
D | OsTest.java | 1126 private static void assertStartsWith(byte[] expectedContents, byte[] container) { in assertStartsWith() argument 1128 if (expectedContents[i] != container[i]) { in assertStartsWith()
|