Home
last modified time | relevance | path

Searched refs:A (Results 1 – 25 of 162) sorted by relevance

1234567

/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousSocketChannel.java329 public abstract <A> void connect(SocketAddress remote, in connect()
330 A attachment, in connect()
331 CompletionHandler<Void,? super A> handler); in connect()
406 public abstract <A> void read(ByteBuffer dst, in read()
409 A attachment, in read()
410 CompletionHandler<Integer,? super A> handler); in read()
421 public final <A> void read(ByteBuffer dst, in read()
422 A attachment, in read()
423 CompletionHandler<Integer,? super A> handler) in read()
514 public abstract <A> void read(ByteBuffer[] dsts, in read()
[all …]
DAsynchronousFileChannel.java467 public abstract <A> void lock(long position, in lock()
470 A attachment, in lock()
471 CompletionHandler<FileLock,? super A> handler); in lock()
501 public final <A> void lock(A attachment, in lock()
502 CompletionHandler<FileLock,? super A> handler) in lock()
686 public abstract <A> void read(ByteBuffer dst, in read()
688 A attachment, in read()
689 CompletionHandler<Integer,? super A> handler); in read()
752 public abstract <A> void write(ByteBuffer src, in write()
754 A attachment, in write()
[all …]
DAsynchronousByteChannel.java108 <A> void read(ByteBuffer dst, in read()
109 A attachment, in read()
110 CompletionHandler<Integer,? super A> handler); in read()
187 <A> void write(ByteBuffer src, in write()
188 A attachment, in write()
189 CompletionHandler<Integer,? super A> handler); in write()
DCompletionHandler.java45 public interface CompletionHandler<V,A> {
55 void completed(V result, A attachment); in completed()
65 void failed(Throwable exc, A attachment); in failed()
/libcore/ojluni/src/main/java/sun/nio/ch/
DInvoker.java120 static <V,A> void invokeUnchecked(CompletionHandler<V,? super A> handler, in invokeUnchecked()
121 A attachment, in invokeUnchecked()
153 static <V,A> void invokeDirect(GroupAndInvokeCount myGroupAndInvokeCount, in invokeDirect()
154 CompletionHandler<V,? super A> handler, in invokeDirect()
155 A attachment, in invokeDirect()
168 static <V,A> void invoke(AsynchronousChannel channel, in invoke()
169 CompletionHandler<V,? super A> handler, in invoke()
170 A attachment, in invoke()
208 static <V,A> void invokeIndirectly(AsynchronousChannel channel, in invokeIndirectly()
209 final CompletionHandler<V,? super A> handler, in invokeIndirectly()
[all …]
DAsynchronousFileChannelImpl.java106 abstract <A> Future<FileLock> implLock(long position, in implLock()
109 A attachment, in implLock()
110 CompletionHandler<FileLock,? super A> handler); in implLock()
122 public final <A> void lock(long position, in lock()
125 A attachment, in lock()
126 CompletionHandler<FileLock,? super A> handler) in lock()
211 abstract <A> Future<Integer> implRead(ByteBuffer dst, in implRead()
213 A attachment, in implRead()
214 CompletionHandler<Integer,? super A> handler); in implRead()
222 public final <A> void read(ByteBuffer dst, in read()
[all …]
DAsynchronousSocketChannelImpl.java193 abstract <A> Future<Void> implConnect(SocketAddress remote, in implConnect()
194 A attachment, in implConnect()
195 CompletionHandler<Void,? super A> handler); in implConnect()
203 public final <A> void connect(SocketAddress remote, in connect()
204 A attachment, in connect()
205 CompletionHandler<Void,? super A> handler) in connect()
215 abstract <V extends Number,A> Future<V> implRead(boolean isScatteringRead, in implRead()
220 A attachment, in implRead()
221 CompletionHandler<V,? super A> handler); in implRead()
224 private <V extends Number,A> Future<V> read(boolean isScatteringRead, in read()
[all …]
DPendingFuture.java37 final class PendingFuture<V,A> implements Future<V> {
42 private final CompletionHandler<V,? super A> handler;
43 private final A attachment;
60 CompletionHandler<V,? super A> handler, in PendingFuture()
61 A attachment, in PendingFuture()
71 CompletionHandler<V,? super A> handler, in PendingFuture()
72 A attachment) in PendingFuture()
91 CompletionHandler<V,? super A> handler() { in handler()
95 A attachment() { in attachment()
DSimpleAsynchronousFileChannelImpl.java173 <A> Future<FileLock> implLock(final long position, in implLock()
176 final A attachment, in implLock()
177 final CompletionHandler<FileLock,? super A> handler) in implLock()
194 final PendingFuture<FileLock,A> result = (handler == null) ? in implLock()
195 new PendingFuture<FileLock,A>(this) : null; in implLock()
288 <A> Future<Integer> implRead(final ByteBuffer dst, in implRead()
290 final A attachment, in implRead()
291 final CompletionHandler<Integer,? super A> handler) in implRead()
309 final PendingFuture<Integer,A> result = (handler == null) ? in implRead()
310 new PendingFuture<Integer,A>(this) : null; in implRead()
[all …]
/libcore/luni/src/test/java/libcore/libcore/reflect/
DParameterizedTypeRegressionTest.java39 class A<X> { class in ParameterizedTypeRegressionTest
100 Type actual = new ParameterizedClass<A<Integer>>() { in testNested1()
105 A.class, in testNested1()
116 Type actual = new ParameterizedClass<A<Integer>.B<Float>>() { in testNested2()
122 A.class, in testNested2()
124 A.B.class, in testNested2()
136 Type actual = new ParameterizedClass<A<Integer>.B<Float>.C1<String>>() { in testNested3()
143 A.class, in testNested3()
145 A.B.class, in testNested3()
147 A.B.C1.class, in testNested3()
[all …]
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DCollectorExample.java65 <T, A, R> void testSnippet1(Collector<T, A, R> collector, T t1, T t2) { in testSnippet1() argument
67 Supplier<A> supplier = collector.supplier(); in testSnippet1()
68 BiConsumer<A, T> accumulator = collector.accumulator(); in testSnippet1()
69 BinaryOperator<A> combiner = collector.combiner(); in testSnippet1()
70 Function<A, R> finisher = collector.finisher(); in testSnippet1()
73 A a1 = supplier.get(); in testSnippet1()
78 A a2 = supplier.get(); in testSnippet1()
80 A a3 = supplier.get(); in testSnippet1()
91 <T, A, R> void testSnippet3(Collector<T, A, R> collector, Collection<T> data) { in testSnippet3() argument
92 A container = collector.supplier().get(); in testSnippet3()
/libcore/ojluni/src/main/java/java/util/stream/
DCollector.java201 public interface Collector<T, A, R> {
207 Supplier<A> supplier(); in supplier()
214 BiConsumer<A, T> accumulator(); in accumulator()
224 BinaryOperator<A> combiner(); in combiner()
237 Function<A, R> finisher(); in finisher()
295 public static<T, A, R> Collector<T, A, R> of(Supplier<A> supplier, in of()
296 BiConsumer<A, T> accumulator, in of() argument
297 BinaryOperator<A> combiner, in of()
298 Function<A, R> finisher, in of() argument
DCollectors.java197 static class CollectorImpl<T, A, R> implements Collector<T, A, R> {
198 private final Supplier<A> supplier;
199 private final BiConsumer<A, T> accumulator;
200 private final BinaryOperator<A> combiner;
201 private final Function<A, R> finisher;
204 CollectorImpl(Supplier<A> supplier,
205 BiConsumer<A, T> accumulator,
206 BinaryOperator<A> combiner,
207 Function<A,R> finisher,
216 CollectorImpl(Supplier<A> supplier,
[all …]
/libcore/ojluni/src/test/java/io/Serializable/records/
DStreamRefTest.java52 record A (int x) implements Serializable {
53 public A(int x) { in A() method
61 final A a ;
62 B(A a) { this.a = a; } in B()
77 var a = new A(6); in basicRef()
84 A a1 = (A)deserializeOne(bytes); in basicRef()
98 var a = new A(7); in reverseBasicRef()
108 A a1 = (A)deserializeOne(bytes); in reverseBasicRef()
120 var a = new A(3); in basicRefWithInvalidA()
143 var a = new A(3); in reverseBasicRefWithInvalidA()
[all …]
/libcore/luni/src/test/java/libcore/java/lang/reflect/
DClassLoaderReflectionTest.java66 assertEquals(aClass.getName(), A.class.getName()); in testLoadOneClassInTwoClassLoadersSimultaneously()
67 assertNotSame(aClass, A.class); in testLoadOneClassInTwoClassLoadersSimultaneously()
128 assertFalse(A.class.equals(aClass)); in testClassesOfDifferentClassLoadersAreNotEqual()
132 Constructor<?> c1 = A.class.getDeclaredConstructor(); in testConstructorsOfDifferentClassLoadersAreNotEqual()
149 static class A {} class in ClassLoaderReflectionTest
153 static class C<K extends String, V extends A> {}
155 class E implements Callable<A>, D<A> {
156 public A call() throws Exception { in call()
162 List<A> listA;
163 F(B<String> parameter, List<A> anotherParameter) {} in F()
[all …]
DReflectionTest.java83 assertEquals(getClass().getName() + "$A", A.class.getName()); in testClassGetName()
94 assertEquals(getClass().getName() + ".A", A.class.getCanonicalName()); in testClassGetCanonicalName()
132 Constructor constructorOne = C.class.getDeclaredConstructor(A.class); in testConstructorToString()
146 Method methodOne = C.class.getDeclaredMethod("methodOne", A.class, C.class); in testMethodToString()
160 Method methodThree = C.class.getDeclaredMethod("methodThree", A.class, Set.class); in testMethodToString()
310 A methodLevelAnonymous = new A() {}; in testIsLocalClass()
314 assertFalse(A.class.isLocalClass()); in testIsLocalClass()
325 A methodLevelAnonymous = new A() {}; in testIsAnonymousClass()
329 assertFalse(A.class.isAnonymousClass()); in testIsAnonymousClass()
362 static class A {} class in ReflectionTest
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/
DSerializationTestClass.java46 interface A extends java.io.Serializable { interface in SerializationTestClass
52 interface C extends A {
58 public static class TestInterfacesA implements A {
61 public static class TestInterfacesAB implements A, B {
64 public static class TestInterfacesBA implements B, A {
70 public static class TestInterfacesCA implements C, A {
73 public static class TestInterfacesABC implements A, B, C {
76 public static class TestInterfacesACB implements A, C, B {
79 public static class TestInterfacesBAC implements B, A, C {
82 public static class TestInterfacesBCA implements B, C, A {
[all …]
DObjectInputStream2Test.java82 assertTrue("should construct super", A.list.contains(b)); in test_readObject_Hierarchy()
84 assertEquals("super field A.s", A.DEFAULT, ((A) b).s); in test_readObject_Hierarchy()
127 static class A { class in ObjectInputStream2Test
128 static final ArrayList<A> list = new ArrayList<A>();
132 public A() { in A() method in ObjectInputStream2Test.A
138 static class B extends A implements Serializable {
140 static final ArrayList<A> list = new ArrayList<A>();
/libcore/benchmarks/src_androidx/libcore/benchmark/
DMethodHandlesTest.java44 .findVirtual(A.class, "identity", MethodType.methodType(int.class, int.class));
46 .findVirtual(A.class, "constant", MethodType.methodType(int.class));
52 private final A a = new A();
87 static class A { class in MethodHandlesTest
DClassTest.java37 A.class.getSimpleName(); in testGetSimpleName()
45 A.class.isAnonymousClass(); in testIsAnonymousClass()
50 class A {} class
/libcore/luni/src/test/java/libcore/java/lang/
DOldAndroidInstanceofTest.java23 protected A mA;
34 mA = new A(); in setUp()
44 A a = mA; in testNoInterface()
114 private static class A { class in OldAndroidInstanceofTest
117 …private static class ChildOfAOne extends A implements InterfaceOne, InterfaceTwo, InterfaceThree, …
/libcore/ojluni/annotations/flagged_api/java/util/stream/
DCollectors.annotated.java49 … U, A, R> java.util.stream.Collector<T,?,R> mapping(java.util.function.Function<? super T,? extend… in mapping() argument
51A, R> java.util.stream.Collector<T,?,R> flatMapping(java.util.function.Function<? super T,? extend… in flatMapping() argument
53 …ic <T, A, R> java.util.stream.Collector<T,?,R> filtering(java.util.function.Predicate<? super T> p… in filtering() argument
55 public static <T, A, R, RR> java.util.stream.Collector<T,A,RR> collectingAndThen(java.util.stream.C… in collectingAndThen() argument
83A, D> java.util.stream.Collector<T,?,java.util.Map<K,D>> groupingBy(java.util.function.Function<? … in groupingBy() argument
85A, M extends java.util.Map<K, D>> java.util.stream.Collector<T,?,M> groupingBy(java.util.function.… in groupingBy() argument
89A, D> java.util.stream.Collector<T,?,java.util.concurrent.ConcurrentMap<K,D>> groupingByConcurrent… in groupingByConcurrent() argument
91A, D, M extends java.util.concurrent.ConcurrentMap<K, D>> java.util.stream.Collector<T,?,M> groupi… in groupingByConcurrent() argument
95A> java.util.stream.Collector<T,?,java.util.Map<java.lang.Boolean,D>> partitioningBy(java.util.fun… in partitioningBy() argument
/libcore/ojluni/src/test/java/util/Arrays/
DTimSortStackSize.java88 int A = B + MIN + 1; in genData() local
91 int eps = build(A, B, chunks); in genData()
92 B = B + A + 1; in genData()
93 A = B + eps + 1; in genData()
96 chunks.addFirst(A); in genData()
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/accessibility/
DTestFieldLookupAccessibility.java160 List.of(pkg.A.class, pkg.A.lookup(), pkg.A.inaccessibleFields()), in lookupProvider()
161 List.of(pkg.A.class, pkg.A.lookup(), pkg.A.inaccessibleFields()), in lookupProvider()
162 List.of(pkg.A.class, B_extends_A.lookup(), B_extends_A.inaccessibleFields()), in lookupProvider()
163 List.of(pkg.A.class, pkg.C.lookup(), pkg.C.inaccessibleFields()), in lookupProvider()
166 …List.of(pkg.A.class, pkg.subpkg.B_extends_A.lookup(), pkg.subpkg.B_extends_A.inaccessibleFields()), in lookupProvider()
167 List.of(pkg.A.class, pkg.subpkg.C.lookup(), pkg.subpkg.C.inaccessibleFields()) in lookupProvider()
/libcore/ojluni/src/main/java/java/lang/
DPackage.java402 public <A extends Annotation> A getAnnotation(Class<A> annotationClass) { in getAnnotation()
421 public <A extends Annotation> A[] getAnnotationsByType(Class<A> annotationClass) { in getAnnotationsByType()
437 public <A extends Annotation> A getDeclaredAnnotation(Class<A> annotationClass) { in getDeclaredAnnotation()
446 public <A extends Annotation> A[] getDeclaredAnnotationsByType(Class<A> annotationClass) { in getDeclaredAnnotationsByType()

1234567