HomeSort by relevance Sort by last modified time
    Searched full:matcher (Results 151 - 175 of 4130) sorted by null

1 2 3 4 5 67 8 91011>>

  /external/google-breakpad/src/testing/include/gmock/
gmock-matchers.h 55 // To implement a matcher Foo for type T, define:
58 // 2. a factory function that creates a Matcher<T> object from a
62 // to write "v" instead of "Eq(v)" where a Matcher is expected, which
64 // ownership management as Matcher objects can now be copied like
68 // used by a matcher to explain why a value matches or doesn't match.
94 // the match result. A matcher's MatchAndExplain() method can use
108 // The implementation of a matcher.
114 // Returns true iff the matcher matches x; also explains the match
117 // example, the MatchAndExplain() method of the Pointee(...) matcher
120 // You should override this method when defining a new matcher
642 typename tuple_element<N - 1, MatcherTuple>::type matcher = local
1525 const Matcher<const T&> matcher = MatcherCast<const T&>(matcher_); local
    [all...]
  /libcore/luni/src/main/native/
java_util_regex_Matcher.cpp 17 #define LOG_TAG "Matcher"
55 MatcherState(icu::RegexMatcher* matcher) :
56 mMatcher(matcher),
117 icu::RegexMatcher* matcher() { function in class:MatcherState
169 UBool result = state->matcher()->find(startIndex, state->status());
178 UBool result = state->matcher()->find();
187 return state->matcher()->groupCount();
192 return state->matcher()->hitEnd();
197 UBool result = state->matcher()->lookingAt(state->status());
206 UBool result = state->matcher()->matches(state->status())
    [all...]
  /frameworks/support/compat/tests/java/android/support/v4/util/
PatternsCompatTest.java 39 assertTrue("Should match 'com'", pattern.matcher("com").matches());
45 assertTrue("Should match 'me'", pattern.matcher("me").matches());
51 assertTrue("Should match Punycode TLD", pattern.matcher("xn--qxam").matches());
57 assertTrue("Should match IRI TLD", pattern.matcher("\uD55C\uAD6D").matches());
63 assertFalse("Should not match 'mem'", pattern.matcher("mem").matches());
69 assertFalse("Should not match invalid Punycode TLD", pattern.matcher("xn").matches());
78 PatternsCompat.WEB_URL.matcher(url).matches());
85 PatternsCompat.WEB_URL.matcher(url).matches());
92 PatternsCompat.WEB_URL.matcher(url).matches());
99 PatternsCompat.WEB_URL.matcher(url).matches())
    [all...]
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
IsIterableContainingInAnyOrder.java 4 import org.hamcrest.Matcher;
15 private final Collection<Matcher<? super T>> matchers;
17 public IsIterableContainingInAnyOrder(Collection<Matcher<? super T>> matchers) {
41 private final Collection<Matcher<? super S>> matchers;
44 public Matching(Collection<Matcher<? super S>> matchers, Description mismatchDescription) {
45 this.matchers = new ArrayList<Matcher<? super S>>(matchers);
68 for (Matcher<? super S> matcher : matchers) {
69 if (matcher.matches(item)) {
70 matchers.remove(matcher);
    [all...]
IsArray.java 4 import org.hamcrest.Matcher;
10 * Matcher for array whose elements satisfy a sequence of matchers.
14 private final Matcher<? super T>[] elementMatchers;
16 public IsArray(Matcher<? super T>[] elementMatchers) {
56 * Can be overridden in subclasses to customise how the matcher is
66 * Can be overridden in subclasses to customise how the matcher is
76 * Can be overridden in subclasses to customise how the matcher is
84 * Creates a matcher that matches arrays whose elements are satisfied by the specified matchers. Matches
86 * each matcher[i] is satisfied by array[i].
93 public static <T> IsArray<T> array(Matcher<? super T>... elementMatchers)
    [all...]
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/
Matchers.java 6 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
10 public static <T> org.hamcrest.Matcher<T> allOf(java.lang.Iterable<org.hamcrest.Matcher<? super T>> matchers) {
15 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
19 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T>... matchers) {
24 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
28 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T> first, org.hamcrest.Matcher<? super T> second)
    [all...]
  /external/easymock/src/org/easymock/internal/
LegacyMatcherProvider.java 48 public void setDefaultMatcher(ArgumentsMatcher matcher) {
52 "default matcher can only be set once directly after creation of the MockControl"));
54 defaultMatcher = matcher;
58 public void setMatcher(Method method, ArgumentsMatcher matcher) {
59 if (matchers.containsKey(method) && matchers.get(method) != matcher) {
66 + "), a matcher has already been set"));
68 matchers.put(method, matcher);
96 for (Map.Entry<Method, ArgumentsMatcher> matcher : matchers.entrySet()) {
97 map.put(new MethodSerializationWrapper(matcher.getKey()), matcher
    [all...]
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)))
    [all...]
  /external/google-breakpad/src/testing/include/gmock/internal/
gmock-generated-internal-utils.h 49 class Matcher;
66 // MatcherTuple<T>::type is a tuple type where each field is a Matcher
78 typedef ::std::tr1::tuple<Matcher<A1> > type;
83 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2> > type;
88 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3> > type;
93 typedef ::std::tr1::tuple<Matcher<A1>, Matcher<A2>, Matcher<A3>
    [all...]
  /external/googletest/googlemock/include/gmock/
gmock-matchers.h 61 // To implement a matcher Foo for type T, define:
64 // 2. a factory function that creates a Matcher<T> object from a
68 // to write "v" instead of "Eq(v)" where a Matcher is expected, which
70 // ownership management as Matcher objects can now be copied like
74 // used by a matcher to explain why a value matches or doesn't match.
101 // the match result. A matcher's MatchAndExplain() method can use
116 // matcher.
121 // Describes this matcher to an ostream. The function should print
123 // matcher should have. The subject of the verb phrase is the value
125 // matcher prints "is greater than 7"
751 typename tuple_element<N - 1, MatcherTuple>::type matcher = local
1854 const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_); local
    [all...]
  /external/v8/testing/gmock/include/gmock/
gmock-matchers.h 61 // To implement a matcher Foo for type T, define:
64 // 2. a factory function that creates a Matcher<T> object from a
68 // to write "v" instead of "Eq(v)" where a Matcher is expected, which
70 // ownership management as Matcher objects can now be copied like
74 // used by a matcher to explain why a value matches or doesn't match.
101 // the match result. A matcher's MatchAndExplain() method can use
116 // matcher.
121 // Describes this matcher to an ostream. The function should print
123 // matcher should have. The subject of the verb phrase is the value
125 // matcher prints "is greater than 7"
751 typename tuple_element<N - 1, MatcherTuple>::type matcher = local
1854 const Matcher<const T&> matcher = SafeMatcherCast<const T&>(matcher_); local
    [all...]
  /external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/
AternativeApproach.java 27 import java.util.regex.Matcher;
47 Matcher m = pat.matcher(s);
64 Matcher m = pat.matcher(s);
70 m = pat.matcher(s1);
76 m = pat.matcher(s2);
80 m = pat.matcher(s3);
92 Matcher m = pat.matcher(s)
    [all...]
  /packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
SortHeaderBot.java 21 import static android.support.test.espresso.matcher.ViewMatchers.isDescendantOfA;
22 import static android.support.test.espresso.matcher.ViewMatchers.withChild;
23 import static android.support.test.espresso.matcher.ViewMatchers.withContentDescription;
24 import static android.support.test.espresso.matcher.ViewMatchers.withId;
25 import static android.support.test.espresso.matcher.ViewMatchers.withParent;
26 import static android.support.test.espresso.matcher.ViewMatchers.withText;
44 import org.hamcrest.Matcher;
70 if (Matchers.present(mDropBot.MATCHER)) {
81 assertTrue(Matchers.present(mDropBot.MATCHER));
87 // assertTrue(Matchers.present(mColumnBot.MATCHER));
    [all...]
  /external/clang/include/clang/ASTMatchers/
ASTMatchersMacros.h 11 // Since a matcher is a function which returns a Matcher<T> object, where
12 // T is the type of the actual implementation of the matcher, the macros allow
16 // Note that when you define a matcher with an AST_MATCHER* macro, only the
17 // function which creates the matcher goes into the current namespace - the
18 // class that implements the actual matcher, which gets returned by the
23 // To define a matcher in user code, put it into your own namespace. This would
24 // help to prevent ODR violations in case a matcher with the same name is
29 // clang::ast_matchers::internal::Matcher<clang::ValueDecl>,
41 // internal::Matcher<ValueDecl>, InnerMatcher)
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
ModeTest.java 19 import java.util.regex.Matcher;
32 Matcher m;
35 m = p.matcher("cAT123#dog345");
41 m = p.matcher("cAt123#doG345");
49 m = p.matcher("cAt123#doG345");
59 Matcher m;
62 m = p.matcher("foobar");
67 m = p.matcher("barfoo");
71 m = p.matcher("foobar");
74 m = p.matcher("barfoo")
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
ModeTest.java 21 import java.util.regex.Matcher;
32 Matcher m;
35 m = p.matcher("cAT123#dog345");
42 m = p.matcher("cAt123#doG345");
51 m = p.matcher("cAt123#doG345");
60 Matcher m;
63 m = p.matcher("foobar");
68 m = p.matcher("barfoo");
73 m = p.matcher("foobar");
76 m = p.matcher("barfoo")
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchersMacros.h 11 // Since a matcher is a function which returns a Matcher<T> object, where
12 // T is the type of the actual implementation of the matcher, the macros allow
16 // Note that when you define a matcher with an AST_MATCHER* macro, only the
17 // function which creates the matcher goes into the current namespace - the
18 // class that implements the actual matcher, which gets returned by the
23 // To define a matcher in user code, put it into your own namespace. This would
24 // help to prevent ODR violations in case a matcher with the same name is
29 // clang::ast_matchers::internal::Matcher<clang::ValueDecl>,
41 // internal::Matcher<ValueDecl>, InnerMatcher)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchersMacros.h 11 // Since a matcher is a function which returns a Matcher<T> object, where
12 // T is the type of the actual implementation of the matcher, the macros allow
16 // Note that when you define a matcher with an AST_MATCHER* macro, only the
17 // function which creates the matcher goes into the current namespace - the
18 // class that implements the actual matcher, which gets returned by the
23 // To define a matcher in user code, put it into your own namespace. This would
24 // help to prevent ODR violations in case a matcher with the same name is
29 // clang::ast_matchers::internal::Matcher<clang::ValueDecl>,
41 // internal::Matcher<ValueDecl>, InnerMatcher)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchersMacros.h 11 // Since a matcher is a function which returns a Matcher<T> object, where
12 // T is the type of the actual implementation of the matcher, the macros allow
16 // Note that when you define a matcher with an AST_MATCHER* macro, only the
17 // function which creates the matcher goes into the current namespace - the
18 // class that implements the actual matcher, which gets returned by the
23 // To define a matcher in user code, put it into your own namespace. This would
24 // help to prevent ODR violations in case a matcher with the same name is
29 // clang::ast_matchers::internal::Matcher<clang::ValueDecl>,
41 // internal::Matcher<ValueDecl>, InnerMatcher)
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchersMacros.h 11 // Since a matcher is a function which returns a Matcher<T> object, where
12 // T is the type of the actual implementation of the matcher, the macros allow
16 // Note that when you define a matcher with an AST_MATCHER* macro, only the
17 // function which creates the matcher goes into the current namespace - the
18 // class that implements the actual matcher, which gets returned by the
23 // To define a matcher in user code, put it into your own namespace. This would
24 // help to prevent ODR violations in case a matcher with the same name is
29 // clang::ast_matchers::internal::Matcher<clang::ValueDecl>,
41 // internal::Matcher<ValueDecl>, InnerMatcher)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchersMacros.h 11 // Since a matcher is a function which returns a Matcher<T> object, where
12 // T is the type of the actual implementation of the matcher, the macros allow
16 // Note that when you define a matcher with an AST_MATCHER* macro, only the
17 // function which creates the matcher goes into the current namespace - the
18 // class that implements the actual matcher, which gets returned by the
23 // To define a matcher in user code, put it into your own namespace. This would
24 // help to prevent ODR violations in case a matcher with the same name is
29 // clang::ast_matchers::internal::Matcher<clang::ValueDecl>,
41 // internal::Matcher<ValueDecl>, InnerMatcher)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchersMacros.h 11 // Since a matcher is a function which returns a Matcher<T> object, where
12 // T is the type of the actual implementation of the matcher, the macros allow
16 // Note that when you define a matcher with an AST_MATCHER* macro, only the
17 // function which creates the matcher goes into the current namespace - the
18 // class that implements the actual matcher, which gets returned by the
23 // To define a matcher in user code, put it into your own namespace. This would
24 // help to prevent ODR violations in case a matcher with the same name is
29 // clang::ast_matchers::internal::Matcher<clang::ValueDecl>,
41 // internal::Matcher<ValueDecl>, InnerMatcher)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchersMacros.h 11 // Since a matcher is a function which returns a Matcher<T> object, where
12 // T is the type of the actual implementation of the matcher, the macros allow
16 // Note that when you define a matcher with an AST_MATCHER* macro, only the
17 // function which creates the matcher goes into the current namespace - the
18 // class that implements the actual matcher, which gets returned by the
23 // To define a matcher in user code, put it into your own namespace. This would
24 // help to prevent ODR violations in case a matcher with the same name is
29 // clang::ast_matchers::internal::Matcher<clang::ValueDecl>,
41 // internal::Matcher<ValueDecl>, InnerMatcher)
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/ASTMatchers/
ASTMatchersMacros.h 11 // Since a matcher is a function which returns a Matcher<T> object, where
12 // T is the type of the actual implementation of the matcher, the macros allow
16 // Note that when you define a matcher with an AST_MATCHER* macro, only the
17 // function which creates the matcher goes into the current namespace - the
18 // class that implements the actual matcher, which gets returned by the
23 // To define a matcher in user code, put it into your own namespace. This would
24 // help to prevent ODR violations in case a matcher with the same name is
29 // clang::ast_matchers::internal::Matcher<clang::ValueDecl>,
41 // internal::Matcher<ValueDecl>, InnerMatcher)
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/profiler/recorder/
TraceParserTest.java 26 import java.util.regex.Matcher;
42 Matcher m = Pattern.compile(TraceParser.REGEX_TASK_NAME).matcher(line);
50 Matcher m = Pattern.compile(TraceParser.REGEX_CPU_NUM).matcher(line);
58 Matcher m = Pattern.compile(TraceParser.REGEX_FLAG_CLUSTER).matcher(line);
69 Matcher m = Pattern.compile(TraceParser.REGEX_TIMESTAMP).matcher(line);
77 Matcher m = Pattern.compile(TraceParser.REGEX_FUNCTION_NAME).matcher(line)
    [all...]

Completed in 837 milliseconds

1 2 3 4 5 67 8 91011>>