/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/zip/ |
D | GZIPInputStreamTest.java | 177 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/ |
D | TreeSetTest.java | 93 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()
|
D | ArraysTest.java | 303 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 …]
|
D | CollectionsTest.java | 285 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()
|
D | TreeMapTest.java | 109 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/ |
D | OldAndroidDeflateTest.java | 77 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/ |
D | OldTreeMapTest.java | 92 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/ |
D | ObjectIdentifier.java | 154 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/ |
D | LambdaTestHelpers.java | 229 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/ |
D | LambdaTestHelpers.java | 228 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/ |
D | SortedOps.java | 116 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/ |
D | ObjectStreamClass.java | 1856 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/ |
D | Collections.annotated.java | 60 ….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
|