Home
last modified time | relevance | path

Searched refs:container (Results 1 – 10 of 10) sorted by relevance

/libcore/luni/src/test/java/libcore/java/lang/reflect/annotations/
DClassTest.java104 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 …]
DPackageTest.java45 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 …]
DFieldTest.java75 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 …]
DMethodTest.java75 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 …]
DConstructorTest.java76 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 …]
DAnnotatedElementParameterTest.java182 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 …]
DAnnotatedElementTestSupport.java304 Container container = (Container) annotation; in createArgumentsTestString() local
305 String[] repeatedValues = createAnnotationTestStrings(container.value()); in createArgumentsTestString()
/libcore/ojluni/src/main/java/java/util/stream/
DReferencePipeline.java508 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);
DCollectors.java908 A container = m.computeIfAbsent(key, k -> downstreamSupplier.get());
909 downstreamAccumulator.accept(container, t);
/libcore/luni/src/test/java/libcore/android/system/
DOsTest.java1126 private static void assertStartsWith(byte[] expectedContents, byte[] container) { in assertStartsWith() argument
1128 if (expectedContents[i] != container[i]) { in assertStartsWith()