Home
last modified time | relevance | path

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

1234

/libcore/ojluni/src/main/java/java/nio/channels/
DAsynchronousSocketChannel.java324 public abstract <A> void connect(SocketAddress remote, in connect()
325 A attachment, in connect()
326 CompletionHandler<Void,? super A> handler); in connect()
401 public abstract <A> void read(ByteBuffer dst, in read()
404 A attachment, in read()
405 CompletionHandler<Integer,? super A> handler); in read()
416 public final <A> void read(ByteBuffer dst, in read()
417 A attachment, in read()
418 CompletionHandler<Integer,? super A> handler) in read()
509 public abstract <A> void read(ByteBuffer[] dsts, in read()
[all …]
DAsynchronousFileChannel.java457 public abstract <A> void lock(long position, in lock()
460 A attachment, in lock()
461 CompletionHandler<FileLock,? super A> handler); in lock()
491 public final <A> void lock(A attachment, in lock()
492 CompletionHandler<FileLock,? super A> handler) in lock()
676 public abstract <A> void read(ByteBuffer dst, in read()
678 A attachment, in read()
679 CompletionHandler<Integer,? super A> handler); in read()
742 public abstract <A> void write(ByteBuffer src, in write()
744 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()
DAsynchronousServerSocketChannel.java285 public abstract <A> void accept(A attachment, in accept()
286 CompletionHandler<AsynchronousSocketChannel,? super A> handler); in accept()
/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 …]
DUnixAsynchronousSocketChannelImpl.java311 <A> Future<Void> implConnect(SocketAddress remote, in implConnect()
312 A attachment, in implConnect()
313 CompletionHandler<Void,? super A> handler) in implConnect()
353 PendingFuture<Void,A> result = null; in implConnect()
356 result = new PendingFuture<Void,A>(this, OpType.CONNECT); in implConnect()
495 <V extends Number,A> Future<V> implRead(boolean isScatteringRead, in implRead()
500 A attachment, in implRead()
501 CompletionHandler<V,? super A> handler) in implRead()
537 PendingFuture<V,A> result = null; in implRead()
544 result = new PendingFuture<V,A>(this, OpType.READ); in implRead()
[all …]
/libcore/ojluni/src/main/java/java/util/stream/
DCollectors.java147 static class CollectorImpl<T, A, R> implements Collector<T, A, R> {
148 private final Supplier<A> supplier;
149 private final BiConsumer<A, T> accumulator;
150 private final BinaryOperator<A> combiner;
151 private final Function<A, R> finisher;
154 CollectorImpl(Supplier<A> supplier, in CollectorImpl()
155 BiConsumer<A, T> accumulator, in CollectorImpl() argument
156 BinaryOperator<A> combiner, in CollectorImpl()
157 Function<A,R> finisher, in CollectorImpl() argument
166 CollectorImpl(Supplier<A> supplier, in CollectorImpl()
[all …]
DCollector.java197 public interface Collector<T, A, R> {
203 Supplier<A> supplier(); in supplier()
210 BiConsumer<A, T> accumulator(); in accumulator()
220 BinaryOperator<A> combiner(); in combiner()
233 Function<A, R> finisher(); in finisher()
291 public static<T, A, R> Collector<T, A, R> of(Supplier<A> supplier, in of()
292 BiConsumer<A, T> accumulator, in of() argument
293 BinaryOperator<A> combiner, in of()
294 Function<A, R> finisher, in of() argument
/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.java81 assertTrue("should construct super", A.list.contains(b)); in test_readObject_Hierarchy()
83 assertEquals("super field A.s", A.DEFAULT, ((A) b).s); in test_readObject_Hierarchy()
126 static class A { class in ObjectInputStream2Test
127 static final ArrayList<A> list = new ArrayList<A>();
131 public A() { in A() method in ObjectInputStream2Test.A
137 static class B extends A implements Serializable {
139 static final ArrayList<A> list = new ArrayList<A>();
/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/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()
/libcore/ojluni/src/main/java/sun/nio/fs/
DLinuxFileSystemProvider.java99 public <A extends BasicFileAttributes> A readAttributes(Path file, in readAttributes()
100 Class<A> type, in readAttributes()
/libcore/ojluni/annotations/mmodule/java/lang/
DClass.annotated.java173 public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationCla… in getAnnotation()
177 public <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType(java.lang.Class<A> anno… in getAnnotationsByType()
181 public native <A extends java.lang.annotation.Annotation> A getDeclaredAnnotation(java.lang.Class<A in getDeclaredAnnotation()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/reflect/
DParameterizedTypeTest.java28 static class A<T>{} class in ParameterizedTypeTest
29 static class B extends A<String>{}
36 String aName = A.class.getName(); in testStringParameterizedSuperClass()
42 assertEquals(A.class, parameterizedType.getRawType()); in testStringParameterizedSuperClass()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/support/
DA.java20 public class A implements I { class
23 public A() { in A() method in A
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/support/
DA.java3 public class A implements I { class
6 public A() { in A() method in A
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DTestData.java59 default <A extends Collection<? super T>> A into(A target) { in into()
299 public <A extends Collection<? super Integer>> A into(A target) { in into()
324 public <A extends Collection<? super Long>> A into(A target) { in into()
349 public <A extends Collection<? super Double>> A into(A target) { in into()

1234