/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
D | Pattern2Test.java | 106 private void testCategory(String cat, String... matches) { in testCategory() argument 112 for (int j = 0; j < matches.length; j++) { in testCategory() 113 String t = matches[j]; in testCategory() 119 "by pattern '"+pat, p.matcher(t).matches()); in testCategory() 121 "be matched by pattern '"+npat, pn.matcher(t).matches()); in testCategory() 124 "by pattern '"+pat, p.matcher(t).matches()); in testCategory() 126 "not be matched by pattern '"+npat, pn.matcher(t).matches()); in testCategory() 138 assertTrue(m.matches()); in testCapturingGroups() 144 assertTrue(m.matches()); in testCapturingGroups() 155 assertTrue(m.matches()); in testCapturingGroups() [all …]
|
D | PatternTest.java | 226 assertFalse(mat.matches()); in testFlags() 232 assertTrue(mat.matches()); in testFlags() 238 assertTrue(mat.matches()); in testFlags() 244 assertTrue(mat.matches()); in testFlags() 250 assertTrue(mat.matches()); in testFlags() 256 assertFalse(mat.matches()); in testFlags() 262 assertFalse(mat.matches()); in testFlags() 268 assertTrue(mat.matches()); in testFlags() 274 assertTrue(mat.matches()); in testFlags() 280 assertFalse(mat.matches()); in testFlags() [all …]
|
D | Matcher2Test.java | 38 assertFalse(m.matches()); in testErrorConditions()
|
/libcore/ojluni/src/main/java/sun/security/provider/certpath/ |
D | IndexedCollectionCertStore.java | 243 Set<Certificate> matches = new HashSet<>(); in engineGetCertificates() local 244 matchX509Certs(new X509CertSelector(), matches); in engineGetCertificates() 245 matches.addAll(otherCertificates); in engineGetCertificates() 246 return matches; in engineGetCertificates() 250 Set<Certificate> matches = new HashSet<>(); in engineGetCertificates() local 251 matchX509Certs(selector, matches); in engineGetCertificates() 254 matches.add(cert); in engineGetCertificates() 257 return matches; in engineGetCertificates() 289 Set<X509Certificate> matches = new HashSet<>(16); in engineGetCertificates() local 292 matches.add(cert); in engineGetCertificates() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
D | Pattern2Test.java | 34 assertTrue(m1.matches()); in testSimpleMatch() 39 assertFalse(m2.matches()); in testSimpleMatch() 43 assertTrue(Pattern.matches("foo.*", "foo123")); in testSimpleMatch() 44 assertFalse(Pattern.matches("foo.*", "fox")); in testSimpleMatch() 46 assertFalse(Pattern.matches("bar", "foobar")); in testSimpleMatch() 48 assertTrue(Pattern.matches("", "")); in testSimpleMatch() 365 if (m.matches()) { in testEscapes() 415 assertTrue(m.matches()); in testCharacterClasses() 417 assertTrue(m.matches()); in testCharacterClasses() 419 assertFalse(m.matches()); in testCharacterClasses() [all …]
|
D | MatcherTest.java | 46 assertFalse(m.matches()); in testRegionsIntInt() 51 assertTrue(m.matches()); in testRegionsIntInt() 114 assertTrue(m.matches()); in testResetCharSequence() 116 assertFalse(m.matches()); in testResetCharSequence() 169 mat.matches(); in testGroupint() 194 mat.matches(); in testGroupint() 210 mat.matches(); in testGroup() 221 mat.matches(); in testGroup() 234 mat.matches(); in testGroupPossessive() 261 + posSeq[i][j], mat.matches()); in testMatchesMisc() [all …]
|
D | Matcher2Test.java | 40 assertFalse(m.matches()); in testErrorConditions()
|
/libcore/luni/src/test/java/libcore/java/util/regex/ |
D | OldAndroidRegexTest.java | 29 assertTrue("Should match.", m.matches()); in testMatches() 34 assertFalse("Should not match.", m.matches()); in testMatches() 38 assertFalse("Should not match.", m.matches()); in testMatches() 42 assertFalse("Should not match.", m.matches()); in testMatches() 47 assertTrue(m.matches()); in testMatches() 49 assertTrue(m.matches()); in testMatches() 53 assertFalse(m.matches()); in testMatches() 55 assertFalse(m.matches()); in testMatches() 59 assertTrue(m.matches()); in testMatches() 62 assertFalse(m.matches()); in testMatches() [all …]
|
D | OldMatcherTest.java | 287 assertTrue(mat.matches()); in testSEOLsymbols() 332 mat.matches(); in testGroupCount() 379 assertTrue(mat.matches()); in testMatchesURI() 389 assertTrue(Pattern.compile("\\x61a").matcher("aa").matches()); in testUnicode() 391 assertTrue(Pattern.compile("\\0141a").matcher("aa").matches()); in testUnicode() 392 assertTrue(Pattern.compile("\\0777").matcher("?7").matches()); in testUnicode() 397 assertTrue(Pattern.compile("\\p{Ll}").matcher("k").matches()); // Unicode lower case in testUnicodeCategory() 398 assertTrue(Pattern.compile("\\P{Ll}").matcher("K").matches()); // Unicode non-lower in testUnicodeCategory() 400 assertTrue(Pattern.compile("\\p{Lu}").matcher("K").matches()); // Unicode upper case in testUnicodeCategory() 401 assertTrue(Pattern.compile("\\P{Lu}").matcher("k").matches()); // Unicode non-upper in testUnicodeCategory() [all …]
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/func/ |
D | KeyGeneratorThread.java | 44 int matches = 0; in test() local 47 matches++; in test() 50 if (matches > array1.length / 2) { in test() 55 matches = 0; in test() 64 matches++; in test()
|
/libcore/ojluni/src/main/java/javax/net/ssl/ |
D | SNIHostName.java | 363 public boolean matches(SNIServerName serverName) { in matches() method in SNIHostName.SNIHostNameMatcher 387 if (pattern.matcher(asciiName).matches()) { in matches() 393 return pattern.matcher(IDN.toUnicode(asciiName)).matches(); in matches()
|
D | SNIMatcher.java | 104 public abstract boolean matches(SNIServerName serverName); in matches() method in SNIMatcher
|
/libcore/luni/src/main/java/libcore/util/ |
D | ZoneInfoDB.java | 218 List<String> matches = new ArrayList<String>(); in getAvailableIDs() local 222 matches.add(ids[i]); in getAvailableIDs() 225 return matches.toArray(new String[matches.size()]); in getAvailableIDs()
|
/libcore/support/src/test/java/libcore/java/security/ |
D | CpuFeatures.java | 69 if (m.matches()) { in getFieldFromCpuinfo()
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | Level.java | 357 KnownLevel o = KnownLevel.matches(this); in readResolve() 559 static synchronized KnownLevel matches(Level l) { in matches() method in Level.KnownLevel
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Pattern.java | 1045 public static boolean matches(String regex, CharSequence input) { in matches() method in Pattern 1048 return m.matches(); in matches()
|
D | Matcher.java | 413 public boolean matches() { in matches() method in Matcher
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldStringTest.java | 497 + strings[i][j], strings[i][j].matches(patterns[i])); in test_matches() 498 assertFalse("" + i, strings[i][j].matches(patternsInc[i])); in test_matches()
|
/libcore/luni/src/test/java/libcore/java/net/ |
D | NetworkInterfaceTest.java | 195 return ethernetNamePattern.matcher(ifName).matches(); in isEthernet()
|
/libcore/ojluni/src/main/java/sun/net/www/ |
D | MimeEntry.java | 261 public boolean matches(String type) { in matches() method in MimeEntry
|
/libcore/ojluni/src/main/java/sun/security/util/ |
D | SignatureFileVerifier.java | 636 static boolean matches(CodeSigner[] signers, CodeSigner[] oldSigners, in matches() method in SignatureFileVerifier 679 if (matches(cachedSigners, oldSigners, newSigners)) { in updateSigners()
|
D | DisabledAlgorithmConstraints.java | 321 if (matcher.matches()) { in KeySizeConstraints()
|
/libcore/luni/src/main/native/ |
D | java_util_regex_Matcher.cpp | 175 UBool result = matcher->matches(matcher.status()); in Matcher_matchesImpl()
|
/libcore/ojluni/src/main/java/sun/security/ssl/ |
D | X509KeyManagerImpl.java | 283 boolean matches(Certificate[] chain) { in matches() method in X509KeyManagerImpl.KeyType 647 if (keyType.matches(chain)) { in getAliases()
|
/libcore/ojluni/src/main/java/java/util/ |
D | TimeZone.java | 585 if (!m.matches()) { in getCustomTimeZone()
|