Home
last modified time | relevance | path

Searched refs:arrayOffset (Results 1 – 25 of 43) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
DShortBufferTest.java51 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 …]
DFloatBufferTest.java52 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 …]
DIntBufferTest.java52 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 …]
DLongBufferTest.java52 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 …]
DDoubleBufferTest.java76 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 …]
DCharBufferTest.java55 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 …]
DDirectLongBufferTest.java51 buf.arrayOffset(); in testArrayOffset()
DDirectCharBufferTest.java52 buf.arrayOffset(); in testArrayOffset()
DDirectDoubleBufferTest.java51 buf.arrayOffset(); in testArrayOffset()
DDirectFloatBufferTest.java51 buf.arrayOffset(); in testArrayOffset()
DDirectIntBufferTest.java51 buf.arrayOffset(); in testArrayOffset()
DDirectShortBufferTest.java51 buf.arrayOffset(); in testArrayOffset()
DByteBufferTest.java57 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
59 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArray()
60 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
62 loadTestData2(array, buf.arrayOffset(), buf.capacity()); in testArray()
63 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
66 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
69 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArray()
95 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
97 loadTestData1(array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
98 assertContentEquals(buf, array, buf.arrayOffset(), buf.capacity()); in testArrayOffset()
[all …]
DReadOnlyDoubleBufferTest.java56 buf.arrayOffset(); in testArrayOffset()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetEncoderICU.java192 outEnd = out.arrayOffset() + out.limit(); in getArray()
193 return out.arrayOffset() + out.position(); in getArray()
208 inEnd = in.arrayOffset() + in.limit(); in getArray()
209 return in.arrayOffset() + in.position(); in getArray()
227 out.position(data[OUTPUT_OFFSET] - out.arrayOffset()); in setPosition()
DCharsetDecoderICU.java163 outEnd = out.arrayOffset() + out.limit(); in getArray()
164 return out.arrayOffset() + out.position(); in getArray()
179 inEnd = in.arrayOffset() + in.limit(); in getArray()
180 return in.arrayOffset() + in.position(); in getArray()
/libcore/ojluni/src/main/java/sun/security/ssl/
DCipherBox.java315 int arrayOffset = bb.arrayOffset(); in encrypt() local
317 System.arraycopy(buf, arrayOffset + pos, in encrypt()
318 buf, arrayOffset + pos + prefix.length, in encrypt()
506 int arrayOffset = bb.arrayOffset(); in decrypt() local
508 System.arraycopy(buf, arrayOffset + pos + blockSize, in decrypt()
509 buf, arrayOffset + pos, limit - pos - blockSize); in decrypt()
/libcore/ojluni/src/main/java/javax/crypto/
DCipherSpi.java759 int inOfs = input.arrayOffset() + inPos; in bufferCrypt()
762 int outOfs = output.arrayOffset() + outPos; in bufferCrypt()
775 int outOfs = output.arrayOffset() + outPos; in bufferCrypt()
798 inOfs = input.arrayOffset() + inPos; in bufferCrypt()
DMacSpi.java107 int ofs = input.arrayOffset(); in engineUpdate()
/libcore/luni/src/main/java/java/nio/
DNIOAccess.java57 return b.hasArray() ? ((b.arrayOffset() + b.position) << b._elementSizeShift) : 0; in getBaseArrayOffset()
DNioUtils.java82 return b.arrayOffset(); in unsafeArrayOffset()
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DChunk.java60 this.offset = buf.arrayOffset(); in Chunk()
/libcore/luni/src/test/java/libcore/java/nio/
DNoArrayTest.java40 buf.arrayOffset(); in assertNoArray()
/libcore/ojluni/src/main/java/java/security/
DMessageDigestSpi.java111 int ofs = input.arrayOffset(); in engineUpdate()
/libcore/ojluni/src/main/java/java/util/zip/
DAdler32.java103 adler = updateBytes(adler, buffer.array(), pos + buffer.arrayOffset(), rem); in update()

12