HomeSort by relevance Sort by last modified time
    Searched refs:matcher (Results 1 - 25 of 552) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/proguard/src/proguard/util/
NotMatcher.java 31 private final StringMatcher matcher; field in class:NotMatcher
34 public NotMatcher(StringMatcher matcher)
36 this.matcher = matcher;
44 return !matcher.matches(string);
SettableMatcher.java 31 private StringMatcher matcher; field in class:SettableMatcher
34 public void setMatcher(StringMatcher matcher)
36 this.matcher = matcher;
44 return matcher.matches(string);
  /frameworks/base/core/tests/coretests/src/android/net/
UriMatcherTest.java 45 UriMatcher matcher = new UriMatcher(ROOT); local
46 matcher.addURI("people", null, PEOPLE);
47 matcher.addURI("people", "#", PEOPLE_ID);
48 matcher.addURI("people", "#/phones", PEOPLE_PHONES);
49 matcher.addURI("people", "#/phones/blah", PEOPLE_PHONES_ID);
50 matcher.addURI("people", "#/phones/#", PEOPLE_PHONES_ID);
51 matcher.addURI("people", "#/addresses", PEOPLE_ADDRESSES);
52 matcher.addURI("people", "#/addresses/#", PEOPLE_ADDRESSES_ID);
53 matcher.addURI("people", "#/contact-methods", PEOPLE_CONTACTMETH);
54 matcher.addURI("people", "#/contact-methods/#", PEOPLE_CONTACTMETH_ID)
66 UriMatcher matcher = new UriMatcher(ROOT); local
    [all...]
  /external/apache-http/src/org/apache/http/protocol/
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);
  /frameworks/base/core/tests/coretests/src/android/util/
PatternsTest.java 21 import java.util.regex.Matcher;
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()
    [all...]
  /external/hamcrest/src/org/hamcrest/core/
