/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FutureLikeCompletionHandler.java | 26 Object attachment; field in FutureLikeCompletionHandler 28 public void completed(V result, Object attachment) { in completed() argument 35 this.attachment = attachment; in completed() 40 public void failed(Throwable exc, Object attachment) { in failed() argument 47 this.attachment = attachment; in failed() 66 return attachment; in getAttachment()
|
D | AsynchronousFileChannelTest.java | 253 public String attachment; field in AsynchronousFileChannelTest.RecordingHandler 260 public void completed(Integer result, String attachment) { in completed() argument 262 this.attachment = attachment; in completed() 268 public void failed(Throwable exc, String attachment) { in failed() argument 270 this.attachment = attachment; in failed() 288 String attachment = "ATTACHMENT"; in testRead_CompletionListener() local 292 afc.read(buf, 0, attachment, handler); in testRead_CompletionListener() 301 afc.read(buf, 0, attachment, handler); in testRead_CompletionListener() 304 assertSame(attachment, handler.attachment); in testRead_CompletionListener() 313 attachment = "ATTACHMENT2"; in testRead_CompletionListener() [all …]
|
D | AsynchronousSocketChannelTest.java | 326 Object attachment = new Integer(1); in test_completionHandlerReadWrite() local 327 asc.connect(ss.getLocalSocketAddress(), attachment, connectCompletionHandler); in test_completionHandlerReadWrite() local 330 assertEquals(attachment, connectCompletionHandler.getAttachment()); in test_completionHandlerReadWrite() 343 asc.read(receivedData, attachment, readCompletionHandler); in test_completionHandlerReadWrite() 345 assertEquals(attachment, readCompletionHandler.getAttachment()); in test_completionHandlerReadWrite() 354 asc.write(sendData, attachment, writeCompletionHandler); in test_completionHandlerReadWrite() 356 assertEquals(attachment, writeCompletionHandler.getAttachment()); in test_completionHandlerReadWrite() 385 Object attachment = new Integer(1); in test_scatterReadWrite() local 386 asc.connect(ss.getLocalSocketAddress(), attachment, connectCompletionHandler); in test_scatterReadWrite() local 389 assertEquals(attachment, connectCompletionHandler.getAttachment()); in test_scatterReadWrite() [all …]
|
D | AsynchronousServerSocketChannelTest.java | 163 Integer attachment = new Integer(123); in test_completionHandlerAccept_attachment() local 164 assc.accept(attachment, acceptCompletionHandler); in test_completionHandlerAccept_attachment() 173 assertEquals(attachment, acceptCompletionHandler.getAttachment()); in test_completionHandlerAccept_attachment()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Invoker.java | 121 A attachment, in invokeUnchecked() argument 126 handler.completed(value, attachment); in invokeUnchecked() 128 handler.failed(exc, attachment); in invokeUnchecked() 155 A attachment, in invokeDirect() argument 160 Invoker.invokeUnchecked(handler, attachment, result, exc); in invokeDirect() 170 A attachment, in invoke() argument 188 invokeDirect(thisGroupAndInvokeCount, handler, attachment, result, exc); in invoke() 191 invokeIndirectly(channel, handler, attachment, result, exc); in invoke() 197 handler, attachment, result, exc); in invoke() 210 final A attachment, in invokeIndirectly() argument [all …]
|
D | PendingFuture.java | 43 private final A attachment; field in PendingFuture 61 A attachment, in PendingFuture() argument 66 this.attachment = attachment; in PendingFuture() 72 A attachment) in PendingFuture() argument 76 this.attachment = attachment; in PendingFuture() 95 A attachment() { in attachment() method in PendingFuture 96 return attachment; in attachment()
|
D | AsynchronousFileChannelImpl.java | 109 A attachment, in implLock() argument 125 A attachment, in lock() argument 130 implLock(position, size, shared, attachment, handler); in lock() 213 A attachment, in implRead() argument 224 A attachment, in read() argument 229 implRead(dst, position, attachment, handler); in read() 234 A attachment, in implWrite() argument 246 A attachment, in write() argument 251 implWrite(src, position, attachment, handler); in write()
|
D | SimpleAsynchronousFileChannelImpl.java | 176 final A attachment, in implLock() argument 190 Invoker.invokeIndirectly(handler, attachment, null, exc, executor); in implLock() 225 Invoker.invokeUnchecked(handler, attachment, fli, exc); in implLock() 290 final A attachment, in implRead() argument 305 Invoker.invokeIndirectly(handler, attachment, 0, exc, executor); in implRead() 335 Invoker.invokeUnchecked(handler, attachment, n, exc); in implRead() 346 final A attachment, in implWrite() argument 359 Invoker.invokeIndirectly(handler, attachment, 0, exc, executor); in implWrite() 389 Invoker.invokeUnchecked(handler, attachment, n, exc); in implWrite()
|
D | AsynchronousSocketChannelImpl.java | 194 A attachment, in implConnect() argument 204 A attachment, in connect() argument 209 implConnect(remote, attachment, handler); in connect() 220 A attachment, in implRead() argument 290 A attachment, in read() argument 297 read(false, dst, null, timeout, unit, attachment, handler); in read() 306 A attachment, in read() argument 318 read(true, null, bufs, timeout, unit, attachment, handler); in read() 329 A attachment, in implWrite() argument 394 A attachment, in write() argument [all …]
|
D | UnixAsynchronousSocketChannelImpl.java | 312 A attachment, in implConnect() argument 320 Invoker.invoke(this, handler, attachment, null, e); in implConnect() 360 this.connectAttachment = attachment; in implConnect() 387 Invoker.invoke(this, handler, attachment, null, e); in implConnect() 500 A attachment, in implRead() argument 549 this.readAttachment = attachment; in implRead() 577 Invoker.invokeDirect(myGroupAndInvokeCount, handler, attachment, (V)result, exc); in implRead() 579 Invoker.invokeIndirectly(this, handler, attachment, (V)result, exc); in implRead() 695 A attachment, in implWrite() argument 732 this.writeAttachment = attachment; in implWrite() [all …]
|
D | DirectBuffer.java | 35 public Object attachment(); in attachment() method
|
D | AsynchronousServerSocketChannelImpl.java | 118 implAccept(Object attachment, in implAccept() argument 129 public final <A> void accept(A attachment, in accept() argument 134 implAccept(attachment, (CompletionHandler<AsynchronousSocketChannel,Object>)handler); in accept()
|
D | SelectorImpl.java | 125 Object attachment) in register() argument 130 k.attach(attachment); in register()
|
/libcore/ojluni/src/main/java/java/nio/channels/ |
D | AsynchronousSocketChannel.java | 325 A attachment, in connect() argument 404 A attachment, in read() argument 417 A attachment, in read() argument 420 read(dst, 0L, TimeUnit.MILLISECONDS, attachment, handler); in read() 514 A attachment, in read() argument 561 A attachment, in write() argument 573 A attachment, in write() argument 577 write(src, 0L, TimeUnit.MILLISECONDS, attachment, handler); in write() 665 A attachment, in write() argument
|
D | AsynchronousFileChannel.java | 460 A attachment, in lock() argument 491 public final <A> void lock(A attachment, in lock() argument 494 lock(0L, Long.MAX_VALUE, false, attachment, handler); in lock() 678 A attachment, in read() argument 744 A attachment, in write() argument
|
D | SelectionKey.java | 366 private volatile Object attachment = null; field in SelectionKey 397 public final Object attachment() { in attachment() method in SelectionKey 398 return attachment; in attachment()
|
D | CompletionHandler.java | 55 void completed(V result, A attachment); in completed() argument 65 void failed(Throwable exc, A attachment); in failed() argument
|
D | AsynchronousByteChannel.java | 109 A attachment, in read() argument 188 A attachment, in write() argument
|
D | AsynchronousServerSocketChannel.java | 285 public abstract <A> void accept(A attachment, in accept() argument
|
/libcore/ojluni/annotations/mmodule/sun/nio/ch/ |
D | DirectBuffer.annotated.java | 36 public java.lang.Object attachment(); in attachment() method
|
/libcore/ojluni/annotations/hiddenapi/sun/nio/ch/ |
D | DirectBuffer.java | 36 public java.lang.Object attachment(); in attachment() method
|
D | SelectorImpl.java | 79 java.lang.Object attachment) { in register() argument
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SelectionKeyTest.java | 117 assertNull(mockSelectionKey.attachment()); in test_attachment() 120 assertSame(o, mockSelectionKey.attachment()); in test_attachment()
|
/libcore/ojluni/annotations/mmodule/java/nio/ |
D | DirectByteBuffer.annotated.java | 38 public final java.lang.Object attachment() { throw new RuntimeException("Stub!"); } in attachment() method in DirectByteBuffer
|
/libcore/ojluni/annotations/hiddenapi/java/nio/ |
D | DirectByteBuffer.java | 78 public final java.lang.Object attachment() { in attachment() method in DirectByteBuffer
|