/libcore/luni/src/main/java/java/nio/ |
D | LongArrayBuffer.java | 27 private final int arrayOffset; field in LongArrayBuffer 35 private LongArrayBuffer(int capacity, long[] backingArray, int arrayOffset, boolean isReadOnly) { in LongArrayBuffer() argument 38 this.arrayOffset = arrayOffset; in LongArrayBuffer() 43 …fer buf = new LongArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy() 58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 70 return new LongArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 88 return arrayOffset; in protectedArrayOffset() 102 return backingArray[arrayOffset + position++]; in get() 107 return backingArray[arrayOffset + index]; in get() 114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, longCount); in get() [all …]
|
D | FloatArrayBuffer.java | 27 private final int arrayOffset; field in FloatArrayBuffer 35 …private FloatArrayBuffer(int capacity, float[] backingArray, int arrayOffset, boolean isReadOnly) { in FloatArrayBuffer() argument 38 this.arrayOffset = arrayOffset; in FloatArrayBuffer() 43 …er buf = new FloatArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy() 59 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 71 return new FloatArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 89 return arrayOffset; in protectedArrayOffset() 103 return backingArray[arrayOffset + position++]; in get() 108 return backingArray[arrayOffset + index]; in get() 115 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, floatCount); in get() [all …]
|
D | DoubleArrayBuffer.java | 27 private final int arrayOffset; field in DoubleArrayBuffer 35 …private DoubleArrayBuffer(int capacity, double[] backingArray, int arrayOffset, boolean isReadOnly… in DoubleArrayBuffer() argument 38 this.arrayOffset = arrayOffset; in DoubleArrayBuffer() 43 …r buf = new DoubleArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy() 58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 70 return new DoubleArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 88 return arrayOffset; in protectedArrayOffset() 102 return backingArray[arrayOffset + position++]; in get() 107 return backingArray[arrayOffset + index]; in get() 114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, doubleCount); in get() [all …]
|
D | ShortArrayBuffer.java | 27 private final int arrayOffset; field in ShortArrayBuffer 35 …private ShortArrayBuffer(int capacity, short[] backingArray, int arrayOffset, boolean isReadOnly) { in ShortArrayBuffer() argument 38 this.arrayOffset = arrayOffset; in ShortArrayBuffer() 43 …er buf = new ShortArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy() 58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 70 return new ShortArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 88 return arrayOffset; in protectedArrayOffset() 102 return backingArray[arrayOffset + position++]; in get() 107 return backingArray[arrayOffset + index]; in get() 114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, shortCount); in get() [all …]
|
D | IntArrayBuffer.java | 27 private final int arrayOffset; field in IntArrayBuffer 35 private IntArrayBuffer(int capacity, int[] backingArray, int arrayOffset, boolean isReadOnly) { in IntArrayBuffer() argument 38 this.arrayOffset = arrayOffset; in IntArrayBuffer() 43 …IntArrayBuffer buf = new IntArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, i… in copy() 58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 70 return new IntArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 88 return arrayOffset; in protectedArrayOffset() 102 return backingArray[arrayOffset + position++]; in get() 107 return backingArray[arrayOffset + index]; in get() 114 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, intCount); in get() [all …]
|
D | CharArrayBuffer.java | 27 private final int arrayOffset; field in CharArrayBuffer 35 private CharArrayBuffer(int capacity, char[] backingArray, int arrayOffset, boolean isReadOnly) { in CharArrayBuffer() argument 38 this.arrayOffset = arrayOffset; in CharArrayBuffer() 43 …fer buf = new CharArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy() 58 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 70 return new CharArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 88 return arrayOffset; in protectedArrayOffset() 102 return backingArray[arrayOffset + position++]; in get() 107 return backingArray[arrayOffset + index]; in get() 114 System.arraycopy(backingArray, arrayOffset + position, dst, srcOffset, charCount); in get() [all …]
|
D | ByteArrayBuffer.java | 32 final int arrayOffset; field in ByteArrayBuffer 40 private ByteArrayBuffer(int capacity, byte[] backingArray, int arrayOffset, boolean isReadOnly) { in ByteArrayBuffer() argument 43 this.arrayOffset = arrayOffset; in ByteArrayBuffer() 45 if (arrayOffset + capacity > backingArray.length) { in ByteArrayBuffer() 47 … ", capacity=" + capacity + ", arrayOffset=" + arrayOffset); in ByteArrayBuffer() 52 …fer buf = new ByteArrayBuffer(other.capacity(), other.backingArray, other.arrayOffset, isReadOnly); in copy() 67 System.arraycopy(backingArray, position + arrayOffset, backingArray, arrayOffset, remaining()); in compact() 79 return new ByteArrayBuffer(remaining(), backingArray, arrayOffset + position, isReadOnly); in slice() 97 return arrayOffset; in protectedArrayOffset() 109 System.arraycopy(backingArray, arrayOffset + position, dst, dstOffset, byteCount); in get() [all …]
|
D | NIOAccess.java | 53 return b.hasArray() ? ((b.arrayOffset() + b.position) << b._elementSizeShift) : 0; in getBaseArrayOffset()
|
/libcore/luni/src/main/java/java/nio/charset/ |
D | CharsetDecoderICU.java | 170 outEnd = out.arrayOffset() + out.limit(); in getArray() 171 return out.arrayOffset() + out.position(); in getArray() 186 inEnd = in.arrayOffset() + in.limit(); in getArray() 187 return in.arrayOffset() + in.position(); in getArray() 205 out.position(out.position() + data[OUTPUT_OFFSET] - out.arrayOffset()); in setPosition()
|
D | CharsetEncoderICU.java | 199 outEnd = out.arrayOffset() + out.limit(); in getArray() 200 return out.arrayOffset() + out.position(); in getArray() 215 inEnd = in.arrayOffset() + in.limit(); in getArray() 216 return in.arrayOffset() + in.position(); in getArray() 234 out.position(data[OUTPUT_OFFSET] - out.arrayOffset()); in setPosition()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/ |
D | IntBufferTest.java | 52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() 58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() [all …]
|
D | DoubleBufferTest.java | 76 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 78 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 79 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 81 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() 82 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 85 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 88 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 93 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 95 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 96 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() [all …]
|
D | FloatBufferTest.java | 52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() 58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() [all …]
|
D | LongBufferTest.java | 52 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 54 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 57 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() 58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 71 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() [all …]
|
D | ShortBufferTest.java | 51 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 53 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 54 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 56 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() 57 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 60 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 63 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 68 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 70 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 71 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() [all …]
|
D | CharBufferTest.java | 55 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 57 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray() 58 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 60 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray() 61 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 64 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 67 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray() 72 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 74 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() 75 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset() [all …]
|
D | DirectDoubleBufferTest.java | 47 buf.arrayOffset(); in testArrayOffset()
|
D | DirectIntBufferTest.java | 47 buf.arrayOffset(); in testArrayOffset()
|
D | DirectShortBufferTest.java | 47 buf.arrayOffset(); in testArrayOffset()
|
D | DirectCharBufferTest.java | 48 buf.arrayOffset(); in testArrayOffset()
|
D | DirectFloatBufferTest.java | 47 buf.arrayOffset(); in testArrayOffset()
|
D | DirectLongBufferTest.java | 48 buf.arrayOffset(); in testArrayOffset()
|
/libcore/luni/src/main/java/javax/crypto/ |
D | CipherSpi.java | 348 int offset = input.arrayOffset(); in engineUpdate() 422 int offset = input.arrayOffset(); in engineUpdateAAD() 534 int offset = input.arrayOffset(); in engineDoFinal()
|
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/ |
D | Chunk.java | 60 this.offset = buf.arrayOffset(); in Chunk()
|
/libcore/luni/src/test/java/libcore/java/nio/ |
D | NoArrayTest.java | 40 buf.arrayOffset(); in assertNoArray()
|