/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | LocaleMatcherTest.java | 81 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 82 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 83 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser() 84 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 114 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 117 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant_TW")); in testChinese() 118 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant")); in testChinese() 119 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_TW")); in testChinese() 120 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_Hans_CN")); in testChinese() 121 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_CN")); in testChinese() [all …]
|
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/ |
D | LocaleMatcherTest.java | 77 LocaleMatcher matcher = newLocaleMatcher(further + ", " + closer); in assertCloser() local 78 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 79 matcher = newLocaleMatcher(closer + ", " + further); in assertCloser() 80 …+ " is closer to " + closer + " than to " + further, new ULocale(closer), matcher.getBestMatch(a)); in assertCloser() 110 LocaleMatcher matcher = newLocaleMatcher("zh_CN, zh_TW, iw"); in testChinese() local 113 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant_TW")); in testChinese() 114 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_Hant")); in testChinese() 115 assertEquals("zh_CN, zh_TW, iw;", taiwanChinese, matcher.getBestMatch("zh_TW")); in testChinese() 116 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_Hans_CN")); in testChinese() 117 assertEquals("zh_CN, zh_TW, iw;", chinaChinese, matcher.getBestMatch("zh_CN")); in testChinese() [all …]
|
/external/guava/guava-gwt/test-super/com/google/common/base/super/com/google/common/base/ |
D | CharMatcherTest.java | 107 private void doTestEmpty(CharMatcher matcher) throws Exception { in doTestEmpty() argument 108 reallyTestEmpty(matcher); in doTestEmpty() 109 reallyTestEmpty(matcher.negate()); in doTestEmpty() 110 reallyTestEmpty(matcher.precomputed()); in doTestEmpty() 113 private void reallyTestEmpty(CharMatcher matcher) throws Exception { in reallyTestEmpty() argument 114 assertEquals(-1, matcher.indexIn("")); in reallyTestEmpty() 115 assertEquals(-1, matcher.indexIn("", 0)); in reallyTestEmpty() 117 matcher.indexIn("", 1); in reallyTestEmpty() 122 matcher.indexIn("", -1); in reallyTestEmpty() 126 assertEquals(-1, matcher.lastIndexIn("")); in reallyTestEmpty() [all …]
|
/external/guava/guava-tests/test/com/google/common/base/ |
D | CharMatcherTest.java | 133 private void doTestSetBits(CharMatcher matcher) { in doTestSetBits() argument 135 matcher.setBits(bitset); in doTestSetBits() 137 assertEquals(matcher.matches((char) i), bitset.get(i)); in doTestSetBits() 170 private void doTestEmpty(CharMatcher matcher) throws Exception { in doTestEmpty() argument 171 reallyTestEmpty(matcher); in doTestEmpty() 172 reallyTestEmpty(matcher.negate()); in doTestEmpty() 173 reallyTestEmpty(matcher.precomputed()); in doTestEmpty() 176 private void reallyTestEmpty(CharMatcher matcher) throws Exception { in reallyTestEmpty() argument 177 assertEquals(-1, matcher.indexIn("")); in reallyTestEmpty() 178 assertEquals(-1, matcher.indexIn("", 0)); in reallyTestEmpty() [all …]
|
/external/opencv3/modules/features2d/misc/java/test/ |
D | FlannBasedDescriptorMatcherTest.java | 97 DescriptorMatcher matcher; field in FlannBasedDescriptorMatcherTest 159 matcher = DescriptorMatcher.create(DescriptorMatcher.FLANNBASED); 171 matcher.add(Arrays.asList(new Mat())); 172 assertFalse(matcher.empty()); 176 matcher.add(Arrays.asList(new Mat())); 178 matcher.clear(); 180 assertTrue(matcher.empty()); 185 matcher.add(Arrays.asList(train)); 188 matcher.clone(); 196 matcher.add(Arrays.asList(new Mat())); [all …]
|
D | BruteForceHammingLUTDescriptorMatcherTest.java | 23 DescriptorMatcher matcher; field in BruteForceHammingLUTDescriptorMatcherTest 70 matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_HAMMINGLUT); 81 matcher.add(Arrays.asList(new Mat())); 82 assertFalse(matcher.empty()); 86 matcher.add(Arrays.asList(new Mat())); 88 matcher.clear(); 90 assertTrue(matcher.empty()); 96 matcher.add(Arrays.asList(train)); 98 DescriptorMatcher cloned = matcher.clone(); 108 matcher.add(Arrays.asList(new Mat())); [all …]
|
D | BruteForceHammingDescriptorMatcherTest.java | 24 DescriptorMatcher matcher; field in BruteForceHammingDescriptorMatcherTest 71 matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_HAMMING); 82 matcher.add(Arrays.asList(new Mat())); 83 assertFalse(matcher.empty()); 87 matcher.add(Arrays.asList(new Mat())); 89 matcher.clear(); 91 assertTrue(matcher.empty()); 97 matcher.add(Arrays.asList(train)); 99 DescriptorMatcher cloned = matcher.clone(); 109 matcher.add(Arrays.asList(new Mat())); [all …]
|
D | BruteForceL1DescriptorMatcherTest.java | 24 DescriptorMatcher matcher; field in BruteForceL1DescriptorMatcherTest 85 matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_L1); 98 matcher.add(Arrays.asList(new Mat())); 99 assertFalse(matcher.empty()); 103 matcher.add(Arrays.asList(new Mat())); 105 matcher.clear(); 107 assertTrue(matcher.empty()); 113 matcher.add(Arrays.asList(train)); 115 DescriptorMatcher cloned = matcher.clone(); 125 matcher.add(Arrays.asList(new Mat())); [all …]
|
D | BruteForceSL2DescriptorMatcherTest.java | 24 DescriptorMatcher matcher; field in BruteForceSL2DescriptorMatcherTest 90 matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE_SL2); 103 matcher.add(Arrays.asList(new Mat())); 104 assertFalse(matcher.empty()); 108 matcher.add(Arrays.asList(new Mat())); 110 matcher.clear(); 112 assertTrue(matcher.empty()); 118 matcher.add(Arrays.asList(train)); 120 DescriptorMatcher cloned = matcher.clone(); 130 matcher.add(Arrays.asList(new Mat())); [all …]
|
D | BruteForceDescriptorMatcherTest.java | 25 DescriptorMatcher matcher; field in BruteForceDescriptorMatcherTest 85 matcher = DescriptorMatcher.create(DescriptorMatcher.BRUTEFORCE); 98 matcher.add(Arrays.asList(new Mat())); 99 assertFalse(matcher.empty()); 103 matcher.add(Arrays.asList(new Mat())); 105 matcher.clear(); 107 assertTrue(matcher.empty()); 113 matcher.add(Arrays.asList(train)); 115 DescriptorMatcher cloned = matcher.clone(); 125 matcher.add(Arrays.asList(new Mat())); [all …]
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
D | UriMatcherTest.java | 22 UriMatcher matcher; field in UriMatcherTest 28 matcher = new UriMatcher(NO_MATCH); in getMatcher() 29 root = Robolectric.shadowOf(matcher).rootNode; in getMatcher() 43 matcher.addURI(AUTH, path, 1); in canAddBasicMatch() 57 matcher.addURI(AUTH, "#", 1); in canAddWildcardMatches() 58 matcher.addURI(AUTH, "*", 2); in canAddWildcardMatches() 66 matcher.addURI(AUTH, "bar", 1); in canMatch() 67 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar")), is(1)); in canMatch() 69 matcher.addURI(AUTH, "bar/#", 2); in canMatch() 70 assertThat(matcher.match(Uri.withAppendedPath(URI, "bar/1")), is(2)); in canMatch() [all …]
|
/external/ltrace/ |
D | filter.c | 50 struct filter_lib_matcher *matcher, in filter_rule_init() argument 54 rule->lib_matcher = matcher; in filter_rule_init() 76 filter_lib_matcher_name_init(struct filter_lib_matcher *matcher, in filter_lib_matcher_name_init() argument 87 matcher->type = type; in filter_lib_matcher_name_init() 88 matcher->libname_re = libname_re; in filter_lib_matcher_name_init() 93 filter_lib_matcher_main_init(struct filter_lib_matcher *matcher) in filter_lib_matcher_main_init() argument 95 matcher->type = FLM_MAIN; in filter_lib_matcher_main_init() 99 filter_lib_matcher_destroy(struct filter_lib_matcher *matcher) in filter_lib_matcher_destroy() argument 101 switch (matcher->type) { in filter_lib_matcher_destroy() 104 regfree(&matcher->libname_re); in filter_lib_matcher_destroy() [all …]
|
/external/slf4j/slf4j-migrator/src/test/java/org/slf4j/migrator/ |
D | AternativeApproach.java | 47 Matcher m = pat.matcher(s); in test() 64 Matcher m = pat.matcher(s); in test2() 70 m = pat.matcher(s1); in test2() 76 m = pat.matcher(s2); in test2() 80 m = pat.matcher(s3); in test2() 92 Matcher m = pat.matcher(s); in test3() 98 pat.matcher(nonMatching); in test3() 109 Matcher m = pat.matcher(s); in test4() 115 m = pat.matcher(s2); in test4() 119 m = pat.matcher(s3); in test4() [all …]
|
/external/icu/icu4c/source/test/intltest/ |
D | regextst.cpp | 412 REMatcher = REPattern->matcher(unEscapedInput, status); in doRegexLMTest() 488 REMatcher = &REPattern->matcher(status)->reset(&inputText); in doRegexLMTestUTF8() 614 … RegexMatcher *m = pattern->matcher(UNICODE_STRING_SIMPLE("a\\u00dfxzzz").unescape(), status); in Basic() 759 RegexMatcher matcher(&pattern, 0, status); in UTextBasic() local 765 matcher.reset(&input); in UTextBasic() 767 REGEX_ASSERT_UTEXT_UTF8(str_abc, matcher.inputText()); in UTextBasic() 769 matcher.reset(matcher.inputText()); in UTextBasic() 771 REGEX_ASSERT_UTEXT_UTF8(str_abc, matcher.inputText()); in UTextBasic() 816 RegexMatcher *m1 = pat2->matcher(inStr1, status); in API_Match() 940 RegexMatcher *matcher = pat->matcher(data, status); in API_Match() local [all …]
|
/external/easymock/src/org/easymock/internal/ |
D | ExpectedInvocation.java | 34 private final org.easymock.ArgumentsMatcher matcher; field in ExpectedInvocation 45 org.easymock.ArgumentsMatcher matcher) { in ExpectedInvocation() argument 47 this.matcher = matcher; in ExpectedInvocation() 48 this.matchers = (matcher == null) ? createMissingMatchers(invocation, in ExpectedInvocation() 77 … && ((this.matcher == null && other.matcher == null) || (this.matcher != null && this.matcher in equals() 78 .equals(other.matcher))) in equals() 93 actual, matcher); in matches() 110 return matchers != null ? myToString() : invocation.toString(matcher); in toString() 132 org.easymock.ArgumentsMatcher matcher) { in withMatcher() 133 return new ExpectedInvocation(invocation, null, matcher); in withMatcher()
|
/external/mockito/src/org/mockito/ |
D | Matchers.java | 777 public static <T> T argThat(Matcher<T> matcher) { in argThat() argument 778 return reportMatcher(matcher).<T>returnNull(); in argThat() 789 public static char charThat(Matcher<Character> matcher) { in charThat() argument 790 return reportMatcher(matcher).returnChar(); in charThat() 801 public static boolean booleanThat(Matcher<Boolean> matcher) { in booleanThat() argument 802 return reportMatcher(matcher).returnFalse(); in booleanThat() 813 public static byte byteThat(Matcher<Byte> matcher) { in byteThat() argument 814 return reportMatcher(matcher).returnZero(); in byteThat() 825 public static short shortThat(Matcher<Short> matcher) { in shortThat() argument 826 return reportMatcher(matcher).returnZero(); in shortThat() [all …]
|
/external/hamcrest/src/org/hamcrest/core/ |
D | IsNot.java | 16 private final Matcher<T> matcher; field in IsNot 18 public IsNot(Matcher<T> matcher) { in IsNot() argument 19 this.matcher = matcher; in IsNot() 23 return !matcher.matches(arg); in matches() 27 description.appendText("not ").appendDescriptionOf(matcher); in describeTo() 34 public static <T> Matcher<T> not(Matcher<T> matcher) { in not() argument 35 return new IsNot<T>(matcher); in not()
|
D | Is.java | 19 private final Matcher<T> matcher; field in Is 21 public Is(Matcher<T> matcher) { in Is() argument 22 this.matcher = matcher; in Is() 26 return matcher.matches(arg); in matches() 30 description.appendText("is ").appendDescriptionOf(matcher); in describeTo() 41 public static <T> Matcher<T> is(Matcher<T> matcher) { in is() argument 42 return new Is<T>(matcher); in is()
|
D | DescribedAs.java | 17 private final Matcher<T> matcher; field in DescribedAs 22 public DescribedAs(String descriptionTemplate, Matcher<T> matcher, Object[] values) { in DescribedAs() argument 24 this.matcher = matcher; in DescribedAs() 29 return matcher.matches(o); in matches() 33 java.util.regex.Matcher arg = ARG_PATTERN.matcher(descriptionTemplate); in describeTo() 52 …public static <T> Matcher<T> describedAs(String description, Matcher<T> matcher, Object... values)… in describedAs() argument 53 return new DescribedAs<T>(description, matcher, values); in describedAs()
|
/external/apache-http/src/org/apache/http/protocol/ |
D | HttpRequestHandlerRegistry.java | 58 private final UriPatternMatcher matcher; field in HttpRequestHandlerRegistry 61 matcher = new UriPatternMatcher(); in HttpRequestHandlerRegistry() 65 matcher.register(pattern, handler); in register() 69 matcher.unregister(pattern); in unregister() 73 matcher.setHandlers(map); in setHandlers() 77 return (HttpRequestHandler) matcher.lookup(requestURI); in lookup() 85 return matcher.matchUriRequestPattern(pattern, requestUri); in matchUriRequestPattern()
|
/external/smali/util/src/main/java/org/jf/util/ |
D | TextUtils.java | 58 Matcher matcher = pattern.matcher(source); in normalizeWhitespace() local 59 source = matcher.replaceAll(""); in normalizeWhitespace() 63 Matcher matcher2 = pattern2.matcher(source); in normalizeWhitespace() 68 Matcher matcher3 = pattern3.matcher(source); in normalizeWhitespace() 79 Matcher matcher = pattern.matcher(source); in stripComments() local 80 return matcher.replaceAll(""); in stripComments()
|
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/reader/ |
D | ReaderStringTest.java | 27 Matcher matcher = StreamReader.NON_PRINTABLE.matcher("test"); in testCheckPrintable() local 28 assertFalse(matcher.find()); in testCheckPrintable() 39 Matcher matcher = StreamReader.NON_PRINTABLE.matcher("test\u0005 fail"); in testCheckNonPrintable() local 40 assertTrue(matcher.find()); in testCheckNonPrintable() 60 Matcher matcher = StreamReader.NON_PRINTABLE.matcher(str); in testCheckAll() local 61 boolean regularExpressionResult = !matcher.find(); in testCheckAll()
|
/external/icu/icu4c/source/i18n/ |
D | quant.cpp | 27 matcher = adoptedMatcher; in UOBJECT_DEFINE_RTTI_IMPLEMENTATION() 35 matcher(o.matcher->clone()), in Quantifier() 42 delete matcher; in ~Quantifier() 71 UMatchDegree m = matcher->toMatcher()->matches(text, offset, limit, incremental); in matches() 101 matcher->toMatcher()->toPattern(result, escapeUnprintable); in toPattern() 126 return (minCount == 0) || matcher->toMatcher()->matchesIndexValue(v); in matchesIndexValue() 134 matcher->toMatcher()->addMatchSetTo(toUnionTo); in addMatchSetTo() 142 matcher->setData(d); in setData()
|
/external/v8/test/unittests/compiler/ |
D | node-matchers-unittest.cc | 33 void CheckBaseWithIndexAndDisplacement(Matcher* matcher, Node* index, int scale, in CheckBaseWithIndexAndDisplacement() argument 35 EXPECT_TRUE(matcher->matches()); in CheckBaseWithIndexAndDisplacement() 36 EXPECT_EQ(index, matcher->index()); in CheckBaseWithIndexAndDisplacement() 37 EXPECT_EQ(scale, matcher->scale()); in CheckBaseWithIndexAndDisplacement() 38 EXPECT_EQ(base, matcher->base()); in CheckBaseWithIndexAndDisplacement() 39 EXPECT_EQ(displacement, matcher->displacement()); in CheckBaseWithIndexAndDisplacement() 739 BranchMatcher matcher(branch); in TEST_F() local 740 EXPECT_TRUE(matcher.Matched()); in TEST_F() 741 EXPECT_EQ(branch, matcher.Branch()); in TEST_F() 742 EXPECT_EQ(if_true, matcher.IfTrue()); in TEST_F() [all …]
|
/external/junit/src/org/junit/rules/ |
D | ExpectedException.java | 69 public void expect(Matcher<?> matcher) { in expect() argument 71 fMatcher= (Matcher<Object>) matcher; in expect() 73 fMatcher= both(fMatcher).and(matcher); in expect() 96 public void expectMessage(Matcher<String> matcher) { in expectMessage() argument 97 expect(hasMessage(matcher)); in expectMessage() 123 private Matcher<Throwable> hasMessage(final Matcher<String> matcher) { in hasMessage() argument 127 description.appendDescriptionOf(matcher); in hasMessage() 132 return matcher.matches(item.getMessage()); in hasMessage()
|