Home
last modified time | relevance | path

Searched refs:a2 (Results 1 – 25 of 31) sorted by relevance

12

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/jar/
DAttributesTest.java45 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/main/java/java/util/
DDualPivotQuicksort.java522 int a1 = a[i = low], a2 = a[++low]; in mixedInsertionSort() local
529 if (a1 > a2) { in mixedInsertionSort()
536 while (a2 < a[--i]) { in mixedInsertionSort()
539 a[i + 1] = a2; in mixedInsertionSort()
543 while (a2 < a[--i]) { in mixedInsertionSort()
546 a[++i + 1] = a2; in mixedInsertionSort()
777 int[] a1, a2; in mergeRuns() local
782 a2 = (int[]) merger.getDestination(); in mergeRuns()
785 a2 = mergeRuns(a, b, offset, 0, false, run, mi, hi); in mergeRuns()
793 int lo2 = a2 == b ? run[mi] - offset : run[mi]; in mergeRuns()
[all …]
DArrays.java2413 public static boolean equals(long[] a, long[] a2) { in equals() argument
2414 if (a==a2) in equals()
2416 if (a==null || a2==null) in equals()
2420 if (a2.length != length) in equals()
2423 return ArraysSupport.mismatch(a, a2, length) < 0; in equals()
2485 public static boolean equals(int[] a, int[] a2) { in equals() argument
2486 if (a==a2) in equals()
2488 if (a==null || a2==null) in equals()
2492 if (a2.length != length) in equals()
2495 return ArraysSupport.mismatch(a, a2, length) < 0; in equals()
[all …]
/libcore/ojluni/src/test/java/time/tck/java/time/zone/
DTCKZoneOffsetTransition.java227 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/test/java/lang/invoke/
DMethodHandlesTest.java785 private static Object[] array(Object a0, Object a1, Object a2) in array() argument
786 { return makeArray(a0, a1, a2); } in array()
787 private static Object[] array(Object a0, Object a1, Object a2, Object a3) in array() argument
788 { return makeArray(a0, a1, a2, a3); } in array()
789 private static Object[] array(Object a0, Object a1, Object a2, Object a3, in array() argument
791 { return makeArray(a0, a1, a2, a3, a4); } in array()
792 private static Object[] array(Object a0, Object a1, Object a2, Object a3, in array() argument
794 { return makeArray(a0, a1, a2, a3, a4, a5); } in array()
795 private static Object[] array(Object a0, Object a1, Object a2, Object a3, in array() argument
797 { return makeArray(a0, a1, a2, a3, a4, a5, a6); } in array()
[all …]
/libcore/ojluni/src/main/java/java/util/logging/
DXMLFormatter.java50 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/benchmarks/src/benchmarks/regression/
DEqualsHashCodeBenchmark.java44 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/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DCollectorExample.java78 A a2 = supplier.get(); in testSnippet1() local
79 accumulator.accept(a2, t1); in testSnippet1()
82 R r2 = finisher.apply(combiner.apply(a2, a3)); in testSnippet1()
/libcore/ojluni/src/test/java/time/tck/java/time/chrono/
DTCKChronoPeriod.java254 ChronoPeriod a2 = chrono.period(1, 2, 3); in test_equals_equal() local
256 assertEquals(a1, a2); in test_equals_equal()
257 assertEquals(a2, a1); in test_equals_equal()
258 assertEquals(a2, a2); in test_equals_equal()
259 assertEquals(a1.hashCode(), a2.hashCode()); in test_equals_equal()
/libcore/luni/src/test/java/org/apache/harmony/annotation/tests/java/lang/annotation/
DAnnotationTest.java76 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/
DAttributes2Impl.java210 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/
DArrays.java349 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/
DAtomicStampedReferenceTest.java34 AtomicStampedReference a2 = new AtomicStampedReference(null, 1); in testConstructor() local
35 assertNull(a2.getReference()); in testConstructor()
36 assertEquals(1, a2.getStamp()); in testConstructor()
DAtomicMarkableReferenceTest.java34 AtomicMarkableReference a2 = new AtomicMarkableReference(null, true); in testConstructor() local
35 assertNull(a2.getReference()); in testConstructor()
36 assertTrue(a2.isMarked()); in testConstructor()
DArrayDequeTest.java668 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()
DArrayBlockingQueueTest.java638 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/
DAtomicMarkableReferenceTest.java57 AtomicMarkableReference a2 = new AtomicMarkableReference(null, true); in testConstructor() local
58 assertNull(a2.getReference()); in testConstructor()
59 assertTrue(a2.isMarked()); in testConstructor()
DAtomicStampedReferenceTest.java57 AtomicStampedReference a2 = new AtomicStampedReference(null, 1); in testConstructor() local
58 assertNull(a2.getReference()); in testConstructor()
59 assertEquals(1, a2.getStamp()); in testConstructor()
/libcore/ojluni/src/main/java/sun/security/x509/
DRDN.java481 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/
DCipherSpi.java765 boolean a2 = output.hasArray(); in bufferCrypt()
767 if (a1 && a2) { in bufferCrypt()
782 } else if (!a1 && a2) { in bufferCrypt()
/libcore/ojluni/annotations/hiddenapi/sun/security/x509/
DAVAComparator.java32 public int compare(sun.security.x509.AVA a1, sun.security.x509.AVA a2) { in compare() argument
/libcore/ojluni/annotations/sdk/nullability/java/util/
DArrays.annotated.java170 public static boolean equals(long @libcore.util.Nullable [] a, long @libcore.util.Nullable [] a2) {… in equals() argument
174 public static boolean equals(int @libcore.util.Nullable [] a, int @libcore.util.Nullable [] a2) { t… in equals() argument
178 public static boolean equals(short @libcore.util.Nullable [] a, short @libcore.util.Nullable [] a2)… in equals() argument
182 public static boolean equals(char @libcore.util.Nullable [] a, char @libcore.util.Nullable [] a2) {… in equals() argument
186 public static boolean equals(byte @libcore.util.Nullable [] a, byte @libcore.util.Nullable [] a2) {… in equals() argument
190 …als(boolean @libcore.util.Nullable [] a, boolean @libcore.util.Nullable [] a2) { throw new Runtime… in equals() argument
194 …quals(double @libcore.util.Nullable [] a, double @libcore.util.Nullable [] a2) { throw new Runtime… in equals() argument
198 public static boolean equals(float @libcore.util.Nullable [] a, float @libcore.util.Nullable [] a2)… in equals() argument
202 …le [] a, java.lang.@libcore.util.Nullable Object @libcore.util.Nullable [] a2) { throw new Runtime… in equals() argument
206 public static <T> boolean equals(T @libcore.util.Nullable[] a, T @libcore.util.Nullable [] a2, @lib… in equals() argument
[all …]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DClassTest.java630 Class a2 = Class.forName("[[L" + s + ";"); in test_forName_arrays() local
632 assertSame(a1, a2.getComponentType()); in test_forName_arrays()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java2306 BigInteger a0, a1, a2; in squareToomCook3() local
2307 a2 = getToomSlice(k, r, 0, len); in squareToomCook3()
2313 da1 = a2.add(a0); in squareToomCook3()
2317 vinf = a2.square(true); in squareToomCook3()
2318 v2 = da1.add(a2).shiftLeft(1).subtract(a0).square(true); in squareToomCook3()
2940 BigInteger a2 = base.modPow2(exponent, p); in modPow() local
2947 result = a1.multiply(m2).multiply(y1).add(a2.multiply(m1).multiply(y2)).mod(m); in modPow()
2952 new MutableBigInteger(a2.multiply(m1)).multiply(new MutableBigInteger(y2), t2); in modPow()
3149 a2 = new MutableBigInteger(a), in oddModPow() local
3154 MutableBigInteger r= a2.divide(b2, q); in oddModPow()
/libcore/json/src/test/java/libcore/org/json/
DJSONArrayTest.java569 JSONArray a2 = new JSONArray(MyEnum.values()); in testEnums() local
570 assertEquals("[null,null,null]", a2.toString()); in testEnums()

12