/libcore/luni/src/test/native/ |
D | libcore_dalvik_system_JniTest.cpp | 30 jobject o1, jobject o2, jobject o3, jobject o4, jobject o5, in Java_libcore_dalvik_system_JniTest_returnObjectArgFrom16() argument 35 case 0: return o1; in Java_libcore_dalvik_system_JniTest_returnObjectArgFrom16() 57 jboolean o1, jboolean o2, jboolean o3, jboolean o4, jboolean o5, in Java_libcore_dalvik_system_JniTest_returnBooleanArgFrom16() argument 62 case 0: return o1; in Java_libcore_dalvik_system_JniTest_returnBooleanArgFrom16() 84 jchar o1, jchar o2, jchar o3, jchar o4, jchar o5, in Java_libcore_dalvik_system_JniTest_returnCharArgFrom16() argument 89 case 0: return o1; in Java_libcore_dalvik_system_JniTest_returnCharArgFrom16() 111 jbyte o1, jbyte o2, jbyte o3, jbyte o4, jbyte o5, in Java_libcore_dalvik_system_JniTest_returnByteArgFrom16() argument 116 case 0: return o1; in Java_libcore_dalvik_system_JniTest_returnByteArgFrom16() 138 jshort o1, jshort o2, jshort o3, jshort o4, jshort o5, in Java_libcore_dalvik_system_JniTest_returnShortArgFrom16() argument 143 case 0: return o1; in Java_libcore_dalvik_system_JniTest_returnShortArgFrom16() [all …]
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldTreeMapTest.java | 36 public int compare(Object o1, Object o2) { in compare() argument 37 return -(((Comparable) o1).compareTo(o2)); in compare() 40 public boolean equals(Object o1, Object o2) { in equals() argument 41 return (((Comparable) o1).compareTo(o2)) == 0; in equals() 49 public int compare(T o1, T o2) { in compare() argument 50 if (o1 == o2) { in compare() 53 if (null == o1 || null == o2) { in compare() 56 T c1 = o1; in compare() 65 public int compare(String o1, String o2) { in compare() argument 66 if (o1 == o2) { in compare() [all …]
|
D | ObjectsTest.java | 144 String[] o1 = new String[] { "hello" }; in test_deepEquals() local 153 assertTrue(Objects.deepEquals(o1, o1)); in test_deepEquals() 154 assertTrue(Objects.deepEquals(o1, o3)); in test_deepEquals() 155 assertFalse(Objects.deepEquals(o1, o2)); in test_deepEquals()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
D | ObjectInputStream2Test.java | 245 Object o1 = clazz.getConstructor().newInstance(); in test_sameName() local 249 f.set(o1, Integer.valueOf(v++)); in test_sameName() 251 f.set(o1, Long.valueOf(v++)); in test_sameName() 258 oos.writeObject(o1); in test_sameName() 267 assertEquals(f.get(o1), f.get(o2)); in test_sameName()
|
/libcore/ojluni/src/test/java/util/Arrays/ |
D | Correct.java | 142 public int compare(Integer o1, Integer o2) { 143 return o1.compareTo(o2); 148 public int compare(Integer o1, Integer o2) { 149 return - o1.compareTo(o2);
|
D | ArraysEqCmpTest.java | 1017 for (Object o1 : values) { in testNPEs() 1019 if (o1 != null && o2 != null) in testNPEs() 1022 testNPE(() -> arrayType.equals(o1, 0, 0, o2, 0, 0)); in testNPEs() 1023 testNPE(() -> arrayType.compare(o1, 0, 0, o2, 0, 0)); in testNPEs() 1024 testNPE(() -> arrayType.mismatch(o1, o2)); in testNPEs() 1025 testNPE(() -> arrayType.mismatch(o1, 0, 0, o2, 0, 0)); in testNPEs() 1036 for (String[] o1 : values) { in testObjectNPEs() 1039 if (o1 != null && o2 != null && o3 != null) in testObjectNPEs() 1043 testNPE(() -> Arrays.equals(o1, o2, o3)); in testObjectNPEs() 1044 testNPE(() -> Arrays.compare(o1, o2, o3)); in testObjectNPEs() [all …]
|
/libcore/luni/src/test/java/libcore/dalvik/system/ |
D | JniTest.java | 36 … Object o1, Object o2, Object o3, Object o4, Object o5, in returnObjectArgFrom16() argument 41 … boolean o1, boolean o2, boolean o3, boolean o4, boolean o5, in returnBooleanArgFrom16() argument 46 char o1, char o2, char o3, char o4, char o5, in returnCharArgFrom16() argument 51 byte o1, byte o2, byte o3, byte o4, byte o5, in returnByteArgFrom16() argument 56 short o1, short o2, short o3, short o4, short o5, in returnShortArgFrom16() argument 61 int o1, int o2, int o3, int o4, int o5, in returnIntArgFrom16() argument 66 long o1, long o2, long o3, long o4, long o5, in returnLongArgFrom16() argument 71 float o1, float o2, float o3, float o4, float o5, in returnFloatArgFrom16() argument 76 … double o1, double o2, double o3, double o4, double o5, in returnDoubleArgFrom16() argument
|
/libcore/ojluni/src/test/java/util/StringJoiner/ |
D | MergeTest.java | 142 StringJoiner o1 = new StringJoiner(":", fixes.pre1, fixes.suf1).setEmptyValue("Empty1"); in testCascadeEmpty() 145 o1.merge(o2); in testCascadeEmpty() 146 assertEquals(o1.toString(), "Empty1"); in testCascadeEmpty() 148 sj.merge(o1); in testCascadeEmpty()
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldObjectTest.java | 40 Object o1 = new Object(); in test_hashCode() local 42 int h1 = System.identityHashCode(o1); in test_hashCode() 44 assertEquals(h1, o1.hashCode()); in test_hashCode()
|
/libcore/ojluni/src/test/java/util/Map/ |
D | ToArray.java | 103 public int compare(Map.Entry<Integer,Long> o1, Map.Entry<Integer,Long> o2) { in testMap() 104 return o1.getKey().compareTo(o2.getKey()); in testMap()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | TreeSetTest.java | 37 public int compare(Object o1, Object o2) { in compare() argument 38 return -(((Integer) o1).compareTo((Integer) o2)); in compare() 41 public boolean equals(Object o1, Object o2) { in equals() argument 42 return ((Integer) o1).compareTo((Integer) o2) == 0; in equals()
|
D | LinkedHashSetTest.java | 312 Object[] o1 = new Object[lhs.size()]; in test_toArray$Ljava_lang_Object() local 314 lhs.toArray(o1); in test_toArray$Ljava_lang_Object() 315 for (int i = 0; i < o1.length; i++) { in test_toArray$Ljava_lang_Object() 316 assertTrue(lhs.contains(o1[i])); in test_toArray$Ljava_lang_Object()
|
D | TreeMapTest.java | 47 public int compare(Object o1, Object o2) { in compare() argument 48 return -(((Comparable) o1).compareTo(o2)); in compare() 51 public boolean equals(Object o1, Object o2) { in equals() argument 52 return (((Comparable) o1).compareTo(o2)) == 0; in equals() 60 public int compare(T o1, T o2) { in compare() argument 61 if (o1 == o2) { in compare() 64 if (null == o1 || null == o2) { in compare() 67 T c1 = o1; in compare() 76 public int compare(String o1, String o2) { in compare() argument 77 if (o1 == o2) { in compare() [all …]
|
/libcore/ojluni/src/main/java/java/text/ |
D | Collator.java | 279 public int compare(Object o1, Object o2) { in compare() argument 280 return compare((String)o1, (String)o2); in compare()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ReverseOrderListView.java | 201 E o1 = e1.next(); in equals() local 203 if (!(o1==null ? o2==null : o1.equals(o2))) in equals()
|
D | AbstractMap.java | 583 private static boolean eq(Object o1, Object o2) { in eq() argument 584 return o1 == null ? o2 == null : o1.equals(o2); in eq()
|
D | AbstractList.java | 548 E o1 = e1.next(); in equals() local 550 if (!(o1==null ? o2==null : o1.equals(o2))) in equals()
|
D | Comparator.java | 153 int compare(T o1, T o2); in compare() argument
|
/libcore/ojluni/src/test/java/security/KeyStore/ |
D | TestKeystoreBasic.java | 284 private void compareCreationDate(KeyStore o1, KeyStore o2, int range) in compareCreationDate() argument 289 if (!o1.getCreationDate(alias).equals(o2.getCreationDate(alias))) { in compareCreationDate()
|
/libcore/ojluni/annotations/hiddenapi/java/text/ |
D | Collator.java | 66 public int compare(java.lang.Object o1, java.lang.Object o2) { in compare() argument
|
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/ |
D | TabulatorsTest.java | 265 private static void nestedMapEqualityAssertion(Object o1, Object o2) { 266 if (o1 instanceof Map) { 267 Map m1 = (Map) o1; 273 else if (o1 instanceof Collection) { 274 assertContentsUnordered(((Collection) o1), ((Collection) o2)); 277 assertEquals(o1, o2);
|
D | CollectorsTest.java | 344 private static void nestedMapEqualityAssertion(Object o1, Object o2) { 345 if (o1 instanceof Map) { 346 Map m1 = (Map) o1; 352 else if (o1 instanceof Collection) { 353 assertContentsUnordered(((Collection) o1), ((Collection) o2)); 356 assertEquals(o1, o2);
|
/libcore/ojluni/src/test/java/lang/invoke/ |
D | InvokeWithArgumentsTest.java | 43 static Object[] arity(Object o1, Object o2, Object... a) { in arity() argument
|
/libcore/ojluni/src/test/java/util/stream/Collectors/ |
D | CollectorsTest.java | 326 private static void nestedMapEqualityAssertion(Object o1, Object o2) { 327 if (o1 instanceof Map) { 328 Map m1 = (Map) o1; 334 else if (o1 instanceof Collection) { 335 assertContentsUnordered(((Collection) o1), ((Collection) o2)); 338 assertEquals(o1, o2);
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixPath.java | 637 Integer o1 = offsets[i]; in startsWith() local 639 if (!o1.equals(o2)) in startsWith()
|