Home
last modified time | relevance | path

Searched refs:comp (Results 1 – 19 of 19) sorted by relevance

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DGZIPInputStreamTest.java177 byte[] comp = bout.toByteArray(); in test_read$BII()
179 try (GZIPInputStream gin2 = new GZIPInputStream(new ByteArrayInputStream(comp), 512)) { in test_read$BII()
188 try (GZIPInputStream gin2 = new GZIPInputStream(new ByteArrayInputStream(comp), 512)) { in test_read$BII()
197 try (GZIPInputStream gin2 = new GZIPInputStream(new ByteArrayInputStream(comp), 516)) { in test_read$BII()
206 comp[40] = 0; in test_read$BII()
207 try (GZIPInputStream gin2 = new GZIPInputStream(new ByteArrayInputStream(comp), 512)) { in test_read$BII()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DTreeSetTest.java93 ReversedIntegerComparator comp = new ReversedIntegerComparator(); in test_ConstructorLjava_util_SortedSet() local
94 TreeSet myTreeSet = new TreeSet(comp); in test_ConstructorLjava_util_SortedSet()
104 .comparator() == comp); in test_ConstructorLjava_util_SortedSet()
163 ReversedIntegerComparator comp = new ReversedIntegerComparator(); in test_comparator() local
164 TreeSet myTreeSet = new TreeSet(comp); in test_comparator()
166 myTreeSet.comparator() == comp); in test_comparator()
DArraysTest.java303 Comparator comp = new ReversedIntegerComparator(); in test_binarySearch$Ljava_lang_ObjectLjava_lang_ObjectLjava_util_Comparator() local
308 Arrays.binarySearch(objectArray, Integer.valueOf(-1), comp) == -(arraySize + 1)); in test_binarySearch$Ljava_lang_ObjectLjava_lang_ObjectLjava_util_Comparator()
310 -1, Arrays.binarySearch(objectArray, Integer.valueOf(arraySize), comp)); in test_binarySearch$Ljava_lang_ObjectLjava_lang_ObjectLjava_util_Comparator()
314 Arrays.binarySearch(objectArray, objArray[counter], comp) == arraySize in test_binarySearch$Ljava_lang_ObjectLjava_lang_ObjectLjava_util_Comparator()
1524 ReversedIntegerComparator comp = new ReversedIntegerComparator(); in test_sort$Ljava_lang_ObjectIILjava_util_Comparator() local
1528 Arrays.sort(objectArray, startIndex, endIndex, comp); in test_sort$Ljava_lang_ObjectIILjava_util_Comparator()
1533 assertTrue("Array not sorted within bounds", comp.compare( in test_sort$Ljava_lang_ObjectIILjava_util_Comparator()
1543 Arrays.sort(originalArray, startIndex, endIndex, comp); in test_sort$Ljava_lang_ObjectIILjava_util_Comparator()
1549 Arrays.sort(originalArray, endIndex, originalArray.length, comp); in test_sort$Ljava_lang_ObjectIILjava_util_Comparator()
1552 Arrays.sort(originalArray, endIndex, originalArray.length + 1, comp); in test_sort$Ljava_lang_ObjectIILjava_util_Comparator()
[all …]
DCollectionsTest.java286 ReversedMyIntComparator comp = new ReversedMyIntComparator(); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator() local
289 Collections.binarySearch(null, new Object(), comp); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator()
299 myReversedLinkedList.get(i), comp))); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator()
573 Comparator comp = Collections.reverseOrder(); in test_reverseOrder() local
575 Collections.sort(list2, comp); in test_reverseOrder()
728 Comparator comp = new ReversedMyIntComparator(); in test_sortLjava_util_ListLjava_util_Comparator() local
730 Collections.sort(null, comp); in test_sortLjava_util_ListLjava_util_Comparator()
736 Collections.sort(myll, comp); in test_sortLjava_util_ListLjava_util_Comparator()
753 Collections.sort(al, comp); in test_sortLjava_util_ListLjava_util_Comparator()
766 Collections.sort(mal, comp); in test_sortLjava_util_ListLjava_util_Comparator()
DTreeMapTest.java109 Comparator comp = new ReversedComparator(); in test_ConstructorLjava_util_Comparator() local
110 TreeMap reversedTreeMap = new TreeMap(comp); in test_ConstructorLjava_util_Comparator()
112 .comparator() == comp); in test_ConstructorLjava_util_Comparator()
140 Comparator comp = new ReversedComparator(); in test_ConstructorLjava_util_SortedMap() local
141 TreeMap reversedTreeMap = new TreeMap(comp); in test_ConstructorLjava_util_SortedMap()
146 anotherTreeMap.comparator() == comp); in test_ConstructorLjava_util_SortedMap()
205 Comparator comp = new ReversedComparator(); in test_comparator()
206 TreeMap reversedTreeMap = new TreeMap(comp); in test_comparator()
208 .comparator() == comp); in test_comparator()
/libcore/ojluni/src/test/java/util/Collection/testlibrary/
DCollectionAsserts.java86 public static<T> void assertSorted(Iterator<T> i, Comparator<? super T> comp) { in assertSorted() argument
92 assertTrue(comp.compare(last, t) <= 0); in assertSorted()
93 assertTrue(comp.compare(t, last) >= 0); in assertSorted()
102 public static<T> void assertSorted(Iterable<T> iter, Comparator<? super T> comp) { in assertSorted() argument
103 assertSorted(iter.iterator(), comp); in assertSorted() local
/libcore/luni/src/test/java/libcore/java/util/zip/
DOldAndroidDeflateTest.java77 byte[] comp = new byte[128 * 1024 + 512]; in bigTest()
84 compress(deflater, input, comp); in bigTest()
85 expand(inflater, comp, (int) deflater.getBytesWritten(), output); in bigTest()
/libcore/luni/src/test/java/libcore/java/util/
DOldTreeMapTest.java92 Comparator comp = new ReversedComparator(); in test_ConstructorLjava_util_Comparator() local
93 TreeMap reversedTreeMap = new TreeMap(comp); in test_ConstructorLjava_util_Comparator()
95 .comparator() == comp); in test_ConstructorLjava_util_Comparator()
135 Comparator comp = new ReversedComparator(); in test_ConstructorLjava_util_SortedMap() local
136 TreeMap reversedTreeMap = new TreeMap(comp); in test_ConstructorLjava_util_SortedMap()
141 anotherTreeMap.comparator() == comp); in test_ConstructorLjava_util_SortedMap()
/libcore/ojluni/src/main/java/sun/security/util/
DObjectIdentifier.java153 String comp = null; in ObjectIdentifier() local
158 comp = oid.substring(start); in ObjectIdentifier()
161 comp = oid.substring(start,end); in ObjectIdentifier()
166 BigInteger bignum = new BigInteger(comp); in ObjectIdentifier()
180 int num = Integer.parseInt(comp); in ObjectIdentifier()
/libcore/ojluni/src/main/java/java/util/
DReverseOrderSortedSetView.java39 final Comparator<? super E> comp; field in ReverseOrderSortedSetView
43 comp = Collections.reverseOrder(set.comparator()); in ReverseOrderSortedSetView()
185 return comp; in comparator()
DCollections.java704 public static <T> T min(Collection<? extends T> coll, Comparator<? super T> comp) { in min() argument
705 if (comp==null) in min()
713 if (comp.compare(next, candidate) < 0) in min()
777 public static <T> T max(Collection<? extends T> coll, Comparator<? super T> comp) { in max() argument
778 if (comp==null) in max()
786 if (comp.compare(next, candidate) > 0) in max()
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
DLambdaTestHelpers.java228 public static<T> void assertSorted(Iterator<T> i, Comparator<? super T> comp) { in assertSorted() argument
240 assertTrue(comp.compare(last, t) <= 0); in assertSorted()
241 assertTrue(comp.compare(t, last) >= 0); in assertSorted()
250 public static<T> void assertSorted(Iterable<T> iter, Comparator<? super T> comp) { in assertSorted() argument
251 assertSorted(iter.iterator(), comp); in assertSorted() local
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java230 public static<T> void assertSorted(Iterator<T> i, Comparator<? super T> comp) { in assertSorted() argument
242 assertTrue(comp.compare(last, t) <= 0); in assertSorted()
243 assertTrue(comp.compare(t, last) >= 0); in assertSorted()
252 public static<T> void assertSorted(Iterable<T> iter, Comparator<? super T> comp) { in assertSorted() argument
253 assertSorted(iter.iterator(), comp); in assertSorted() local
/libcore/ojluni/annotations/flagged_api/java/util/
DCollections.annotated.java60 …n(java.util.Collection<? extends T> coll, java.util.Comparator<? super T> comp) { throw new Runtim… in min() argument
64 …x(java.util.Collection<? extends T> coll, java.util.Comparator<? super T> comp) { throw new Runtim… in max() argument
/libcore/ojluni/src/main/java/java/util/stream/
DSortedOps.java116 Comparator<? super T> comp = (Comparator<? super T>) Comparator.naturalOrder(); in OfRef() local
117 this.comparator = comp; in OfRef()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCollections.annotated.java62 ….Nullable java.util.Comparator<? super @libcore.util.NullFromTypeParam T> comp) { throw new Runtim… in min() argument
66 ….Nullable java.util.Comparator<? super @libcore.util.NullFromTypeParam T> comp) { throw new Runtim… in max() argument
/libcore/ojluni/src/main/java/java/io/
DObjectStreamClass.java1933 int comp = ms1.name.compareTo(ms2.name); in computeDefaultSUID()
1934 if (comp == 0) { in computeDefaultSUID()
1935 comp = ms1.signature.compareTo(ms2.signature); in computeDefaultSUID()
1937 return comp; in computeDefaultSUID()
/libcore/ojluni/src/main/java/java/util/concurrent/
DForkJoinPool.java3445 int comp; boolean done;
3449 if ((comp = tryCompensate(c)) >= 0) {
3450 long post = (comp == 0) ? 0L : RC_UNIT;
/libcore/ojluni/annotations/hiddenapi/java/util/
DCollections.java114 java.util.Collection<? extends T> coll, java.util.Comparator<? super T> comp) { in min() argument
124 java.util.Collection<? extends T> coll, java.util.Comparator<? super T> comp) { in max() argument