/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Collections2Test.java | 344 Collection<Object> c2 = new ArrayList<Object>(); in test_Disjoint() local 346 Collections.addAll(c2, arr2); in test_Disjoint() 347 assertTrue(Collections.disjoint(c1, c2)); in test_Disjoint() 349 assertFalse(Collections.disjoint(c1, c2)); in test_Disjoint() 352 c2 = new LinkedList<Object>(); in test_Disjoint() 354 Collections.addAll(c2, arr2); in test_Disjoint() 355 assertTrue(Collections.disjoint(c1, c2)); in test_Disjoint() 357 assertFalse(Collections.disjoint(c1, c2)); in test_Disjoint() 360 c2 = new TreeSet<Object>(); in test_Disjoint() 362 Collections.addAll(c2, arr2); in test_Disjoint() [all …]
|
D | CurrencyTest.java | 64 Currency c2 = Currency.getInstance(new Locale("fr", "CA")); in test_getInstanceLjava_util_Locale() local 67 c2 == c0); in test_getInstanceLjava_util_Locale() 78 c2 = Currency.getInstance(new Locale("", "JP")); in test_getInstanceLjava_util_Locale() 81 c2 == c0); in test_getInstanceLjava_util_Locale() 317 Currency c2 = Currency.getInstance("EUR"); in test_getDefaultFractionDigits() local 318 c2.getDefaultFractionDigits(); in test_getDefaultFractionDigits() 319 assertEquals(" Currency.getInstance(\"" + c2 in test_getDefaultFractionDigits() 320 + "\") returned incorrect number of digits. ", 2, c2 in test_getDefaultFractionDigits()
|
/libcore/luni/src/main/java/libcore/icu/ |
D | DateIntervalFormat.java | 208 private static boolean fallOnDifferentDates(Calendar c1, Calendar c2) { in fallOnDifferentDates() argument 209 return c1.get(Calendar.YEAR) != c2.get(Calendar.YEAR) || in fallOnDifferentDates() 210 c1.get(Calendar.MONTH) != c2.get(Calendar.MONTH) || in fallOnDifferentDates() 211 c1.get(Calendar.DAY_OF_MONTH) != c2.get(Calendar.DAY_OF_MONTH); in fallOnDifferentDates() 214 private static boolean fallInSameMonth(Calendar c1, Calendar c2) { in fallInSameMonth() argument 215 return c1.get(Calendar.MONTH) == c2.get(Calendar.MONTH); in fallInSameMonth() 218 private static boolean fallInSameYear(Calendar c1, Calendar c2) { in fallInSameYear() argument 219 return c1.get(Calendar.YEAR) == c2.get(Calendar.YEAR); in fallInSameYear() 227 private static int dayDistance(Calendar c1, Calendar c2) { in dayDistance() argument 228 return julianDay(c2) - julianDay(c1); in dayDistance()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldCollectionsTest.java | 520 Collection<Object> c2 = new ArrayList<Object>(); in test_Disjoint() local 522 Collections.addAll(c2, arr2); in test_Disjoint() 523 assertTrue(Collections.disjoint(c1, c2)); in test_Disjoint() 525 assertFalse(Collections.disjoint(c1, c2)); in test_Disjoint() 528 c2 = new LinkedList<Object>(); in test_Disjoint() 530 Collections.addAll(c2, arr2); in test_Disjoint() 531 assertTrue(Collections.disjoint(c1, c2)); in test_Disjoint() 533 assertFalse(Collections.disjoint(c1, c2)); in test_Disjoint() 536 c2 = new TreeSet<Object>(); in test_Disjoint() 538 Collections.addAll(c2, arr2); in test_Disjoint() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetTest.java | 570 MockCharset c2 = new MockCharset("Mock", null); in testCompareTo_Normal() local 571 assertEquals(0, c1.compareTo(c2)); in testCompareTo_Normal() 573 c2 = new MockCharset("mock2", null); in testCompareTo_Normal() 574 assertTrue(c1.compareTo(c2) < 0); in testCompareTo_Normal() 575 assertTrue(c2.compareTo(c1) > 0); in testCompareTo_Normal() 577 c2 = new MockCharset("mack", null); in testCompareTo_Normal() 578 assertTrue(c1.compareTo(c2) > 0); in testCompareTo_Normal() 579 assertTrue(c2.compareTo(c1) < 0); in testCompareTo_Normal() 581 c2 = new MockCharset("m.", null); in testCompareTo_Normal() 582 assertTrue(c1.compareTo(c2) > 0); in testCompareTo_Normal() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ConstructorTest.java | 77 Constructor<?> c2 = ConstructorTestHelper.class.getConstructor(); in testEqualConstructorEqualsAndHashCode() local 78 assertEquals(c1, c2); in testEqualConstructorEqualsAndHashCode() 79 assertEquals(c1.hashCode(), c2.hashCode()); in testEqualConstructorEqualsAndHashCode() 89 Constructor<?> c2 = ConstructorTestHelper.class.getConstructor(Object.class); in testDifferentConstructorEqualsAndHashCode() local 90 assertFalse(c1.equals(c2)); in testDifferentConstructorEqualsAndHashCode()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollatorTest.java | 28 Collator c2 = (Collator) c.clone(); in test_clone() local 29 assertTrue("Clones answered false to equals", c.equals(c2)); in test_clone() 30 assertTrue("Clones were equivalent", c != c2); in test_clone() 118 Collator c2 = (Collator) c.clone(); in test_equalsLjava_lang_Object() local 119 assertTrue("Cloned collators not equal", c.equals(c2)); in test_equalsLjava_lang_Object() 120 c2.setStrength(Collator.SECONDARY); in test_equalsLjava_lang_Object() 121 assertTrue("Collators with different strengths equal", !c.equals(c2)); in test_equalsLjava_lang_Object() 200 Collator c2 = Collator.getInstance(Locale.getDefault()); in test_getInstance() local 201 assertTrue("Wrong locale", c1.equals(c2)); in test_getInstance()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | EqualsHashCodeBenchmark.java | 49 Object c2; field in EqualsHashCodeBenchmark 59 …c2 = type.newInstance("http://developer.android.com/query?q=" + QUERY.substring(0, QUERY.length() … in setUp() 79 c1.equals(c2); in timeEqualsWithHeavilyEscapedComponent()
|
/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateTest.java | 79 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding); in testHashCode() local 81 assertTrue(c1.hashCode() == c2.hashCode()); in testHashCode() 94 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding); in testHashCodeEqualsObject() local 96 assertTrue((c1.hashCode() == c2.hashCode()) && c1.equals(c2)); in testHashCodeEqualsObject() 126 Certificate c2 = new MyCertificate("TEST_TYPE", testEncoding); in testEqualsObject02() local 127 assertTrue(c1.equals(c2) && c2.equals(c1)); in testEqualsObject02()
|
/libcore/luni/src/test/java/tests/java/security/ |
D | IdentityTest.java | 195 CertificateStub c2 = new CertificateStub("zzz", null, null, pk1); in testCertificates() local 197 i.addCertificate(c2); in testCertificates() 200 assertTrue(c1.equals(s[0]) || c2.equals(s[0])); in testCertificates() 201 assertTrue(c1.equals(s[1]) || c2.equals(s[1])); in testCertificates() 207 assertTrue(c1.equals(s[0]) || c2.equals(s[0])); in testCertificates() 208 assertTrue(c1.equals(s[1]) || c2.equals(s[1])); in testCertificates() 299 CertificateStub c2 = new CertificateStub("zzz", null, null, pk1); in testSetPublicKey4() local 301 i.addCertificate(c2); in testSetPublicKey4()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EllipticCurveTest.java | 560 EllipticCurve c2 = null, c1 = new EllipticCurve(new ECFieldFp( in testEqualsObject01() local 568 c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject01() 570 assertTrue(c1.equals(c2) && c2.equals(c1)); in testEqualsObject01() 575 c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject01() 577 assertTrue(c1.equals(c2) && c2.equals(c1)); in testEqualsObject01() 590 c2 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject01() 592 assertTrue(c1.equals(c2) && c2.equals(c1)); in testEqualsObject01()
|
/libcore/luni/src/main/files/cacerts/ |
D | 72f369af.0 | 42 3b:a8:bc:f3:09:a3:38:d5:59:24:c1:c2:47:76:b1: 49 ed:cd:bb:52:c2:b0:1e:78:c2:4d:36:68:cb:56:26: 51 89:1d:16:9d:51:35:ef:4d:c2:56:ef:6b:e0:8c:3b: 63 64:85:be:63:6a:d2:cf:81:c2:15:d5:7a:7e:0c:29:ac:37:1e:
|
D | 48a195d8.0 | 51 c2:1b:45:32:71:95:d9:fe:10:5b:cc:af:e7:a5:79: 58 c0:bc:2e:ff:c2:b7:dd:0d:76:e3:3a:d7:f7:b4:68: 61 34:c5:95:41:69:7e:75:c2:3c:20:c5:61:ba:51:47: 68 83:f3:89:d1:74:06:a9:cc:0b:d6:c2:de:27:85:50: 111 59:c2:35:2e:90:2a:31:d9:e4:45:7a:41:a4:2e:13:9b:34:0e: 114 ea:7c:fd:82:da:c2:5b:52:35:ae:98:3a:ad:ba:35:93:23:a7: 115 1f:48:dd:35:46:98:b2:10:68:e4:a5:31:c2:0a:58:2e:19:81: 120 c2:57:c4:a0:d4:cc:38:27:ce:d5:06:9e:a2:48:d9:e9:9f:ce:
|
D | cdaebb72.0 | 41 c2:c7:0e:f5:f6:d5:76:53:4d:8f:8c:bc:18:76:37: 51 c2:d5:2a:0b:6c:7b:84:bd:56:05:cb:86:65:92:ec: 70 08:5b:51:13:2b:4d:c2:2a:61:c8:f8:09:58:fc:2d:02:b2:39: 72 fc:c2:20:27:51:c8:f1:7c:5d:34:67:69:85:11:30:c6:00:d2: 75 bf:d9:0f:d9:5b:fc:c1:f9:7a:95:e1:7d:7e:96:fc:71:b0:c2:
|
D | d06393bb.0 | 40 8a:af:34:ad:fc:0d:c2:d9:48:19:ee:69:8f:c9:20: 42 7b:7c:2d:1b:d6:ba:b9:80:c2:18:82:16:84:fa:66: 46 12:93:5e:b7:31:96:42:05:fb:76:a7:1e:a3:f5:c2: 73 de:9d:66:d0:8b:d5:54:66:fa:83:55:ea:7c:c2:29:89:1b:e9: 79 13:a1:6e:c2
|
D | 2fa87019.0 | 28 57:cb:33:6f:c2:5c:16:e6:47:16:17:e3:90:31:68:e0 44 2c:06:26:09:7a:72:f7:fa:50:32:f8:c2:93:d3:69: 51 45:7b:3d:3b:26:8c:74:c2:e5:d2:d1:7d:b2:11:d4: 75 1c:82:c2:e3:e0:32:80:bf:a0:0b:47:c8:c3:31:ef:99:67:32: 78 1e:05:f7:05:68:c0:6a:12:cb:2e:5e:61:cb:ae:28:d3:7e:c2:
|
D | 3d441de8.0 | 60 c2:d1:ba:d6:38:fd:f4:ef:49:30:37:99:26:21:48: 65 6d:65:7d:c2:15:18:74:ca:e1:7e:64:29:8c:72:d8: 100 ad:14:c4:c2:e8:66:3c:82:07:a7:e6:27:82:5b:18:e6:0f:6e: 108 52:4a:de:f0:b0:a7:e4:0a:96:0b:fb:ad:c2:e2:25:84:b2:dd: 112 74:95:1d:a8:d1:af:4e:17:b1:69:26:c2:aa:78:57:5b:c5:4d: 115 8d:21:d9:fc:14:20:aa:c2:45:df:3f:e7:00:b2:51:e4:c2:f8:
|
D | 450c6e38.0 | 55 3a:f3:64:36:ce:c2:b0:cf:13:68:ca:c8:cb:eb:b5: 62 69:f8:c1:24:52:9d:88:55:dd:c2:87:2e:74:23:d0: 73 80:85:88:9d:0c:c7:c2:77:b0:9a:9a:57:f4:b8:fa: 105 75:9a:b8:d7:da:58:48:44:47:a8:4c:fa:4c:49:0a:4a:c2:12: 113 cf:b3:ff:17:72:20:13:c2:80:aa:21:2c:71:39:0e:d0:8f:5c: 122 5c:0b:13:28:4c:58:7f:c2:a5:ef:45:da:60:d3:ae:65:61:9d: 123 53:83:74:c2:ae:f2:5c:c2:16:ed:92:3e:84:3e:73:60:88:bc:
|
D | 455f1b52.0 | 48 be:f0:e8:6e:c2:79:b2:3a:0b:55:e2:50:98:16:32: 49 13:5c:2f:78:56:c1:c2:94:b3:f2:5a:e4:27:9a:9f: 50 24:d7:c6:ec:d0:9b:25:82:e3:cc:c2:c4:45:c5:8c: 77 f3:f0:9b:0b:30:78:db:c1:dc:87:43:fe:bc:63:9a:ca:c5:c2: 79 96:ce:0c:3c:69:87:54:73:a4:73:c2:93:ff:51:10:ac:15:54:
|
D | eb375c3e.0 | 43 bc:61:af:a9:a3:14:fb:c2:17:17:84:6c:e0:7c:88: 46 53:10:0c:65:3a:47:7b:60:c2:d6:fa:91:c9:c6:71: 51 1f:a5:2c:8d:f4:55:c8:db:dd:59:0a:c2:ad:78:a0: 65 c9:61:6b:08:08:20:fc:8a:05:8a:1f:bc:ba:c6:c2:fe:cf:6e:
|
D | 9685a493.0 | 38 d0:8d:5a:e1:55:c3:50:86:b9:29:26:c2:e3:d9:a0: 41 6e:b5:b1:27:3f:39:53:09:ea:ab:6a:e8:74:b2:c2: 45 a5:32:51:c8:86:aa:a1:a9:9e:7f:76:94:c2:a6:6c: 68 9f:91:70:f4:80:5e:84:43:c2:29:d2:6c:12:14:e4:61:8d:ac:
|
D | 57692373.0 | 41 ff:3d:73:de:b1:3e:a7:c2:7d:66:c1:f5:7e:52:24: 46 69:16:47:11:c2:27:59:03:b3:a6:60:c2:21:40:56: 77 23:c2:ce:e7:bb:04:02:cc:c0:47:a2:e4:c4:29:2f:5b:45:57:
|
D | 9ab62355.0 | 57 b8:c2:24:a8:13:c7:a0:21:36:1b:7a:57:29:28:a7: 62 0d:43:7f:ae:13:d2:6b:2b:3f:a7:c2:e2:a8:6d:76: 103 4e:6e:3c:e1:3e:15:bf:06:26:9d:e4:f0:90:b6:d4:c2:9e:30: 115 e2:4e:44:e3:09:c9:4e:c2:5d:87:0e:12:9e:bf:0f:c9:05:10: 117 69:c5:dd:b9:3f:7c:cd:c6:b4:c2:30:1e:7e:6e:92:d7:7f:61: 121 5a:47:4a:c2:a3:eb:1a:d7:0a:ab:3c:32:55:c8:0a:11:9c:df: 127 7e:c2:e8:ad:26:bf:a2:f7
|
D | ddc328ff.0 | 36 68:75:47:a2:aa:c2:da:84:25:fc:a8:f4:47:51:da: 43 3a:c2:b5:66:22:12:d6:87:0d 50 4c:95:33:35:e9:5e:c2:3e:28:f6:a8:0d:50:d5:ff:e2:0c:0f:
|
D | 7672ac4b.0 | 62 38:7d:95:c2:71:ee:ed:74:ae:e4:36:a2:43:75:d5: 68 8d:48:e4:25:6f:b3:78:bf:62:f5:07:fa:95:24:c2: 69 96:b2:e8:a3:23:c2:5d:03:fc:c3:d3:e5:7c:c9:75: 109 bd:6f:9f:11:c3:c7:64:c2:0f:28:62:85:66:5e:1a:7b:b2:b7: 117 d6:5b:76:c2:cb:3b:b5:d2:00:f0:a3:0e:e1:ad:6e:40:f7:db: 118 a0:b4:d0:46:ae:15:d7:44:c2:4d:35:f9:d2:0b:f2:17:f6:ac:
|