Home
last modified time | relevance | path

Searched refs:A (Results 1 – 25 of 155) 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 …]
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/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/main/java/java/util/stream/
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
DCollectors.java195 static class CollectorImpl<T, A, R> implements Collector<T, A, R> {
196 private final Supplier<A> supplier;
197 private final BiConsumer<A, T> accumulator;
198 private final BinaryOperator<A> combiner;
199 private final Function<A, R> finisher;
202 CollectorImpl(Supplier<A> supplier,
203 BiConsumer<A, T> accumulator,
204 BinaryOperator<A> combiner,
205 Function<A,R> finisher,
214 CollectorImpl(Supplier<A> supplier,
[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/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/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/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/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()
/libcore/ojluni/annotations/mmodule/java/lang/
DClass.annotated.java170 public <A extends java.lang.annotation.Annotation> A getAnnotation(java.lang.Class<A> annotationCla… in getAnnotation()
174 public <A extends java.lang.annotation.Annotation> A[] getAnnotationsByType(java.lang.Class<A> anno… in getAnnotationsByType()
178 public native <A extends java.lang.annotation.Annotation> A getDeclaredAnnotation(java.lang.Class<A in getDeclaredAnnotation()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DClass.annotated.java162 …core.util.Nullable public <A extends java.lang.annotation.Annotation> A getAnnotation(@libcore.uti… in getAnnotation()
166A extends java.lang.annotation.Annotation> @libcore.util.NonNull A @libcore.util.NonNull [] getAnn… in getAnnotationsByType()
168A extends java.lang.annotation.Annotation> @libcore.util.NonNull A @libcore.util.NonNull [] getDec… in getDeclaredAnnotationsByType()
172 …lic native <A extends java.lang.annotation.Annotation> @libcore.util.Nullable A getDeclaredAnnotat… in getDeclaredAnnotation()
/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/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()

1234567