/libcore/luni/src/test/java/libcore/java/lang/ |
D | ShortTest.java | 24 assertTrue(Short.compare(max, max) == 0); in test_compare() 25 assertTrue(Short.compare(min, min) == 0); in test_compare() 26 assertTrue(Short.compare(zero, zero) == 0); in test_compare() 27 assertTrue(Short.compare(max, zero) > 0); in test_compare() 28 assertTrue(Short.compare(max, min) > 0); in test_compare() 29 assertTrue(Short.compare(zero, max) < 0); in test_compare() 30 assertTrue(Short.compare(zero, min) > 0); in test_compare() 31 assertTrue(Short.compare(min, zero) < 0); in test_compare() 32 assertTrue(Short.compare(min, max) < 0); in test_compare()
|
D | ByteTest.java | 24 assertTrue(Byte.compare(max, max) == 0); in test_compare() 25 assertTrue(Byte.compare(min, min) == 0); in test_compare() 26 assertTrue(Byte.compare(zero, zero) == 0); in test_compare() 27 assertTrue(Byte.compare(max, zero) > 0); in test_compare() 28 assertTrue(Byte.compare(max, min) > 0); in test_compare() 29 assertTrue(Byte.compare(zero, max) < 0); in test_compare() 30 assertTrue(Byte.compare(zero, min) > 0); in test_compare() 31 assertTrue(Byte.compare(min, zero) < 0); in test_compare() 32 assertTrue(Byte.compare(min, max) < 0); in test_compare()
|
D | IntegerTest.java | 43 assertTrue(Integer.compare(max, max) == 0); in testCompare() 44 assertTrue(Integer.compare(min, min) == 0); in testCompare() 45 assertTrue(Integer.compare(zero, zero) == 0); in testCompare() 46 assertTrue(Integer.compare(max, zero) > 0); in testCompare() 47 assertTrue(Integer.compare(max, min) > 0); in testCompare() 48 assertTrue(Integer.compare(zero, max) < 0); in testCompare() 49 assertTrue(Integer.compare(zero, min) > 0); in testCompare() 50 assertTrue(Integer.compare(min, zero) < 0); in testCompare() 51 assertTrue(Integer.compare(min, max) < 0); in testCompare()
|
D | BooleanTest.java | 31 assertEquals(0, Boolean.compare(true, true)); in test_compare() 32 assertEquals(0, Boolean.compare(false, false)); in test_compare() 33 assertTrue(Boolean.compare(false, true) < 0); in test_compare() 34 assertTrue(Boolean.compare(true, false) > 0); in test_compare()
|
D | LongTest.java | 41 assertTrue(Long.compare(max, max) == 0); in testCompare() 42 assertTrue(Long.compare(min, min) == 0); in testCompare() 43 assertTrue(Long.compare(zero, zero) == 0); in testCompare() 44 assertTrue(Long.compare(max, zero) > 0); in testCompare() 45 assertTrue(Long.compare(max, min) > 0); in testCompare() 46 assertTrue(Long.compare(zero, max) < 0); in testCompare() 47 assertTrue(Long.compare(zero, min) > 0); in testCompare() 48 assertTrue(Long.compare(min, zero) < 0); in testCompare() 49 assertTrue(Long.compare(min, max) < 0); in testCompare()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollatorTest.java | 40 assertTrue("a) Failed on primary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 43 assertTrue("a) Failed on secondary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 46 assertTrue("a) Failed on tertiary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 49 assertTrue("a) Failed on identical", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 52 assertEquals("a) Failed on equivalence", 0, c.compare(o, o2)); in test_compareLjava_lang_ObjectLjava_lang_Object() 54 c.compare("\u01db", "v") < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 59 assertTrue("b) Failed on primary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 62 assertTrue("b) Failed on secondary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 65 assertTrue("b) Failed on tertiary difference", c.compare(o, o2) < 0); in test_compareLjava_lang_ObjectLjava_lang_Object() 68 assertEquals("b) Failed on identical", 0, c.compare(o, o2)); in test_compareLjava_lang_ObjectLjava_lang_Object() [all …]
|
/libcore/dex/src/main/java/com/android/dex/ |
D | FieldId.java | 48 return Unsigned.compare(declaringClassIndex, other.declaringClassIndex); in compareTo() 51 return Unsigned.compare(nameIndex, other.nameIndex); in compareTo() 53 return Unsigned.compare(typeIndex, other.typeIndex); // should always be 0 in compareTo()
|
D | MethodId.java | 48 return Unsigned.compare(declaringClassIndex, other.declaringClassIndex); in compareTo() 51 return Unsigned.compare(nameIndex, other.nameIndex); in compareTo() 53 return Unsigned.compare(protoIndex, other.protoIndex); in compareTo()
|
D | ProtoId.java | 36 return Unsigned.compare(returnTypeIndex, other.returnTypeIndex); in compareTo() 38 return Unsigned.compare(parametersOffset, other.parametersOffset); in compareTo()
|
D | TypeList.java | 40 return Unsigned.compare(types[i], other.types[i]); in compareTo() 43 return Unsigned.compare(types.length, other.types.length); in compareTo()
|
/libcore/dex/src/main/java/com/android/dex/util/ |
D | Unsigned.java | 25 public static int compare(short ushortA, short ushortB) { in compare() method in Unsigned 34 public static int compare(int uintA, int uintB) { in compare() method in Unsigned
|
/libcore/luni/src/main/java/java/text/ |
D | Collator.java | 193 public int compare(Object object1, Object object2) { in compare() method in Collator 194 return compare((String) object1, (String) object2); in compare() 208 public abstract int compare(String string1, String string2); in compare() method in Collator 242 return compare(string1, string2) == 0; in equals()
|
D | RuleBasedCollator.java | 187 public int compare(String source, String target) { in compare() method in RuleBasedCollator 193 return icuColl.compare(source, target); in compare()
|
/libcore/luni/src/main/java/java/util/ |
D | TimSort.java | 261 if (c.compare(pivot, a[mid]) < 0) in binarySort() 320 if (c.compare(a[runHi++], a[lo]) < 0) { // Descending in countRunAndMakeAscending() 321 while(runHi < hi && c.compare(a[runHi], a[runHi - 1]) < 0) in countRunAndMakeAscending() 325 while (runHi < hi && c.compare(a[runHi], a[runHi - 1]) >= 0) in countRunAndMakeAscending() 507 if (c.compare(key, a[base + hint]) > 0) { in gallopLeft() 510 while (ofs < maxOfs && c.compare(key, a[base + hint + ofs]) > 0) { in gallopLeft() 525 while (ofs < maxOfs && c.compare(key, a[base + hint - ofs]) <= 0) { in gallopLeft() 550 if (c.compare(key, a[base + m]) > 0) in gallopLeft() 578 if (c.compare(key, a[base + hint]) < 0) { in gallopRight() 581 while (ofs < maxOfs && c.compare(key, a[base + hint - ofs]) < 0) { in gallopRight() [all …]
|
D | PriorityQueue.java | 353 private int compare(E o1, E o2) { in compare() method in PriorityQueue 355 return comparator.compare(o1, o2); in compare() 366 if (compare(parent, target) <= 0) { in siftUp() 380 && compare(elements[childIndex + 1], elements[childIndex]) < 0) { in siftDown() 383 if (compare(target, elements[childIndex]) <= 0) { in siftDown()
|
D | TreeSet.java | 358 int compare = (c == null) ? ((Comparable<E>) start).compareTo(end) : c in subSet() local 359 .compare(start, end); in subSet() 360 if (compare <= 0) { in subSet() 380 c.compare(end, end); in headSet() 398 c.compare(start, start); in tailSet()
|
D | Comparator.java | 55 public int compare(T lhs, T rhs); in compare() method
|
D | Objects.java | 32 public static <T> int compare(T a, T b, Comparator<? super T> c) { in compare() method in Objects 36 return c.compare(a, b); in compare()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | ObjectsTest.java | 28 assertEquals(0, Objects.compare(null, null, String.CASE_INSENSITIVE_ORDER)); in test_compare() 29 assertEquals(0, Objects.compare("a", "A", String.CASE_INSENSITIVE_ORDER)); in test_compare() 30 assertEquals(-1, Objects.compare("a", "b", String.CASE_INSENSITIVE_ORDER)); in test_compare() 31 assertEquals(1, Objects.compare("b", "a", String.CASE_INSENSITIVE_ORDER)); in test_compare()
|
D | OldPriorityQueueTest.java | 86 public int compare(String object1, String object2) { in compare() method in OldPriorityQueueTest.MockComparatorStringByLength 102 public int compare(E object1, E object2) { in compare() method in OldPriorityQueueTest.MockComparatorCast
|
/libcore/luni/src/main/java/libcore/icu/ |
D | RuleBasedCollatorICU.java | 66 public int compare(String source, String target) { in compare() method in RuleBasedCollatorICU 67 return NativeCollation.compare(address, source, target); in compare() 131 return (compare(source, target) == 0); in equals()
|
/libcore/luni/src/main/java/java/lang/ |
D | Boolean.java | 124 return compare(value, that.value); in compareTo() 133 public static int compare(boolean lhs, boolean rhs) { in compare() method in Boolean
|
/libcore/luni/src/test/java/libcore/icu/ |
D | ICUTest.java | 214 assertTrue(c.compare("2", "11") < 0); in testScriptsPassedToIcu() 215 assertTrue(c.compare("11", "ae") < 0); in testScriptsPassedToIcu() 216 assertTrue(c.compare("ae", "Ä") < 0); in testScriptsPassedToIcu() 217 assertTrue(c.compare("Ä", "ä") < 0); in testScriptsPassedToIcu() 218 assertTrue(c.compare("ä", "AF") < 0); in testScriptsPassedToIcu() 219 assertTrue(c.compare("AF", "af") < 0); in testScriptsPassedToIcu()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | RefSortedMap.java | 101 if (hasStart && hasEnd && compare(start, end) >= 0) { in SubMap() 229 if (hasStart && compare(key, start) < 0) { 232 if (hasEnd && compare(key, end) >= 0) { 245 public int compare(K start, K end) { 246 return comparator != null ? comparator.compare(start, end) 360 public int compare(MapEntry<K, V> arg0, MapEntry<K, V> arg1) { 361 return RefSortedMap.this.compare(arg0.getKey(), arg1.getKey());
|
/libcore/luni/src/main/java/javax/xml/datatype/ |
D | Duration.java | 762 public abstract int compare(final Duration duration); in compare() method in Duration 791 return compare(duration) == DatatypeConstants.GREATER; in isLongerThan() 813 return compare(duration) == DatatypeConstants.LESSER; in isShorterThan() 858 return compare((Duration) duration) == DatatypeConstants.EQUAL; in equals()
|