Searched refs:Buffer (Results 1 - 17 of 17) sorted by relevance

/libcore/luni/src/main/java/java/nio/
H A DNIOAccess.java28 * Buffer starting at the Buffer's current position, or 0 if the
29 * Buffer is not backed by native heap storage.
33 public static long getBasePointer(Buffer b) {
43 * given Buffer, or null if the Buffer is not backed by a Java array.
45 static Object getBaseArray(Buffer b) {
51 * Java array object containing the data of the given Buffer to
53 * account the Buffer's current position. This method is only
56 static int getBaseArrayOffset(Buffer
[all...]
/libcore/ojluni/src/main/java/java/nio/
H A DBuffer.java175 public abstract class Buffer { class
205 Buffer(int mark, int pos, int lim, int cap, int elementSizeShift) { // package-private method in class:Buffer
247 public final Buffer position(int newPosition) {
274 public final Buffer limit(int newLimit) {
288 public final Buffer mark() {
302 public final Buffer reset() {
327 public final Buffer clear() {
355 public final Buffer flip() {
377 public final Buffer rewind() {
H A DCharBufferSpliterator.java94 return Buffer.SPLITERATOR_CHARACTERISTICS;
H A DCharBuffer.java108 extends Buffer
111 // These fields are declared here rather than in Heap-X-Buffer in order to
1070 Buffer.SPLITERATOR_CHARACTERISTICS, false);
H A DDoubleBuffer.java81 extends Buffer
84 // These fields are declared here rather than in Heap-X-Buffer in order to
H A DFloatBuffer.java82 extends Buffer
85 // These fields are declared here rather than in Heap-X-Buffer in order to
H A DIntBuffer.java84 extends Buffer
87 // These fields are declared here rather than in Heap-X-Buffer in order to
H A DLongBuffer.java82 extends Buffer
85 // These fields are declared here rather than in Heap-X-Buffer in order to
H A DShortBuffer.java83 extends Buffer
86 // These fields are declared here rather than in Heap-X-Buffer in order to
H A DByteBuffer.java195 extends Buffer
198 // These fields are declared here rather than in Heap-X-Buffer in order to
928 // Unchecked accessors, for use by ByteBufferAs-X-Buffer classes
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
H A DAbstractBufferTest.java19 import java.nio.Buffer;
26 * Tests a java.nio.Buffer instance.
30 protected Buffer baseBuf;
51 Buffer ret = baseBuf.clear();
72 Buffer ret = baseBuf.flip();
115 * Class under test for Buffer limit(int)
122 Buffer ret = baseBuf.limit(baseBuf.limit());
172 Buffer ret = baseBuf.mark();
199 * Class under test for Buffer position(int)
244 Buffer re
[all...]
/libcore/ojluni/src/main/java/java/nio/charset/
H A DCharsetDecoder.java31 import java.nio.Buffer;
458 * positions. At most {@link Buffer#remaining in.remaining()} bytes
459 * will be read and at most {@link Buffer#remaining out.remaining()}
479 * more {@linkplain Buffer#remaining remaining} characters. This is
620 * its current position. At most {@link Buffer#remaining out.remaining()}
717 * positions. At most {@link Buffer#remaining in.remaining()} bytes
718 * will be read, and at most {@link Buffer#remaining out.remaining()}
H A DCharsetEncoder.java31 import java.nio.Buffer;
473 * positions. At most {@link Buffer#remaining in.remaining()} characters
474 * will be read and at most {@link Buffer#remaining out.remaining()}
494 * more {@linkplain Buffer#remaining remaining} bytes. This is
635 * its current position. At most {@link Buffer#remaining out.remaining()}
732 * positions. At most {@link Buffer#remaining in.remaining()} characters
733 * will be read, and at most {@link Buffer#remaining out.remaining()}
/libcore/luni/src/test/java/libcore/java/nio/
H A DOldAndroidNIOTest.java19 import java.nio.Buffer;
34 void checkBuffer(Buffer b) {
H A DBufferTest.java24 import java.nio.Buffer;
628 Field addressField = Buffer.class.getDeclaredField("address");
638 public static native long jniGetDirectBufferAddress(Buffer buf);
639 public static native long jniGetDirectBufferCapacity(Buffer buf);
1333 // is not affecting buffer created by its as*Buffer
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/channels/
H A DSocketChannelTest.java32 import java.nio.Buffer;
2930 Buffer expected = ByteBuffer.allocate(1024).put(data).put(data).flip();
/libcore/
H A Dopenjdk_java_files.mk314 ojluni/src/main/java/java/nio/Buffer.java \

Completed in 476 milliseconds