Home
last modified time | relevance | path

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

123

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/
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 …]
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 …]
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 …]
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 …]
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 …]
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 …]
DDirectCharBufferTest.java51 buf.arrayOffset(); in testArrayOffset()
DDirectShortBufferTest.java50 buf.arrayOffset(); in testArrayOffset()
DDirectLongBufferTest.java50 buf.arrayOffset(); in testArrayOffset()
DDirectDoubleBufferTest.java50 buf.arrayOffset(); in testArrayOffset()
DDirectFloatBufferTest.java50 buf.arrayOffset(); in testArrayOffset()
DDirectIntBufferTest.java50 buf.arrayOffset(); in testArrayOffset()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetEncoderICU.java195 outEnd = out.arrayOffset() + out.limit(); in getArray()
196 return out.arrayOffset() + out.position(); in getArray()
211 inEnd = in.arrayOffset() + in.limit(); in getArray()
212 return in.arrayOffset() + in.position(); in getArray()
230 out.position(data[OUTPUT_OFFSET] - out.arrayOffset()); in setPosition()
DCharsetDecoderICU.java167 outEnd = out.arrayOffset() + out.limit(); in getArray()
168 return out.arrayOffset() + out.position(); in getArray()
183 inEnd = in.arrayOffset() + in.limit(); in getArray()
184 return in.arrayOffset() + in.position(); in getArray()
/libcore/ojluni/src/main/java/javax/crypto/
DCipherSpi.java768 int inOfs = input.arrayOffset() + inPos; in bufferCrypt()
771 int outOfs = output.arrayOffset() + outPos; in bufferCrypt()
784 int outOfs = output.arrayOffset() + outPos; in bufferCrypt()
809 inOfs = input.arrayOffset() + inPos; in bufferCrypt()
DMacSpi.java107 int ofs = input.arrayOffset(); in engineUpdate()
/libcore/luni/src/main/java/java/nio/
DNIOAccess.java62 return b.hasArray() ? ((b.arrayOffset() + b.position) << b._elementSizeShift) : 0; in getBaseArrayOffset()
DNioUtils.java90 return b.arrayOffset(); in unsafeArrayOffset()
/libcore/luni/src/test/java/libcore/java/nio/
DNoArrayTest.java40 buf.arrayOffset(); in assertNoArray()
/libcore/ojluni/src/main/java/java/lang/invoke/
DTransformers.java1047 private final int arrayOffset; field in Transformers.Spreader
1071 arrayOffset = spreaderType.parameterCount() - 1; in Spreader()
1074 final Class<?> componentType = spreaderType.ptypes()[arrayOffset].getComponentType(); in Spreader()
1082 this.copyRange = EmulatedStackFrame.Range.of(spreaderType, 0, arrayOffset); in Spreader()
1097 arrayOffset, in transform()
1103 copyRange.numReferences, this.type().ptypes()[arrayOffset]); in transform()
1112 spreadArray((Object[]) arrayObj, writer, type, numArrayArgs, arrayOffset); in transform() local
1115 spreadArray((int[]) arrayObj, writer, type, numArrayArgs, arrayOffset); in transform() local
1118 spreadArray((long[]) arrayObj, writer, type, numArrayArgs, arrayOffset); in transform() local
1121 spreadArray((byte[]) arrayObj, writer, type, numArrayArgs, arrayOffset); in transform() local
[all …]
/libcore/dalvik/src/main/java/org/apache/harmony/dalvik/ddmc/
DChunk.java68 this.offset = buf.arrayOffset(); in Chunk()
/libcore/ojluni/src/main/java/java/security/
DMessageDigestSpi.java111 int ofs = input.arrayOffset(); in engineUpdate()
/libcore/ojluni/src/main/java/java/util/zip/
DCRC32.java111 crc = updateBytes(crc, buffer.array(), pos + buffer.arrayOffset(), rem); in update()
DAdler32.java114 adler = updateBytes(adler, buffer.array(), pos + buffer.arrayOffset(), rem); in update()
/libcore/ojluni/annotations/hiddenapi/java/nio/
DBuffer.java92 public abstract int arrayOffset(); in arrayOffset() method in Buffer

123