/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/ |
D | AttributesTest.java | 45 Attributes a2 = new Attributes(a); in test_ConstructorLjava_util_jar_Attributes() local 46 assertEquals(a, a2); in test_ConstructorLjava_util_jar_Attributes() 48 assertTrue("equal", !a.equals(a2)); in test_ConstructorLjava_util_jar_Attributes() 199 Attributes a2 = (Attributes) a.clone(); in test_clone() local 200 assertEquals(a, a2); in test_clone() 202 assertTrue("equal", !a.equals(a2)); in test_clone() 214 Attributes a2 = new Attributes(); in test_equalsLjava_lang_Object() local 215 a2.putValue("One", "1"); in test_equalsLjava_lang_Object() 216 a2.putValue("TWO", "2"); in test_equalsLjava_lang_Object() 217 assertEquals(a1, a2); in test_equalsLjava_lang_Object() [all …]
|
/libcore/ojluni/src/test/java/time/tck/java/time/zone/ |
D | TCKZoneOffsetTransition.java | 227 ZoneOffsetTransition a2 = ZoneOffsetTransition.of(ldtA, OFFSET_0200, OFFSET_0300); in test_equals() local 232 assertEquals(a1.equals(a2), true); in test_equals() 234 assertEquals(a2.equals(a1), true); in test_equals() 235 assertEquals(a2.equals(a2), true); in test_equals() 236 assertEquals(a2.equals(b), false); in test_equals() 238 assertEquals(b.equals(a2), false); in test_equals() 252 ZoneOffsetTransition a2 = ZoneOffsetTransition.of(ldtA, OFFSET_0200, OFFSET_0300); in test_hashCode_floatingWeek_gap_notEndOfDay() local 257 assertEquals(a1.hashCode(), a2.hashCode()); in test_hashCode_floatingWeek_gap_notEndOfDay()
|
/libcore/ojluni/src/main/java/java/util/ |
D | Arrays.java | 2495 public static boolean equals(long[] a, long[] a2) { in equals() argument 2496 if (a==a2) in equals() 2498 if (a==null || a2==null) in equals() 2502 if (a2.length != length) in equals() 2506 if (a[i] != a2[i]) in equals() 2524 public static boolean equals(int[] a, int[] a2) { in equals() argument 2525 if (a==a2) in equals() 2527 if (a==null || a2==null) in equals() 2531 if (a2.length != length) in equals() 2535 if (a[i] != a2[i]) in equals() [all …]
|
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() 264 while (a2 < a[--k]) { in sort() 267 a[k + 1] = a2; 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() 712 while (a2 < a[--k]) { in sort() 715 a[k + 1] = a2; in sort() [all …]
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | EqualsHashCodeBenchmark.java | 44 Object a2; field in EqualsHashCodeBenchmark 54 a2 = type.newInstance("https://mail.google.com/mail/u/0/?shva=1#inbox"); in setUp() 66 a1.equals(a2); in timeEquals()
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | XMLFormatter.java | 50 private void a2(StringBuilder sb, int x) { in a2() method in XMLFormatter 63 a2(sb, cal.get(Calendar.MONTH) + 1); in appendISO8601() 65 a2(sb, cal.get(Calendar.DAY_OF_MONTH)); in appendISO8601() 67 a2(sb, cal.get(Calendar.HOUR_OF_DAY)); in appendISO8601() 69 a2(sb, cal.get(Calendar.MINUTE)); in appendISO8601() 71 a2(sb, cal.get(Calendar.SECOND)); in appendISO8601()
|
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/ |
D | TCKChronoPeriod.java | 253 ChronoPeriod a2 = chrono.period(1, 2, 3); in test_equals_equal() local 255 assertEquals(a1, a2); in test_equals_equal() 256 assertEquals(a2, a1); in test_equals_equal() 257 assertEquals(a2, a2); in test_equals_equal() 258 assertEquals(a1.hashCode(), a2.hashCode()); in test_equals_equal()
|
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/ |
D | AnnotationTest.java | 76 Annotation a2 = me2.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() 89 Annotation a2 = me2.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()
|
/libcore/luni/src/main/java/org/xml/sax/ext/ |
D | Attributes2Impl.java | 210 Attributes2 a2 = (Attributes2) atts; in setAttributes() local 212 declared [i] = a2.isDeclared (i); in setAttributes() 213 specified [i] = a2.isSpecified (i); in setAttributes()
|
/libcore/ojluni/annotations/hiddenapi/java/util/ |
D | Arrays.java | 349 public static boolean equals(long[] a, long[] a2) { in equals() argument 353 public static boolean equals(int[] a, int[] a2) { in equals() argument 357 public static boolean equals(short[] a, short[] a2) { in equals() argument 361 public static boolean equals(char[] a, char[] a2) { in equals() argument 365 public static boolean equals(byte[] a, byte[] a2) { in equals() argument 369 public static boolean equals(boolean[] a, boolean[] a2) { in equals() argument 373 public static boolean equals(double[] a, double[] a2) { in equals() argument 377 public static boolean equals(float[] a, float[] a2) { in equals() argument 381 public static boolean equals(java.lang.Object[] a, java.lang.Object[] a2) { in equals() argument 584 public static boolean deepEquals(java.lang.Object[] a1, java.lang.Object[] a2) { in deepEquals() argument
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
D | AtomicMarkableReferenceTest.java | 34 AtomicMarkableReference a2 = new AtomicMarkableReference(null, true); in testConstructor() local 35 assertNull(a2.getReference()); in testConstructor() 36 assertTrue(a2.isMarked()); in testConstructor()
|
D | AtomicStampedReferenceTest.java | 34 AtomicStampedReference a2 = new AtomicStampedReference(null, 1); in testConstructor() local 35 assertNull(a2.getReference()); in testConstructor() 36 assertEquals(1, a2.getStamp()); in testConstructor()
|
D | ArrayDequeTest.java | 668 Integer[] a2 = new Integer[size]; in checkToArray2() local 671 Arrays.fill(a2, 42); in checkToArray2() 674 Integer[] b2 = (Integer[]) q.toArray(a2); in checkToArray2() 676 assertSame(a2, b2); in checkToArray2()
|
D | ArrayBlockingQueueTest.java | 638 Integer[] a2 = new Integer[size]; in checkToArray2() local 641 Arrays.fill(a2, 42); in checkToArray2() 644 Integer[] b2 = (Integer[]) q.toArray(a2); in checkToArray2() 646 assertSame(a2, b2); in checkToArray2()
|
/libcore/ojluni/src/test/java/util/concurrent/tck/ |
D | AtomicMarkableReferenceTest.java | 57 AtomicMarkableReference a2 = new AtomicMarkableReference(null, true); in testConstructor() local 58 assertNull(a2.getReference()); in testConstructor() 59 assertTrue(a2.isMarked()); in testConstructor()
|
D | AtomicStampedReferenceTest.java | 57 AtomicStampedReference a2 = new AtomicStampedReference(null, 1); in testConstructor() local 58 assertNull(a2.getReference()); in testConstructor() 59 assertEquals(1, a2.getStamp()); in testConstructor()
|
D | ArrayDequeTest.java | 721 Integer[] a2 = q.toArray(new Integer[0]); in checkToArray() local 722 assertEquals(size, a2.length); in checkToArray() 733 Object[][] as = { a1, a2, a3, a4, a5, a6 }; in checkToArray()
|
D | ArrayBlockingQueueTest.java | 677 Integer[] a2 = q.toArray(new Integer[0]); in checkToArray() local 678 assertEquals(size, a2.length); in checkToArray() 689 Object[][] as = { a1, a2, a3, a4, a5, a6 }; in checkToArray()
|
/libcore/ojluni/src/main/java/sun/security/x509/ |
D | RDN.java | 481 public int compare(AVA a1, AVA a2) { in compare() argument 483 boolean a2Has2253 = a2.hasRFC2253Keyword(); in compare() 489 (a2.toRFC2253CanonicalString()); in compare() 498 int[] a2Oid = a2.getObjectIdentifier().toIntArray(); in compare()
|
/libcore/ojluni/src/main/java/javax/crypto/ |
D | CipherSpi.java | 764 boolean a2 = output.hasArray(); in bufferCrypt() 766 if (a1 && a2) { in bufferCrypt() 781 } else if (!a1 && a2) { in bufferCrypt()
|
/libcore/ojluni/annotations/sdk/nullability/java/util/ |
D | Arrays.annotated.java | 170 public static boolean equals(long @libcore.util.Nullable [] a, long @libcore.util.Nullable [] a2) {… in equals() argument 172 public static boolean equals(int @libcore.util.Nullable [] a, int @libcore.util.Nullable [] a2) { t… in equals() argument 174 public static boolean equals(short @libcore.util.Nullable [] a, short @libcore.util.Nullable [] a2)… in equals() argument 176 public static boolean equals(char @libcore.util.Nullable [] a, char @libcore.util.Nullable [] a2) {… in equals() argument 178 public static boolean equals(byte @libcore.util.Nullable [] a, byte @libcore.util.Nullable [] a2) {… in equals() argument 180 …als(boolean @libcore.util.Nullable [] a, boolean @libcore.util.Nullable [] a2) { throw new Runtime… in equals() argument 182 …quals(double @libcore.util.Nullable [] a, double @libcore.util.Nullable [] a2) { throw new Runtime… in equals() argument 184 public static boolean equals(float @libcore.util.Nullable [] a, float @libcore.util.Nullable [] a2)… in equals() argument 186 …le [] a, java.lang.@libcore.util.Nullable Object @libcore.util.Nullable [] a2) { throw new Runtime… in equals() argument 287 …e [] a1, java.lang.@libcore.util.Nullable Object @libcore.util.Nullable [] a2) { throw new Runtime… in deepEquals() argument
|
/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/ojluni/src/main/java/java/math/ |
D | BigInteger.java | 1803 BigInteger a0, a1, a2, b0, b1, b2; in multiplyToomCook3() local 1804 a2 = a.getToomSlice(k, r, 0, largest); in multiplyToomCook3() 1814 da1 = a2.add(a0); in multiplyToomCook3() 1820 v2 = da1.add(a2).shiftLeft(1).subtract(a0).multiply( in multiplyToomCook3() 1822 vinf = a2.multiply(b2, true); in multiplyToomCook3() 2164 BigInteger a0, a1, a2; in squareToomCook3() local 2165 a2 = getToomSlice(k, r, 0, len); in squareToomCook3() 2171 da1 = a2.add(a0); in squareToomCook3() 2175 vinf = a2.square(true); in squareToomCook3() 2176 v2 = da1.add(a2).shiftLeft(1).subtract(a0).square(true); in squareToomCook3() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/ |
D | ClassTest.java | 630 Class a2 = Class.forName("[[L" + s + ";"); in test_forName_arrays() local 632 assertSame(a1, a2.getComponentType()); in test_forName_arrays()
|
/libcore/json/src/test/java/libcore/org/json/ |
D | JSONArrayTest.java | 569 JSONArray a2 = new JSONArray(MyEnum.values()); in testEnums() local 570 assertEquals("[null,null,null]", a2.toString()); in testEnums()
|