Home
last modified time | relevance | path

Searched refs:alignmentOffset (Results 1 – 14 of 14) sorted by relevance

/libcore/ojluni/src/test/java/nio/Buffer/
DBasicByte.java379 catchIllegalArgument(b, () -> b.alignmentOffset(-1, (short) 1)); in testAlign()
382 catchIllegalArgument(b, () -> b.alignmentOffset(0, (short) 0)); in testAlign()
387 catchIllegalArgument(b, () -> b.alignmentOffset(0, _us)); in testAlign()
390 b.alignmentOffset(0, us); in testAlign()
394 () -> b.alignmentOffset(0, _us)); in testAlign()
402 int longMisalignmentAtZero = empty.alignmentOffset(0, 8); in testAlign()
426 if (b.alignmentOffset(0, 8) != longMisalignmentAtZero) in testAlign()
432 int am = b.alignmentOffset(i, us); in testAlign()
444 int al = b.limit() - b.alignmentOffset(b.limit(), 8); in testAlign()
452 if (ab.alignmentOffset(0, 8) != 0) in testAlign()
[all …]
DBasic-X.java.template379 catchIllegalArgument(b, () -> b.alignmentOffset(-1, (short) 1));
382 catchIllegalArgument(b, () -> b.alignmentOffset(0, (short) 0));
387 catchIllegalArgument(b, () -> b.alignmentOffset(0, _us));
390 b.alignmentOffset(0, us);
394 () -> b.alignmentOffset(0, _us));
402 int longMisalignmentAtZero = empty.alignmentOffset(0, 8);
426 if (b.alignmentOffset(0, 8) != longMisalignmentAtZero)
432 int am = b.alignmentOffset(i, us);
436 String f = "b.alignmentOffset(%d, %d) == %d incorrect, expected %d";
444 int al = b.limit() - b.alignmentOffset(b.limit(), 8);
[all …]
/libcore/ojluni/src/main/java/java/nio/
DByteBuffer.java2302 public final int alignmentOffset(int index, int unitSize) { in alignmentOffset() method in ByteBuffer
2382 int pos_mod = alignmentOffset(pos, unitSize); in alignedSlice()
2383 int lim_mod = alignmentOffset(lim, unitSize); in alignedSlice()
DX-Buffer.java.template2260 * int value = alignmentOffset(index, unitSize)</pre></blockquote>
2263 * alignmentOffset(index - value, unitSize) == 0, value &le; index</pre></blockquote>
2266 * alignmentOffset(index + (unitSize - value), unitSize) == 0</pre></blockquote>
2302 public final int alignmentOffset(int index, int unitSize) {
2332 * nb.alignmentOffset(0, unitSize) == 0
2333 * nb.alignmentOffset(nb.limit(), unitSize) == 0
2374 * @see #alignmentOffset(int, int)
2382 int pos_mod = alignmentOffset(pos, unitSize);
2383 int lim_mod = alignmentOffset(lim, unitSize);
/libcore/ojluni/src/test/java/lang/invoke/VarHandles/
DVarHandleTestByteArrayAsShort.java694 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
736 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
780 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayReadWrite()
827 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadWrite()
872 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadOnly()
DVarHandleTestByteArrayAsChar.java694 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
736 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
780 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayReadWrite()
827 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadWrite()
872 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadOnly()
DVarHandleTestByteArrayAsFloat.java783 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
869 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
956 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayReadWrite()
1130 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadWrite()
1302 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadOnly()
DVarHandleTestByteArrayAsDouble.java783 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
869 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
956 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayReadWrite()
1130 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadWrite()
1302 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadOnly()
DVarHandleTestByteArrayAsLong.java875 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
1007 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
1140 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayReadWrite()
1424 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadWrite()
1706 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadOnly()
DVarHandleTestByteArrayAsInt.java875 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
1007 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayMisalignedAccess()
1140 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE); in testArrayReadWrite()
1424 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadWrite()
1706 int misalignmentAtZero = array.alignmentOffset(0, SIZE); in testArrayReadOnly()
DX-VarHandleTestByteArrayView.java.template1219 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE);
1357 int misalignmentAtZero = array.alignmentOffset(0, SIZE);
1496 int misalignmentAtZero = ByteBuffer.wrap(array).alignmentOffset(0, SIZE);
1786 int misalignmentAtZero = array.alignmentOffset(0, SIZE);
2074 int misalignmentAtZero = array.alignmentOffset(0, SIZE);
/libcore/luni/src/test/java/libcore/java/nio/
DBufferTest.java257 assertEquals(0, b.alignedSlice(4).alignmentOffset(0, 4)); in testByteBufferByteOrder()
260 assertEquals(0, b.alignedSlice(2).alignmentOffset(0, 2)); in testByteBufferByteOrder()
663 assertEquals(j, slice.alignmentOffset(j, 4)); in testAlignedSliceOffset()
1481 bb.alignmentOffset(-1 - start, unitSize); in alignmentOffsetChecks()
1488 bb.alignmentOffset(0, unitSize - 1); in alignmentOffsetChecks()
1494 int alignmentAtZero = bb.alignmentOffset(0, unitSize); in alignmentOffsetChecks()
1496 assertEquals((alignmentAtZero + i) % unitSize, bb.alignmentOffset(i, unitSize)); in alignmentOffsetChecks()
/libcore/ojluni/annotations/flagged_api/java/nio/
DByteBuffer.annotated.java125 public final int alignmentOffset(int index, int unitSize) { throw new RuntimeException("Stub!"); } in alignmentOffset() method in ByteBuffer
/libcore/api/
Dcurrent.txt6306 method public final int alignmentOffset(int, int);