Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 48) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertSelectorTest.java35 byte[] match = { 127, 0, 0, 1 }; in testMatchIpv4SubjectAlternativeName()
36 assertTrue(certSelector.match(newCertWithSubjectAltNameIpAddress(match))); in testMatchIpv4SubjectAlternativeName()
39 assertFalse(certSelector.match(newCertWithSubjectAltNameIpAddress(noMatch))); in testMatchIpv4SubjectAlternativeName()
46 byte[] match = { 127, 0, 0, 1 }; in testMatchIpv4MappedSubjectAlternativeName()
47 assertTrue(certSelector.match(newCertWithSubjectAltNameIpAddress(match))); in testMatchIpv4MappedSubjectAlternativeName()
50 assertFalse(certSelector.match(newCertWithSubjectAltNameIpAddress(noMatch))); in testMatchIpv4MappedSubjectAlternativeName()
58 byte[] match = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1 }; in testMatchIpv6SubjectAlternativeName()
59 assertTrue(certSelector.match(newCertWithSubjectAltNameIpAddress(match))); in testMatchIpv6SubjectAlternativeName()
62 assertFalse(certSelector.match(newCertWithSubjectAltNameIpAddress(noMatch))); in testMatchIpv6SubjectAlternativeName()
72 assertTrue(certSelector.match(newCertWithNameConstraint(directMatch, excluded))); in testMatchMaskedIpv4NameConstraint()
[all …]
/libcore/luni/src/test/java/tests/security/cert/
DX509CRLSelector2Test.java74 .match(crl1)); in testAddIssuerLjavax_security_auth_x500_X500Principal02()
76 selector.match(crl2)); in testAddIssuerLjavax_security_auth_x500_X500Principal02()
79 .match(crl2)); in testAddIssuerLjavax_security_auth_x500_X500Principal02()
101 .match(crl1)); in testAddIssuerNameLjava_lang_String03()
103 selector.match(crl2)); in testAddIssuerNameLjava_lang_String03()
111 .match(crl2)); in testAddIssuerNameLjava_lang_String03()
142 selector.match(crl1) && selector.match(crl2)); in testSetIssuerNamesLjava_util_Collection02()
154 .match(crl1) in testSetIssuerNamesLjava_util_Collection02()
155 && selector.match(crl2)); in testSetIssuerNamesLjava_util_Collection02()
157 selector.match(crl3)); in testSetIssuerNamesLjava_util_Collection02()
[all …]
DX509CertSelectorTest.java544 selector.match(cert1) && selector.match(cert2)); in test_getPathToNames()
655 selector.match(cert_1)); in test_getSubjectAlternativeNames()
660 selector.match(cert_1)); in test_getSubjectAlternativeNames()
799 assertFalse(selector.match(null)); in test_matchLjava_security_cert_Certificate()
811 assertTrue(selector.match(cert1)); in test_matchLjava_security_cert_Certificate()
812 assertFalse(selector.match(cert2)); in test_matchLjava_security_cert_Certificate()
815 assertFalse(selector.match(cert1)); in test_matchLjava_security_cert_Certificate()
816 assertTrue(selector.match(cert2)); in test_matchLjava_security_cert_Certificate()
832 selector.match(cert1)); in test_setAuthorityKeyIdentifierLB$()
834 selector.match(cert2)); in test_setAuthorityKeyIdentifierLB$()
[all …]
DCertStoreSpiTest.java81 public boolean match (CRL crl) { in match() method in CertStoreSpiTest.tmpCRLSelector
89 public boolean match (Certificate crl) { in match() method in CertStoreSpiTest.tmpCertSelector
DCertStore2Test.java295 public boolean match(CRL crl) { in match() method in CertStore2Test.MyCRLSelector
305 public boolean match(CRL crl) { in match() method in CertStore2Test.MyOtherCRLSelector
317 public boolean match(Certificate cert) { in match() method in CertStore2Test.MyCertSelector
328 public boolean match(Certificate crl) { in match() method in CertStore2Test.MyOtherCertSelector
/libcore/ojluni/src/main/java/sun/nio/fs/
DAbstractBasicFileAttributeView.java118 boolean match(String name) { in match() method in AbstractBasicFileAttributeView.AttributesBuilder
142 if (builder.match(SIZE_NAME)) in addRequestedBasicAttributes()
144 if (builder.match(CREATION_TIME_NAME)) in addRequestedBasicAttributes()
146 if (builder.match(LAST_ACCESS_TIME_NAME)) in addRequestedBasicAttributes()
148 if (builder.match(LAST_MODIFIED_TIME_NAME)) in addRequestedBasicAttributes()
150 if (builder.match(FILE_KEY_NAME)) in addRequestedBasicAttributes()
152 if (builder.match(IS_DIRECTORY_NAME)) in addRequestedBasicAttributes()
154 if (builder.match(IS_REGULAR_FILE_NAME)) in addRequestedBasicAttributes()
156 if (builder.match(IS_SYMBOLIC_LINK_NAME)) in addRequestedBasicAttributes()
158 if (builder.match(IS_OTHER_NAME)) in addRequestedBasicAttributes()
DUnixFileAttributeViews.java193 if (builder.match(PERMISSIONS_NAME)) in addRequestedPosixAttributes()
195 if (builder.match(OWNER_NAME)) in addRequestedPosixAttributes()
197 if (builder.match(GROUP_NAME)) in addRequestedPosixAttributes()
347 if (builder.match(MODE_NAME)) in readAttributes()
349 if (builder.match(INO_NAME)) in readAttributes()
351 if (builder.match(DEV_NAME)) in readAttributes()
353 if (builder.match(RDEV_NAME)) in readAttributes()
355 if (builder.match(NLINK_NAME)) in readAttributes()
357 if (builder.match(UID_NAME)) in readAttributes()
359 if (builder.match(GID_NAME)) in readAttributes()
[all …]
DLinuxDosFileAttributeView.java105 if (builder.match(READONLY_NAME)) in readAttributes()
107 if (builder.match(ARCHIVE_NAME)) in readAttributes()
109 if (builder.match(SYSTEM_NAME)) in readAttributes()
111 if (builder.match(HIDDEN_NAME)) in readAttributes()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/net/
DHttpCookieTest.java109 boolean match = HttpCookie.domainMatches("hostname", "hostname"); in test_DomainMatches()
110 assertFalse(match); in test_DomainMatches()
112 match = HttpCookie.domainMatches(".com", "test.com"); in test_DomainMatches()
113 assertFalse(match); in test_DomainMatches()
115 match = HttpCookie.domainMatches(".com.", "test.com"); in test_DomainMatches()
116 assertFalse(match); in test_DomainMatches()
120 match = HttpCookie.domainMatches(".local", "hostname"); in test_DomainMatches()
121 assertTrue(match); in test_DomainMatches()
128 match = HttpCookie.domainMatches(".c.d", "a.b.c.d"); in test_DomainMatches()
129 assertTrue(match); in test_DomainMatches()
[all …]
/libcore/luni/src/test/java/libcore/java/nio/charset/
DOldCharset_SingleByteAbstractTest.java130 boolean match = true; in assertEqualChars2()
151 match = false; in assertEqualChars2()
160 assertTrue(msg, match); in assertEqualChars2()
179 boolean match = true; in assertEqualBytes2()
187 match = false; in assertEqualBytes2()
190 assertTrue(msg, match); in assertEqualBytes2()
DOldCharset_AbstractTest.java209 boolean match = true; in assertEqualCBs()
224 match = false; in assertEqualCBs()
232 assertTrue(msg, match); in assertEqualCBs()
251 boolean match = true; in assertEqualBytes()
265 match = false; in assertEqualBytes()
269 assertTrue(msg, match); in assertEqualBytes()
/libcore/ojluni/src/main/java/sun/security/util/
DCertConstraintParameters.java42 public CertConstraintParameters(X509Certificate c, boolean match) { in CertConstraintParameters() argument
44 trustedMatch = match; in CertConstraintParameters()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DDistributionPointFetcher.java209 if (selector.match(crl) && verifyCRL(certImpl, point, crl, in getCRLs()
350 boolean match = false; in verifyCRL()
352 !match && t.hasNext(); ) { in verifyCRL()
356 match = true; in verifyCRL()
359 if (match == false) { in verifyCRL()
460 boolean match = false; in verifyCRL()
462 !match && i.hasNext(); ) { in verifyCRL()
468 !match && p.hasNext(); ) { in verifyCRL()
473 match = idpName.equals(pointName); in verifyCRL()
476 if (!match) { in verifyCRL()
[all …]
DAdaptableX509CertSelector.java155 public boolean match(Certificate cert) { in match() method in AdaptableX509CertSelector
198 if (!super.match(cert)) { in match()
/libcore/tools/upstream/
Doj_upstream_comparison.py63 match = re.match("\s+ojluni/src/main/java/(.+\.java)\s*\\\s*", line)
64 if match:
65 path = match.group(1)
/libcore/ojluni/src/main/java/java/security/cert/
DCertSelector.java58 boolean match(Certificate cert); in match() method
DCRLSelector.java57 boolean match(CRL crl); in match() method
/libcore/luni/src/main/java/libcore/util/
DTimeZoneFinder.java146 TimeZone match = candidates.get(i); in lookupTimeZoneByCountryAndOffset() local
147 if (!offsetMatchesAtTime(match, offsetSeconds, isDst, whenMillis)) { in lookupTimeZoneByCountryAndOffset()
154 return match; in lookupTimeZoneByCountryAndOffset()
158 firstMatch = match; in lookupTimeZoneByCountryAndOffset()
163 if (match.getID().equals(bias.getID())) { in lookupTimeZoneByCountryAndOffset()
164 return match; in lookupTimeZoneByCountryAndOffset()
/libcore/ojluni/src/main/java/java/util/concurrent/
DExchanger.java316 volatile Object match; // Item provided by releasing thread field in Exchanger.Node
366 q.match = item; in arenaExchange()
378 Object v = p.match; in arenaExchange()
461 q.match = item; in slotExchange()
487 while ((v = p.match) == null) { in slotExchange()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
DScannerTest.java633 s.match(); in test_match()
639 result = s.match(); in test_match()
658 s.match(); in test_match()
665 s.match(); in test_match()
670 result = s.match(); in test_match()
684 s.match(); in test_match()
691 result = s.match(); in test_match()
704 result = s.match(); in test_match()
721 s.match(); in test_match()
733 result = s.match(); in test_match()
[all …]
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandle.java895 boolean match = true, fail = false; in asSpreaderChecks()
899 match = false; in asSpreaderChecks()
906 if (match) return mtype; in asSpreaderChecks()
/libcore/ojluni/src/main/java/java/util/jar/
DJarVerifier.java594 CodeSigner[] match; in findMatchingSigners() local
595 match = ((VerifierCodeSource) sourceList.get(j)).getPrivateSigners(); in findMatchingSigners()
596 if (match == null) { in findMatchingSigners()
597 match = emptySigner; in findMatchingSigners()
599 return match; in findMatchingSigners()
704 CodeSigner[] match = findMatchingSigners(cs[i]); in entryNames() local
705 if (match != null) { in entryNames()
706 if (match.length > 0) { in entryNames()
707 req.add(match); in entryNames()
/libcore/ojluni/src/main/java/java/util/regex/
DPattern.java1125 String match = input.subSequence(index, m.start()).toString(); in split() local
1126 matchList.add(match); in split()
1129 String match = input.subSequence(index, in split() local
1131 matchList.add(match); in split()
/libcore/ojluni/src/test/java/time/tck/java/time/
DAbstractTCKTest.java146 for (byte[] match : matches) { in assertSerializedBySer()
151 byte[] possible = new byte[match.length]; in assertSerializedBySer()
153 assertEquals(possible, match); in assertSerializedBySer()
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
DMatchOpTest.java101 boolean match = this.<T>kinds().get(kind).apply(predicates[i]).apply(source.stream()); in assertPredicates()
102 assertEquals(answers[i], match, kind.toString() + predicates[i].toString()); in assertPredicates()
186 boolean match = intKinds.get(kind).apply(predicates[i]).apply(source.get()); in assertIntPredicates()
187 assertEquals(answers[i], match, kind.toString() + predicates[i].toString()); in assertIntPredicates()
271 boolean match = longKinds.get(kind).apply(predicates[i]).apply(source.get()); in assertLongPredicates()
272 assertEquals(answers[i], match, kind.toString() + predicates[i].toString()); in assertLongPredicates()
356 boolean match = doubleKinds.get(kind).apply(predicates[i]).apply(source.get()); in assertDoublePredicates()
357 assertEquals(answers[i], match, kind.toString() + predicates[i].toString()); in assertDoublePredicates()

12