Home
last modified time | relevance | path

Searched refs:sort (Results 1 – 25 of 80) sorted by relevance

1234

/libcore/benchmarks/src/benchmarks/regression/
DCollectionsBenchmark.java44 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/annotations/hiddenapi/java/util/
DArrays.java42 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/ojluni/src/main/java/java/util/
DArrays.java146 public static void sort(int[] a) { in sort() method in Arrays
147 DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0); in sort()
170 public static void sort(int[] a, int fromIndex, int toIndex) { in sort() method in Arrays
172 DualPivotQuicksort.sort(a, fromIndex, toIndex - 1, null, 0, 0); in sort()
186 public static void sort(long[] a) { in sort() method in Arrays
187 DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0); in sort()
210 public static void sort(long[] a, int fromIndex, int toIndex) { in sort() method in Arrays
212 DualPivotQuicksort.sort(a, fromIndex, toIndex - 1, null, 0, 0); in sort()
226 public static void sort(short[] a) { in sort() method in Arrays
227 DualPivotQuicksort.sort(a, 0, a.length - 1, null, 0, 0); in sort()
[all …]
DDualPivotQuicksort.java107 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 …]
DList.java523 default void sort(Comparator<? super E> c) { in sort() method
525 Arrays.sort(a, (Comparator) c); in sort()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DArrays2Test.java126 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 …]
DPriorityQueueTest.java57 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()
681 Arrays.sort(array); in test_Serialization()
[all …]
DCollections2Test.java62 Collections.sort(lst, null); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator()
292 Arrays.sort(numbers, roc); in test_reverseOrder()
310 Arrays.sort(numbers, roc); in test_reverseOrderLjava_util_Comparator()
321 Arrays.sort(numbers, roc); in test_reverseOrderLjava_util_Comparator()
/libcore/luni/src/test/java/libcore/java/util/
DTimSortTest.java48 Arrays.sort(array); in testBug19493779WithComparable()
55 Arrays.sort(array, NATURAL_ORDER_COMPARATOR); in testBug19493779WithComparator()
DOldTreeSetTest.java142 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()
DSpliteratorTester.java76 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()
DListDefaultMethodTester.java45 l.sort((v1, v2) -> v1.compareTo(v2)); in test_sort()
DOldTreeMapTest.java218 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()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DArrays.annotated.java46 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/
Dcheck-ojluni-files22 COMMAND=${COMMAND}'<( find ojluni/src/main/java -type f | grep '\''\.java$$'\'' | sort )'
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DDoublePrimitiveOpsTests.java62 Arrays.sort(sortedContent); in testSort()
80 Arrays.sort(sortedContent); in testSortSort()
DIntPrimitiveOpsTests.java105 Arrays.sort(sortedContent); in testSort()
123 Arrays.sort(sortedContent); in testSortSort()
DLongPrimitiveOpsTests.java105 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/
DRetentionPolicyTest.java57 Arrays.sort(values); in test_values()
DElementTypeTest.java62 Arrays.sort(values); in test_values()
/libcore/tools/docs/crypto/
Dformat_supported_algorithm_table.py102 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/metrictests/memory/apps/src/libcore/heapdumper/
DActions.java102 Arrays.sort(strings, collator); in useCollatorForLocale()
/libcore/luni/src/main/java/libcore/util/
DCollectionUtils.java86 Collections.sort(list, comparator);
/libcore/ojluni/src/test/java/time/test/java/time/chrono/
DTestChronoLocalDate.java103 Collections.sort(copy, ChronoLocalDate.timeLineOrder()); in test_date_comparator_checkGenerics_ISO()
127 Collections.sort(copy, ChronoLocalDate.timeLineOrder());
/libcore/luni/src/test/java/tests/java/sql/
DDatabaseMetaDataTest.java232 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()

1234