/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | NativeBuffers.java | 58 NativeBuffer[] buffers = threadLocal.get(); in getNativeBufferFromCache() local 59 if (buffers != null) { in getNativeBufferFromCache() 61 NativeBuffer buffer = buffers[i]; in getNativeBufferFromCache() 63 buffers[i] = null; in getNativeBufferFromCache() 92 NativeBuffer[] buffers = threadLocal.get(); in releaseNativeBuffer() local 93 if (buffers == null) { in releaseNativeBuffer() 94 buffers = new NativeBuffer[TEMP_BUF_POOL_SIZE]; in releaseNativeBuffer() 95 buffers[0] = buffer; in releaseNativeBuffer() 96 threadLocal.set(buffers); in releaseNativeBuffer() 101 if (buffers[i] == null) { in releaseNativeBuffer() [all …]
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | Util.java | 109 private ByteBuffer[] buffers; field in Util.BufferCache 122 buffers = new ByteBuffer[TEMP_BUF_POOL_SIZE]; in BufferCache() 136 ByteBuffer[] buffers = this.buffers; in get() 139 ByteBuffer buf = buffers[start]; in get() 144 ByteBuffer bb = buffers[i]; in get() 155 buffers[i] = buffers[start]; in get() 159 buffers[start] = null; in get() 177 buffers[start] = buf; in offerFirst() 191 buffers[next] = buf; in offerLast() 203 ByteBuffer buf = buffers[start]; in removeFirst() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
D | FileChannelTest.java | 95 … ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) }; in test_readv() local 96 assertEquals(8, fc.read(buffers)); in test_readv() 98 assertEquals(8, buffers[0].limit() + buffers[1].limit()); in test_readv() 100 buffers[0].flip(); in test_readv() 101 buffers[0].get(bytes); in test_readv() 103 buffers[1].flip(); in test_readv() 104 buffers[1].get(bytes); in test_readv() 112 … ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) }; in test_writev() local 113 buffers[0].put("abcd".getBytes("US-ASCII")).flip(); in test_writev() 114 buffers[1].put("ABCD".getBytes("US-ASCII")).flip(); in test_writev() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | SocketChannelTest.java | 2919 ByteBuffer[] buffers = new ByteBuffer[3]; in test_write$LByteBuffer2() local 2920 buffers[0] = ByteBuffer.wrap(data, 0, 6); in test_write$LByteBuffer2() 2921 buffers[1] = ByteBuffer.wrap(data, 6, data.length - 6); in test_write$LByteBuffer2() 2922 buffers[2] = ByteBuffer.wrap(data); in test_write$LByteBuffer2() 2925 client.write(buffers); in test_write$LByteBuffer2() 2951 ByteBuffer[] buffers = new ByteBuffer[3]; in test_write$LByteBuffer_buffers() local 2952 buffers[0] = ByteBuffer.wrap(data, 0, 2); in test_write$LByteBuffer_buffers() 2953 assertFalse(buffers[0].isDirect()); in test_write$LByteBuffer_buffers() 2954 assertTrue(buffers[0].hasArray()); in test_write$LByteBuffer_buffers() 2956 buffers[1] = ByteBuffer.wrap(data, 2, 4).asReadOnlyBuffer(); in test_write$LByteBuffer_buffers() [all …]
|
D | FileChannelTest.java | 1419 ByteBuffer[] buffers = new ByteBuffer[2]; in test_read$LByteBuffer_mock() local 1420 mockChannel.read(buffers); in test_read$LByteBuffer_mock()
|
/libcore/luni/src/main/java/libcore/io/ |
D | BlockGuardOs.java | 323 …@Override public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) t… in readv() argument 325 return super.readv(fd, buffers, offsets, byteCounts); in readv() 422 …@Override public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) … in writev() argument 424 return super.writev(fd, buffers, offsets, byteCounts); in writev()
|
D | ForwardingOs.java | 180 …ptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOEx… in readv() argument 241 …tor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOExc… in writev() argument
|
D | Os.java | 153 …public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws Errn… in readv() argument 205 …public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws Err… in writev() argument
|
D | Linux.java | 194 …public native int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) thro… in readv() argument 296 …public native int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) thr… in writev() argument
|
/libcore/luni/src/main/java/android/system/ |
D | Os.java | 488 … fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOExcept… in readv() argument 738 …fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOExcepti… in writev() argument
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 2111 static jint Linux_readv(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offse… in Linux_readv() argument 2112 IoVec<ScopedBytesRW> ioVec(env, env->GetArrayLength(buffers)); in Linux_readv() 2113 if (!ioVec.init(buffers, offsets, byteCounts)) { in Linux_readv() 2572 static jint Linux_writev(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offs… in Linux_writev() argument 2573 IoVec<ScopedBytesRO> ioVec(env, env->GetArrayLength(buffers)); in Linux_writev() 2574 if (!ioVec.init(buffers, offsets, byteCounts)) { in Linux_writev()
|