HomeSort by relevance Sort by last modified time
    Searched refs:Matcher (Results 126 - 150 of 604) sorted by null

1 2 3 4 56 7 8 91011>>

  /frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
MockUtils.java 30 import org.hamcrest.Matcher;
38 final Matcher<UserHandle> m = new BaseMatcher<UserHandle>() {
54 final Matcher<Intent> m = new BaseMatcher<Intent>() {
70 final Matcher<Intent> m = new BaseMatcher<Intent>() {
87 final Matcher<Bundle> m = new BaseMatcher<Bundle>() {
  /frameworks/support/design/tests/src/android/support/design/testutils/
TabLayoutActions.java 32 import org.hamcrest.Matcher;
34 import static android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom;
35 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayingAtLeast;
44 public Matcher<View> getConstraints() {
72 public Matcher<View> getConstraints() {
99 public Matcher<View> getConstraints() {
126 public Matcher<View> getConstraints() {
NavigationViewActions.java 32 import org.hamcrest.Matcher;
34 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
43 public Matcher<View> getConstraints() {
70 public Matcher<View> getConstraints() {
97 public Matcher<View> getConstraints() {
124 public Matcher<View> getConstraints() {
151 public Matcher<View> getConstraints() {
179 public Matcher<View> getConstraints() {
206 public Matcher<View> getConstraints() {
233 public Matcher<View> getConstraints()
    [all...]
FloatingActionButtonActions.java 19 import static android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom;
30 import org.hamcrest.Matcher;
37 public Matcher<View> getConstraints() {
61 public Matcher<View> getConstraints() {
85 public Matcher<View> getConstraints() {
109 public Matcher<View> getConstraints() {
135 public Matcher<View> getConstraints() {
160 public Matcher<View> getConstraints() {
TestUtilsMatchers.java 26 import android.support.test.espresso.matcher.BoundedMatcher;
38 import org.hamcrest.Matcher;
43 * Returns a matcher that matches Views that are not narrower than specified width in pixels.
45 public static Matcher<View> isNotNarrowerThan(final int minWidth) {
68 * Returns a matcher that matches Views that are not wider than specified width in pixels.
70 public static Matcher<View> isNotWiderThan(final int maxWidth) {
93 * Returns a matcher that matches TextViews with the specified text size.
95 public static Matcher withTextSize(final float textSize) {
118 * Returns a matcher that matches TextViews with the specified text color.
120 public static Matcher withTextColor(final @ColorInt int textColor)
    [all...]
TestUtilsActions.java 35 import org.hamcrest.Matcher;
37 import static android.support.test.espresso.matcher.ViewMatchers.*;
47 public Matcher<View> getConstraints() {
90 public Matcher<View> getConstraints() {
116 public Matcher<View> getConstraints() {
144 public Matcher<View> getConstraints() {
171 public Matcher<View> getConstraints() {
201 public Matcher<View> getConstraints() {
220 public Matcher<View> getConstraints() {
248 public Matcher<View> getConstraints()
    [all...]
  /external/mockito/src/org/mockito/
Matchers.java 7 import org.hamcrest.Matcher;
24 * //stubbing using anyInt() argument matcher
30 * //you can also verify using argument matcher
42 * //above is correct - eq() is also an argument matcher
45 * //above is incorrect - exception will be thrown because third argument is given without argument matcher.
48 * Matcher methods like <code>anyObject()</code>, <code>eq()</code> <b>do not</b> return matchers.
49 * Internally, they record a matcher on a stack and return a dummy value (usually null).
62 * Use {@link Matchers#argThat} method and pass an instance of hamcrest {@link Matcher}.
64 * Before you start implementing your own custom argument matcher, make sure you check out {@link ArgumentCaptor} api.
66 * So, how to implement your own argument matcher?
    [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...]
  /frameworks/support/v7/appcompat/tests/src/android/support/v7/testutils/
DrawerLayoutActions.java 19 import static android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom;
29 import org.hamcrest.Matcher;
106 public Matcher<View> getConstraints() {
150 public Matcher<View> getConstraints() {
175 public Matcher<View> getConstraints() {
200 public Matcher<View> getConstraints() {
225 public Matcher<View> getConstraints() {
250 public Matcher<View> getConstraints() {
275 public Matcher<View> getConstraints() {
300 public Matcher<View> getConstraints()
    [all...]
AppCompatTintableViewActions.java 29 import org.hamcrest.Matcher;
31 import static android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom;
32 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayed;
33 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayingAtLeast;
44 public Matcher<View> getConstraints() {
71 public Matcher<View> getConstraints() {
99 public Matcher<View> getConstraints() {
127 public Matcher<View> getConstraints() {
154 public Matcher<View> getConstraints() {
  /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...]
  /external/gmock/test/
gmock-generated-matchers_test.cc 70 using testing::Matcher;
87 // Returns the description of the given matcher.
89 string Describe(const Matcher<T>& m) {
95 // Returns the description of the negation of the given matcher.
97 string DescribeNegation(const Matcher<T>& m) {
146 // The MATCHER*() macros trigger warning C4100 (unreferenced formal
156 MATCHER(SumIsZero, "") {
173 const Matcher<Tuple3> m = Args<1, 2>(Lt());
180 const Matcher<const Tuple3&> m = Args<0, 1>(Lt());
200 const Matcher<tuple<int, bool, char> > m = Args<2, 0>(Lt())
    [all...]
  /external/clang/include/clang/ASTMatchers/
ASTMatchFinder.h 13 // The general idea is to construct a matcher expression that describes a
15 // expression matches is registered, and the matcher is run over the AST of
141 /// \brief Adds a matcher to execute when running over the AST.
163 /// \brief Adds a matcher to execute when running over the AST.
167 /// a matcher that cannot match anything.
169 /// \returns \c true if the matcher is a valid top-level matcher, \c false
200 /// \brief For each \c Matcher<> a \c MatchCallback that will be called
224 /// \brief Returns the results of matching \p Matcher on \p Node.
227 /// \p Matcher on \p Node and returns the collected results
    [all...]
  /external/clang/unittests/ASTMatchers/Dynamic/
RegistryTest.cpp 20 using ast_matchers::internal::Matcher;
129 Matcher<Stmt> IsArrowValue = constructMatcher(
131 Matcher<Stmt> BoolValue =
146 Matcher<Decl> Value = constructMatcher(
159 Matcher<Decl> HasInitializerSimple = constructMatcher(
162 Matcher<Decl> HasInitializerComplex = constructMatcher(
179 Matcher<Decl> HasParameter =
188 Matcher<Stmt> CallExpr0 = constructMatcher(
194 Matcher<Stmt> CallExpr1 = constructMatcher(
210 Matcher<Decl> DeclDecl = declaratorDecl(hasTypeLoc
    [all...]
  /external/guice/core/src/com/google/inject/
AbstractModule.java 25 import com.google.inject.matcher.Matcher;
164 * @see Binder#bindInterceptor(com.google.inject.matcher.Matcher,
165 * com.google.inject.matcher.Matcher,
168 protected void bindInterceptor(Matcher<? super Class<?>> classMatcher,
169 Matcher<? super Method> methodMatcher,
219 protected void convertToTypes(Matcher<? super TypeLiteral<?>> typeMatcher,
249 * @see Binder#bindListener(com.google.inject.matcher.Matcher
    [all...]
PrivateModule.java 25 import com.google.inject.matcher.Matcher;
224 * @see Binder#bindInterceptor(com.google.inject.matcher.Matcher, com.google.inject.matcher.Matcher, org.aopalliance.intercept.MethodInterceptor[])
226 protected final void bindInterceptor(Matcher<? super Class<?>> classMatcher,
227 Matcher<? super Method> methodMatcher,
262 * @see Binder#convertToTypes(com.google.inject.matcher.Matcher, com.google.inject.spi.TypeConverter
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/regex/
ReplaceTest.java 19 import java.util.regex.Matcher;
36 Matcher m = p.matcher(target);
45 Matcher m;
52 m = p.matcher(target);
62 m = p.matcher(target);
  /libcore/luni/src/test/java/org/apache/harmony/regex/tests/java/util/regex/
ReplaceTest.java 21 import java.util.regex.Matcher;
33 Matcher m = p.matcher(target);
42 Matcher m;
49 m = p.matcher(target);
59 m = p.matcher(target);
  /packages/apps/UnifiedEmail/src/com/android/mail/
EmailAddress.java 24 import java.util.regex.Matcher;
39 private static final Matcher sEmailMatcher =
40 Pattern.compile("\\\"?([^\"<]*?)\\\"?\\s*<(.*)>").matcher("");
66 Matcher m = sEmailMatcher.reset(rawAddress);
  /art/runtime/quick/
inline_method_analyser.cc 40 class Matcher {
43 typedef bool MatchFn(Matcher* matcher);
50 static bool Mark(Matcher* matcher);
52 template <bool (Matcher::*Fn)()>
53 static bool Required(Matcher* matcher);
55 template <bool (Matcher::*Fn)()>
56 static bool Repeated(Matcher* matcher); // On match, returns to the mark
    [all...]
  /frameworks/support/core-ui/tests/java/android/support/v4/view/
ViewPagerActions.java 30 import org.hamcrest.Matcher;
32 import static android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom;
33 import static android.support.test.espresso.matcher.ViewMatchers.isDisplayingAtLeast;
102 public Matcher<View> getConstraints() {
146 public Matcher<View> getConstraints() {
172 public Matcher<View> getConstraints() {
200 public Matcher<View> getConstraints() {
228 public Matcher<View> getConstraints() {
258 public Matcher<View> getConstraints() {
288 public Matcher<View> getConstraints()
    [all...]
  /external/junit/src/org/junit/runner/
Description.java 8 import java.util.regex.Matcher;
218 Matcher matcher= methodStringMatcher(); local
219 return matcher.matches()
220 ? matcher.group(2)
233 Matcher matcher= methodStringMatcher(); local
234 if (matcher.matches())
235 return matcher.group(1);
239 private Matcher methodStringMatcher()
    [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...]
  /frameworks/support/design/tests/src/android/support/design/widget/
BaseDynamicCoordinatorLayoutTest.java 27 import org.hamcrest.Matcher;
31 import static android.support.test.espresso.matcher.ViewMatchers.isAssignableFrom;
63 private Matcher<View> hasParent() {
83 public Matcher<View> getConstraints() {
111 public Matcher<View> getConstraints() {
  /external/google-breakpad/src/testing/test/
gmock-generated-matchers_test.cc 69 using testing::Matcher;
82 // Returns the description of the given matcher.
84 string Describe(const Matcher<T>& m) {
90 // Returns the description of the negation of the given matcher.
92 string DescribeNegation(const Matcher<T>& m) {
141 // The MATCHER*() macros trigger warning C4100 (unreferenced formal
151 MATCHER(SumIsZero, "") {
168 const Matcher<Tuple3> m = Args<1, 2>(Lt());
175 const Matcher<const Tuple3&> m = Args<0, 1>(Lt());
195 const Matcher<tuple<int, bool, char> > m = Args<2, 0>(Lt())
    [all...]

Completed in 610 milliseconds

1 2 3 4 56 7 8 91011>>