/libcore/benchmarks/src/benchmarks/regression/ |
D | EqualsHashCodeBenchmark.java | 43 Object a1; field in EqualsHashCodeBenchmark 53 a1 = type.newInstance("https://mail.google.com/mail/u/0/?shva=1#inbox"); in setUp() 65 a1.equals(b1); in timeEquals() 66 a1.equals(a2); in timeEquals() 73 a1.hashCode(); in timeHashCode()
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneOffsetTransition.java | 226 ZoneOffsetTransition a1 = ZoneOffsetTransition.of(ldtA, OFFSET_0200, OFFSET_0300); in test_equals() local 231 assertEquals(a1.equals(a1), true); in test_equals() 232 assertEquals(a1.equals(a2), true); in test_equals() 233 assertEquals(a1.equals(b), false); in test_equals() 234 assertEquals(a2.equals(a1), true); in test_equals() 237 assertEquals(b.equals(a1), false); in test_equals() 241 assertEquals(a1.equals(""), false); in test_equals() 242 assertEquals(a1.equals(null), false); in test_equals() 251 ZoneOffsetTransition a1 = ZoneOffsetTransition.of(ldtA, OFFSET_0200, OFFSET_0300); in test_hashCode_floatingWeek_gap_notEndOfDay() local 256 assertEquals(a1.hashCode(), a1.hashCode()); in test_hashCode_floatingWeek_gap_notEndOfDay() [all …]
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | CipherSpi.java | 763 boolean a1 = input.hasArray(); in bufferCrypt() 766 if (a1 && a2) { in bufferCrypt() 781 } else if (!a1 && a2) { in bufferCrypt() 807 if (a1) { in bufferCrypt() 821 if (!a1 && !resized && chunk > 0) { in bufferCrypt() 852 if (a1) { in bufferCrypt()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | AttributesTest.java | 211 Attributes a1 = new Attributes(); in test_equalsLjava_lang_Object() local 212 a1.putValue("one", "1"); in test_equalsLjava_lang_Object() 213 a1.putValue("two", "2"); in test_equalsLjava_lang_Object() 217 assertEquals(a1, a2); in test_equalsLjava_lang_Object() 218 assertEquals(a1, a1); in test_equalsLjava_lang_Object() 220 assertFalse(a1.equals(a2)); in test_equalsLjava_lang_Object()
|
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | AnnotationTest.java | 75 Annotation a1 = me1.getDeclaredAnnotations()[0]; in test_equals() local 77 … assertEquals("must be equal : method1:"+me1.getName()+", method2: "+me2.getName(), a1, a2); in test_equals() 78 assertEquals("same hashcode", a1.hashCode(), a2.hashCode()); in test_equals() 88 Annotation a1 = me1.getDeclaredAnnotations()[0]; in test_equals() local 92 a1.equals(a2)); in test_equals() 93 if (a1.hashCode() != a2.hashCode()) { in test_equals() 94 assertFalse("not same hashcode -> not equals", a1.equals(a2)); in test_equals() 103 Annotation a1 = AnnotatedClass.class.getDeclaredAnnotations()[0]; in test_hashCode() local 104 assertEquals(a1.hashCode(), (127 * "value".hashCode() ^ "foobar".hashCode())); in test_hashCode()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoPeriod.java | 252 ChronoPeriod a1 = chrono.period(1, 2, 3); in test_equals_equal() local 254 assertEquals(a1, a1); in test_equals_equal() 255 assertEquals(a1, a2); in test_equals_equal() 256 assertEquals(a2, a1); in test_equals_equal() 258 assertEquals(a1.hashCode(), a2.hashCode()); in test_equals_equal()
|
/libcore/ojluni/src/main/java/java/util/ |
D | DualPivotQuicksort.java | 254 int a1 = a[k], a2 = a[left]; in sort() local 256 if (a1 < a2) { in sort() 257 a2 = a1; a1 = a[left]; in sort() 259 while (a1 < a[--k]) { in sort() 262 a[++k + 1] = a1; in sort() 702 long a1 = a[k], a2 = a[left]; in sort() local 704 if (a1 < a2) { in sort() 705 a2 = a1; a1 = a[left]; in sort() 707 while (a1 < a[--k]) { in sort() 710 a[++k + 1] = a1; in sort() [all …]
|
D | Arrays.java | 4181 public static boolean deepEquals(Object[] a1, Object[] a2) { in deepEquals() argument 4182 if (a1 == a2) in deepEquals() 4184 if (a1 == null || a2==null) in deepEquals() 4186 int length = a1.length; in deepEquals() 4191 Object e1 = a1[i]; in deepEquals()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | RDN.java | 481 public int compare(AVA a1, AVA a2) { in compare() argument 482 boolean a1Has2253 = a1.hasRFC2253Keyword(); in compare() 488 return a1.toRFC2253CanonicalString().compareTo in compare() 497 int[] a1Oid = a1.getObjectIdentifier().toIntArray(); in compare()
|
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/ |
D | AVAComparator.java | 32 public int compare(sun.security.x509.AVA a1, sun.security.x509.AVA a2) { in compare() argument
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | ArrayDequeTest.java | 667 Integer[] a1 = (size == 0) ? null : new Integer[size - 1]; in checkToArray2() local 670 if (size > 0) Arrays.fill(a1, 42); in checkToArray2() 673 Integer[] b1 = (size == 0) ? null : (Integer[]) q.toArray(a1); in checkToArray2() 689 assertNotSame(a1, b1); in checkToArray2() 691 for (int i = 0; i < a1.length; i++) { in checkToArray2() 692 assertEquals(42, (int) a1[i]); in checkToArray2()
|
D | ArrayBlockingQueueTest.java | 637 Integer[] a1 = (size == 0) ? null : new Integer[size - 1]; in checkToArray2() local 640 if (size > 0) Arrays.fill(a1, 42); in checkToArray2() 643 Integer[] b1 = (size == 0) ? null : (Integer[]) q.toArray(a1); in checkToArray2() 659 assertNotSame(a1, b1); in checkToArray2() 661 for (int i = 0; i < a1.length; i++) { in checkToArray2() 662 assertEquals(42, (int) a1[i]); in checkToArray2()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassTest.java | 629 Class a1 = Class.forName("[L" + s + ";"); in test_forName_arrays() local 631 assertSame(c1, a1.getComponentType()); in test_forName_arrays() 632 assertSame(a1, a2.getComponentType()); in test_forName_arrays()
|
/libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/io/ |
D | ObjectInputStreamTest.java | 1278 A a1 = (A) in.readObject(); in test_readClassDescriptor_1() local 1279 assertEquals("Single case: incorrectly read the field of A", a.name, a1.name); in test_readClassDescriptor_1() 1285 a1 = new A(); in test_readClassDescriptor_1() 1286 a1.name = "It's a test 1"; in test_readClassDescriptor_1() 1288 m.put("1", a1); in test_readClassDescriptor_1() 1292 assertEquals("Incorrectly read the field of A1", a1.name, ((A) m1.get("1")).name); in test_readClassDescriptor_1()
|
/libcore/json/src/test/java/libcore/org/json/ |
D | JSONArrayTest.java | 565 JSONArray a1 = new JSONArray(java.lang.annotation.RetentionPolicy.values()); in testEnums() local 566 assertEquals("[\"SOURCE\",\"CLASS\",\"RUNTIME\"]", a1.toString()); in testEnums()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | CollectionsTest.java | 380 ArrayList a1 = new ArrayList(); in test_copy_check_index() local 381 a1.add("one"); in test_copy_check_index() 382 a1.add("two"); in test_copy_check_index() 388 Collections.copy(a2, a1); in test_copy_check_index()
|
D | ArraysTest.java | 2309 int[] a1 = { 1, 2, 3 }; in test_deepEquals$Ljava_lang_ObjectLjava_lang_Object() local 2318 Object a[] = { a1, a2, a3 }; in test_deepEquals$Ljava_lang_ObjectLjava_lang_Object() 2333 int[] a1 = { 1, 2, 3 }; in test_deepHashCode$Ljava_lang_Object() local 2341 Object a[] = { a1, a2, a3 }; in test_deepHashCode$Ljava_lang_Object()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Arrays.java | 584 public static boolean deepEquals(java.lang.Object[] a1, java.lang.Object[] a2) { in deepEquals() argument
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Arrays.annotated.java | 287 …epEquals(java.lang.@libcore.util.Nullable Object @libcore.util.Nullable [] a1, java.lang.@libcore.… in deepEquals() argument
|