Searched refs:toIndex (Results 1 - 8 of 8) sorted by relevance

/dalvik/libcore/luni/src/main/java/java/util/
H A DArrayList.java443 @Override protected void removeRange(int fromIndex, int toIndex) { argument
450 if (toIndex > s) {
451 throw new IndexOutOfBoundsException("toIndex " + toIndex
454 if (fromIndex > toIndex) {
456 + " > toIndex " + toIndex);
459 System.arraycopy(a, toIndex, a, fromIndex, s - toIndex);
460 int rangeSize = toIndex
[all...]
H A DDualPivotQuicksort.java78 * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex},
83 * @param toIndex the index of the last element, exclusive, to be sorted
84 * @throws IllegalArgumentException if {@code fromIndex > toIndex}
86 * if {@code fromIndex < 0} or {@code toIndex > a.length}
88 public static void sort(int[] a, int fromIndex, int toIndex) { argument
89 rangeCheck(a.length, fromIndex, toIndex);
90 doSort(a, fromIndex, toIndex - 1);
356 * the index {@code toIndex}, exclusive. If {@code fromIndex == toIndex},
366 sort(long[] a, int fromIndex, int toIndex) argument
644 sort(short[] a, int fromIndex, int toIndex) argument
939 sort(char[] a, int fromIndex, int toIndex) argument
1232 sort(byte[] a, int fromIndex, int toIndex) argument
1543 sort(float[] a, int fromIndex, int toIndex) argument
1916 sort(double[] a, int fromIndex, int toIndex) argument
2255 rangeCheck(int length, int fromIndex, int toIndex) argument
[all...]
H A DComparableTimSort.java872 * Checks that fromIndex and toIndex are in range, and throws an
877 * @param toIndex the index after the last element of the range
878 * @throws IllegalArgumentException if fromIndex > toIndex
880 * or toIndex > arrayLen
882 private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) { argument
883 if (fromIndex > toIndex)
885 ") > toIndex(" + toIndex+")");
888 if (toIndex > arrayLen)
889 throw new ArrayIndexOutOfBoundsException(toIndex);
[all...]
H A DTimSort.java905 * Checks that fromIndex and toIndex are in range, and throws an
910 * @param toIndex the index after the last element of the range
911 * @throws IllegalArgumentException if fromIndex > toIndex
913 * or toIndex > arrayLen
915 private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) { argument
916 if (fromIndex > toIndex)
918 ") > toIndex(" + toIndex+")");
921 if (toIndex > arrayLen)
922 throw new ArrayIndexOutOfBoundsException(toIndex);
[all...]
H A DTreeMap.java759 int fromIndex, toIndex;
774 toIndex = lastKeyIndex;
777 toIndex = to == null ? 0 : to.right_idx;
783 return toIndex - fromIndex + 1;
791 return sum + toIndex - fromIndex + 1;
831 int toIndex = subMap.lastKeyIndex;
832 return new BoundedEntryIterator<K, V>(from, from == null ? 0 : from.right_idx - fromIndex, subMap.backingMap, to, to == null ? 0 : to.right_idx - toIndex);
914 int toIndex = subMap.lastKeyIndex;
917 to == null ? 0 : to.right_idx - toIndex);
951 int toIndex
[all...]
H A DCollections.java3013 public List<E> subList(int fromIndex, int toIndex) { argument
3014 return checkedList(l.subList(fromIndex, toIndex), type);
/dalvik/libcore/concurrent/src/main/java/java/util/concurrent/
H A DCopyOnWriteArrayList.java424 public List<E> subList(int fromIndex, int toIndex) { argument
425 return new SubList(this, fromIndex, toIndex);
1064 public List subList(int fromIndex, int toIndex) { argument
1065 return new SubList(list, start + fromIndex, start + toIndex);
/dalvik/libcore/luni/src/test/java/tests/api/java/util/
H A DConcurrentModTest.java727 public void removeRange(int fromIndex, int toIndex) { argument
728 super.removeRange(fromIndex, toIndex);

Completed in 162 milliseconds