/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/extensions/common/manifest_handlers/ |
externally_connectable_unittest.cc | 52 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://example.com"))); 53 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://example.com/"))); 54 EXPECT_FALSE(info->matches.MatchesURL(GURL("http://example.com/index.html"))); 56 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com"))); 57 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com/"))); 58 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://google.com/index.html"))); 59 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.google.com"))); 60 EXPECT_TRUE(info->matches.MatchesURL(GURL("http://www.google.com/"))); 61 EXPECT_TRUE(info->matches.MatchesURL(GURL("https://google.com"))); 62 EXPECT_TRUE(info->matches.MatchesURL(GURL("https://google.com/"))) [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/third_party/WebKit/Source/core/css/ |
MediaQueryListEvent.h | 14 MediaQueryListEventInit() : matches(false) { } 17 bool matches; member in struct:blink::MediaQueryListEventInit 33 static PassRefPtrWillBeRawPtr<MediaQueryListEvent> create(const String& media, bool matches) 35 return adoptRefWillBeNoop(new MediaQueryListEvent(media, matches)); 44 bool matches() const { return m_mediaQueryList ? m_mediaQueryList->matches() : m_matches; } function in class:blink::FINAL 58 MediaQueryListEvent(const String& media, bool matches) 61 , m_matches(matches) { } 71 , m_matches(initializer.matches) { }
|
/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/components/history/core/browser/ |
history_types_unittest.cc | 20 const size_t* matches = result.MatchesForURL(result[i].url(), &match_count); local 24 if (matches[match] == i) { 64 const size_t* matches = results.MatchesForURL(url1, &match_count); local 66 EXPECT_TRUE((matches[0] == 0 && matches[1] == 1) || 67 (matches[0] == 1 && matches[1] == 0)); 70 matches = results.MatchesForURL(url2, &match_count); 72 EXPECT_TRUE(matches[0] == 2); 79 matches = results.MatchesForURL(url1, &match_count) 108 const size_t* matches = results.MatchesForURL(url2, &match_count); local [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/chromium_org/tools/gn/ |
command_ls.cc | 38 " Matches all toolchains. If the label pattern does not specify an\n" 77 std::vector<const Target*> matches; local 81 &matches)) 85 matches = setup->builder()->GetAllResolvedTargets(); 92 matches.push_back(all_targets[i]); 98 for (size_t i = 0; i < matches.size(); i++) { 99 OutputString(matches[i]->dependency_output_file().value()); 105 for (size_t i = 0; i < matches.size(); i++) 106 sorted_matches.push_back(matches[i]->label());
|
/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/components/omnibox/ |
autocomplete_result_unittest.cc | 47 // Adds |count| AutocompleteMatches to |matches|. 51 ACMatches* matches) { 52 ASSERT_TRUE(matches != NULL); 57 matches->empty() ? 1300 : (matches->back().relevance - 100); 60 matches->push_back(match); 79 // Duplicate matches. 105 // Adds |count| AutocompleteMatches to |matches|. 108 ACMatches* matches); 110 // Asserts that |result| has |expected_count| matches matching |expected| 209 ACMatches matches; local 288 ACMatches matches; local 333 ACMatches matches; local 385 ACMatches matches; local 425 ACMatches matches; local 472 ACMatches matches; local 532 ACMatches matches; local 547 ACMatches matches; local 580 ACMatches matches; local 606 ACMatches matches; local 628 ACMatches matches; local 644 ACMatches matches; local 665 ACMatches matches; local 689 ACMatches matches; local 711 ACMatches matches; local 736 ACMatches matches; local 768 ACMatches matches; local 799 ACMatches matches; local 808 ACMatches matches; local [all...] |