/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 | 297 assertFalse(mat.matches()); in testFlagsCase1() 305 assertTrue(mat.matches()); in testFlagsCase2() 313 assertTrue(mat.matches()); in testFlagsCase3() 321 assertTrue(mat.matches()); in testFlagsCase4() 329 assertTrue(mat.matches()); in testFlagsCase5() 337 assertFalse(mat.matches()); in testFlagsCase6() 345 assertFalse(mat.matches()); in testFlagsCase7() 353 assertTrue(mat.matches()); in testFlagsCase8() 361 assertTrue(mat.matches()); in testFlagsCase9() 369 assertFalse(mat.matches()); in testFlagsCase10() [all …]
|
/libcore/luni/src/test/java/libcore/java/nio/file/ |
D | LinuxFileSystemTest.java | 130 assertTrue(pathMatcher.matches(Paths.get("f.java"))); in test_getPathMatcher_glob() 131 assertFalse(pathMatcher.matches(Paths.get("f"))); in test_getPathMatcher_glob() 134 assertTrue(pathMatcher.matches(Paths.get("f.t"))); in test_getPathMatcher_glob() 135 assertFalse(pathMatcher.matches(Paths.get("f"))); in test_getPathMatcher_glob() 138 assertTrue(pathMatcher.matches(Paths.get("f.java"))); in test_getPathMatcher_glob() 139 assertTrue(pathMatcher.matches(Paths.get("f.class"))); in test_getPathMatcher_glob() 140 assertFalse(pathMatcher.matches(Paths.get("f.clas"))); in test_getPathMatcher_glob() 141 assertFalse(pathMatcher.matches(Paths.get("f.t"))); in test_getPathMatcher_glob() 144 assertTrue(pathMatcher.matches(Paths.get("f.t"))); in test_getPathMatcher_glob() 145 assertFalse(pathMatcher.matches(Paths.get("f.tl"))); in test_getPathMatcher_glob() [all …]
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/ |
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() 228 mat.matches(); in testGroupint() 253 mat.matches(); in testGroupint() 269 mat.matches(); in testGroup() 280 mat.matches(); in testGroup() 293 mat.matches(); in testGroupPossessive() 320 + 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 | 315 assertTrue(mat.matches()); in testSEOLsymbols() 360 mat.matches(); in testGroupCount() 407 assertTrue(mat.matches()); in testMatchesURI() 417 assertTrue(Pattern.compile("\\x61a").matcher("aa").matches()); in testUnicode() 419 assertTrue(Pattern.compile("\\0141a").matcher("aa").matches()); in testUnicode() 420 assertTrue(Pattern.compile("\\0777").matcher("?7").matches()); in testUnicode() 425 assertTrue(Pattern.compile("\\p{Ll}").matcher("k").matches()); // Unicode lower case in testUnicodeCategory() 426 assertTrue(Pattern.compile("\\P{Ll}").matcher("K").matches()); // Unicode non-lower in testUnicodeCategory() 428 assertTrue(Pattern.compile("\\p{Lu}").matcher("K").matches()); // Unicode upper case in testUnicodeCategory() 429 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/metrictests/memory/apps/src/libcore/heapdumper/ |
D | Actions.java | 78 boolean matches = m.matches(); in run()
|
/libcore/ojluni/src/main/java/java/nio/file/ |
D | PathMatcher.java | 48 boolean matches(Path path); in matches() method
|
/libcore/support/src/test/java/libcore/java/security/ |
D | CpuFeatures.java | 52 if (machine.matches(type.machineRegex)) { in currentArch() 153 if (line.matches(regex)) { in cpuFieldContainsAes()
|
/libcore/ojluni/src/test/java/time/tck/java/time/ |
D | AbstractTCKTest.java | 112 …oid assertSerializedBySer(Object object, byte[] expectedBytes, byte[]... matches) throws Exception… in assertSerializedBySer() argument 145 if (matches.length > 0) { in assertSerializedBySer() 146 for (byte[] match : matches) { in assertSerializedBySer()
|
/libcore/luni/src/test/java/libcore/javax/crypto/spec/ |
D | AlgorithmParametersTestPBES2.java | 233 assertTrue(ap.toString().matches("(?i:.*hmacsha" + shaVariant + ".*)")); in test_correctNames() 234 assertTrue(ap.toString().matches("(?i:.*aes" + +keySize + ".*)")); in test_correctNames()
|
/libcore/ojluni/src/main/java/sun/net/spi/ |
D | DefaultProxySelector.java | 374 boolean matches = pattern.matcher(urlhost).matches(); in shouldNotUseProxyFor() 375 return matches; in shouldNotUseProxyFor()
|
/libcore/ojluni/src/main/java/sun/nio/fs/ |
D | UnixFileSystem.java | 309 public boolean matches(Path path) { 310 return pattern.matcher(path.toString()).matches();
|
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/ |
D | Pattern.annotated.java | 48 public static boolean matches(@libcore.util.NonNull java.lang.String regex, @libcore.util.NonNull j… in matches() method in Pattern
|
D | Matcher.annotated.java | 66 public boolean matches() { throw new RuntimeException("Stub!"); } in matches() method in Matcher
|
/libcore/ojluni/src/main/java/java/util/regex/ |
D | Pattern.java | 1069 public static boolean matches(String regex, CharSequence input) { in matches() method in Pattern 1072 return m.matches(); in matches()
|
D | Matcher.java | 525 public boolean matches() { in matches() method in Matcher 527 matchFound = nativeMatcher.matches(groups); in matches()
|
/libcore/ojluni/src/main/java/java/util/logging/ |
D | Level.java | 410 KnownLevel o = KnownLevel.matches(this); in readResolve() 601 static synchronized KnownLevel matches(Level l) { in matches() method in Level.KnownLevel
|
/libcore/luni/src/test/java/libcore/java/lang/ |
D | OldStringTest.java | 501 + strings[i][j], strings[i][j].matches(patterns[i])); in test_matches() 502 assertFalse("" + i, strings[i][j].matches(patternsInc[i])); in test_matches()
|
/libcore/ojluni/src/main/java/java/security/ |
D | SecureRandom.java | 646 remainder)).matches()) { in getInstanceStrong()
|
D | PKCS12Attribute.java | 234 if (COLON_SEPARATED_HEX_PAIRS.matcher(value).matches()) { in encode()
|