/libcore/ojluni/src/main/java/java/nio/ |
D | HeapByteBuffer.java | 116 return hb[ix(checkIndex(i))]; in get() 153 hb[ix(checkIndex(i))] = x; in put() 202 return Bits.getChar(this, ix(checkIndex(i, 2)), bigEndian); in getChar() 229 Bits.putChar(this, ix(checkIndex(i, 2)), x, bigEndian); in putChar() 263 return Bits.getShort(this, ix(checkIndex(i, 2)), bigEndian); in getShort() 290 Bits.putShort(this, ix(checkIndex(i, 2)), x, bigEndian); in putShort() 324 return Bits.getInt(this, ix(checkIndex(i, 4)), bigEndian); in getInt() 351 Bits.putInt(this, ix(checkIndex(i, 4)), x, bigEndian); in putInt() 386 return Bits.getLong(this, ix(checkIndex(i, 8)), bigEndian); in getLong() 413 Bits.putLong(this, ix(checkIndex(i, 8)), x, bigEndian); in putLong() [all …]
|
D | StringCharBuffer.java | 77 return str.charAt(checkIndex(index) + offset); in get() 111 pos + checkIndex(start, pos), in subSequence() 112 pos + checkIndex(end, pos), in subSequence()
|
D | DirectByteBuffer.java | 224 return get(ix(checkIndex(i))); in get() 279 put(ix(checkIndex(i)), x); in put() 365 checkIndex(i, Character.BYTES); in getChar() 411 putChar(ix(checkIndex(i, Character.BYTES)), x); in putChar() 468 return getShort(ix(checkIndex(i, Short.BYTES))); in getShort() 513 putShort(ix(checkIndex(i, Short.BYTES)), x); in putShort() 570 return getInt(ix(checkIndex(i, (Integer.BYTES)))); in getInt() 615 putInt(ix(checkIndex(i, Integer.BYTES)), x); in putInt() 672 return getLong(ix(checkIndex(i, Long.BYTES))); in getLong() 717 putLong(ix(checkIndex(i, Long.BYTES)), x); in putLong() [all …]
|
D | Buffer.java | 553 final int checkIndex(int i) { // package-private in checkIndex() method in Buffer 561 final int checkIndex(int i, int nb) { // package-private in checkIndex() method in Buffer
|
D | ByteBufferAsDoubleBuffer.java | 97 return bb.getDoubleUnchecked(ix(checkIndex(i))); in get() 118 bb.putDoubleUnchecked(ix(checkIndex(i)), x); in put()
|
D | ByteBufferAsFloatBuffer.java | 96 return bb.getFloatUnchecked(ix(checkIndex(i))); in get() 117 bb.putFloatUnchecked(ix(checkIndex(i)), x); in put()
|
D | ByteBufferAsShortBuffer.java | 94 return bb.getShortUnchecked(ix(checkIndex(i))); in get() 116 bb.putShortUnchecked(ix(checkIndex(i)), x); in put()
|
D | ByteBufferAsLongBuffer.java | 96 return bb.getLongUnchecked(ix(checkIndex(i))); in get() 117 bb.putLongUnchecked(ix(checkIndex(i)), x); in put()
|
D | ByteBufferAsIntBuffer.java | 96 return bb.getIntUnchecked(ix(checkIndex(i))); in get() 117 bb.putIntUnchecked(ix(checkIndex(i)), x); in put()
|
D | HeapLongBuffer.java | 115 return hb[ix(checkIndex(i))]; in get() 147 hb[ix(checkIndex(i))] = x; in put()
|
D | HeapDoubleBuffer.java | 114 return hb[ix(checkIndex(i))]; in get() 146 hb[ix(checkIndex(i))] = x; in put()
|
D | HeapIntBuffer.java | 114 return hb[ix(checkIndex(i))]; in get() 146 hb[ix(checkIndex(i))] = x; in put()
|
D | HeapShortBuffer.java | 114 return hb[ix(checkIndex(i))]; in get() 146 hb[ix(checkIndex(i))] = x; in put()
|
D | HeapFloatBuffer.java | 113 return hb[ix(checkIndex(i))]; in get() 145 hb[ix(checkIndex(i))] = x; in put()
|
D | HeapCharBuffer.java | 115 return hb[ix(checkIndex(i))]; in get() 151 hb[ix(checkIndex(i))] = x; in put()
|
D | ByteBufferAsCharBuffer.java | 96 return bb.getCharUnchecked(ix(checkIndex(i))); in get() 121 bb.putCharUnchecked(ix(checkIndex(i)), x); in put()
|
D | CharBuffer.java | 1111 return get(position() + checkIndex(index, 1)); in charAt()
|
/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/main/java/java/util/ |
D | Objects.java | 371 int checkIndex(int index, int length) { in checkIndex() method in Objects 372 return Preconditions.checkIndex(index, length, null); in checkIndex()
|
D | AbstractList.java | 778 Objects.checkIndex(index, size); in set() 784 Objects.checkIndex(index, size); in get() 802 Objects.checkIndex(index, size); in remove()
|
D | ImmutableCollections.java | 105 Objects.checkIndex(index, 0); // always throws IndexOutOfBoundsException in get() 154 Objects.checkIndex(index, 1); in get() 195 Objects.checkIndex(index, 2); in get() 245 Objects.checkIndex(index, elements.length); in get()
|
/libcore/ojluni/src/main/java/jdk/internal/util/ |
D | Preconditions.java | 244 int checkIndex(int index, int length,
|