/external/proguard/src/proguard/util/ |
H A D | NotMatcher.java | 31 private final StringMatcher matcher; field in class:NotMatcher 34 public NotMatcher(StringMatcher matcher) argument 36 this.matcher = matcher; 44 return !matcher.matches(string);
|
H A D | SettableMatcher.java | 31 private StringMatcher matcher; field in class:SettableMatcher 34 public void setMatcher(StringMatcher matcher) argument 36 this.matcher = matcher; 44 return matcher.matches(string);
|
/external/apache-http/src/org/apache/http/protocol/ |
H A D | HttpRequestHandlerRegistry.java | 53 private final UriPatternMatcher matcher; field in class:HttpRequestHandlerRegistry 56 matcher = new UriPatternMatcher(); 60 matcher.register(pattern, handler); 64 matcher.unregister(pattern); 68 matcher.setHandlers(map); 72 return (HttpRequestHandler) matcher.lookup(requestURI); 80 return matcher.matchUriRequestPattern(pattern, requestUri);
|
/external/hamcrest/src/org/hamcrest/core/ |
H A D | Is.java | 19 private final Matcher<T> matcher; field in class:Is 21 public Is(Matcher<T> matcher) { argument 22 this.matcher = matcher; 26 return matcher.matches(arg); 30 description.appendText("is ").appendDescriptionOf(matcher); 41 public static <T> Matcher<T> is(Matcher<T> matcher) { argument 42 return new Is<T>(matcher);
|
H A D | IsNot.java | 13 * Calculates the logical negation of a matcher. 16 private final Matcher<T> matcher; field in class:IsNot 18 public IsNot(Matcher<T> matcher) { argument 19 this.matcher = matcher; 23 return !matcher.matches(arg); 27 description.appendText("not ").appendDescriptionOf(matcher); 34 public static <T> Matcher<T> not(Matcher<T> matcher) { argument 35 return new IsNot<T>(matcher);
|
H A D | DescribedAs.java | 13 * Provides a custom description to another matcher.
17 private final Matcher<T> matcher;
field in class:DescribedAs 22 public DescribedAs(String descriptionTemplate, Matcher<T> matcher, Object[] values) {
argument 24 this.matcher = matcher;
29 return matcher.matches(o);
33 java.util.regex.Matcher arg = ARG_PATTERN.matcher(descriptionTemplate);
49 * Wraps an existing matcher and overrides the description when it fails.
52 public static <T> Matcher<T> describedAs(String description, Matcher<T> matcher, Object... values) {
argument 53 return new DescribedAs<T>(description, matcher, value [all...] |
/external/chromium_org/chrome/browser/extensions/api/declarative_content/ |
H A D | content_condition_unittest.cc | 26 URLMatcher matcher; local 30 matcher.condition_factory(), 40 EXPECT_TRUE(matcher.IsEmpty()) << "Errors shouldn't add URL conditions"; 44 URLMatcher matcher; local 48 matcher.condition_factory(), 58 EXPECT_TRUE(matcher.IsEmpty()) << "Errors shouldn't add URL conditions"; 62 URLMatcher matcher; local 66 matcher.condition_factory(), 76 EXPECT_TRUE(matcher.IsEmpty()) << "Errors shouldn't add URL conditions"; 80 URLMatcher matcher; local [all...] |
/external/guava/guava-tests/test/com/google/common/base/ |
H A D | CharMatcherTest.java | 126 private void doTestEmpty(CharMatcher matcher) throws Exception { argument 127 reallyTestEmpty(matcher); 128 reallyTestEmpty(matcher.negate()); 129 reallyTestEmpty(matcher.precomputed()); 132 private void reallyTestEmpty(CharMatcher matcher) throws Exception { argument 133 assertEquals(-1, matcher.indexIn("")); 134 assertEquals(-1, matcher.indexIn("", 0)); 136 matcher.indexIn("", 1); 141 matcher.indexIn("", -1); 145 assertEquals(-1, matcher 157 doTestNull(CharMatcher matcher) argument 180 doTestNoMatches(CharMatcher matcher, String s) argument 207 doTestAllMatches(CharMatcher matcher, String s) argument 218 reallyTestNoMatches(CharMatcher matcher, CharSequence s) argument 246 reallyTestAllMatches(CharMatcher matcher, CharSequence s) argument 275 doTestGeneral(CharMatcher matcher, char match, char noMatch) argument 282 doTestOneCharMatch(CharMatcher matcher, String s) argument 290 doTestOneCharNoMatch(CharMatcher matcher, String s) argument 298 doTestMatchThenNoMatch(CharMatcher matcher, String s) argument 306 doTestNoMatchThenMatch(CharMatcher matcher, String s) argument 314 reallyTestOneCharMatch(CharMatcher matcher, String s) argument 331 reallyTestOneCharNoMatch(CharMatcher matcher, String s) argument 352 reallyTestMatchThenNoMatch(CharMatcher matcher, String s) argument 368 reallyTestNoMatchThenMatch(CharMatcher matcher, String s) argument [all...] |
/external/junit/src/org/junit/internal/matchers/ |
H A D | CombinableMatcher.java | 13 public CombinableMatcher(Matcher<? extends T> matcher) { argument 14 fMatcher= matcher; 26 public CombinableMatcher<T> and(Matcher<? extends T> matcher) { argument 27 return new CombinableMatcher<T>(allOf(matcher, fMatcher)); 31 public CombinableMatcher<T> or(Matcher<? extends T> matcher) { argument 32 return new CombinableMatcher<T>(anyOf(matcher, fMatcher));
|
/external/chromium_org/components/url_matcher/ |
H A D | regex_set_matcher_unittest.cc | 23 RegexSetMatcher matcher; local 24 matcher.AddPatterns(regexes); 27 matcher.Match("http://abracadabra.com", &result1); 33 matcher.Match("https://abfffffffffffffffffffffffffffffff.fi/cf", &result2); 39 matcher.Match("http://nothing.com/", &result3); 49 RegexSetMatcher matcher; local 50 matcher.AddPatterns(regexes); 53 matcher.Match("http://aaa.net/", &result1); 57 matcher.Match("http://aaa.net/quaaACK", &result2);
|
H A D | substring_set_matcher_unittest.cc | 26 SubstringSetMatcher matcher; local 27 matcher.RegisterPatterns(patterns); 29 matcher.Match(test_string, &matches); 57 SubstringSetMatcher matcher; local 58 matcher.RegisterPatterns(patterns); 60 matcher.Match(test_string, &matches); 125 SubstringSetMatcher matcher; local 133 matcher.RegisterPatterns(patterns); 138 matcher.RegisterPatterns(patterns); 141 matcher 164 SubstringSetMatcher matcher; local [all...] |
/external/chromium_org/ash/wm/workspace/ |
H A D | magnetism_matcher_unittest.cc | 16 MagnetismMatcher matcher(initial_bounds, kAllMagnetismEdges); 17 EXPECT_FALSE(matcher.AreEdgesObscured()); 19 EXPECT_FALSE(matcher.ShouldAttach( 22 EXPECT_FALSE(matcher.AreEdgesObscured()); 23 EXPECT_TRUE(matcher.ShouldAttach( 29 EXPECT_TRUE(matcher.ShouldAttach( 41 MagnetismMatcher matcher(initial_bounds, kAllMagnetismEdges); 42 EXPECT_FALSE(matcher.AreEdgesObscured()); 44 EXPECT_FALSE(matcher.ShouldAttach( 47 EXPECT_FALSE(matcher [all...] |
/external/easymock/src/org/easymock/internal/ |
H A D | ILegacyMatcherMethods.java | 23 void setDefaultMatcher(org.easymock.ArgumentsMatcher matcher);
argument 26 void setMatcher(Method method, org.easymock.ArgumentsMatcher matcher);
argument
|
H A D | ExpectedInvocation.java | 34 private final org.easymock.ArgumentsMatcher matcher;
field in class:ExpectedInvocation 45 org.easymock.ArgumentsMatcher matcher) {
47 this.matcher = matcher;
48 this.matchers = (matcher == null) ? createMissingMatchers(invocation,
77 && ((this.matcher == null && other.matcher == null) || (this.matcher != null && this.matcher
78 .equals(other.matcher)))
43 ExpectedInvocation(Invocation invocation, List<IArgumentMatcher> matchers, @SuppressWarnings(�) org.easymock.ArgumentsMatcher matcher) argument 131 withMatcher(@uppressWarnings�) org.easymock.ArgumentsMatcher matcher) argument [all...] |
/external/guava/guava/src/com/google/common/base/ |
H A D | Platform.java | 52 static CharMatcher precomputeCharMatcher(CharMatcher matcher) { argument 53 return matcher.precomputedInternal();
|
/external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/ |
H A D | Platform.java | 36 static CharMatcher precomputeCharMatcher(CharMatcher matcher) { argument 41 return matcher;
|
/external/chromium_org/third_party/libphonenumber/src/phonenumbers/ |
H A D | regexp_adapter_icu.cc | 130 const scoped_ptr<RegexMatcher> matcher( 131 utf8_regexp_->matcher(*input->Data(), status)); 133 ? matcher->lookingAt(input->position(), status) 134 : matcher->find(input->position(), status); 146 if (group_index > matcher->groupCount()) { 150 UnicodeStringToUtf8String(matcher->group(group_index, status)); 153 input->set_position(matcher->end(status)); 165 const scoped_ptr<RegexMatcher> matcher( 166 utf8_regexp_->matcher(*input.Data(), status)); 168 ? matcher [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
H A D | UriMatcherTest.java | 22 UriMatcher matcher; field in class:UriMatcherTest 28 matcher = new UriMatcher(NO_MATCH); 29 root = Robolectric.shadowOf(matcher).rootNode; 43 matcher.addURI(AUTH, path, 1); 57 matcher.addURI(AUTH, "#", 1); 58 matcher.addURI(AUTH, "*", 2); 66 matcher.addURI(AUTH, "bar", 1); 67 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar")), is(1)); 69 matcher.addURI(AUTH, "bar/#", 2); 70 assertThat(matcher [all...] |
/external/apache-http/src/org/apache/http/conn/util/ |
H A D | InetAddressUtils.java | 57 return IPV4_PATTERN.matcher(input).matches(); 61 return IPV6_STD_PATTERN.matcher(input).matches(); 65 return IPV6_HEX_COMPRESSED_PATTERN.matcher(input).matches();
|
/external/junit/src/org/junit/rules/ |
H A D | ExpectedException.java | 65 * Adds {@code matcher} to the list of requirements for any thrown exception. 69 public void expect(Matcher<?> matcher) { argument 71 fMatcher= (Matcher<Object>) matcher; 73 fMatcher= both(fMatcher).and(matcher); 93 * Adds {@code matcher} to the list of requirements for the message 96 public void expectMessage(Matcher<String> matcher) { argument 97 expect(hasMessage(matcher)); 123 private Matcher<Throwable> hasMessage(final Matcher<String> matcher) { argument 127 description.appendDescriptionOf(matcher); 132 return matcher [all...] |
/external/chromium_org/chrome_frame/test/ |
H A D | mock_ie_event_sink_actions.h | 34 MATCHER_P(AccSatisfies, matcher, "satisfies the given AccObjectMatcher") { 35 return matcher.DoesMatch(arg); 142 ACTION_P(AccDoDefaultAction, matcher) { 144 if (FindAccObjectInWindow(arg0, matcher, &object)) { 149 ACTION_P2(DelayAccDoDefaultAction, matcher, delay) { 152 if (FindAccObjectInWindow(arg0, matcher, &object)) { 157 ACTION_P(AccLeftClick, matcher) { 159 if (FindAccObjectInWindow(arg0, matcher, &object)) { 164 ACTION_P(AccSendCommand, matcher) { 166 if (FindAccObjectInWindow(arg0, matcher, [all...] |
/external/chromium_org/third_party/icu/source/i18n/ |
H A D | quant.cpp | 27 matcher = adoptedMatcher; 35 matcher(o.matcher->clone()), 42 delete matcher; 68 UMatchDegree m = matcher->toMatcher()->matches(text, offset, limit, incremental); 98 matcher->toMatcher()->toPattern(result, escapeUnprintable); 123 return (minCount == 0) || matcher->toMatcher()->matchesIndexValue(v); 131 matcher->toMatcher()->addMatchSetTo(toUnionTo); 139 matcher->setData(d);
|
/external/icu4c/i18n/ |
H A D | quant.cpp | 27 matcher = adoptedMatcher; 35 matcher(o.matcher->clone()), 42 delete matcher; 71 UMatchDegree m = matcher->toMatcher()->matches(text, offset, limit, incremental); 101 matcher->toMatcher()->toPattern(result, escapeUnprintable); 126 return (minCount == 0) || matcher->toMatcher()->matchesIndexValue(v); 134 matcher->toMatcher()->addMatchSetTo(toUnionTo); 142 matcher->setData(d);
|
/external/chromium_org/chrome/common/extensions/docs/examples/api/downloads/download_filename_controller/ |
H A D | bg.js | 6 if (rule.matcher == 'js') 8 if (rule.matcher == 'hostname') { 15 if (rule.matcher == 'default') 17 if (rule.matcher == 'url-regex') 19 if (rule.matcher == 'default-regex')
|
/external/chromium_org/components/autofill/core/browser/ |
H A D | autofill_regexes.cc | 24 // Returns the compiled regex matcher corresponding to |pattern|. 56 icu::RegexMatcher* matcher = new icu::RegexMatcher(icu_pattern, local 61 matchers_.insert(std::make_pair(pattern, matcher)); 73 icu::RegexMatcher* matcher = local 76 matcher->reset(icu_input); 79 UBool match = matcher->find(0, status);
|