Searched refs:buffers (Results 1 - 10 of 10) sorted by last modified time

/libcore/luni/src/main/native/
H A Dlibcore_io_Posix.cpp1521 static jint Posix_readv(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offsets, jintArray byteCounts) { argument
1522 IoVec<ScopedBytesRW> ioVec(env, env->GetArrayLength(buffers));
1523 if (!ioVec.init(buffers, offsets, byteCounts)) {
1952 static jint Posix_writev(JNIEnv* env, jobject, jobject javaFd, jobjectArray buffers, jintArray offsets, jintArray byteCounts) { argument
1953 IoVec<ScopedBytesRO> ioVec(env, env->GetArrayLength(buffers));
1954 if (!ioVec.init(buffers, offsets, byteCounts)) {
/libcore/luni/src/test/java/libcore/java/nio/channels/
H A DFileChannelTest.java73 // Check that both direct and non-direct buffers work.
75 ByteBuffer[] buffers = new ByteBuffer[] { ByteBuffer.allocateDirect(4), ByteBuffer.allocate(4) };
76 assertEquals(8, fc.read(buffers));
78 assertEquals(8, buffers[0].limit() + buffers[1].limit());
80 buffers[0].flip();
81 buffers[0].get(bytes);
83 buffers[1].flip();
84 buffers[1].get(bytes);
91 // Check that both direct and non-direct buffers wor
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DUtil.java48 // The number of temp buffers in our pool
51 // Per-thread cache of temporary direct buffers
62 * A simple cache of direct buffers.
65 // the array of buffers
66 private ByteBuffer[] buffers; field in class:Util.BufferCache
68 // the number of buffers in the cache
79 buffers = new ByteBuffer[TEMP_BUF_POOL_SIZE];
90 ByteBuffer[] buffers = this.buffers;
93 ByteBuffer buf = buffers[star
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DFileChannelTest.java1418 ByteBuffer[] buffers = new ByteBuffer[2];
1419 mockChannel.read(buffers);
H A DSocketChannelTest.java2917 // Test overlapping buffers
2919 ByteBuffer[] buffers = new ByteBuffer[3];
2920 buffers[0] = ByteBuffer.wrap(data, 0, 6);
2921 buffers[1] = ByteBuffer.wrap(data, 6, data.length - 6);
2922 buffers[2] = ByteBuffer.wrap(data);
2925 client.write(buffers);
2951 ByteBuffer[] buffers = new ByteBuffer[3];
2952 buffers[0] = ByteBuffer.wrap(data, 0, 2);
2953 assertFalse(buffers[0].isDirect());
2954 assertTrue(buffers[
[all...]
/libcore/luni/src/main/java/android/system/
H A DOs.java383 public static int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return Libcore.os.readv(fd, buffers, offsets, byteCounts); } argument
576 public static int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return Libcore.os.writev(fd, buffers, offsets, byteCounts); } argument
/libcore/luni/src/main/java/libcore/io/
H A DBlockGuardOs.java244 @Override public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { argument
246 return os.readv(fd, buffers, offsets, byteCounts);
322 @Override public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { argument
324 return os.writev(fd, buffers, offsets, byteCounts);
H A DForwardingOs.java132 public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return os.readv(fd, buffers, offsets, byteCounts); } argument
178 public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException { return os.writev(fd, buffers, offsets, byteCounts); } argument
H A DOs.java125 public int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException; argument
171 public int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException; argument
H A DPosix.java174 public native int readv(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException; argument
276 public native int writev(FileDescriptor fd, Object[] buffers, int[] offsets, int[] byteCounts) throws ErrnoException, InterruptedIOException; argument

Completed in 414 milliseconds