/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/luni/src/main/java/libcore/io/ |
D | BlockGuardOs.java | 321 …@Override public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) t… in readv() argument 323 return super.readv(fd, buffers, offsets, byteCounts); in readv() 420 …@Override public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) … in writev() argument 422 return super.writev(fd, buffers, offsets, byteCounts); in writev()
|
D | ForwardingOs.java | 181 …ptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOEx… in readv() argument 242 …tor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOExc… in writev() argument
|
D | Os.java | 154 …public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws Errn… in readv() argument 206 …public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws Err… in writev() argument
|
D | Linux.java | 195 …public native int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) thro… in readv() argument 297 …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 | 485 … fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOExcept… in readv() argument 735 …fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOExcepti… in writev() argument
|
/libcore/luni/src/main/native/ |
D | libcore_io_Linux.cpp | 2108 static jint Linux_readv(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offse… in Linux_readv() argument 2109 IoVec<ScopedBytesRW> ioVec(env, env->GetArrayLength(buffers)); in Linux_readv() 2110 if (!ioVec.init(buffers, offsets, byteCounts)) { in Linux_readv() 2569 static jint Linux_writev(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offs… in Linux_writev() argument 2570 IoVec<ScopedBytesRO> ioVec(env, env->GetArrayLength(buffers)); in Linux_writev() 2571 if (!ioVec.init(buffers, offsets, byteCounts)) { in Linux_writev()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/ |
D | FileChannelTest.java | 1419 ByteBuffer[] buffers = new ByteBuffer[2]; in test_read$LByteBuffer_mock() local 1420 mockChannel.read(buffers); in test_read$LByteBuffer_mock()
|