/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Arrays.java | 38 private static void rangeCheck(int arrayLength, int fromIndex, int toIndex) { in rangeCheck() argument 46 public static void sort(int[] a, int fromIndex, int toIndex) { in sort() argument 54 public static void sort(long[] a, int fromIndex, int toIndex) { in sort() argument 62 public static void sort(short[] a, int fromIndex, int toIndex) { in sort() argument 70 public static void sort(char[] a, int fromIndex, int toIndex) { in sort() argument 78 public static void sort(byte[] a, int fromIndex, int toIndex) { in sort() argument 86 public static void sort(float[] a, int fromIndex, int toIndex) { in sort() argument 94 public static void sort(double[] a, int fromIndex, int toIndex) { in sort() argument 102 public static void parallelSort(byte[] a, int fromIndex, int toIndex) { in parallelSort() argument 110 public static void parallelSort(char[] a, int fromIndex, int toIndex) { in parallelSort() argument [all …]
|
D | ArrayList.java | 146 protected void removeRange(int fromIndex, int toIndex) { in removeRange() argument 187 public java.util.List<E> subList(int fromIndex, int toIndex) { in subList() argument 191 static void subListRangeCheck(int fromIndex, int toIndex, int size) { in subListRangeCheck() argument 351 SubList(java.util.AbstractList<E> parent, int offset, int fromIndex, int toIndex) { in SubList() argument 375 protected void removeRange(int fromIndex, int toIndex) { in removeRange() argument 395 public java.util.List<E> subList(int fromIndex, int toIndex) { in subList() argument
|
/libcore/ojluni/src/main/java/java/util/ |
D | AbstractList.java | 498 public List<E> subList(int fromIndex, int toIndex) { in subList() argument 499 subListRangeCheck(fromIndex, toIndex, size()); in subList() 501 new RandomAccessSubList<>(this, fromIndex, toIndex) : in subList() 502 new SubList<>(this, fromIndex, toIndex)); in subList() 505 static void subListRangeCheck(int fromIndex, int toIndex, int size) { in subListRangeCheck() argument 508 if (toIndex > size) in subListRangeCheck() 509 throw new IndexOutOfBoundsException("toIndex = " + toIndex); in subListRangeCheck() 510 if (fromIndex > toIndex) in subListRangeCheck() 512 ") > toIndex(" + toIndex + ")"); in subListRangeCheck() 596 protected void removeRange(int fromIndex, int toIndex) { in removeRange() argument [all …]
|
D | Arrays.java | 129 public static void sort(int[] a, int fromIndex, int toIndex) { in sort() argument 130 rangeCheck(a.length, fromIndex, toIndex); in sort() 131 DualPivotQuicksort.sort(a, 0, fromIndex, toIndex); in sort() 167 public static void sort(long[] a, int fromIndex, int toIndex) { in sort() argument 168 rangeCheck(a.length, fromIndex, toIndex); in sort() 169 DualPivotQuicksort.sort(a, 0, fromIndex, toIndex); in sort() 205 public static void sort(short[] a, int fromIndex, int toIndex) { in sort() argument 206 rangeCheck(a.length, fromIndex, toIndex); in sort() 207 DualPivotQuicksort.sort(a, fromIndex, toIndex); in sort() 243 public static void sort(char[] a, int fromIndex, int toIndex) { in sort() argument [all …]
|
D | BitSet.java | 363 private static void checkRange(int fromIndex, int toIndex) { in checkRange() argument 366 if (toIndex < 0) in checkRange() 367 throw new IndexOutOfBoundsException("toIndex < 0: " + toIndex); in checkRange() 368 if (fromIndex > toIndex) in checkRange() 370 " > toIndex: " + toIndex); in checkRange() 406 public void flip(int fromIndex, int toIndex) { in flip() argument 407 checkRange(fromIndex, toIndex); in flip() 409 if (fromIndex == toIndex) in flip() 413 int endWordIndex = wordIndex(toIndex - 1); in flip() 417 long lastWordMask = WORD_MASK >>> -toIndex; in flip() [all …]
|
D | HexFormat.java | 356 public String formatHex(byte[] bytes, int fromIndex, int toIndex) { in formatHex() argument 358 Objects.checkFromToIndex(fromIndex, toIndex, bytes.length); in formatHex() 359 if (toIndex - fromIndex == 0) { in formatHex() 363 String s = formatOptDelimiter(bytes, fromIndex, toIndex); in formatHex() 366 int capacity = checkMaxArraySize((toIndex - fromIndex) * stride - delimiter.length()); in formatHex() 368 formatHex(sb, bytes, fromIndex, toIndex); in formatHex() 407 public <A extends Appendable> A formatHex(A out, byte[] bytes, int fromIndex, int toIndex) { in formatHex() argument 410 Objects.checkFromToIndex(fromIndex, toIndex, bytes.length); in formatHex() 412 int length = toIndex - fromIndex; in formatHex() 448 private String formatOptDelimiter(byte[] bytes, int fromIndex, int toIndex) { in formatOptDelimiter() argument [all …]
|
D | Objects.java | 384 int checkFromToIndex(int fromIndex, int toIndex, int length) { in checkFromToIndex() argument 385 return Preconditions.checkFromToIndex(fromIndex, toIndex, length, null); in checkFromToIndex() 461 long checkFromToIndex(long fromIndex, long toIndex, long length) { in checkFromToIndex() argument 462 return Preconditions.checkFromToIndex(fromIndex, toIndex, length, null); in checkFromToIndex()
|
D | ArrayList.java | 824 protected void removeRange(int fromIndex, int toIndex) { in removeRange() argument 825 if (fromIndex > toIndex) { in removeRange() 827 outOfBoundsMsg(fromIndex, toIndex)); in removeRange() 830 shiftTailOverGap(elementData, fromIndex, toIndex); in removeRange() 860 private static String outOfBoundsMsg(int fromIndex, int toIndex) { in outOfBoundsMsg() argument 861 return "From Index: " + fromIndex + " > To Index: " + toIndex; in outOfBoundsMsg() 1206 public List<E> subList(int fromIndex, int toIndex) { in subList() argument 1207 subListRangeCheck(fromIndex, toIndex, size); in subList() 1208 return new SubList<>(this, fromIndex, toIndex); in subList() 1220 public SubList(ArrayList<E> root, int fromIndex, int toIndex) { in SubList() argument [all …]
|
D | JumboEnumSet.java | 57 int toIndex = to.ordinal() >>> 6; in addRange() local 59 if (fromIndex == toIndex) { in addRange() 64 for (int i = fromIndex + 1; i < toIndex; i++) in addRange() 66 elements[toIndex] = -1L >>> (63 - to.ordinal()); in addRange()
|
D | ImmutableCollections.java | 271 public List<E> subList(int fromIndex, int toIndex) { in subList() argument 273 subListRangeCheck(fromIndex, toIndex, size); in subList() 274 return SubList.fromList(this, fromIndex, toIndex); in subList() 277 static void subListRangeCheck(int fromIndex, int toIndex, int size) { in subListRangeCheck() argument 280 if (toIndex > size) in subListRangeCheck() 281 throw new IndexOutOfBoundsException("toIndex = " + toIndex); in subListRangeCheck() 282 if (fromIndex > toIndex) in subListRangeCheck() 284 ") > toIndex(" + toIndex + ")"); in subListRangeCheck() 456 static <E> SubList<E> fromSubList(SubList<E> parent, int fromIndex, int toIndex) { in fromSubList() argument 457 return new SubList<>(parent.root, parent.offset + fromIndex, toIndex - fromIndex); in fromSubList() [all …]
|
D | Spliterators.java | 175 public static <T> Spliterator<T> spliterator(Object[] array, int fromIndex, int toIndex, in spliterator() argument 177 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex); in spliterator() local 178 return new ArraySpliterator<>(array, fromIndex, toIndex, additionalCharacteristics); in spliterator() 237 public static Spliterator.OfInt spliterator(int[] array, int fromIndex, int toIndex, in spliterator() argument 239 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex); in spliterator() local 240 return new IntArraySpliterator(array, fromIndex, toIndex, additionalCharacteristics); in spliterator() 303 public static Spliterator.OfLong spliterator(long[] array, int fromIndex, int toIndex, in spliterator() argument 305 checkFromToBounds(Objects.requireNonNull(array).length, fromIndex, toIndex); in spliterator() local 306 return new LongArraySpliterator(array, fromIndex, toIndex, additionalCharacteristics); in spliterator() 369 public static Spliterator.OfDouble spliterator(double[] array, int fromIndex, int toIndex, in spliterator() argument [all …]
|
D | Vector.java | 1120 public synchronized List<E> subList(int fromIndex, int toIndex) { in subList() argument 1121 return Collections.synchronizedList(super.subList(fromIndex, toIndex), in subList() 1132 protected synchronized void removeRange(int fromIndex, int toIndex) { in removeRange() argument 1135 if (fromIndex > toIndex) { in removeRange() 1137 "From Index: " + fromIndex + " > To Index: " + toIndex); in removeRange() 1142 shiftTailOverGap(elementData, fromIndex, toIndex); in removeRange()
|
D | ReverseOrderListView.java | 393 public List<E> subList(int fromIndex, int toIndex) { in subList() argument 395 Objects.checkFromToIndex(fromIndex, toIndex, size); in subList() 396 … return new ReverseOrderListView<>(base.subList(size - toIndex, size - fromIndex), modifiable); in subList()
|
/libcore/ojluni/src/test/java/util/Objects/ |
D | CheckLongIndex.java | 140 for (long toIndex : VALUES) { 143 toIndex >= 0 && 145 fromIndex <= toIndex && 146 toIndex <= length; 147 l.add(new Object[]{fromIndex, toIndex, length, withinBounds}); 155 …public void testCheckFromToIndex(long fromIndex, long toIndex, long length, boolean withinBounds) { 159 apply("checkFromToIndex", List.of(fromIndex, toIndex, length)).getMessage(); 166 … is out of bounds of [0, %d), but was reported to be withing bounds", fromIndex, toIndex, length)); 173 …) is within bounds of [0, %d), but was reported to be out of bounds", fromIndex, toIndex, length)); 180 () -> Preconditions.checkFromToIndex(fromIndex, toIndex, length, [all …]
|
D | CheckIndex.java | 141 for (int toIndex : VALUES) { 144 toIndex >= 0 && 146 fromIndex <= toIndex && 147 toIndex <= length; 148 l.add(new Object[]{fromIndex, toIndex, length, withinBounds}); 156 public void testCheckFromToIndex(int fromIndex, int toIndex, int length, boolean withinBounds) { 160 apply("checkFromToIndex", List.of(fromIndex, toIndex, length)).getMessage(); 167 … is out of bounds of [0, %d), but was reported to be withing bounds", fromIndex, toIndex, length)); 174 …) is within bounds of [0, %d), but was reported to be out of bounds", fromIndex, toIndex, length)); 181 () -> Preconditions.checkFromToIndex(fromIndex, toIndex, length, [all …]
|
/libcore/ojluni/src/main/java/jdk/internal/util/ |
D | Preconditions.java | 75 int fromIndex, int toIndex, int length) { in outOfBoundsCheckFromToIndex() argument 76 return outOfBounds(oobe, "checkFromToIndex", fromIndex, toIndex, length); in outOfBoundsCheckFromToIndex() 93 long fromIndex, long toIndex, long length) { in outOfBoundsCheckFromToIndex() argument 94 return outOfBounds(oobe, "checkFromToIndex", fromIndex, toIndex, length); in outOfBoundsCheckFromToIndex() 310 int checkFromToIndex(int fromIndex, int toIndex, int length, 312 if (fromIndex < 0 || fromIndex > toIndex || toIndex > length) 313 throw outOfBoundsCheckFromToIndex(oobef, fromIndex, toIndex, length); 457 long checkFromToIndex(long fromIndex, long toIndex, long length, 459 if (fromIndex < 0 || fromIndex > toIndex || toIndex > length) 460 throw outOfBoundsCheckFromToIndex(oobef, fromIndex, toIndex, length);
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Arrays.annotated.java | 48 public static void sort(int @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new Run… in sort() argument 52 public static void sort(long @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new Ru… in sort() argument 56 public static void sort(short @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new R… in sort() argument 60 public static void sort(char @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new Ru… in sort() argument 64 public static void sort(byte @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new Ru… in sort() argument 68 public static void sort(float @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new R… in sort() argument 72 public static void sort(double @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new … in sort() argument 76 public static void parallelSort(byte @libcore.util.NonNull [] a, int fromIndex, int toIndex) { thro… in parallelSort() argument 80 public static void parallelSort(char @libcore.util.NonNull [] a, int fromIndex, int toIndex) { thro… in parallelSort() argument 84 public static void parallelSort(short @libcore.util.NonNull [] a, int fromIndex, int toIndex) { thr… in parallelSort() argument [all …]
|
D | AbstractList.annotated.java | 59 ….util.List<@libcore.util.NullFromTypeParam E> subList(int fromIndex, int toIndex) { throw new Runt… in subList() argument 65 protected void removeRange(int fromIndex, int toIndex) { throw new RuntimeException("Stub!"); } in removeRange() argument
|
D | ArrayList.annotated.java | 91 protected void removeRange(int fromIndex, int toIndex) { throw new RuntimeException("Stub!"); } in removeRange() argument 103 ….util.List<@libcore.util.NullFromTypeParam E> subList(int fromIndex, int toIndex) { throw new Runt… in subList() argument
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | Sorting.java | 316 int toIndex = length - m; in testSubArray() local 318 prepareSubArray((int[]) gold[0], fromIndex, toIndex); in testSubArray() local 324 sortingHelper.sort(test[i], fromIndex, toIndex); in testSubArray() 325 checkSubArray(test[i], fromIndex, toIndex); in testSubArray() 539 private void prepareSubArray(int[] a, int fromIndex, int toIndex) { in prepareSubArray() argument 543 int middle = (fromIndex + toIndex) >>> 1; in prepareSubArray() 550 for (int i = middle; i < toIndex; i++) { in prepareSubArray() 554 for (int i = toIndex; i < a.length; i++) { in prepareSubArray() 1223 private void checkSubArray(Object a, int fromIndex, int toIndex) { in checkSubArray() argument 1225 checkSubArray((int[]) a, fromIndex, toIndex); in checkSubArray() local [all …]
|
/libcore/ojluni/src/test/java/util/SequencedCollection/ |
D | SimpleList.java | 151 public List<E> subList(int fromIndex, int toIndex) { in subList() argument 152 return list.subList(fromIndex, toIndex); in subList()
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | CopyOnWriteArrayList.java | 647 void removeRange(int fromIndex, int toIndex) { in removeRange() argument 652 if (fromIndex < 0 || toIndex > len || toIndex < fromIndex) in removeRange() 654 int newlen = len - (toIndex - fromIndex); in removeRange() 655 int numMoved = len - toIndex; in removeRange() 661 System.arraycopy(es, toIndex, newElements, in removeRange() 1259 public List<E> subList(int fromIndex, int toIndex) { in subList() argument 1263 int size = toIndex - fromIndex; in subList() 1264 if (fromIndex < 0 || toIndex > len || size < 0) in subList() 1591 public List<E> subList(int fromIndex, int toIndex) { in subList() argument 1594 if (fromIndex < 0 || toIndex > size || fromIndex > toIndex) in subList() [all …]
|
/libcore/ojluni/annotations/hiddenapi/java/util/concurrent/ |
D | CopyOnWriteArrayList.java | 151 void removeRange(int fromIndex, int toIndex) { in removeRange() argument 244 public java.util.List<E> subList(int fromIndex, int toIndex) { in subList() argument 335 COWSubList(java.util.concurrent.CopyOnWriteArrayList<E> list, int fromIndex, int toIndex) { in COWSubList() argument 383 public java.util.List<E> subList(int fromIndex, int toIndex) { in subList() argument
|
/libcore/ojluni/annotations/flagged_api/java/util/ |
D | ArrayList.annotated.java | 99 protected void removeRange(int fromIndex, int toIndex) { throw new RuntimeException("Stub!"); } in removeRange() argument 111 public java.util.List<E> subList(int fromIndex, int toIndex) { throw new RuntimeException("Stub!");… in subList() argument
|
/libcore/luni/src/test/androidsdk34/src/libcore/android34/java/util/ |
D | ListTest.java | 152 public List<String> subList(int fromIndex, int toIndex) { in subList() argument 153 return l.subList(fromIndex, toIndex); in subList()
|