/libcore/ojluni/src/test/java/util/Arrays/ |
D | SortingHelper.java | 48 public void sort(Object a) { in sort() method 106 public void sort(Object a, int low, int high) { in sort() method 164 public void sort(Object[] a) { in sort() method 169 public void sort(Object[] a, Comparator comparator) { in sort() method 177 public void sort(Object a) { in sort() method 235 public void sort(Object a, int low, int high) { in sort() method 293 public void sort(Object[] a) { in sort() method 298 public void sort(Object[] a, Comparator comparator) { in sort() method 306 public void sort(Object a) { in sort() method 364 public void sort(Object a, int low, int high) { in sort() method [all …]
|
D | Sorting.java | 172 sortingHelper.sort(a); in testStability() 177 sortingHelper.sort(a, pairComparator); in testStability() 185 sortingHelper.sort(new int[]{}); in testEmptyAndNullIntArray() 186 sortingHelper.sort(new int[]{}, 0, 0); in testEmptyAndNullIntArray() 189 sortingHelper.sort(null); in testEmptyAndNullIntArray() 192 sortingHelper.sort(null, 0, 0); in testEmptyAndNullIntArray() 203 sortingHelper.sort(new long[]{}); in testEmptyAndNullLongArray() 204 sortingHelper.sort(new long[]{}, 0, 0); in testEmptyAndNullLongArray() 207 sortingHelper.sort(null); in testEmptyAndNullLongArray() 210 sortingHelper.sort(null, 0, 0); in testEmptyAndNullLongArray() [all …]
|
D | FloatDoubleOrder.java | 52 Collections.sort(list); in test() 60 Arrays.sort(unsortedDbl); in test() 79 Collections.sort(list); in test() 87 Arrays.sort(unsortedFlt); in test() 101 Arrays.sort(da, 1, 4); in test() 105 Arrays.sort(fa, 1, 4); in test()
|
D | SortingNearlySortedPrimitive.java | 200 Arrays.sort(array); in sortAndAssert() 209 Arrays.sort(array); in sortAndAssert() 218 Arrays.sort(array); in sortAndAssert() 227 Arrays.sort(array); in sortAndAssert() 236 Arrays.sort(array); in sortAndAssert() 245 Arrays.sort(array); in sortAndAssert()
|
D | TimSortStackSize.java | 44 Arrays.sort(genData()); in testComparableTimSort() 49 Arrays.sort(genData(), Integer::compare); in testTimSort()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Arrays.java | 42 public static void sort(int[] a) { in sort() method in Arrays 46 public static void sort(int[] a, int fromIndex, int toIndex) { in sort() method in Arrays 50 public static void sort(long[] a) { in sort() method in Arrays 54 public static void sort(long[] a, int fromIndex, int toIndex) { in sort() method in Arrays 58 public static void sort(short[] a) { in sort() method in Arrays 62 public static void sort(short[] a, int fromIndex, int toIndex) { in sort() method in Arrays 66 public static void sort(char[] a) { in sort() method in Arrays 70 public static void sort(char[] a, int fromIndex, int toIndex) { in sort() method in Arrays 74 public static void sort(byte[] a) { in sort() method in Arrays 78 public static void sort(byte[] a, int fromIndex, int toIndex) { in sort() method in Arrays [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | CollectionsBenchmark.java | 44 Collections.sort(input); in timeSort_arrayList() 51 Collections.sort(input, REVERSE); in timeSortWithComparator_arrayList() 58 Collections.sort(input); in timeSort_vector() 65 Collections.sort(input, REVERSE); in timeSortWithComparator_vector()
|
/libcore/ojluni/src/test/java/util/Collections/ |
D | NullComparator.java | 46 Arrays.sort(a, null); in main() 50 Arrays.sort(a, 0, 100, null); in main() 57 Collections.sort(tmp, null); in main()
|
D | ReverseOrder.java | 72 Collections.sort(list, cmp); in main() 81 Collections.sort(list2, clone); in main()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Arrays2Test.java | 126 Arrays.sort(reversedArray); in test_sort$D() 137 Arrays.sort(specials1); in test_sort$D() 145 Arrays.sort(specials2); in test_sort$D() 163 Arrays.sort(reversedArray); in test_sort$F() 173 Arrays.sort(specials1); in test_sort$F() 181 Arrays.sort(specials2); in test_sort$F() 370 Arrays.sort(strings, String.CASE_INSENSITIVE_ORDER); in test_binarySearch$TTLjava_util_ComparatorsuperT() 395 Arrays.sort(strings, null); in test_binarySearch$TTLjava_util_ComparatorsuperT() 431 Arrays.sort(strings, String.CASE_INSENSITIVE_ORDER); 438 Arrays.sort(strings, null); [all …]
|
D | ArraysTest.java | 1031 Arrays.sort(reversedArray); in test_sort$B() 1050 Arrays.sort(reversedArray, startIndex, endIndex); in test_sort$BII() 1063 Arrays.sort(reversedArray, startIndex + 1, startIndex); in test_sort$BII() 1069 Arrays.sort(reversedArray, -1, startIndex); in test_sort$BII() 1075 Arrays.sort(reversedArray, startIndex, reversedArray.length + 1); in test_sort$BII() 1089 Arrays.sort(reversedArray); in test_sort$C() 1109 Arrays.sort(reversedArray, startIndex, endIndex); in test_sort$CII() 1122 Arrays.sort(reversedArray, startIndex + 1, startIndex); in test_sort$CII() 1128 Arrays.sort(reversedArray, -1, startIndex); in test_sort$CII() 1134 Arrays.sort(reversedArray, startIndex, reversedArray.length + 1); in test_sort$CII() [all …]
|
D | PriorityQueueTest.java | 60 Arrays.sort(array); in test_iterator() 61 Arrays.sort(resultArray); in test_iterator() 138 Arrays.sort(newArray); in test_iterator_remove() 279 Arrays.sort(array); in test_ConstructorLjava_util_Colleciton() 368 Arrays.sort(array); in test_ConstructorLjava_util_PriorityQueue() 478 Arrays.sort(array); in test_poll() 504 Arrays.sort(array); in test_peek() 541 Arrays.sort(array); in test_add_Ljava_lang_Object() 594 Arrays.sort(newArray); in test_remove_Ljava_lang_Object() 685 Arrays.sort(array); in test_Serialization() [all …]
|
/libcore/ojluni/src/main/java/java/util/ |
D | Arrays.java | 106 public static void sort(int[] a) { in sort() method in Arrays 107 DualPivotQuicksort.sort(a, 0, 0, a.length); in sort() 129 public static void sort(int[] a, int fromIndex, int toIndex) { in sort() method in Arrays 131 DualPivotQuicksort.sort(a, 0, fromIndex, toIndex); in sort() 144 public static void sort(long[] a) { in sort() method in Arrays 145 DualPivotQuicksort.sort(a, 0, 0, a.length); in sort() 167 public static void sort(long[] a, int fromIndex, int toIndex) { in sort() method in Arrays 169 DualPivotQuicksort.sort(a, 0, fromIndex, toIndex); in sort() 182 public static void sort(short[] a) { in sort() method in Arrays 183 DualPivotQuicksort.sort(a, 0, a.length); in sort() [all …]
|
D | DualPivotQuicksort.java | 155 static void sort(int[] a, int parallelism, int low, int high) { in sort() method in DualPivotQuicksort 163 sort(null, a, 0, low, high); in sort() 178 static void sort(Sorter sorter, int[] a, int bits, int low, int high) { in sort() method in DualPivotQuicksort 355 sort(sorter, a, bits | 1, lower + 1, upper); in sort() 356 sort(sorter, a, bits | 1, upper + 1, high); in sort() 427 sort(sorter, a, bits | 1, upper, high); in sort() 909 static void sort(long[] a, int parallelism, int low, int high) { 917 sort(null, a, 0, low, high); 932 static void sort(Sorter sorter, long[] a, int bits, int low, int high) { 1109 sort(sorter, a, bits | 1, lower + 1, upper); [all …]
|
/libcore/ojluni/src/test/java/util/Map/ |
D | ToArray.java | 86 Arrays.sort(keys); in testMap() 94 Arrays.sort(values); in testMap() 102 Arrays.sort( entries,new Comparator<Map.Entry<Integer,Long>>() { in testMap()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | TimSortTest.java | 48 Arrays.sort(array); in testBug19493779WithComparable() 55 Arrays.sort(array, NATURAL_ORDER_COMPARATOR); in testBug19493779WithComparator()
|
D | OldTreeSetTest.java | 142 SortedSet sort = ts.headSet(Integer.valueOf(100)); in test_headSetLjava_lang_Object() local 144 sort.headSet(Integer.valueOf(101)); in test_headSetLjava_lang_Object() 228 SortedSet sort = ts.tailSet(Integer.valueOf(101)); in test_tailSetLjava_lang_Object() local 231 sort.tailSet(Integer.valueOf(100)); in test_tailSetLjava_lang_Object()
|
D | SpliteratorTester.java | 76 Collections.sort(expectedElements, comparator); in runBasicIterationTests_unordered() 77 Collections.sort(recorder, comparator); in runBasicIterationTests_unordered() 154 Collections.sort(expectedElements, comparator); in runBasicSplitTests() 155 Collections.sort(recorder, comparator); in runBasicSplitTests() 314 Collections.sort(sortedElements, comparator); in runSortedTests() 321 Collections.sort(sortedElements, comparator); in runSortedTests()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | SortedOps.java | 353 Arrays.sort(array, 0, offset, comparator); in end() 392 list.sort(comparator); in end() 451 Arrays.sort(array, 0, offset); in end() 491 Arrays.sort(ints); in end() 550 Arrays.sort(array, 0, offset); in end() 590 Arrays.sort(longs); in end() 649 Arrays.sort(array, 0, offset); in end() 689 Arrays.sort(doubles); in end()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Arrays.annotated.java | 46 public static void sort(int @libcore.util.NonNull [] a) { throw new RuntimeException("Stub!"); } in sort() method in Arrays 48 public static void sort(int @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new Run… in sort() method in Arrays 50 public static void sort(long @libcore.util.NonNull [] a) { throw new RuntimeException("Stub!"); } in sort() method in Arrays 52 public static void sort(long @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new Ru… in sort() method in Arrays 54 public static void sort(short @libcore.util.NonNull [] a) { throw new RuntimeException("Stub!"); } in sort() method in Arrays 56 public static void sort(short @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new R… in sort() method in Arrays 58 public static void sort(char @libcore.util.NonNull [] a) { throw new RuntimeException("Stub!"); } in sort() method in Arrays 60 public static void sort(char @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new Ru… in sort() method in Arrays 62 public static void sort(byte @libcore.util.NonNull [] a) { throw new RuntimeException("Stub!"); } in sort() method in Arrays 64 public static void sort(byte @libcore.util.NonNull [] a, int fromIndex, int toIndex) { throw new Ru… in sort() method in Arrays [all …]
|
/libcore/ |
D | check-ojluni-files | 22 COMMAND=${COMMAND}'<( find ojluni/src/main/java -type f | grep '\''\.java$$'\'' | sort )'
|
/libcore/ojluni/src/test/java/util/HashMap/ |
D | ToArray.java | 55 Arrays.sort(expected); in checkToArray() 80 Arrays.sort(res, 0, Math.min(res.length, expected.length)); in checkToTypedArray() 111 Arrays.sort(objects); in checkToObjectArray()
|
/libcore/tools/docs/crypto/ |
D | format_supported_algorithm_table.py | 102 tuples.sort(key=operator.itemgetter(0, 1, 3, 4)) 115 tuples.sort(key=operator.itemgetter(0, 2, 3, 4)) 142 tuples.sort(key=operator.itemgetter(0, 4, 1, 2, 3))
|
/libcore/ojluni/src/test/java/lang/ref/ |
D | ReferenceEnqueuePendingTest.java | 158 sort(length); in checkResult() 201 private static void sort(int length) { in sort() method in ReferenceEnqueuePendingTest
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | DoublePrimitiveOpsTests.java | 77 Arrays.sort(sortedContent); in testSort() 111 Arrays.sort(sortedContent); in testSortSort()
|