/libcore/luni/src/test/java/tests/security/cert/ |
D | CertificateTest.java | 63 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding); in testCertificate() local 64 assertTrue(Arrays.equals(testEncoding, c1.getEncoded())); in testCertificate() 65 assertEquals("TEST", c1.getPublicKey().getAlgorithm()); in testCertificate() 67 c1.getPublicKey().getEncoded())); in testCertificate() 68 assertEquals("TEST_FORMAT", c1.getPublicKey().getFormat()); in testCertificate() 69 assertEquals("TEST_TYPE", c1.getType()); in testCertificate() 78 Certificate c1 = new MyCertificate("TEST_TYPE", testEncoding); in testHashCode() local 81 assertTrue(c1.hashCode() == c2.hashCode()); in testHashCode() 83 assertFalse(c1.hashCode() == new MyCertificate("TEST_TYPE", cert in testHashCode() 85 assertFalse(c1.hashCode() == cert.hashCode()); in testHashCode() [all …]
|
D | CertificateCertificateRepTest.java | 32 MyCertificate c1 = new MyCertificate("TEST_TYPE", testEncoding); in testCertificateCertificateRep() local 33 MyCertificateRep rep = c1.new MyCertificateRep("TEST_TYPE", new byte[] { in testCertificateCertificateRep() 41 c1.new MyCertificateRep(null, null); in testCertificateCertificateRep() 47 MyCertificate.MyCertificateRep rep1 = c1.new MyCertificateRep( in testCertificateCertificateRep() 60 MyCertificate c1 = new MyCertificate("TEST_TYPE", testEncoding); in testReadResolve() local 61 MyCertificateRep rep = c1.new MyCertificateRep("TEST_TYPE", new byte[] { in testReadResolve() 71 MyCertificateRep rep1 = c1.new MyCertificateRep("X509", TestUtils in testReadResolve()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/ |
D | Collections2Test.java | 343 Collection<Object> c1 = new ArrayList<Object>(); in test_Disjoint() local 345 Collections.addAll(c1, arr1); in test_Disjoint() 347 assertTrue(Collections.disjoint(c1, c2)); in test_Disjoint() 348 c1.add(arr2[10]); in test_Disjoint() 349 assertFalse(Collections.disjoint(c1, c2)); in test_Disjoint() 351 c1 = new LinkedList<Object>(); in test_Disjoint() 353 Collections.addAll(c1, arr1); in test_Disjoint() 355 assertTrue(Collections.disjoint(c1, c2)); in test_Disjoint() 356 c1.add(arr2[10]); in test_Disjoint() 357 assertFalse(Collections.disjoint(c1, c2)); in test_Disjoint() [all …]
|
D | CurrencyTest.java | 60 Currency c1 = Currency.getInstance(new Locale("en", "CA")); in test_getInstanceLjava_util_Locale() local 63 c1 == c0); in test_getInstanceLjava_util_Locale() 74 c1 = Currency.getInstance(new Locale("ja", "JP")); in test_getInstanceLjava_util_Locale() 77 c1 == c0); in test_getInstanceLjava_util_Locale() 311 Currency c1 = Currency.getInstance("TND"); in test_getDefaultFractionDigits() local 312 c1.getDefaultFractionDigits(); in test_getDefaultFractionDigits() 313 assertEquals(" Currency.getInstance(\"" + c1 in test_getDefaultFractionDigits() 314 + "\") returned incorrect number of digits. ", 3, c1 in test_getDefaultFractionDigits()
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/nio/charset/ |
D | CharsetTest.java | 324 Charset c1 = Charset.forName("US-ASCII"); in testRequiredCharsetSupported() local 567 MockCharset c1 = new MockCharset("mock", null); in testCompareTo_Normal() local 568 assertEquals(0, c1.compareTo(c1)); in testCompareTo_Normal() 571 assertEquals(0, c1.compareTo(c2)); in testCompareTo_Normal() 574 assertTrue(c1.compareTo(c2) < 0); in testCompareTo_Normal() 575 assertTrue(c2.compareTo(c1) > 0); in testCompareTo_Normal() 578 assertTrue(c1.compareTo(c2) > 0); in testCompareTo_Normal() 579 assertTrue(c2.compareTo(c1) < 0); in testCompareTo_Normal() 582 assertTrue(c1.compareTo(c2) > 0); in testCompareTo_Normal() 583 assertTrue(c2.compareTo(c1) < 0); in testCompareTo_Normal() [all …]
|
/libcore/luni/src/main/java/java/io/ |
D | StreamTokenizer.java | 366 int c1 = read(); in nextToken() local 368 if (c1 <= '7' && c1 >= '0') { in nextToken() 369 int digitValue = c1 - '0'; in nextToken() 370 c1 = read(); in nextToken() 371 if (c1 > '7' || c1 < '0') { in nextToken() 374 digitValue = digitValue * 8 + (c1 - '0'); in nextToken() 375 c1 = read(); in nextToken() 377 if (digitValue > 037 || c1 > '7' || c1 < '0') { in nextToken() 380 digitValue = digitValue * 8 + (c1 - '0'); in nextToken() 386 peekOne = c1; in nextToken() [all …]
|
/libcore/luni/src/test/java/libcore/java/lang/reflect/ |
D | ConstructorTest.java | 76 Constructor<?> c1 = ConstructorTestHelper.class.getConstructor(); in testEqualConstructorEqualsAndHashCode() local 78 assertEquals(c1, c2); in testEqualConstructorEqualsAndHashCode() 79 assertEquals(c1.hashCode(), c2.hashCode()); in testEqualConstructorEqualsAndHashCode() 83 Constructor<?> c1 = ConstructorTestHelper.class.getConstructor(); in testHashCodeSpec() local 84 assertEquals(ConstructorTestHelper.class.getName().hashCode(), c1.hashCode()); in testHashCodeSpec() 88 Constructor<?> c1 = ConstructorTestHelper.class.getConstructor(); in testDifferentConstructorEqualsAndHashCode() local 90 assertFalse(c1.equals(c2)); in testDifferentConstructorEqualsAndHashCode()
|
/libcore/luni/src/test/java/libcore/java/util/ |
D | OldCollectionsTest.java | 519 Collection<Object> c1 = new ArrayList<Object>(); in test_Disjoint() local 521 Collections.addAll(c1, arr1); in test_Disjoint() 523 assertTrue(Collections.disjoint(c1, c2)); in test_Disjoint() 524 c1.add(arr2[10]); in test_Disjoint() 525 assertFalse(Collections.disjoint(c1, c2)); in test_Disjoint() 527 c1 = new LinkedList<Object>(); in test_Disjoint() 529 Collections.addAll(c1, arr1); in test_Disjoint() 531 assertTrue(Collections.disjoint(c1, c2)); in test_Disjoint() 532 c1.add(arr2[10]); in test_Disjoint() 533 assertFalse(Collections.disjoint(c1, c2)); in test_Disjoint() [all …]
|
/libcore/luni/src/test/java/tests/java/security/ |
D | IdentityTest.java | 126 CertificateStub c1 = new CertificateStub("fff", null, null, pk1); in testAddCertificate1() local 127 i.addCertificate(c1); in testAddCertificate1() 128 assertSame(c1, i.certificates()[0]); in testAddCertificate1() 143 CertificateStub c1 = new CertificateStub("fff", null, null, pk1); in testAddCertificate2() local 144 i.addCertificate(c1); in testAddCertificate2() 145 assertSame(c1, i.certificates()[0]); in testAddCertificate2() 194 CertificateStub c1 = new CertificateStub("fff", null, null, pk1); in testCertificates() local 196 i.addCertificate(c1); 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() [all …]
|
/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/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
D | CollatorTest.java | 169 Collator c1 = Collator.getInstance(locales[i]); in failing_test_getAvailableLocales() local 170 assertTrue("Doesn't work", c1.compare("a", "b") < 0); in failing_test_getAvailableLocales() 172 c1.getDecomposition() == Collator.NO_DECOMPOSITION); in failing_test_getAvailableLocales() 173 assertTrue("Wrong strength", c1.getStrength() == Collator.TERTIARY); in failing_test_getAvailableLocales() 174 if (c1 instanceof RuleBasedCollator) { in failing_test_getAvailableLocales() 176 new RuleBasedCollator(((RuleBasedCollator) c1).getRules()); in failing_test_getAvailableLocales() 199 Collator c1 = Collator.getInstance(); in test_getInstance() local 201 assertTrue("Wrong locale", c1.equals(c2)); in test_getInstance()
|
/libcore/luni/src/test/java/tests/security/spec/ |
D | EllipticCurveTest.java | 560 EllipticCurve c2 = null, c1 = new EllipticCurve(new ECFieldFp( in testEqualsObject01() local 563 assertTrue(c1.equals(c1)); in testEqualsObject01() 566 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject01() 570 assertTrue(c1.equals(c2) && c2.equals(c1)); in testEqualsObject01() 573 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject01() 577 assertTrue(c1.equals(c2) && c2.equals(c1)); in testEqualsObject01() 580 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject01() 585 assertTrue(c1.equals(c3) && c3.equals(c1)); in testEqualsObject01() 588 c1 = new EllipticCurve(new ECFieldFp(BigInteger.valueOf(23L)), in testEqualsObject01() 592 assertTrue(c1.equals(c2) && c2.equals(c1)); in testEqualsObject01()
|
/libcore/benchmarks/src/benchmarks/regression/ |
D | EqualsHashCodeBenchmark.java | 48 Object c1; field in EqualsHashCodeBenchmark 57 c1 = type.newInstance("http://developer.android.com/query?q=" + QUERY); in setUp() 79 c1.equals(c2); in timeEqualsWithHeavilyEscapedComponent()
|
/libcore/luni/src/main/files/cacerts/ |
D | 9f533518.0 | 56 00:c0:df:56:d3:e4:3a:9b:76:45:b4:13:db:ff:c1: 67 a8:81:bb:1e:41:78:75:d3:c1:fe:00:55:b0:87:54: 77 c8:9d:9d:c1:6d:d0:d0:bf:51:e4:e3:f8:c3:38:36: 79 3b:1d:98:22:d6:ac:c1:35:db:a3:a0:25:ff:72:b5: 86 f6:8d:28:f6:83:a9:13:d2:61:c1:91:bb:48:c0:34: 113 ca:44:0f:c2:17:0e:77:91:45:7a:33:5f:5f:96:2c:68:8b:c1: 121 92:93:5e:35:c1:8d:f9:0a:f7:2c:9d:62:1c:f6:ad:7c:dd:a6: 123 37:b2:66:2f:7d:05:f7:e7:b7:4b:98:94:35:c0:d9:3a:29:c1: 130 f2:86:79:2f:c5:82:19:7d:09:89:7c:b2:54:76:88:ae:de:c1: 134 68:e3:aa:c1:af:1c:28:1f:a2:dc:23:65:3f:81:ea:ae:99:d3: [all …]
|
D | 72f369af.0 | 36 47:8d:b0:5a:c1:38:db:92:84:1c:af:13:d4:0f:6f: 39 22:59:fe:cc:db:e7:99:af:96:c1:a8:c7:40:dd:a5: 42 3b:a8:bc:f3:09:a3:38:d5:59:24:c1:c2:47:76:b1: 50 c1:52:c1:bd:76:f7:58:d5:72:7e:1f:44:76:bb:00: 71 c1:ec:61:2c:79:a1:ec:87:b5:3f:da:4d:d9:21:00:30:de:90:
|
D | c7e2a638.0 | 47 da:98:27:e7:08:4c:70:3e:b4:c9:12:c1:c5:67:83: 56 06:ac:6a:8e:c1:d0:f6:05:1d:7d:e6:42:86:e3:a5: 69 4a:f1:64:d3:39:df:25:34:d4:c1:cd:4e:81:f0:0f:04:c4:24: 74 c1:40:c5:d7:13:16:5a:72:c7:b7:69:01:c4:7a:b1:83:01:68: 75 7d:8d:41:a1:94:18:c1:25:5c:fc:f0:fe:83:02:87:7c:0d:0d: 80 aa:68:2d:86:b2:99:22:e1:c1:2b:c7:9c:f8:f3:5f:a8:82:12:
|
D | cdaebb72.0 | 68 05:84:87:55:74:36:61:c1:bb:d1:d4:c6:15:a8:13:b4:9f:a4: 75 bf:d9:0f:d9:5b:fc:c1:f9:7a:95:e1:7d:7e:96:fc:71:b0:c2: 77 ed:90:04:c1:b1:29:91:c5:30:6f:c1:a9:72:33:cc:fe:5d:16: 80 b8:20:16:67:05:8d:e2:3b:c1:72:3f:94:95:37:c7:5d:b9:9e: 81 d8:93:a1:17:8f:ff:0c:66:15:c1:24:7c:32:7c:03:1d:3b:a1:
|
D | 3c860d51.0 | 53 8b:c1:57:1f:0e:62:65:0f:dd:3d:56:8a:73:da:ae: 58 c1:b5:0a:60:bd:dd:b5:99:64:53:b8:a0:96:b3:6f: 66 f2:b3:26:d4:6b:da:04:55:e5:c1:0a:c7:6d:30:37: 79 09:6d:c1:e2:54:e3:b9:ca:4c:4c:80:8f:77:7b:60: 82 6b:ce:c1 105 ec:c5:c1:bb:38:00:e3:ec:17:a9:b8:dc:c7:7c:01:83:9f:32: 116 ad:92:a4:24:a0:c1:86:b5:4a:13:6a:47:cf:2e:0b:56:95:54: 123 ef:b0:64:c1:01:9e:e9:ca:a0:6a:98:0e:cf:d8:60:f2:2f:49: 127 57:c1:fa:3e:7a:e1:97:c9
|
D | 7d453d8f.0 | 42 17:c8:a5:61:c1:16:40:4d:fb:8a:61:90:e5:76:20: 43 c1:11:06:7d:ab:2c:6e:a6:f5:11:41:8e:fa:2d:ad: 60 11:14:96:c1:ab:92:08:f7:3f:2f:c9:b2:fe:e4:5a:9f:64:de: 64 23:22:2e:07:0b:cb:a9:74:cb:47:bb:1d:c1:d7:a5:6b:cc:2f: 70 cf:f0:f1:c1:c7:98:30:1a:3b:36:16:db:a3:6e:ea:fd:ad:b2:
|
D | 5a3f0ff8.0 | 41 00:d0:40:8b:8b:72:e3:91:1b:f7:51:c1:1b:54:04: 42 98:d3:a9:bf:c1:e6:8a:5d:3b:87:fb:bb:88:ce:0d: 49 9a:3f:eb:c1:f9:f1:90:57:eb:ac:7a:0d:8b:db:72: 54 00:d4:a1:b3:a9:25:fe:0d:3f:a7:1d:ba:d3:51:c1: 80 df:58:e2:56:0f:3c:3b:c1:1c:93:35:d9:38:52:ac:ee:c8:ec:
|
D | fac084d7.0 | 39 6a:3b:c1:7a:b4:97:61:8d:8a:be:c6:9a:9c:06:b4: 44 93:c1:ca:cd:c1:56:ed:88:6a:d7:a0:39:21:04:57: 73 11:0c:cb:fd:3f:79:c1:9c:fd:62:ee:a3:cf:54:0c:d1:2b:5f: 77 4c:09:70:66:a9:26:c1:2b:11:4e:33:d2:0e:fc:d6:6c:d2:0e:
|
D | 111e6273.0 | 74 27:4f:d6:c1:b8:1c:43:78:b3:0c:9a:fc:ea:2c:3c:6e:61:1b: 75 4d:4b:29:f5:9f:05:1d:26:c1:b8:e9:83:00:62:45:b6:a9:08: 76 93:b9:a9:33:4b:18:9a:c2:f8:87:88:4e:db:dd:71:34:1a:c1: 81 87:a8:7e:bb:f3:79:18:91:bb:f4:6f:9d:c1:f0:8c:35:8c:5d: 82 01:fb:c3:6d:b9:ef:44:6d:79:46:31:7e:0a:fe:a9:82:c1:ff:
|
D | 5cf9d536.0 | 53 04:74:e2:c1:d4:3a:ab:d7:ad:3b:07:18:05:8e:fd: 55 ed:76:3d:7c:d9:de:94:6a:3b:4b:17:c1:d5:8f:bd: 64 71:1e:4a:29:8a:03:dc:6a:45:c1:a4:19:5e:6f:36: 97 a4:75:fa:4a:6d:b1:80:8e:09:56:b9:9c:1a:60:fe:5d:c1:d7: 98 7a:dc:11:78:d0:d6:5d:c1:b7:d5:ad:32:99:03:3a:8a:cc:54:
|
D | 1dcd6f4c.0 | 65 89:86:b8:cc:65:fe:15:53:e9:04:c1:d6:5f:1d:44: 72 71:67:aa:1f:ea:e2:4d:c1:42:40:fe:67:46:17:38: 79 a6:95:fb:55:19:6e:4c:8e:ae:4b:0f:bd:c1:38:4d: 81 95:7a:98:c1:91:3c:95:23:b2:0e:f4:79:b4:c9:7c: 82 c1:4a:21 101 47:94:55:7a:0f:41:b1:44:24:f3:c1:fe:1a:6b:bf:88:fd:c1:
|
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
D | ProviderTest.java | 241 Collection c1 = p.values(); in testValues() local 243 assertNotSame(c, c1); in testValues() 244 assertFalse(c1.isEmpty()); in testValues() 245 assertEquals(8, c1.size()); in testValues() 247 assertTrue(c1.contains("MyProvider")); in testValues() 248 assertTrue(c1.contains("aaa.bbb.ccc.ddd")); in testValues() 249 assertTrue(c1.contains("Provider for testing")); in testValues() 250 assertTrue(c1.contains("1.0")); in testValues() 251 assertTrue(c1.contains("SomeClassName")); in testValues() 252 assertTrue(c1.contains("SHA-1")); in testValues() [all …]
|