HomeSort by relevance Sort by last modified time
    Searched refs:matches (Results 151 - 175 of 3782) sorted by null

1 2 3 4 5 67 8 91011>>

  /external/mockito/src/main/java/org/mockito/internal/matchers/
Null.java 19 public boolean matches(Object actual) { method in class:Null
StartsWith.java 20 public boolean matches(String actual) { method in class:StartsWith
  /external/mockito/src/main/java/org/mockito/invocation/
MatchableInvocation.java 47 boolean matches(Invocation candidate); method in interface:MatchableInvocation
  /external/mockito/src/test/java/org/mockito/internal/matchers/
ComparableMatchersTest.java 44 assertTrue(cmpEq.matches(new BigDecimal("5")));
50 assertEquals(lower, compareTo.matches("a"));
51 assertEquals(equals, compareTo.matches("b"));
52 assertEquals(higher, compareTo.matches("c"));
  /external/mockito/src/test/java/org/mockitousage/bugs/
EqualsWithDeltaTest.java 18 assertThat(matcher.matches(1.0)).isFalse();
24 assertThat(matcher.matches(null)).isFalse();
30 assertThat(matcher.matches(null)).isTrue();
38 assertThat(matcher.matches(actual)).isTrue();
  /external/proguard/src/proguard/io/
DataEntryNameFilter.java 52 return dataEntry != null && stringMatcher.matches(dataEntry.getName());
  /frameworks/base/packages/StatementService/src/com/android/statementservice/retriever/
AbstractAssetMatcher.java 27 * Returns true if this AssetMatcher matches the asset.
29 public abstract boolean matches(AbstractAsset asset); method in class:AbstractAssetMatcher
WebAssetMatcher.java 31 public boolean matches(AbstractAsset asset) { method in class:WebAssetMatcher
  /frameworks/base/services/core/java/com/android/server/firewall/
Filter.java 34 boolean matches(IntentFirewall ifw, ComponentName resolvedComponent, Intent intent, method in interface:Filter
  /libcore/luni/src/test/java/libcore/java/util/regex/
OldAndroidRegexTest.java 29 assertTrue("Should match.", m.matches());
34 assertFalse("Should not match.", m.matches());
38 assertFalse("Should not match.", m.matches());
42 assertFalse("Should not match.", m.matches());
44 /* Make sure matches() doesn't change after calls to find() */
47 assertTrue(m.matches());
49 assertTrue(m.matches());
53 assertFalse(m.matches());
55 assertFalse(m.matches());
57 /* Make sure matches() agrees after a reset() *
255 assertTrue(EMAIL_ADDRESS_PATTERN.matcher("a+b@gmail.com").matches()); method
    [all...]
OldMatcherTest.java 288 assertTrue(mat.matches());
333 mat.matches();
380 assertTrue(mat.matches());
390 assertTrue(Pattern.compile("\\x61a").matcher("aa").matches()); method
391 // assertTrue(Pattern.matches("\\u0061a", "aa"));
392 assertTrue(Pattern.compile("\\0141a").matcher("aa").matches()); method
393 assertTrue(Pattern.compile("\\0777").matcher("?7").matches()); method
398 assertTrue(Pattern.compile("\\p{Ll}").matcher("k").matches()); // Unicode lower case method
399 assertTrue(Pattern.compile("\\P{Ll}").matcher("K").matches()); // Unicode non-lower method
401 assertTrue(Pattern.compile("\\p{Lu}").matcher("K").matches()); // Unicode upper cas method
402 assertTrue(Pattern.compile("\\\\P{Lu}").matcher("k").matches()); \/\/ Unicode non-upper method
405 assertTrue(Pattern.compile("[\\\\p{L}&&[^\\\\p{Lu}]]").matcher("k").matches()); method
406 assertTrue(Pattern.compile("[\\\\p{L}&&[^\\\\p{Ll}]]").matcher("K").matches()); method
407 assertFalse(Pattern.compile("[\\\\p{L}&&[^\\\\p{Lu}]]").matcher("K").matches()); method
408 assertFalse(Pattern.compile("[\\\\p{L}&&[^\\\\p{Ll}]]").matcher("k").matches()); method
411 assertFalse(Pattern.compile("[\\\\p{L}&&[^a-z]]").matcher("k").matches()); method
412 assertTrue(Pattern.compile("[\\\\p{L}&&[^a-z]]").matcher("K").matches()); method
414 assertTrue(Pattern.compile("[\\\\p{Lu}a-z]").matcher("k").matches()); method
415 assertTrue(Pattern.compile("[a-z\\\\p{Lu}]").matcher("k").matches()); method
417 assertFalse(Pattern.compile("[\\\\p{Lu}a-d]").matcher("k").matches()); method
418 assertTrue(Pattern.compile("[a-d\\\\p{Lu}]").matcher("K").matches()); method
421 assertFalse(Pattern.compile("[\\\\p{L}&&[^\\\\p{Lu}&&[^G]]]").matcher("K").matches()); method
560 assertTrue(pattern.matcher("14pt").matches()); method
    [all...]
  /packages/apps/TvSettings/Settings/src/com/android/tv/settings/util/bluetooth/
BluetoothNameUtils.java 30 * matches string that
47 if (!matcher.matches()) {
71 if (!matcher.matches()) {
80 if (!cm.matches()) {
93 * Check if the name matches the expected format for a hub Bluetooth name.
95 * @return true if the pattern matches, false if it doesn't.
99 return matcher.matches();
  /developers/samples/android/ui/window/MultiWindowPlayground/Application/src/androidTest/java/
LaunchTests.java 31 import static android.support.test.espresso.assertion.ViewAssertions.matches;
51 .check(matches(withText(R.string.activity_description_basic)));
61 .check(matches(withText(R.string.activity_description_unresizable)));
72 .check(matches(withText(R.string.activity_adjacent_description)));
82 .check(matches(withText(R.string.activity_custom_description)));
93 .check(matches(withText(R.string.activity_minimum_description)));
103 .check(matches(withText(R.string.activity_bounds_description)));
  /external/iproute2/ip/
ipfou.c 57 if (!matches(*argv, "port")) {
63 } else if (!matches(*argv, "ipproto")) {
74 } else if (!matches(*argv, "gue")) {
76 } else if (!matches(*argv, "-6")) {
142 if (matches(*argv, "help") == 0)
148 if (matches(*argv, "add") == 0)
150 if (matches(*argv, "delete") == 0)
iplink_geneve.c 76 if (!matches(*argv, "id") ||
77 !matches(*argv, "vni")) {
83 } else if (!matches(*argv, "remote")) {
93 } else if (!matches(*argv, "ttl") ||
94 !matches(*argv, "hoplimit")) {
106 } else if (!matches(*argv, "tos") ||
107 !matches(*argv, "dsfield")) {
118 } else if (!matches(*argv, "label") ||
119 !matches(*argv, "flowlabel")) {
129 } else if (!matches(*argv, "dstport"))
    [all...]
iptoken.c 143 if (matches(*argv, "help") == 0)
181 } else if (matches(argv[0], "list") == 0 ||
182 matches(argv[0], "lst") == 0 ||
183 matches(argv[0], "show") == 0) {
185 } else if (matches(argv[0], "set") == 0 ||
186 matches(argv[0], "add") == 0) {
188 } else if (matches(argv[0], "delete") == 0) {
190 } else if (matches(argv[0], "get") == 0) {
192 } else if (matches(argv[0], "help") == 0)
  /external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/tester/org/apache/http/
FakeHttpLayerTest.java 70 assertFalse(requestMatcherBuilder.matches(new HttpGet("example.com")));
71 assertFalse(requestMatcherBuilder.matches(noMatch));
72 assertTrue(requestMatcherBuilder.matches(match));
81 public boolean matches(HttpEntity actualPostBody) throws IOException {
92 assertFalse(requestMatcherBuilder.matches(new HttpGet("example.com")));
93 assertFalse(requestMatcherBuilder.matches(noMatch));
94 assertTrue(requestMatcherBuilder.matches(match));
  /external/robolectric-shadows/shadows/httpclient/src/test/java/org/robolectric/shadows/httpclient/
FakeHttpLayerTest.java 62 assertThat(requestMatcherBuilder.matches(new HttpGet("example.com"))).isFalse();
63 assertThat(requestMatcherBuilder.matches(noMatch)).isFalse();
64 assertThat(requestMatcherBuilder.matches(match)).isTrue();
73 public boolean matches(HttpEntity actualPostBody) throws IOException {
84 assertThat(requestMatcherBuilder.matches(new HttpGet("example.com"))).isFalse();
85 assertThat(requestMatcherBuilder.matches(noMatch)).isFalse();
86 assertThat(requestMatcherBuilder.matches(match)).isTrue();
  /development/tools/bugreport/src/com/android/bugreport/stacks/
ProcessSnapshotParser.java 74 if (Utils.matches(beginProcessRe, text)) {
77 } else if (Utils.matches(beginUnmanagedThreadRe, text)) {
81 } else if (Utils.matches(beginManagedThreadRe, text)) {
85 } else if (Utils.matches(beginNotAttachedThreadRe, text)) {
89 } else if (Utils.matches(endProcessRe, text)) {
91 } else if (Utils.matches(cmdLineRe, text)) {
105 if (Utils.matches(beginUnmanagedThreadRe, text)
106 || Utils.matches(beginManagedThreadRe, text)
107 || Utils.matches(beginNotAttachedThreadRe, text)) {
116 } else if (Utils.matches(endProcessRe, text))
    [all...]
  /external/hamcrest/hamcrest-core/src/test/java/org/hamcrest/
AbstractMatcherTest.java 18 if (!matcher.matches(arg)) {
28 Assert.assertFalse(message, c.matches(arg));
38 Assert.assertFalse("Precondition: Matcher should not match item.", matcher.matches(arg));
44 matcher.matches(null);
53 matcher.matches(new UnknownType());
  /tools/loganalysis/src/com/android/loganalysis/parser/
JavaCrashParser.java 31 * Matches: java.lang.Exception
32 * Matches: java.lang.Exception: reason
36 * Matches: Caused by: java.lang.Exception
40 * Matches: \tat class.method(Class.java:1)
77 if (exceptionMatch.matches()) {
90 if (causedByMatch.matches()) {
97 if (atMatch.matches()) {
102 if (!causedByMatch.matches() && !atMatch.matches()) {
  /external/mesa3d/src/gallium/drivers/r300/compiler/tests/
rc_test_helpers.c 76 static int match_length(regmatch_t * matches, int index)
78 return matches[index].rm_eo - matches[index].rm_so;
84 regmatch_t * matches,
99 err_code = regexec(&regex, search_str, num_matches, matches, 0);
103 matches[i].rm_so, matches[i].rm_eo);
140 regmatch_t matches[REGEX_SRC_MATCHES]; local
146 if (!regex_helper(regex_str, src_str, matches, REGEX_SRC_MATCHES)) {
152 tokens.Negate.String = src_str + matches[1].rm_so
269 regmatch_t matches[REGEX_DST_MATCHES]; local
375 regmatch_t matches[REGEX_INST_MATCHES]; local
    [all...]
  /packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
CharMatcher.java 34 * this.matches(c)} returns {@code true}".
132 @Override public boolean matches(char c) {
144 @Override public boolean matches(char c) {
154 @Override public boolean matches(char c) {
164 @Override public boolean matches(char c) {
174 @Override public boolean matches(char c) {
241 /** Matches any character. */
243 @Override public boolean matches(char c) {
308 /** Matches no characters. */
310 @Override public boolean matches(char c)
    [all...]
  /tools/tradefederation/core/tests/src/com/android/tradefed/device/
DeviceSelectionOptionsTest.java 96 assertTrue(options.matches(device));
182 assertFalse(options.matches(mMockDevice));
194 assertTrue(options.matches(mMockDevice));
210 assertTrue(options.matches(mMockDevice));
222 assertTrue(options.matches(mMockDevice));
233 assertFalse(options.matches(mMockDevice));
247 assertTrue(options.matches(mMockDevice));
261 assertFalse(options.matches(mMockDevice));
272 assertTrue(options.matches(emulatorDevice));
280 assertFalse(options.matches(emulatorDevice))
    [all...]
  /external/iproute2/bridge/
fdb.c 69 if (matches(arg, "permanent") == 0)
71 else if (matches(arg, "static") == 0 || matches(arg, "temp") == 0)
73 else if (matches(arg, "stale") == 0)
75 else if (matches(arg, "reachable") == 0 || matches(arg, "dynamic") == 0)
349 if (matches(*argv, "help") == 0)
462 } else if (matches(*argv, "master") == 0) {
464 } else if (matches(*argv, "router") == 0) {
466 } else if (matches(*argv, "local") == 0 |
    [all...]

Completed in 1945 milliseconds

1 2 3 4 5 67 8 91011>>