Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 25 of 35) sorted by relevance

12

/libcore/ojluni/src/main/java/java/nio/
DHeapLongBuffer.java45 HeapLongBuffer(int cap, int lim) { // package-private in HeapLongBuffer() argument
46 this(cap, lim, false); in HeapLongBuffer()
49 HeapLongBuffer(int cap, int lim, boolean isReadOnly) { // package-private in HeapLongBuffer() argument
50 super(-1, 0, lim, cap, new long[cap], 0); in HeapLongBuffer()
64 int mark, int pos, int lim, int cap, in HeapLongBuffer() argument
66 this(buf, mark, pos, lim, cap, off, false); in HeapLongBuffer()
70 int mark, int pos, int lim, int cap, in HeapLongBuffer() argument
72 super(mark, pos, lim, cap, buf, off); in HeapLongBuffer()
DHeapFloatBuffer.java44 HeapFloatBuffer(int cap, int lim) { // package-private in HeapFloatBuffer() argument
45 this(cap, lim, false); in HeapFloatBuffer()
48 HeapFloatBuffer(int cap, int lim, boolean isReadOnly) { // package-private in HeapFloatBuffer() argument
49 super(-1, 0, lim, cap, new float[cap], 0); in HeapFloatBuffer()
63 int mark, int pos, int lim, int cap, in HeapFloatBuffer() argument
65 this(buf, mark, pos, lim, cap, off, false); in HeapFloatBuffer()
69 int mark, int pos, int lim, int cap, in HeapFloatBuffer() argument
71 super(mark, pos, lim, cap, buf, off); in HeapFloatBuffer()
DHeapShortBuffer.java44 HeapShortBuffer(int cap, int lim) { // package-private in HeapShortBuffer() argument
45 this(cap, lim, false); in HeapShortBuffer()
48 HeapShortBuffer(int cap, int lim, boolean isReadOnly) { // package-private in HeapShortBuffer() argument
49 super(-1, 0, lim, cap, new short[cap], 0); in HeapShortBuffer()
63 int mark, int pos, int lim, int cap, in HeapShortBuffer() argument
65 this(buf, mark, pos, lim, cap, off, false); in HeapShortBuffer()
69 int mark, int pos, int lim, int cap, in HeapShortBuffer() argument
71 super(mark, pos, lim, cap, buf, off); in HeapShortBuffer()
DHeapIntBuffer.java44 HeapIntBuffer(int cap, int lim) { // package-private in HeapIntBuffer() argument
45 this(cap, lim, false); in HeapIntBuffer()
48 HeapIntBuffer(int cap, int lim, boolean isReadOnly) { // package-private in HeapIntBuffer() argument
49 super(-1, 0, lim, cap, new int[cap], 0); in HeapIntBuffer()
63 int mark, int pos, int lim, int cap, in HeapIntBuffer() argument
65 this(buf, mark, pos, lim, cap, off, false); in HeapIntBuffer()
69 int mark, int pos, int lim, int cap, in HeapIntBuffer() argument
71 super(mark, pos, lim, cap, buf, off); in HeapIntBuffer()
DHeapDoubleBuffer.java44 HeapDoubleBuffer(int cap, int lim) { // package-private in HeapDoubleBuffer() argument
45 this(cap, lim, false); in HeapDoubleBuffer()
53 int mark, int pos, int lim, int cap, in HeapDoubleBuffer() argument
55 this(buf, mark, pos, lim, cap, off, false); in HeapDoubleBuffer()
58 HeapDoubleBuffer(int cap, int lim, boolean isReadOnly) { // package-private in HeapDoubleBuffer() argument
59 super(-1, 0, lim, cap, new double[cap], 0); in HeapDoubleBuffer()
69 int mark, int pos, int lim, int cap, in HeapDoubleBuffer() argument
71 super(mark, pos, lim, cap, buf, off); in HeapDoubleBuffer()
DHeapCharBuffer.java44 HeapCharBuffer(int cap, int lim) { // package-private in HeapCharBuffer() argument
45 this(cap, lim, false); in HeapCharBuffer()
48 HeapCharBuffer(int cap, int lim, boolean isReadOnly) { // package-private in HeapCharBuffer() argument
49 super(-1, 0, lim, cap, new char[cap], 0); in HeapCharBuffer()
63 int mark, int pos, int lim, int cap, in HeapCharBuffer() argument
65 this(buf, mark, pos, lim, cap, off, false); in HeapCharBuffer()
69 int mark, int pos, int lim, int cap, in HeapCharBuffer() argument
71 super(mark, pos, lim, cap, buf, off); in HeapCharBuffer()
DMappedByteBuffer.java82 MappedByteBuffer(int mark, int pos, int lim, int cap, // package-private in MappedByteBuffer() argument
85 super(mark, pos, lim, cap); in MappedByteBuffer()
90 MappedByteBuffer(int mark, int pos, int lim, int cap, byte[] buf, int offset) { in MappedByteBuffer() argument
91 super(mark, pos, lim, cap, buf, offset); in MappedByteBuffer()
95 MappedByteBuffer(int mark, int pos, int lim, int cap) { // package-private in MappedByteBuffer() argument
96 super(mark, pos, lim, cap); in MappedByteBuffer()
DBuffer.java209 Buffer(int mark, int pos, int lim, int cap, int elementSizeShift) { // package-private in Buffer() argument
210 if (cap < 0) in Buffer()
211 throw new IllegalArgumentException("Negative capacity: " + cap); in Buffer()
212 this.capacity = cap; in Buffer()
DShortBuffer.java110 ShortBuffer(int mark, int pos, int lim, int cap, // package-private in ShortBuffer() argument
114 super(mark, pos, lim, cap, 1 /* elementSizeShift */); in ShortBuffer()
121 ShortBuffer(int mark, int pos, int lim, int cap) { // package-private in ShortBuffer() argument
122 this(mark, pos, lim, cap, null, 0); in ShortBuffer()
DIntBuffer.java111 IntBuffer(int mark, int pos, int lim, int cap, // package-private in IntBuffer() argument
115 super(mark, pos, lim, cap, 2 /* elementSizeShift */); in IntBuffer()
122 IntBuffer(int mark, int pos, int lim, int cap) { // package-private in IntBuffer() argument
123 this(mark, pos, lim, cap, null, 0); in IntBuffer()
DStringCharBuffer.java57 int cap, in StringCharBuffer() argument
59 super(mark, pos, limit, cap, null, offset); in StringCharBuffer()
DDoubleBuffer.java110 DoubleBuffer(int mark, int pos, int lim, int cap, // package-private in DoubleBuffer() argument
114 super(mark, pos, lim, cap, 3 /* elementSizeShift */); in DoubleBuffer()
121 DoubleBuffer(int mark, int pos, int lim, int cap) { // package-private in DoubleBuffer() argument
122 this(mark, pos, lim, cap, null, 0); in DoubleBuffer()
DFloatBuffer.java110 FloatBuffer(int mark, int pos, int lim, int cap, // package-private in FloatBuffer() argument
114 super(mark, pos, lim, cap, 2 /* elementSizeShift */); in FloatBuffer()
121 FloatBuffer(int mark, int pos, int lim, int cap) { // package-private in FloatBuffer() argument
122 this(mark, pos, lim, cap, null, 0); in FloatBuffer()
DHeapByteBuffer.java48 HeapByteBuffer(int cap, int lim) { // packag-private in HeapByteBuffer() argument
49 this(cap, lim, false); in HeapByteBuffer()
53 private HeapByteBuffer(int cap, int lim, boolean isReadOnly) { in HeapByteBuffer() argument
54 super(-1, 0, lim, cap, new byte[cap], 0); in HeapByteBuffer()
67 private HeapByteBuffer(byte[] buf, int mark, int pos, int lim, int cap, int off, in HeapByteBuffer() argument
69 super(mark, pos, lim, cap, buf, off); in HeapByteBuffer()
DDirectByteBuffer.java110 private DirectByteBuffer(long addr, int cap) { in DirectByteBuffer() argument
111 super(-1, 0, cap, cap); in DirectByteBuffer()
118 public DirectByteBuffer(int cap, long addr, in DirectByteBuffer() argument
122 super(-1, 0, cap, cap, fd); in DirectByteBuffer()
131 int mark, int pos, int lim, int cap, in DirectByteBuffer() argument
133 this(memoryRef, mark, pos, lim, cap, off, false); in DirectByteBuffer()
137 int mark, int pos, int lim, int cap, in DirectByteBuffer() argument
139 super(mark, pos, lim, cap, memoryRef.buffer, off); in DirectByteBuffer()
DCharBuffer.java137 CharBuffer(int mark, int pos, int lim, int cap, // package-private in CharBuffer() argument
141 super(mark, pos, lim, cap, 1 /* elementSizeShift */); in CharBuffer()
148 CharBuffer(int mark, int pos, int lim, int cap) { // package-private in CharBuffer() argument
149 this(mark, pos, lim, cap, null, 0); in CharBuffer()
DByteBufferAsIntBuffer.java37 int mark, int pos, int lim, int cap, in ByteBufferAsIntBuffer() argument
39 super(mark, pos, lim, cap); in ByteBufferAsIntBuffer()
DByteBufferAsFloatBuffer.java37 int mark, int pos, int lim, int cap, in ByteBufferAsFloatBuffer() argument
39 super(mark, pos, lim, cap); in ByteBufferAsFloatBuffer()
DByteBufferAsLongBuffer.java37 int mark, int pos, int lim, int cap, in ByteBufferAsLongBuffer() argument
39 super(mark, pos, lim, cap); in ByteBufferAsLongBuffer()
DByteBufferAsDoubleBuffer.java38 int mark, int pos, int lim, int cap, in ByteBufferAsDoubleBuffer() argument
40 super(mark, pos, lim, cap); in ByteBufferAsDoubleBuffer()
DByteBufferAsShortBuffer.java37 int mark, int pos, int lim, int cap, in ByteBufferAsShortBuffer() argument
39 super(mark, pos, lim, cap); in ByteBufferAsShortBuffer()
DByteBuffer.java223 ByteBuffer(int mark, int pos, int lim, int cap, // package-private in ByteBuffer() argument
227 super(mark, pos, lim, cap, 0 /* elementSizeShift */); in ByteBuffer()
234 ByteBuffer(int mark, int pos, int lim, int cap) { // package-private in ByteBuffer() argument
235 this(mark, pos, lim, cap, null, 0); in ByteBuffer()
/libcore/ojluni/src/main/java/java/util/
DAbstractCollection.java224 int cap = r.length; in finishToArray() local
225 if (i == cap) { in finishToArray()
226 int newCap = cap + (cap >> 1) + 1; in finishToArray()
229 newCap = hugeCapacity(cap + 1); in finishToArray()
/libcore/ojluni/annotations/hiddenapi/java/nio/
DDirectByteBuffer.java40 private DirectByteBuffer(long addr, int cap) { in DirectByteBuffer() argument
46 int cap, in DirectByteBuffer() argument
60 int cap, in DirectByteBuffer() argument
71 int cap, in DirectByteBuffer() argument
DCharBuffer.java40 CharBuffer(int mark, int pos, int lim, int cap, char[] hb, int offset) { in CharBuffer() argument
45 CharBuffer(int mark, int pos, int lim, int cap) { in CharBuffer() argument

12