/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/main/java/java/util/ |
D | DualPivotQuicksort.java | 107 static void sort(int[] a, int left, int right, in sort() method in DualPivotQuicksort 111 sort(a, left, right, true); in sort() 134 sort(a, left, right, true); in sort() 145 sort(a, left, right, true); in sort() 214 private static void sort(int[] a, int left, int right, boolean leftmost) { in sort() method in DualPivotQuicksort 399 sort(a, left, less - 2, leftmost); in sort() 400 sort(a, great + 2, right, false); in sort() 472 sort(a, less, great, false); in sort() 539 sort(a, left, less - 1, leftmost); in sort() 540 sort(a, great + 1, right, false); in sort() [all …]
|
D | Arrays.java | 125 public static void sort(int[] a) { in sort() method in Arrays 126 DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0); in sort() 149 public static void sort(int[] a, int fromIndex, int toIndex) { in sort() method in Arrays 151 DualPivotQuicksort.sort(a, fromIndex, toIndex - 1, null, 0, 0); in sort() 165 public static void sort(long[] a) { in sort() method in Arrays 166 DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0); in sort() 189 public static void sort(long[] a, int fromIndex, int toIndex) { in sort() method in Arrays 191 DualPivotQuicksort.sort(a, fromIndex, toIndex - 1, null, 0, 0); in sort() 205 public static void sort(short[] a) { in sort() method in Arrays 206 DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0); in sort() [all …]
|
D | List.java | 685 default void sort(Comparator<? super E> c) { in sort() method 686 Collections.sort(this, c); in sort()
|
/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 | 57 Arrays.sort(array); in test_iterator() 58 Arrays.sort(resultArray); in test_iterator() 135 Arrays.sort(newArray); in test_iterator_remove() 276 Arrays.sort(array); in test_ConstructorLjava_util_Colleciton() 365 Arrays.sort(array); in test_ConstructorLjava_util_PriorityQueue() 475 Arrays.sort(array); in test_poll() 501 Arrays.sort(array); in test_peek() 538 Arrays.sort(array); in test_add_Ljava_lang_Object() 591 Arrays.sort(newArray); in test_remove_Ljava_lang_Object() 679 Arrays.sort(array); in test_Serialization() [all …]
|
/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(new Integer(100)); in test_headSetLjava_lang_Object() local 144 sort.headSet(new Integer(101)); in test_headSetLjava_lang_Object() 228 SortedSet sort = ts.tailSet(new Integer(101)); in test_tailSetLjava_lang_Object() local 231 sort.tailSet(new Integer(100)); in test_tailSetLjava_lang_Object()
|
D | SpliteratorTester.java | 63 Collections.sort(expectedElements, comparator); in runBasicIterationTests_unordered() 64 Collections.sort(recorder, comparator); in runBasicIterationTests_unordered() 137 Collections.sort(expectedElements, comparator); in runBasicSplitTests() 138 Collections.sort(recorder, comparator); in runBasicSplitTests() 230 Collections.sort(sortedElements, comparator); in runSortedTests() 237 Collections.sort(sortedElements, comparator); in runSortedTests()
|
D | ListDefaultMethodTester.java | 45 l.sort((v1, v2) -> v1.compareTo(v2)); in test_sort()
|
D | OldTreeMapTest.java | 218 SortedMap sort = tm.headMap("100"); in test_headMapLjava_lang_Object() local 220 sort.headMap("50"); in test_headMapLjava_lang_Object() 462 SortedMap sort = tm.tailMap("99"); in test_tailMapLjava_lang_Object() local 465 sort.tailMap("101"); in test_tailMapLjava_lang_Object()
|
D | CollectionsTest.java | 124 Collections.sort(list); in testSort_leavesModcountUnmodified() 135 Collections.sort(list); in testSort_leavesModcountUnmodified() 553 Collections.emptyList().sort((k1, k2) -> 1); in test_EmptyList_sort() 577 Collections.unmodifiableList(new ArrayList<>()).sort((k1, k2) -> 1); in test_unmodifiableList_sort() 588 Collections.unmodifiableList(l).sort((k1, k2) -> 1); in test_unmodifiableList_sort() 603 Collections.singletonList(1).sort((k1, k2) -> 2); in test_SingletonList_sort()
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | SortedOps.java | 348 Arrays.sort(array, 0, offset, comparator); in end() 387 list.sort(comparator); in end() 445 Arrays.sort(array, 0, offset); in end() 485 Arrays.sort(ints); in end() 543 Arrays.sort(array, 0, offset); in end() 583 Arrays.sort(longs); in end() 641 Arrays.sort(array, 0, offset); in end() 681 Arrays.sort(doubles); in end()
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | DoublePrimitiveOpsTests.java | 62 Arrays.sort(sortedContent); in testSort() 80 Arrays.sort(sortedContent); in testSortSort()
|
D | IntPrimitiveOpsTests.java | 105 Arrays.sort(sortedContent); in testSort() 123 Arrays.sort(sortedContent); in testSortSort()
|
D | LongPrimitiveOpsTests.java | 105 Arrays.sort(sortedContent); in testSort() 123 Arrays.sort(sortedContent); in testSortSort()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | RetentionPolicyTest.java | 57 Arrays.sort(values); in test_values()
|
D | ElementTypeTest.java | 62 Arrays.sort(values); in test_values()
|
/libcore/ |
D | run-libcore-tests | 13 xargs grep -h '^package ' | sed 's/^package //' | sed 's/;$//' | sort | uniq | tr "\n" " ")
|
/libcore/tzdata/tools/ |
D | tzupdate.properties | 3 # This should be the tzdata version. e.g. "2015a". Lexicographical sort order
|
/libcore/luni/src/test/java/libcore/java/util/concurrent/ |
D | CopyOnWriteArrayListTest.java | 317 l.sort((v1, v2) -> v1.compareTo(v2)); in test_sort() 323 l.sort((v1, v2) -> v1.compareTo(v2)); in test_sort() 381 l.sort((v1, v2) -> v1.compareTo(v2)); in test_subList_sort() 395 subList.sort((k1, k2) -> k1.compareTo(k2)); in test_subList_sort() 411 l.sort((v1, v2) -> v1.compareTo(v2)); in test_subList_sort()
|
/libcore/luni/src/main/java/libcore/util/ |
D | CollectionUtils.java | 86 Collections.sort(list, comparator);
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
D | ProtocolList.java | 66 Collections.sort(protocols); in ProtocolList()
|
/libcore/luni/src/test/java/tests/java/sql/ |
D | DatabaseMetaDataTest.java | 232 Arrays.sort(tablesName); in test_getColumnsArbitrary() 345 Arrays.sort(tablesName); in test_getColumnsSpecific() 346 Arrays.sort(fields); in test_getColumnsSpecific() 347 Arrays.sort(nullableInt); in test_getColumnsSpecific() 348 Arrays.sort(nullable); in test_getColumnsSpecific() 1076 Arrays.sort(tablesName); in test_getTablesLjava_lang_StringLjava_lang_StringLjava_lang_String$Ljava_lang_String() 1077 Arrays.sort(tablesType); in test_getTablesLjava_lang_StringLjava_lang_StringLjava_lang_String$Ljava_lang_String() 1176 Arrays.sort(names); in test_getTypeInfo() 1191 Arrays.sort(types); in test_getTypeInfo() 2281 Arrays.sort(expected); in checkSchemas()
|