Home
last modified time | relevance | path

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

12

/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
DPattern2Test.java106 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 …]
DPatternTest.java297 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/
DLinuxFileSystemTest.java130 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/
DMatcherTest.java46 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 …]
DMatcher2Test.java40 assertFalse(m.matches()); in testErrorConditions()
/libcore/luni/src/test/java/libcore/java/util/regex/
DOldAndroidRegexTest.java29 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 …]
DOldMatcherTest.java315 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/
DKeyGeneratorThread.java44 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/
DSNIHostName.java363 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()
DSNIMatcher.java104 public abstract boolean matches(SNIServerName serverName); in matches() method in SNIMatcher
/libcore/metrictests/memory/apps/src/libcore/heapdumper/
DActions.java78 boolean matches = m.matches(); in run()
/libcore/ojluni/src/main/java/java/nio/file/
DPathMatcher.java48 boolean matches(Path path); in matches() method
/libcore/support/src/test/java/libcore/java/security/
DCpuFeatures.java52 if (machine.matches(type.machineRegex)) { in currentArch()
153 if (line.matches(regex)) { in cpuFieldContainsAes()
/libcore/ojluni/src/test/java/time/tck/java/time/
DAbstractTCKTest.java112 …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/
DAlgorithmParametersTestPBES2.java233 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/
DDefaultProxySelector.java374 boolean matches = pattern.matcher(urlhost).matches(); in shouldNotUseProxyFor()
375 return matches; in shouldNotUseProxyFor()
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixFileSystem.java309 public boolean matches(Path path) {
310 return pattern.matcher(path.toString()).matches();
/libcore/ojluni/annotations/sdk/nullability/java/util/regex/
DPattern.annotated.java48 public static boolean matches(@libcore.util.NonNull java.lang.String regex, @libcore.util.NonNull j… in matches() method in Pattern
DMatcher.annotated.java66 public boolean matches() { throw new RuntimeException("Stub!"); } in matches() method in Matcher
/libcore/ojluni/src/main/java/java/util/regex/
DPattern.java1069 public static boolean matches(String regex, CharSequence input) { in matches() method in Pattern
1072 return m.matches(); in matches()
DMatcher.java525 public boolean matches() { in matches() method in Matcher
527 matchFound = nativeMatcher.matches(groups); in matches()
/libcore/ojluni/src/main/java/java/util/logging/
DLevel.java410 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/
DOldStringTest.java501 + 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/
DSecureRandom.java646 remainder)).matches()) { in getInstanceStrong()
DPKCS12Attribute.java234 if (COLON_SEPARATED_HEX_PAIRS.matcher(value).matches()) { in encode()

12