Home
last modified time | relevance | path

Searched refs:a1 (Results 1 – 23 of 23) sorted by relevance

/libcore/benchmarks/src/benchmarks/regression/
DEqualsHashCodeBenchmark.java43 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/
DTCKZoneOffsetTransition.java226 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/
DCipherSpi.java763 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/
DAttributesTest.java211 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/
DAnnotationTest.java75 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/
DTCKChronoPeriod.java252 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/
DDualPivotQuicksort.java254 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 …]
DArrays.java4181 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/
DRDN.java481 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/
DAVAComparator.java32 public int compare(sun.security.x509.AVA a1, sun.security.x509.AVA a2) { in compare() argument
/libcore/jsr166-tests/src/test/java/jsr166/
DArrayDequeTest.java667 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()
DArrayBlockingQueueTest.java637 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/
DClassTest.java629 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/
DObjectInputStreamTest.java1278 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/ojluni/src/test/java/util/concurrent/tck/
DArrayDequeTest.java719 Object[] a1 = q.toArray(); in checkToArray() local
720 assertEquals(size, a1.length); in checkToArray()
733 Object[][] as = { a1, a2, a3, a4, a5, a6 }; in checkToArray()
744 assertSame(a1[i], x); in checkToArray()
DArrayBlockingQueueTest.java675 Object[] a1 = q.toArray(); in checkToArray() local
676 assertEquals(size, a1.length); in checkToArray()
689 Object[][] as = { a1, a2, a3, a4, a5, a6 }; in checkToArray()
700 assertSame(a1[i], x); in checkToArray()
/libcore/ojluni/src/main/java/java/math/
DBigInteger.java1803 BigInteger a0, a1, a2, b0, b1, b2; in multiplyToomCook3() local
1805 a1 = a.getToomSlice(k, r, 1, largest); in multiplyToomCook3()
1816 vm1 = da1.subtract(a1).multiply(db1.subtract(b1), true); in multiplyToomCook3()
1817 da1 = da1.add(a1); in multiplyToomCook3()
2164 BigInteger a0, a1, a2; in squareToomCook3() local
2166 a1 = getToomSlice(k, r, 1, len); in squareToomCook3()
2172 vm1 = da1.subtract(a1).square(true); in squareToomCook3()
2173 da1 = da1.add(a1); in squareToomCook3()
2737 BigInteger a1 = (m1.equals(ONE) ? ZERO : in modPow() local
2748 result = a1.multiply(m2).multiply(y1).add(a2.multiply(m1).multiply(y2)).mod(m); in modPow()
[all …]
DMutableBigInteger.java1274 … MutableBigInteger a1 = aShifted.getBlock(t-1, t, n); // the most significant block of a in divideAndRemainderBurnikelZiegler() local
1278 z.addDisjoint(a1, n); // z[t-2] in divideAndRemainderBurnikelZiegler()
/libcore/json/src/test/java/libcore/org/json/
DJSONArrayTest.java565 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/
DCollectionsTest.java380 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()
DArraysTest.java2309 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/
DArrays.java584 public static boolean deepEquals(java.lang.Object[] a1, java.lang.Object[] a2) { in deepEquals() argument
/libcore/ojluni/annotations/sdk/nullability/java/util/
DArrays.annotated.java287 …epEquals(java.lang.@libcore.util.Nullable Object @libcore.util.Nullable [] a1, java.lang.@libcore.… in deepEquals() argument