Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 25 of 42) sorted by relevance

12

/libcore/luni/src/test/java/tests/security/cert/
DLDAPCertStoreParametersTest.java47 CertStoreParameters cp = new LDAPCertStoreParameters(); in testLDAPCertStoreParameters01() local
49 cp instanceof LDAPCertStoreParameters); in testLDAPCertStoreParameters01()
58 LDAPCertStoreParameters cp = new LDAPCertStoreParameters(); in testLDAPCertStoreParameters02() local
59 assertEquals("host", "localhost", cp.getServerName()); in testLDAPCertStoreParameters02()
60 assertEquals("port", 389, cp.getPort()); in testLDAPCertStoreParameters02()
69 CertStoreParameters cp = new LDAPCertStoreParameters("myhost"); in testLDAPCertStoreParametersString01() local
71 cp instanceof LDAPCertStoreParameters); in testLDAPCertStoreParametersString01()
81 LDAPCertStoreParameters cp = new LDAPCertStoreParameters(serverName); in testLDAPCertStoreParametersString02() local
82 assertTrue("host", serverName.equals(cp.getServerName())); in testLDAPCertStoreParametersString02()
83 assertEquals("port", 389, cp.getPort()); in testLDAPCertStoreParametersString02()
[all …]
DCollectionCertStoreParametersTest.java48 CertStoreParameters cp = new CollectionCertStoreParameters(); in testCollectionCertStoreParameters01() local
50 cp instanceof CollectionCertStoreParameters); in testCollectionCertStoreParameters01()
58 CollectionCertStoreParameters cp = new CollectionCertStoreParameters(); in testCollectionCertStoreParameters02() local
59 Collection c = cp.getCollection(); in testCollectionCertStoreParameters02()
101 CollectionCertStoreParameters cp = in testCollectionCertStoreParametersCollection03() local
104 assertTrue("isRefUsed_1", certificates == cp.getCollection()); in testCollectionCertStoreParametersCollection03()
106 assertTrue("isEmpty", cp.getCollection().isEmpty()); in testCollectionCertStoreParametersCollection03()
111 assertTrue("isRefUsed_2", certificates.equals(cp.getCollection())); in testCollectionCertStoreParametersCollection03()
173 CollectionCertStoreParameters cp = in testToString01() local
175 String s = cp.toString(); in testToString01()
[all …]
DCertPathCertPathRepTest.java29 MyCertPath cp = new MyCertPath(testEncoding); in testCertPathCertPathRep() local
30 MyCertPathRep rep = cp.new MyCertPathRep("MyEncoding", testEncoding); in testCertPathCertPathRep()
35 cp.new MyCertPathRep(null, null); in testCertPathCertPathRep()
43 MyCertPath cp = new MyCertPath(testEncoding); in testReadResolve() local
44 MyCertPathRep rep = cp.new MyCertPathRep("MyEncoding", testEncoding); in testReadResolve()
53 rep = cp.new MyCertPathRep("MyEncoding", new byte[] {(byte) 1, (byte) 2, (byte) 3 }); in testReadResolve()
DCertPathValidatorExceptionTest.java279 CertPath cp = mcp.get("X.509"); in testCertPathValidatorException13() local
285 new CertPathValidatorException(msgs[i], tCause, cp, indx[j]); in testCertPathValidatorException13()
307 CertPath cp = mcp.get("X.509"); in testCertPathValidatorException14() local
310 tE = new CertPathValidatorException(msgs[i], tCause, cp, -1); in testCertPathValidatorException14()
327 "getCertPath() must return ".concat(cp.toString()), tE in testCertPathValidatorException14()
328 .getCertPath(), cp); in testCertPathValidatorException14()
376 CertPath cp = mcp.get("X.509"); in testCertPathValidatorException15() local
379 tE = new CertPathValidatorException(msgs[i], tCause, cp, -1); in testCertPathValidatorException15()
383 "getCertPath() must return ".concat(cp.toString()), tE in testCertPathValidatorException15()
384 .getCertPath(), cp); in testCertPathValidatorException15()
[all …]
DPKIXCertPathBuilderResultTest.java216 CertPath cp = new MyCertPath(testEncoding); in testGetCertPath() local
219 cp, in testGetCertPath()
226 assertSame(cp, r.getCertPath()); in testGetCertPath()
/libcore/ojluni/src/test/java/lang/Character/
DCharacterName.java50 for (int cp = start; cp < end; cp++) { in testCodePointRange()
51 if (!Character.isValidCodePoint(cp)) { in testCodePointRange()
53 Character.getName(cp); in testCodePointRange()
57 throw new RuntimeException("Invalid failed: " + cp); in testCodePointRange()
58 } else if (Character.getType(cp) == Character.UNASSIGNED) { in testCodePointRange()
59 if (Character.getName(cp) != null) in testCodePointRange()
60 throw new RuntimeException("Unsigned failed: " + cp); in testCodePointRange()
62 String name = Character.getName(cp); in testCodePointRange()
63 if (cp != Character.codePointOf(name) || in testCodePointRange()
64 cp != Character.codePointOf(name.toLowerCase(Locale.ENGLISH))) in testCodePointRange()
[all …]
DSupplementary.java122 for (int cp = -MAX_SUPPLEMENTARY; cp <= MAX_SUPPLEMENTARY*2; cp++) { in test00()
123 boolean isValid = cp >= 0 && cp <= MAX_SUPPLEMENTARY; in test00()
124 if (Character.isValidCodePoint(cp) != isValid) { in test00()
126 + toHexString(cp)); in test00()
128 boolean isSupplementary = cp >= MIN_SUPPLEMENTARY && cp <= MAX_SUPPLEMENTARY; in test00()
129 if (Character.isSupplementaryCodePoint(cp) != isSupplementary) { in test00()
131 + toHexString(cp)); in test00()
133 int len = Character.charCount(cp); in test00()
138 + toHexString(cp)); in test00()
142 + toHexString(cp)); in test00()
[all …]
/libcore/ojluni/src/main/java/sun/security/util/
DDisabledAlgorithmConstraints.java139 CertConstraintParameters cp) throws CertPathValidatorException { in permits() argument
140 checkConstraints(primitives, cp); in permits()
193 CertConstraintParameters cp) throws CertPathValidatorException { in checkConstraints() argument
195 X509Certificate cert = cp.getCertificate(); in checkConstraints()
215 algorithmConstraints.permits(cp); in checkConstraints()
344 public void permits(CertConstraintParameters cp) in permits() argument
346 X509Certificate cert = cp.getCertificate(); in permits()
369 constraint.permits(cp); in permits()
425 public abstract void permits(CertConstraintParameters cp) in permits() argument
443 public void permits(CertConstraintParameters cp) in permits() argument
[all …]
/libcore/ojluni/src/tools/
Dgensrc_android.sh40 cp ${JAVA_NIO_OUT}/charset/CharsetEncoder.java \
42 cp ${JAVA_NIO_OUT}/charset/CharsetDecoder.java \
63 cp ${JAVA_NIO_OUT}/${clazz}.java ${OJLUNI_NIO_ROOT}/${clazz}.java
76 cp ${JAVA_NIO_OUT}/${clazz}L.java ${OJLUNI_NIO_ROOT}/${clazz}.java
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DPKIX.java51 static ValidatorParams checkParams(CertPath cp, CertPathParameters params) in checkParams() argument
58 return new ValidatorParams(cp, (PKIXParameters)params); in checkParams()
89 ValidatorParams(CertPath cp, PKIXParameters params) in ValidatorParams() argument
93 if (!cp.getType().equals("X.509") && !cp.getType().equals("X509")) { in ValidatorParams()
97 this.certPath = cp; in ValidatorParams()
119 void setCertPath(CertPath cp) { in setCertPath() argument
120 this.certPath = cp; in setCertPath()
/libcore/ojluni/src/test/java/security/cert/
DCertPathEncodingTest.java242 CertPath cp = certFac.generateCertPath(certs); in testCertPathEncoding() local
245 byte[] encoded = cp.getEncoded("PKCS7"); in testCertPathEncoding()
253 assertEquals(decodedCP, cp, "CertPath decoded from PKCS#7 isn't equal to original"); in testCertPathEncoding()
DPKIXCertPathValidatorValidity.java114 CertPath cp = cf.generateCertPath(certs); in runTest() local
130 cpv.validate(cp, params); in runTest()
/libcore/ojluni/src/test/java/util/regex/
DRegExTest.java3710 for (int cp = 1; cp < Character.MAX_CODE_POINT; cp++) { in unicodePropertiesTest()
3711 if (cp >= 0x30000 && (cp & 0x70) == 0){ in unicodePropertiesTest()
3716 Character.UnicodeScript script = Character.UnicodeScript.of(cp); in unicodePropertiesTest()
3718 String str = new String(Character.toChars(cp)); in unicodePropertiesTest()
3734 Character.UnicodeBlock block = Character.UnicodeBlock.of(cp); in unicodePropertiesTest()
3779 for (int cp = 0; cp <= 0x10FFFF; cp++) { in unicodeHexNotationTest()
3780 String s = "A" + new String(Character.toChars(cp)) + "B"; in unicodeHexNotationTest()
3781 String hexUTF16 = (cp <= 0xFFFF)? String.format("\\u%04x", cp) in unicodeHexNotationTest()
3783 (int) Character.toChars(cp)[0], in unicodeHexNotationTest()
3784 (int) Character.toChars(cp)[1]); in unicodeHexNotationTest()
[all …]
/libcore/ojluni/src/test/java/lang/String/
DChars.java64 int cp = 0x10000 + r.nextInt(2000); in testCharsAndCodePoints() local
65 cpExp[k++] = cp; in testCharsAndCodePoints()
66 Character.toChars(cp, cc, j); in testCharsAndCodePoints()
DSplit.java185 for (int cp = cpFrom; cp < cpTo; cp++) {
187 String regex = new String(Character.toChars(cp));
/libcore/luni/src/test/java/dalvik/system/
Dcreate_test_jar.sh26 cp ./child.jar $ANDROID_BUILD_TOP/libcore/luni/src/test/resources/dalvik/system/child.jar
51 cp ./parent.jar $ANDROID_BUILD_TOP/libcore/luni/src/test/resources/dalvik/system/parent.jar
71 cp ./bootoverride.jar $ANDROID_BUILD_TOP/libcore/luni/src/test/resources/dalvik/system/bootoverride…
/libcore/luni/src/test/java/libcore/java/nio/charset/
DSettableCharsetProvider.java32 public static void setDelegate(CharsetProvider cp) { in setDelegate() argument
33 delegate = cp; in setDelegate()
/libcore/ojluni/src/main/java/java/lang/
DStringUTF16.java238 int cp = val[i];
239 if (Character.isBmpCodePoint(cp))
241 else if (Character.isValidCodePoint(cp))
243 else throw new IllegalArgumentException(Integer.toString(cp));
248 int cp = val[i];
249 if (Character.isBmpCodePoint(cp)) {
250 putChar(buf, j, cp);
252 putChar(buf, j++, Character.highSurrogate(cp));
253 putChar(buf, j, Character.lowSurrogate(cp));
265 static byte[] toBytesSupplementary(int cp) {
[all …]
/libcore/ojluni/src/main/java/java/util/
DServiceLoader.java1097 int cp = ln.codePointAt(0); in parseLine() local
1098 if (!Character.isJavaIdentifierStart(cp)) in parseLine()
1100 int start = Character.charCount(cp); in parseLine()
1101 for (int i = start; i < n; i += Character.charCount(cp)) { in parseLine()
1102 cp = ln.codePointAt(i); in parseLine()
1103 if (!Character.isJavaIdentifierPart(cp) && (cp != '.')) in parseLine()
/libcore/ojluni/src/main/native/
Dzip_util.c600 unsigned char *cp; in readCEN() local
720 for (i = 0, cp = cenbuf; cp <= cenend - CENHDR; i++, cp += CENSIZE(cp)) { in readCEN()
735 method = CENHOW(cp); in readCEN()
736 nlen = CENNAM(cp); in readCEN()
738 flag = CENFLG(cp); in readCEN()
740 if (!CENSIG_AT(cp)) { in readCEN()
750 if (cp + CENHDR + nlen > cenend) { in readCEN()
756 const char* entryName = (const char *)cp + CENHDR; in readCEN()
769 if (addMetaName(zip, (char *)cp+CENHDR, nlen) != 0) { in readCEN()
775 entries[i].cenpos = cenpos + (cp - cenbuf); in readCEN()
[all …]
/libcore/ojluni/src/test/java/lang/StringBuffer/
DSupplementary.java276 int cp = sb.codePointBefore(j+1); in test6() local
277 if (Character.isSupplementaryCodePoint(cp)) { in test6()
290 int cp = sb.codePointAt(j-1); in test6() local
291 if (Character.isSupplementaryCodePoint(cp)) { in test6()
/libcore/ojluni/src/test/java/lang/StrictMath/
DLog10Tests.java140 {0x1.3fffffffffcp-255, -0x1.32a9b7740b8f8p6}, in testLog10()
267 {0x1.3ffffffffff3cp-195, -0x1.d4d4de0b6b0b8p5}, in testLog10()
287 {0x1.3fffffffffffcp-185, -0x1.bcbfc5e6a3b2ep5}, in testLog10()
357 {0x1.3ffffffffff5cp-153, -0x1.6faf78a425cbp5}, in testLog10()
502 {0x1.3fffffffffd7cp-87, -0x1.a17bb2960439cp4}, in testLog10()
591 {0x1.3fffffffffffcp-25, -0x1.db721cd17157ep2}, in testLog10()
596 {0x1.3ffffffffffdcp-22, -0x1.a1a5e2df92ea2p2}, in testLog10()
637 {0x1.3fffffffffffcp-1, -0x1.a209a84fbd002p-3}, in testLog10()
/libcore/tools/non-cts-json-generator/
Dupdate_skippedCtsTest.sh22 cp ${ANDROID_BUILD_TOP}/out/soong/.intermediates/libcore/libcore-non-cts-tests-txt/android_common/g…
/libcore/ojluni/src/test/java/lang/StringBuilder/
DSupplementary.java278 int cp = sb.codePointBefore(j+1); in test6() local
279 if (Character.isSupplementaryCodePoint(cp)) { in test6()
292 int cp = sb.codePointAt(j-1); in test6() local
293 if (Character.isSupplementaryCodePoint(cp)) { in test6()
/libcore/ojluni/src/main/java/java/nio/charset/
DCharset.java429 CharsetProvider cp = i.next(); in lookupViaProviders() local
430 Charset cs = cp.charsetForName(charsetName); in lookupViaProviders()
639 CharsetProvider cp = i.next();
640 put(cp.charsets(), m);

12