/libcore/ojluni/src/main/java/java/nio/ |
D | HeapByteBuffer.java | 226 return hb[ix(checkIndex(i))]; in get() 286 hb[ix(checkIndex(i))] = x; in put() 455 return Bits.getChar(this, ix(checkIndex(i, 2)), bigEndian); in getChar() 493 Bits.putChar(this, ix(checkIndex(i, 2)), x, bigEndian); in putChar() 559 return Bits.getShort(this, ix(checkIndex(i, 2)), bigEndian); in getShort() 595 Bits.putShort(this, ix(checkIndex(i, 2)), x, bigEndian); in putShort() 661 return Bits.getInt(this, ix(checkIndex(i, 4)), bigEndian); in getInt() 699 Bits.putInt(this, ix(checkIndex(i, 4)), x, bigEndian); in putInt() 764 return Bits.getLong(this, ix(checkIndex(i, 8)), bigEndian); in getLong() 802 Bits.putLong(this, ix(checkIndex(i, 8)), x, bigEndian); in putLong() [all …]
|
D | DirectByteBuffer.java | 253 return get(ix(checkIndex(i))); in get() 308 put(ix(checkIndex(i)), x); in put() 396 checkIndex(i, Character.BYTES); in getChar() 442 putChar(ix(checkIndex(i, Character.BYTES)), x); in putChar() 499 return getShort(ix(checkIndex(i, Short.BYTES))); in getShort() 544 putShort(ix(checkIndex(i, Short.BYTES)), x); in putShort() 601 return getInt(ix(checkIndex(i, (Integer.BYTES)))); in getInt() 646 putInt(ix(checkIndex(i, Integer.BYTES)), x); in putInt() 703 return getLong(ix(checkIndex(i, Long.BYTES))); in getLong() 748 putLong(ix(checkIndex(i, Long.BYTES)), x); in putLong() [all …]
|
D | StringCharBuffer.java | 97 return str.charAt(checkIndex(index) + offset); in get() 131 pos + checkIndex(start, pos), in subSequence() 132 pos + checkIndex(end, pos), in subSequence()
|
D | Heap-X-Buffer.java.template | 226 return hb[ix(checkIndex(i))]; 286 hb[ix(checkIndex(i))] = x; 454 …// return SCOPED_MEMORY_ACCESS.getCharUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), bigEndi… 455 return Bits.getChar(this, ix(checkIndex(i, 2)), bigEndian); 492 …// SSCOPED_MEMORY_ACCESS.putCharUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), x, bigEndian); 493 Bits.putChar(this, ix(checkIndex(i, 2)), x, bigEndian); 558 …// return SCOPED_MEMORY_ACCESS.getShortUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), bigEnd… 559 return Bits.getShort(this, ix(checkIndex(i, 2)), bigEndian); 594 …// SCOPED_MEMORY_ACCESS.putShortUnaligned(scope(), hb, byteOffset(checkIndex(i, 2)), x, bigEndian); 595 Bits.putShort(this, ix(checkIndex(i, 2)), x, bigEndian); [all …]
|
D | Buffer.java | 753 final int checkIndex(int i) { // package-private 761 final int checkIndex(int i, int nb) { // package-private
|
D | ByteBufferAsDoubleBuffer.java | 172 return bb.getDoubleUnchecked(ix(checkIndex(i))); in get() 233 bb.putDoubleUnchecked(ix(checkIndex(i)), x); in put()
|
D | ByteBufferAsLongBuffer.java | 172 return bb.getLongUnchecked(ix(checkIndex(i))); in get() 233 bb.putLongUnchecked(ix(checkIndex(i)), x); in put()
|
D | ByteBufferAsIntBuffer.java | 172 return bb.getIntUnchecked(ix(checkIndex(i))); in get() 233 bb.putIntUnchecked(ix(checkIndex(i)), x); in put()
|
D | ByteBufferAsShortBuffer.java | 172 return bb.getShortUnchecked(ix(checkIndex(i))); in get() 233 bb.putShortUnchecked(ix(checkIndex(i)), x); in put()
|
D | ByteBufferAsFloatBuffer.java | 172 return bb.getFloatUnchecked(ix(checkIndex(i))); in get() 233 bb.putFloatUnchecked(ix(checkIndex(i)), x); in put()
|
D | HeapIntBuffer.java | 226 return hb[ix(checkIndex(i))]; in get() 286 hb[ix(checkIndex(i))] = x; in put()
|
D | HeapFloatBuffer.java | 226 return hb[ix(checkIndex(i))]; in get() 286 hb[ix(checkIndex(i))] = x; in put()
|
D | HeapShortBuffer.java | 226 return hb[ix(checkIndex(i))]; in get() 286 hb[ix(checkIndex(i))] = x; in put()
|
D | HeapLongBuffer.java | 226 return hb[ix(checkIndex(i))]; in get() 286 hb[ix(checkIndex(i))] = x; in put()
|
D | HeapDoubleBuffer.java | 226 return hb[ix(checkIndex(i))]; in get() 286 hb[ix(checkIndex(i))] = x; in put()
|
D | Direct-X-Buffer-bin.java.template | 53 return get$Type$(ix(checkIndex(i, $BYTES_PER_VALUE$))); 86 put$Type$(ix(checkIndex(i, $BYTES_PER_VALUE$)), x);
|
D | ByteBufferAsCharBuffer.java | 172 return bb.getCharUnchecked(ix(checkIndex(i))); in get() 233 bb.putCharUnchecked(ix(checkIndex(i)), x); in put()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Objects.java | 358 int checkIndex(int index, int length) { in checkIndex() method in Objects 359 return Preconditions.checkIndex(index, length, null); in checkIndex() 435 long checkIndex(long index, long length) { in checkIndex() method in Objects 436 return Preconditions.checkIndex(index, length, null); in checkIndex()
|
D | ReverseOrderListView.java | 340 Objects.checkIndex(i, size); in get() 367 Objects.checkIndex(index, size); in remove() 389 Objects.checkIndex(index, size); in set()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ObjectsTest.java | 105 Objects.checkIndex(0, 1); in test_checkIndex_size1() 115 Objects.checkIndex(0, 100); in test_checkIndex_largeSize() 116 Objects.checkIndex(99, 100); in test_checkIndex_largeSize() 117 Objects.checkIndex(100, Integer.MAX_VALUE); in test_checkIndex_largeSize() 118 Objects.checkIndex(Integer.MAX_VALUE - 1, Integer.MAX_VALUE); in test_checkIndex_largeSize() 127 Objects.checkIndex(index, length); in assertIndexOutOfBounds()
|
/libcore/ojluni/annotations/hiddenapi/java/nio/ |
D | Buffer.java | 112 final int checkIndex(int i) { in checkIndex() method in Buffer 116 final int checkIndex(int i, int nb) { in checkIndex() method in Buffer
|
/libcore/ojluni/src/test/java/util/Objects/ |
D | CheckIndex.java | 119 () -> Preconditions.checkIndex(index, length, 122 () -> Preconditions.checkIndex(index, length, 125 () -> Preconditions.checkIndex(index, length, null)); 127 () -> Objects.checkIndex(index, length)); 129 () -> Preconditions.checkIndex(index, length, 132 () -> Preconditions.checkIndex(index, length,
|
D | CheckLongIndex.java | 118 () -> Preconditions.checkIndex(index, length, 121 () -> Preconditions.checkIndex(index, length, 124 () -> Preconditions.checkIndex(index, length, null)); 126 () -> Objects.checkIndex(index, length)); 128 () -> Preconditions.checkIndex(index, length, 131 () -> Preconditions.checkIndex(index, length,
|
/libcore/ojluni/src/main/java/java/lang/ |
D | StringUTF16.java | 104 checkIndex(index, value); 109 checkIndex(index, value); 126 checkIndex(index, value); 132 checkIndex(index, value); 558 String.checkIndex(strLastIndex, tgt.length()); 561 checkIndex(i, src); 1518 checkIndex(index, val); 1604 checkIndex(index, value); 1610 checkIndex(index, value); 1674 checkIndex(i, src); [all …]
|
/libcore/ojluni/src/main/java/jdk/internal/util/ |
D | Preconditions.java | 263 int checkIndex(int index, int length, 410 long checkIndex(long index, long length,
|