Is.java 6 import org.hamcrest.Matcher;
11 * Decorates another Matcher, retaining the behavior but allowing tests
19 private final Matcher<T> matcher; field in class:Is
21 public Is(Matcher<T> matcher) {
22 this.matcher = matcher;
26 return matcher.matches(arg);
30 description.appendText("is ").appendDescriptionOf(matcher);
    [all...]
IsNot.java 7 import org.hamcrest.Matcher;
13 * Calculates the logical negation of a matcher.
16 private final Matcher<T> matcher; field in class:IsNot
18 public IsNot(Matcher<T> matcher) {
19 this.matcher = matcher;
23 return !matcher.matches(arg);
27 description.appendText("not ").appendDescriptionOf(matcher);
    [all...]
DescribedAs.java 8 import org.hamcrest.Matcher;
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) {
24 this.matcher = matcher;
29 return matcher.matches(o);
33 java.util.regex.Matcher arg = ARG_PATTERN.matcher(descriptionTemplate);
    [all...]
  /external/chromium_org/chrome/browser/extensions/api/declarative_content/
content_condition_unittest.cc 13 #include "extensions/common/matcher/url_matcher.h"
24 URLMatcher matcher; local
27 matcher.condition_factory(),
37 EXPECT_TRUE(matcher.IsEmpty()) << "Errors shouldn't add URL conditions";
41 URLMatcher matcher; local
44 matcher.condition_factory(),
54 EXPECT_TRUE(matcher.IsEmpty()) << "Errors shouldn't add URL conditions";
58 URLMatcher matcher; local
61 matcher.condition_factory(),
71 EXPECT_TRUE(matcher.IsEmpty()) << "Errors shouldn't add URL conditions"
75 URLMatcher matcher; local
    [all...]
  /frameworks/base/media/mca/filterfw/java/android/filterfw/io/
PatternScanner.java 20 import java.util.regex.Matcher;
50 // Create the matcher
51 Matcher matcher = pattern.matcher(mInput); local
52 matcher.region(mOffset, mInput.length());
56 if (matcher.lookingAt()) {
57 updateLineCount(mOffset, matcher.end());
58 mOffset = matcher.end();
59 result = mInput.substring(matcher.start(), matcher.end())
85 Matcher matcher = pattern.matcher(mInput); local
93 Matcher matcher = pattern.matcher(mInput); local
    [all...]
  /external/guava/guava-tests/test/com/google/common/base/
CharMatcherTest.java 126 private void doTestEmpty(CharMatcher matcher) throws Exception {
127 reallyTestEmpty(matcher);
128 reallyTestEmpty(matcher.negate());
129 reallyTestEmpty(matcher.precomputed());
132 private void reallyTestEmpty(CharMatcher matcher) throws Exception {
133 assertEquals(-1, matcher.indexIn(""));
134 assertEquals(-1, matcher.indexIn("", 0));
136 matcher.indexIn("", 1);
141 matcher.indexIn("", -1);
145 assertEquals(-1, matcher.lastIndexIn(""))
    [all...]
  /cts/hostsidetests/monkey/src/com/android/cts/monkey/
PackageTest.java 33 assertTrue(out, ALLOW_MONKEY.matcher(out).find());
34 assertFalse(out, ALLOW_CHIMP.matcher(out).find());
37 assertFalse(out, ALLOW_MONKEY.matcher(out).find());
38 assertTrue(out, ALLOW_CHIMP.matcher(out).find());
44 assertTrue(out, ALLOW_MONKEY.matcher(out).find());
45 assertTrue(out, ALLOW_CHIMP.matcher(out).find());
  /external/junit/src/org/junit/internal/matchers/
CombinableMatcher.java 7 import org.hamcrest.Matcher;
11 private final Matcher<? extends T> fMatcher;
13 public CombinableMatcher(Matcher<? extends T> matcher) {
14 fMatcher= matcher;
26 public CombinableMatcher<T> and(Matcher<? extends T> matcher) {
27 return new CombinableMatcher<T>(allOf(matcher, fMatcher));
31 public CombinableMatcher<T> or(Matcher<? extends T> matcher) {
    [all...]
  /external/chromium_org/ash/wm/workspace/
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.AreEdgesObscured())
    [all...]
  /external/easymock/src/org/easymock/internal/
ILegacyMatcherMethods.java 23 void setDefaultMatcher(org.easymock.ArgumentsMatcher matcher);
26 void setMatcher(Method method, org.easymock.ArgumentsMatcher matcher);
  /external/guava/guava/src/com/google/common/base/
Platform.java 52 static CharMatcher precomputeCharMatcher(CharMatcher matcher) {
53 return matcher.precomputedInternal();
  /external/guava/guava-gwt/src-super/com/google/common/base/super/com/google/common/base/
Platform.java 36 static CharMatcher precomputeCharMatcher(CharMatcher matcher) {
41 return matcher;
  /packages/apps/UnifiedEmail/src/com/android/mail/lib/base/
Platform.java 54 static CharMatcher precomputeCharMatcher(CharMatcher matcher) {
55 return matcher.precomputedInternal();
  /packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
Platform.java 54 static CharMatcher precomputeCharMatcher(CharMatcher matcher) {
55 return matcher.precomputedInternal();
  /external/chromium_org/third_party/libphonenumber/src/phonenumbers/
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->matches(input.position(), status
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
Pattern2Test.java 19 import java.util.regex.Matcher;
26 * Tests simple Pattern compilation and Matcher methods
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());
133 Matcher m;
137 m = p.matcher("aaaaaaaab");
143 m = p.matcher("ananas");
154 m = p.matcher("ananas")
    [all...]
  /libcore/luni/src/main/native/
java_util_regex_Matcher.cpp 17 #define LOG_TAG "Matcher"
125 MatcherAccessor matcher(env, addr, javaText, false);
126 UBool result = matcher->find(startIndex, matcher.status());
128 matcher.updateOffsets(offsets);
134 MatcherAccessor matcher(env, addr, javaText, false);
135 if (matcher.status() != U_ZERO_ERROR) {
138 UBool result = matcher->find();
140 matcher.updateOffsets(offsets);
146 MatcherAccessor matcher(env, addr)
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/
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.match(Uri.withAppendedPath(URI, "bar/1")), is(2))
    [all...]
  /external/chromium_org/extensions/common/matcher/
regex_set_matcher_unittest.cc 5 #include "extensions/common/matcher/regex_set_matcher.h"
24 RegexSetMatcher matcher; local
25 matcher.AddPatterns(regexes);
28 matcher.Match("http://abracadabra.com", &result1);
34 matcher.Match("https://abfffffffffffffffffffffffffffffff.fi/cf", &result2);
40 matcher.Match("http://nothing.com/", &result3);
50 RegexSetMatcher matcher; local
51 matcher.AddPatterns(regexes);
54 matcher.Match("http://aaa.net/", &result1);
58 matcher.Match("http://aaa.net/quaaACK", &result2)
    [all...]
  /external/apache-http/src/org/apache/http/conn/util/
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();

Completed in 808 milliseconds

1 2 3 4 5 6 7 8 91011>>