Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/
DGZIPInputStreamTest.java164 byte[] comp = bout.toByteArray(); in test_read$BII()
166 comp), 512); in test_read$BII()
175 gin2 = new GZIPInputStream(new ByteArrayInputStream(comp), 512); in test_read$BII()
184 gin2 = new GZIPInputStream(new ByteArrayInputStream(comp), 516); in test_read$BII()
193 comp[40] = 0; in test_read$BII()
194 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, new Integer(-1), comp) == -(arraySize + 1)); in test_binarySearch$Ljava_lang_ObjectLjava_lang_ObjectLjava_util_Comparator()
310 -1, Arrays.binarySearch(objectArray, new Integer(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.java284 ReversedMyIntComparator comp = new ReversedMyIntComparator(); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator() local
287 Collections.binarySearch(null, new Object(), comp); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator()
297 myReversedLinkedList.get(i), comp))); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator()
571 Comparator comp = Collections.reverseOrder(); in test_reverseOrder() local
573 Collections.sort(list2, comp); in test_reverseOrder()
722 Comparator comp = new ReversedMyIntComparator(); in test_sortLjava_util_ListLjava_util_Comparator() local
724 Collections.sort(null, comp); in test_sortLjava_util_ListLjava_util_Comparator()
730 Collections.sort(myll, comp); in test_sortLjava_util_ListLjava_util_Comparator()
747 Collections.sort(al, comp); in test_sortLjava_util_ListLjava_util_Comparator()
759 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/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.java154 String comp = null; in ObjectIdentifier() local
159 comp = oid.substring(start); in ObjectIdentifier()
162 comp = oid.substring(start,end); in ObjectIdentifier()
167 BigInteger bignum = new BigInteger(comp); in ObjectIdentifier()
181 int num = Integer.parseInt(comp); in ObjectIdentifier()
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
DLambdaTestHelpers.java229 public static<T> void assertSorted(Iterator<T> i, Comparator<? super T> comp) { in assertSorted() argument
241 assertTrue(comp.compare(last, t) <= 0); in assertSorted()
242 assertTrue(comp.compare(t, last) >= 0); in assertSorted()
251 public static<T> void assertSorted(Iterable<T> iter, Comparator<? super T> comp) { in assertSorted() argument
252 assertSorted(iter.iterator(), comp); in assertSorted() local
/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/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/src/main/java/java/io/
DObjectStreamClass.java1772 int comp = ms1.name.compareTo(ms2.name); in computeDefaultSUID()
1773 if (comp == 0) { in computeDefaultSUID()
1774 comp = ms1.signature.compareTo(ms2.signature); in computeDefaultSUID()
1776 return comp; in computeDefaultSUID()
/libcore/ojluni/src/main/java/java/util/
DCollections.java703 public static <T> T min(Collection<? extends T> coll, Comparator<? super T> comp) { in min() argument
704 if (comp==null) in min()
712 if (comp.compare(next, candidate) < 0) in min()
776 public static <T> T max(Collection<? extends T> coll, Comparator<? super T> comp) { in max() argument
777 if (comp==null) in max()
785 if (comp.compare(next, candidate) > 0) in max()