Home
last modified time | relevance | path

Searched refs:checkIndex (Results 1 – 23 of 23) sorted by relevance

/libcore/ojluni/src/main/java/java/nio/
DHeapByteBuffer.java116 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 …]
DStringCharBuffer.java77 return str.charAt(checkIndex(index) + offset); in get()
111 pos + checkIndex(start, pos), in subSequence()
112 pos + checkIndex(end, pos), in subSequence()
DDirectByteBuffer.java224 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 …]
DBuffer.java553 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
DByteBufferAsDoubleBuffer.java97 return bb.getDoubleUnchecked(ix(checkIndex(i))); in get()
118 bb.putDoubleUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsFloatBuffer.java96 return bb.getFloatUnchecked(ix(checkIndex(i))); in get()
117 bb.putFloatUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsShortBuffer.java94 return bb.getShortUnchecked(ix(checkIndex(i))); in get()
116 bb.putShortUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsLongBuffer.java96 return bb.getLongUnchecked(ix(checkIndex(i))); in get()
117 bb.putLongUnchecked(ix(checkIndex(i)), x); in put()
DByteBufferAsIntBuffer.java96 return bb.getIntUnchecked(ix(checkIndex(i))); in get()
117 bb.putIntUnchecked(ix(checkIndex(i)), x); in put()
DHeapLongBuffer.java115 return hb[ix(checkIndex(i))]; in get()
147 hb[ix(checkIndex(i))] = x; in put()
DHeapDoubleBuffer.java114 return hb[ix(checkIndex(i))]; in get()
146 hb[ix(checkIndex(i))] = x; in put()
DHeapIntBuffer.java114 return hb[ix(checkIndex(i))]; in get()
146 hb[ix(checkIndex(i))] = x; in put()
DHeapShortBuffer.java114 return hb[ix(checkIndex(i))]; in get()
146 hb[ix(checkIndex(i))] = x; in put()
DHeapFloatBuffer.java113 return hb[ix(checkIndex(i))]; in get()
145 hb[ix(checkIndex(i))] = x; in put()
DHeapCharBuffer.java115 return hb[ix(checkIndex(i))]; in get()
151 hb[ix(checkIndex(i))] = x; in put()
DByteBufferAsCharBuffer.java96 return bb.getCharUnchecked(ix(checkIndex(i))); in get()
121 bb.putCharUnchecked(ix(checkIndex(i)), x); in put()
DCharBuffer.java1111 return get(position() + checkIndex(index, 1)); in charAt()
/libcore/luni/src/test/java/libcore/java/util/
DObjectsTest.java105 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/
DBuffer.java112 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/
DObjects.java371 int checkIndex(int index, int length) { in checkIndex() method in Objects
372 return Preconditions.checkIndex(index, length, null); in checkIndex()
DAbstractList.java778 Objects.checkIndex(index, size); in set()
784 Objects.checkIndex(index, size); in get()
802 Objects.checkIndex(index, size); in remove()
DImmutableCollections.java105 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/
DPreconditions.java244 int checkIndex(int index, int length,