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

1 2 3 45 6 7 8 91011>>

  /cts/hostsidetests/services/activityandwindowmanager/util/src/android/server/cts/
ActivityManagerState.java 34 import java.util.regex.Matcher;
165 Matcher matcher = mFocusedStackPattern.matcher(line); local
166 if (matcher.matches()) {
168 final String stackId = matcher.group(2);
174 matcher = mResumedActivityPattern.matcher(line);
175 if (matcher.matches()) {
177 mResumedActivityRecord = matcher.group(3)
418 final Matcher matcher = stackIdPattern.matcher(line); local
464 Matcher matcher = RESUMED_ACTIVITY_PATTERN.matcher(line); local
556 final Matcher matcher = taskIdPattern.matcher(line); local
603 Matcher matcher = TASK_RECORD_PATTERN.matcher(line); local
696 final Matcher matcher = activityNamePattern.matcher(line); local
722 Matcher matcher = VISIBILITY_PATTERN.matcher(line); local
775 final Matcher matcher = FULLSCREEN_PATTERN.matcher(line); local
787 final Matcher matcher = BOUNDS_PATTERN.matcher(line); local
854 final Matcher matcher = NAME_PATTERN.matcher(line); local
873 Matcher matcher = SHOWING_PATTERN.matcher(line); local
    [all...]
  /external/google-breakpad/src/testing/src/
gmock-matchers.cc 34 // This file implements Matcher<const string&>, Matcher<string>, and
46 // Constructs a matcher that matches a const string& whose value is
48 Matcher<const internal::string&>::Matcher(const internal::string& s) {
52 // Constructs a matcher that matches a const string& whose value is
54 Matcher<const internal::string&>::Matcher(const char* s) {
58 // Constructs a matcher that matches a string whose value is equal to s.
59 Matcher<internal::string>::Matcher(const internal::string& s) { *this = Eq(s);
    [all...]
  /external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/
AnyOf.java 4 import org.hamcrest.Matcher;
11 * subsequent matchers are not called if an earlier matcher returns <code>true</code>.
15 public AnyOf(Iterable<Matcher<? super T>> matchers) {
30 * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
34 public static <T> AnyOf<T> anyOf(Iterable<Matcher<? super T>> matchers) {
39 * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
44 public static <T> AnyOf<T> anyOf(Matcher<? super T>... matchers) {
StringContains.java 3 import org.hamcrest.Matcher;
19 * Creates a matcher that matches if the examined {@link String} contains the specified
25 * the substring that the returned matcher will expect to find within any examined string
28 public static Matcher<String> containsString(String substring) {
33 * Creates a matcher that matches if the examined {@link String} contains the specified
39 * the substring that the returned matcher will expect to find within any examined string
42 public static Matcher<String> containsStringIgnoringCase(String substring) {
StringEndsWith.java 3 import org.hamcrest.Matcher;
17 * Creates a matcher that matches if the examined {@link String} ends with the specified
23 * the substring that the returned matcher will expect at the end of any examined string
25 public static Matcher<String> endsWith(String suffix) {
30 * Creates a matcher that matches if the examined {@link String} ends with the specified
36 * the substring that the returned matcher will expect at the end of any examined string
38 public static Matcher<String> endsWithIgnoringCase(String suffix) {
StringStartsWith.java 3 import org.hamcrest.Matcher;
16 * Creates a matcher that matches if the examined {@link String} starts with the specified
23 * the substring that the returned matcher will expect at the start of any examined string
25 public static Matcher<String> startsWith(String prefix) { return new StringStartsWith(false, prefix); }
29 * Creates a matcher that matches if the examined {@link String} starts with the specified
36 * the substring that the returned matcher will expect at the start of any examined string
38 public static Matcher<String> startsWithIgnoringCase(String prefix) { return new StringStartsWith(true, prefix); }
IsNull.java 5 import org.hamcrest.Matcher;
24 * Creates a matcher that matches if examined object is <code>null</code>.
29 public static Matcher<Object> nullValue() {
41 public static Matcher<Object> notNullValue() {
46 * Creates a matcher that matches if examined object is <code>null</code>. Accepts a
52 * dummy parameter used to infer the generic type of the returned matcher
54 public static <T> Matcher<T> nullValue(Class<T> type) {
67 * dummy parameter used to infer the generic type of the returned matcher
70 public static <T> Matcher<T> notNullValue(Class<T> type) {
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/text/
IsBlankString.java 5 import org.hamcrest.Matcher;
19 private static final Matcher<String> NULL_OR_BLANK_INSTANCE = anyOf(nullValue(), BLANK_INSTANCE);
27 return REGEX_WHITESPACE.matcher(item).matches();
36 * Creates a matcher of {@link String} that matches when the examined string contains
41 public static Matcher<String> blankString() {
46 * Creates a matcher of {@link String} that matches when the examined string is <code>null</code>, or
52 public static Matcher<String> blankOrNullString() {
  /external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/
DefaultRule.java 28 protected final SourceMatcher matcher; field in class:DefaultRule
34 public DefaultRule(Processor processor, SourceMatcher matcher, boolean mustModify) {
35 this.matcher = matcher;
46 return matcher.matches(cu);
57 "matcher=" + matcher +
  /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...]
  /external/guice/core/src/com/google/inject/matcher/
AbstractMatcher.java 17 package com.google.inject.matcher;
26 public abstract class AbstractMatcher<T> implements Matcher<T> {
28 public Matcher<T> and(final Matcher<? super T> other) {
32 public Matcher<T> or(Matcher<? super T> other) {
37 private final Matcher<? super T> a, b;
39 public AndMatcher(Matcher<? super T> a, Matcher<? super T> b) {
66 private final Matcher<? super T> a, b
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
BluetoothNameUtils.java 21 import java.util.regex.Matcher;
46 Matcher matcher = NAME_PATTERN.matcher(bluetoothName); local
47 if (!matcher.matches()) {
51 String typeStr = matcher.group(1);
70 Matcher matcher = NAME_PATTERN.matcher(bluetoothName); local
71 if (!matcher.matches())
98 Matcher matcher = NAME_PATTERN.matcher(name); local
    [all...]
  /external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
CoreMatchers.java 7 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
11 public static <T> org.hamcrest.Matcher<T> allOf(java.lang.Iterable<org.hamcrest.Matcher<? super T>> matchers) {
16 * Creates a matcher that matches if the examined object matches <b>ALL</b> of the specified matchers.
21 public static <T> org.hamcrest.Matcher<T> allOf(org.hamcrest.Matcher<? super T>... matchers) {
27 * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
31 public static <T> org.hamcrest.core.AnyOf<T> anyOf(java.lang.Iterable<org.hamcrest.Matcher<? super T>> matchers) {
36 * Creates a matcher that matches if the examined object matches <b>ANY</b> of the specified matchers.
41 public static <T> org.hamcrest.core.AnyOf<T> anyOf(org.hamcrest.Matcher<? super T>... matchers)
    [all...]
  /external/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
42 /// \brief Constructor for non-matcher types.
45 /// \brief Constructor for matcher types.
79 /// \brief A variant matcher object.
84 /// overloads of the matcher. \c VariantMatcher knows how to select the
86 /// To get a real matcher object out of a \c VariantMatcher you can do:
87 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
88 /// to decide which matcher to return. Eg. it contains only a single
89 /// matcher, or a polymorphic one with only one overload.
91 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3957855/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3960126/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-3977809/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3957855/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3960126/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/linux-x86/clang-3977809/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/ASTMatchers/Dynamic/
VariantValue.h 12 /// Supports all the types required for dynamic Matcher construction.
41 /// \brief Constructor for non-matcher types.
44 /// \brief Constructor for matcher types.
78 /// \brief A variant matcher object.
83 /// overloads of the matcher. \c VariantMatcher knows how to select the
85 /// To get a real matcher object out of a \c VariantMatcher you can do:
86 /// - getSingleMatcher() which returns a matcher, only if it is not ambiguous
87 /// to decide which matcher to return. Eg. it contains only a single
88 /// matcher, or a polymorphic one with only one overload.
90 /// the underlying matcher(s) can unambiguously return a Matcher<T>
    [all...]
  /external/hamcrest/hamcrest-library/src/main/java/org/hamcrest/collection/
IsMapContaining.java 4 import org.hamcrest.Matcher;
14 private final Matcher<? super K> keyMatcher;
15 private final Matcher<? super V> valueMatcher;
17 public IsMapContaining(Matcher<? super K> keyMatcher, Matcher<? super V> valueMatcher) {
47 * Creates a matcher for {@link java.util.Map}s matching when the examined {@link java.util.Map} contains
54 * the key matcher that, in combination with the valueMatcher, must be satisfied by at least one entry
56 * the value matcher that, in combination with the keyMatcher, must be satisfied by at least one entry
58 public static <K,V> Matcher<Map<? extends K,? extends V>> hasEntry(Matcher<? super K> keyMatcher, Matcher<? super V> valueMatcher)
    [all...]
  /frameworks/base/core/tests/coretests/src/android/util/
PatternsTest.java 20 import java.util.regex.Matcher;
33 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches();
37 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches();
41 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches();
45 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches();
48 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches();
51 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches();
54 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches();
63 assertTrue("Should match 'com'", pattern.matcher("com").matches());
69 assertTrue("Should match 'me'", pattern.matcher("me").matches())
    [all...]
  /external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/core/
IsNullTest.java 3 import org.hamcrest.Matcher;
13 private final Matcher<Object> nullMatcher = nullValue();
14 private final Matcher<Object> notNullMatcher = notNullValue();
40 private void requiresStringMatcher(@SuppressWarnings("unused") Matcher<String> arg) {

Completed in 547 milliseconds

1 2 3 45 6 7 8 91011>>