Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 46) 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.java226 boolean match = true; in assertEqualCBs()
241 match = false; in assertEqualCBs()
249 assertTrue(msg, match); in assertEqualCBs()
268 boolean match = true; in assertEqualBytes()
282 match = false; in assertEqualBytes()
286 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/testmapping/
Dgen_smoke_tests.py90 cts_match = re.match(CTS_LOG_LINE_PATTERN, line)
106 def match(matcher, got_source, message): function
119 return re.match(pattern, message)
144 start_match = match(START_MATCHER, source, message)
145 tests_ran_match = match(TESTS_RAN_MATCHER, source, message)
146 end_match = match(END_MATCHER, source, message)
147 hard_end_match = match(HARD_END_MATCHER, source, message)
259 class_match = re.match(JAVA_CLASS_PATTERN, name)
/libcore/tools/upstream/src/main/java/libcore/
DCompareUpstreams.java103 String match = matcher.group(2); in androidChangedComments() local
104 if (match.isEmpty()) { in androidChangedComments()
105 match = "[empty comment]"; in androidChangedComments()
107 Integer oldCount = result.get(match); in androidChangedComments()
111 result.put(match, oldCount + 1); in androidChangedComments()
/libcore/ojluni/src/main/java/java/security/cert/
DCRLSelector.java57 boolean match(CRL crl); in match() method
DCertSelector.java58 boolean match(Certificate cert); in match() method
/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/util/jar/
DJarVerifier.java598 CodeSigner[] match; in findMatchingSigners() local
599 match = ((VerifierCodeSource) sourceList.get(j)).getPrivateSigners(); in findMatchingSigners()
600 if (match == null) { in findMatchingSigners()
601 match = emptySigner; in findMatchingSigners()
603 return match; in findMatchingSigners()
708 CodeSigner[] match = findMatchingSigners(cs[i]); in entryNames() local
709 if (match != null) { in entryNames()
710 if (match.length > 0) { in entryNames()
711 req.add(match); in entryNames()
/libcore/ojluni/src/main/java/java/lang/invoke/
DMethodHandle.java1015 boolean match = true, fail = false; in asSpreaderChecks()
1019 match = false; in asSpreaderChecks()
1026 if (match) return mtype; in asSpreaderChecks()
/libcore/ojluni/src/main/java/java/util/regex/
DPattern.java1168 String match = input.subSequence(index, m.start()).toString(); in split() local
1169 matchList.add(match); in split()
1172 String match = input.subSequence(index, in split() local
1174 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()
/libcore/tools/upstream/
Dupstream-diff67 if ('/' not in rel_path) and (not re.match('.+\\.[a-z]{1,4}$', rel_path)):

12