Home
last modified time | relevance | path

Searched refs:throwsIfOutOfBounds (Results 1 – 5 of 5) sorted by relevance

/libcore/luni/src/test/java/libcore/libcore/util/
DArrayUtilsTest.java18 import static libcore.util.ArrayUtils.throwsIfOutOfBounds;
25 throwsIfOutOfBounds(10, 2, 6); in testThrowsIfOutOfBounds_passesWhenRangeInsideArray()
30 throwsIfOutOfBounds(10, 0, 10); in testThrowsIfOutOfBounds_passesWhenRangeIsWholeArray()
35 throwsIfOutOfBounds(10, 0, 0); in testThrowsIfOutOfBounds_passesWhenEmptyRangeAtStart()
40 throwsIfOutOfBounds(10, 10, 0); in testThrowsIfOutOfBounds_passesWhenEmptyRangeAtEnd()
45 throwsIfOutOfBounds(0, 0, 0); in testThrowsIfOutOfBounds_passesWhenEmptyArray()
50 throwsIfOutOfBounds(10, -1, 5); in testThrowsIfOutOfBounds_failsWhenRangeStartNegative()
55 throwsIfOutOfBounds(10, 5, -1); in testThrowsIfOutOfBounds_failsWhenCountNegative()
60 throwsIfOutOfBounds(10, 11, 0); in testThrowsIfOutOfBounds_failsWhenRangeStartTooHigh()
66 throwsIfOutOfBounds(10, 5, 6); in testThrowsIfOutOfBounds_failsWhenRangeEndTooHigh()
[all …]
/libcore/luni/src/main/java/libcore/util/
DArrayUtils.java34 public static void throwsIfOutOfBounds(int len, int offset, int count) { in throwsIfOutOfBounds() method in ArrayUtils
/libcore/luni/src/main/java/libcore/io/
DStreams.java89 ArrayUtils.throwsIfOutOfBounds(dst.length, offset, byteCount); in readFully()
DIoBridge.java504 ArrayUtils.throwsIfOutOfBounds(bytes.length, byteOffset, byteCount); in read()
529 ArrayUtils.throwsIfOutOfBounds(bytes.length, byteOffset, byteCount); in write()
/libcore/mmodules/core_platform_api/api/legacy_platform/
Dcurrent-api.txt1025 method public static void throwsIfOutOfBounds(int, int, int);