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.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, 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.java285 ReversedMyIntComparator comp = new ReversedMyIntComparator(); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator() local
288 Collections.binarySearch(null, new Object(), comp); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator()
298 myReversedLinkedList.get(i), comp))); in test_binarySearchLjava_util_ListLjava_lang_ObjectLjava_util_Comparator()
572 Comparator comp = Collections.reverseOrder(); in test_reverseOrder() local
574 Collections.sort(list2, comp); in test_reverseOrder()
723 Comparator comp = new ReversedMyIntComparator(); in test_sortLjava_util_ListLjava_util_Comparator() local
725 Collections.sort(null, comp); in test_sortLjava_util_ListLjava_util_Comparator()
731 Collections.sort(myll, comp); in test_sortLjava_util_ListLjava_util_Comparator()
748 Collections.sort(al, comp); in test_sortLjava_util_ListLjava_util_Comparator()
761 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.java1856 int comp = ms1.name.compareTo(ms2.name); in computeDefaultSUID()
1857 if (comp == 0) { in computeDefaultSUID()
1858 comp = ms1.signature.compareTo(ms2.signature); in computeDefaultSUID()
1860 return comp; in computeDefaultSUID()
/libcore/ojluni/annotations/sdk/nullability/java/util/
DCollections.annotated.java60 ….Nullable java.util.Comparator<? super @libcore.util.NullFromTypeParam T> comp) { throw new Runtim… in min() argument
64 ….Nullable java.util.Comparator<? super @libcore.util.NullFromTypeParam T> comp) { throw new Runtim… in max() argument