/external/proguard/src/proguard/util/ |
ConstantMatcher.java | 24 * This StringMatcher matches any string or no string at all. 30 private boolean matches; field in class:ConstantMatcher 36 public ConstantMatcher(boolean matches) 38 this.matches = matches; 44 public boolean matches(String string) method in class:ConstantMatcher 46 return matches;
|
StringMatcher.java | 33 * Checks whether the given string matches. 35 * @return a boolean indicating whether the string matches the criterion. 37 public boolean matches(String string); method in interface:StringMatcher
|
NotMatcher.java | 42 public boolean matches(String string) method in class:NotMatcher 44 return !matcher.matches(string);
|
SettableMatcher.java | 42 public boolean matches(String string) method in class:SettableMatcher 44 return matcher.matches(string);
|
EmptyStringMatcher.java | 32 public boolean matches(String string) method in class:EmptyStringMatcher
|
AndMatcher.java | 24 * This StringMatcher tests whether strings matches both given StringMatcher 44 public boolean matches(String string) method in class:AndMatcher 46 return matcher1.matches(string) && 47 matcher2.matches(string);
|
OrMatcher.java | 24 * This StringMatcher tests whether strings matches either of the given 44 public boolean matches(String string) method in class:OrMatcher 46 return matcher1.matches(string) || 47 matcher2.matches(string);
|
/frameworks/base/core/tests/coretests/src/android/util/ |
PatternsTest.java | 31 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches(); 35 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches(); 39 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches(); 43 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches(); 46 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches(); 49 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches(); 52 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches(); 60 t = Patterns.WEB_URL.matcher("http://www.google.com").matches(); 64 t = Patterns.WEB_URL.matcher("http://www.google.me").matches(); 66 t = Patterns.WEB_URL.matcher("google.me").matches(); [all...] |
/external/easymock/src/org/easymock/ |
IArgumentMatcher.java | 37 boolean matches(Object argument);
method in interface:IArgumentMatcher
|
ArgumentsMatcher.java | 35 * Matches two arrays of arguments.
43 boolean matches(Object[] expected, Object[] actual);
method in interface:ArgumentsMatcher
|
/external/hamcrest/src/org/hamcrest/ |
Matcher.java | 26 * This method matches against Object, instead of the generic type T. This is 32 * @return <code>true</code> if <var>item</var> matches, otherwise <code>false</code>. 36 boolean matches(Object item); method in interface:Matcher
|
/external/chromium_org/components/url_matcher/ |
substring_set_matcher_unittest.cc | 28 std::set<int> matches; local 29 matcher.Match(test_string, &matches); 32 EXPECT_EQ(expected_matches, matches.size()) << test; 33 EXPECT_EQ(is_match, matches.find(1) != matches.end()) << test; 59 std::set<int> matches; local 60 matcher.Match(test_string, &matches); 63 EXPECT_EQ(expected_matches, matches.size()) << test; 64 EXPECT_EQ(is_match_1, matches.find(1) != matches.end()) << test 140 std::set<int> matches; local 165 std::set<int> matches; local [all...] |
/external/chromium_org/rlz/lib/ |
crc8_unittest.cc | 32 bool matches; local 37 matches = false; 43 rlz_lib::Crc8::Verify(bytes, length, crc, &matches); 44 EXPECT_TRUE(matches); 46 // Corrupt string and see if CRC still matches. 48 rlz_lib::Crc8::Verify(bytes, length, crc, &matches); 49 EXPECT_FALSE(matches);
|
crc8.h | 20 bool * matches);
|
/external/chromium_org/extensions/common/manifest_handlers/ |
externally_connectable_unittest.cc | 55 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://example.com"))); 56 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://example.com/"))); 57 EXPECT_FALSE(info->matches.MatchesURL(GURL("http://example.com/index.html"))); 59 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com"))); 60 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com/"))); 61 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com/index.html"))); 62 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.google.com"))); 63 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.google.com/"))); 64 EXPECT_TRUE(info->matches.MatchesURL(GURL("https://google.com"))); 65 EXPECT_TRUE(info->matches.MatchesURL(GURL("https://google.com/"))) [all...] |
/external/clang/unittests/ASTMatchers/ |
ASTMatchersTest.cpp | 60 EXPECT_TRUE(matches("namespace x { class X {}; } using x::X;", 66 EXPECT_TRUE(matches("typedef int X;", NamedX)); 67 EXPECT_TRUE(matches("int X;", NamedX)); 68 EXPECT_TRUE(matches("class foo { virtual void X(); };", NamedX)); 69 EXPECT_TRUE(matches("void foo() try { } catch(int X) { }", NamedX)); 70 EXPECT_TRUE(matches("void foo() { int X; }", NamedX)); 71 EXPECT_TRUE(matches("namespace X { }", NamedX)); 72 EXPECT_TRUE(matches("enum X { A, B, C };", NamedX)); 79 EXPECT_TRUE(matches("typedef int Xa;", NamedX)); 80 EXPECT_TRUE(matches("int Xb;", NamedX)) [all...] |
/libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/ |
Pattern2Test.java | 106 private void testCategory(String cat, String... matches) { 112 for (int j = 0; j < matches.length; j++) { 113 String t = matches[j]; 119 "by pattern '"+pat, p.matcher(t).matches()); 121 "be matched by pattern '"+npat, pn.matcher(t).matches()); 124 "by pattern '"+pat, p.matcher(t).matches()); 126 "not be matched by pattern '"+npat, pn.matcher(t).matches()); 138 assertTrue(m.matches()); 144 assertTrue(m.matches()); 155 assertTrue(m.matches()); [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/api/infobars/sandwichbar/ |
contentscript.js | 6 matches = document.body.innerText.match(regex); 7 if (matches) { 9 count: matches.length // Pass the number of matches back.
|
/external/iproute2/ip/ |
rtm_map.c | 68 else if (matches(arg, "broadcast") == 0 || 71 else if (matches(arg, "anycast") == 0) 73 else if (matches(arg, "multicast") == 0) 75 else if (matches(arg, "prohibit") == 0) 77 else if (matches(arg, "unreachable") == 0) 79 else if (matches(arg, "blackhole") == 0) 81 else if (matches(arg, "xresolve") == 0) 83 else if (matches(arg, "unicast") == 0)
|
/external/chromium_org/extensions/common/ |
event_filter_unittest.cc | 69 std::set<int> matches = event_filter_.MatchEvent("some-event", local 72 ASSERT_EQ(0u, matches.size()); 82 std::set<int> matches = event_filter_.MatchEvent("event2", local 85 ASSERT_EQ(0u, matches.size()); 90 std::set<int> matches = event_filter_.MatchEvent("event1", local 92 ASSERT_EQ(1u, matches.size()); 93 ASSERT_EQ(1u, matches.count(id)); 100 std::set<int> matches = event_filter_.MatchEvent( local 102 ASSERT_TRUE(matches.empty()); 108 std::set<int> matches = event_filter_.MatchEvent("event1" local 117 std::set<int> matches = event_filter_.MatchEvent("event1", local 129 std::set<int> matches = event_filter_.MatchEvent( local 144 std::set<int> matches = event_filter_.MatchEvent("event1", local 150 std::set<int> matches = event_filter_.MatchEvent("event1", local 156 std::set<int> matches = event_filter_.MatchEvent("event1", local 168 std::set<int> matches = event_filter_.MatchEvent("event1", local 180 std::set<int> matches = event_filter_.MatchEvent("event1", local 224 std::set<int> matches = event_filter_.MatchEvent("event1", local 242 std::set<int> matches = event_filter_.MatchEvent( local 253 std::set<int> matches = event_filter_.MatchEvent( local [all...] |
/external/iproute2/tc/ |
m_csum.c | 49 if ((matches(*argv, "iph") == 0) || 50 (matches(*argv, "ip4h") == 0) || 51 (matches(*argv, "ipv4h") == 0)) 54 else if (matches(*argv, "icmp") == 0) 57 else if (matches(*argv, "igmp") == 0) 60 else if (matches(*argv, "tcp") == 0) 63 else if (matches(*argv, "udp") == 0) 66 else if (matches(*argv, "udplite") == 0) 69 else if ((matches(*argv, "and") == 0) || 70 (matches(*argv, "or") == 0) | [all...] |
/external/chromium_org/chrome/browser/autocomplete/ |
autocomplete_result_unittest.cc | 48 // Adds |count| AutocompleteMatches to |matches|. 52 ACMatches* matches) { 53 ASSERT_TRUE(matches != NULL); 58 matches->empty() ? 1300 : (matches->back().relevance - 100); 61 matches->push_back(match); 80 // Duplicate matches. 110 // Adds |count| AutocompleteMatches to |matches|. 113 ACMatches* matches); 115 // Asserts that |result| has |expected_count| matches matching |expected| 212 ACMatches matches; local 291 ACMatches matches; local 335 ACMatches matches; local 386 ACMatches matches; local 425 ACMatches matches; local 471 ACMatches matches; local 530 ACMatches matches; local 544 ACMatches matches; local 576 ACMatches matches; local 601 ACMatches matches; local 622 ACMatches matches; local 637 ACMatches matches; local 657 ACMatches matches; local 680 ACMatches matches; local 701 ACMatches matches; local 725 ACMatches matches; local 757 ACMatches matches; local 788 ACMatches matches; local 797 ACMatches matches; local [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/r300/compiler/tests/ |
rc_test_helpers.c | 30 static int match_length(regmatch_t * matches, int index) 32 return matches[index].rm_eo - matches[index].rm_so; 38 regmatch_t * matches, 53 err_code = regexec(®ex, search_str, num_matches, matches, 0); 57 matches[i].rm_so, matches[i].rm_eo); 94 regmatch_t matches[REGEX_SRC_MATCHES]; local 100 if (!regex_helper(regex_str, src_str, matches, REGEX_SRC_MATCHES)) { 106 tokens.Negate.String = src_str + matches[1].rm_so 221 regmatch_t matches[REGEX_DST_MATCHES]; local 320 regmatch_t matches[REGEX_INST_MATCHES]; local [all...] |
/external/mesa3d/src/gallium/drivers/r300/compiler/tests/ |
rc_test_helpers.c | 30 static int match_length(regmatch_t * matches, int index) 32 return matches[index].rm_eo - matches[index].rm_so; 38 regmatch_t * matches, 53 err_code = regexec(®ex, search_str, num_matches, matches, 0); 57 matches[i].rm_so, matches[i].rm_eo); 94 regmatch_t matches[REGEX_SRC_MATCHES]; local 100 if (!regex_helper(regex_str, src_str, matches, REGEX_SRC_MATCHES)) { 106 tokens.Negate.String = src_str + matches[1].rm_so 221 regmatch_t matches[REGEX_DST_MATCHES]; local 320 regmatch_t matches[REGEX_INST_MATCHES]; local [all...] |
/frameworks/testing/espresso/espresso-lib-tests/src/androidTest/java/com/google/android/apps/common/testing/ui/espresso/matcher/ |
ViewMatchersTest.java | 70 assertFalse(isAssignableFrom(Spinner.class).matches(v)); 75 assertTrue(isAssignableFrom(View.class).matches(v)); 80 assertTrue(isAssignableFrom(Button.class).matches(v)); 87 assertTrue(withContentDescription(Matchers.<CharSequence>nullValue()).matches(view)); 90 assertTrue(withContentDescription(is(testText)).matches(view)); 91 assertFalse(withContentDescription(is((CharSequence) "blah")).matches(view)); 92 assertFalse(withContentDescription(is((CharSequence) "")).matches(view)); 107 assertFalse(hasContentDescription().matches(view)); 110 assertTrue(hasContentDescription().matches(view)); 116 assertTrue(withContentDescription(Matchers.<String>nullValue()).matches(view)) 120 assertFalse(withContentDescription(is("blah")).matches(view)); method 121 assertFalse(withContentDescription(is("")).matches(view)); method 129 assertFalse(withId(is(1234)).matches(view)); method 168 assertFalse(withTagKey(65535).matches(view)); method 174 assertFalse(withTagKey(65535).matches(view)); method 188 assertFalse(withTagKey(65535, is((Object) testObjectText1)).matches(view)); method 197 assertFalse(withTagKey(65535, is((Object) testObjectText1)).matches(view)); method 257 assertTrue(withText(is("")).matches(textView)); method 261 assertFalse(withText(is("blah")).matches(textView)); method 262 assertFalse(withText(is("")).matches(textView)); method 433 assertTrue(hasSibling(withText("Bill Odama")).matches(v2)); method 447 assertFalse(hasImeAction(0).matches(button)); method [all...] |