/libcore/ojluni/src/test/java/nio/Buffer/ |
D | BasicByte.java | 379 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 …]
|
D | Basic-X.java.template | 379 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/ |
D | ByteBuffer.java | 2302 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()
|
D | X-Buffer.java.template | 2260 * int value = alignmentOffset(index, unitSize)</pre></blockquote> 2263 * alignmentOffset(index - value, unitSize) == 0, value ≤ 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/ |
D | VarHandleTestByteArrayAsShort.java | 694 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()
|
D | VarHandleTestByteArrayAsChar.java | 694 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()
|
D | VarHandleTestByteArrayAsFloat.java | 783 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()
|
D | VarHandleTestByteArrayAsDouble.java | 783 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()
|
D | VarHandleTestByteArrayAsLong.java | 875 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()
|
D | VarHandleTestByteArrayAsInt.java | 875 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()
|
D | X-VarHandleTestByteArrayView.java.template | 1219 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/ |
D | BufferTest.java | 257 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/ |
D | ByteBuffer.annotated.java | 125 public final int alignmentOffset(int index, int unitSize) { throw new RuntimeException("Stub!"); } in alignmentOffset() method in ByteBuffer
|
/libcore/api/ |
D | current.txt | 6306 method public final int alignmentOffset(int, int);
|