Home
last modified time | relevance | path

Searched full:matches (Results 1 – 25 of 18073) sorted by relevance

12345678910>>...723

/aosp_15_r20/external/clang/include/clang/ASTMatchers/
H A DASTMatchers.h111 /// \brief If the provided matcher matches a node, binds the node to \c ID.
131 /// \brief Matches any node.
137 /// Example: \c DeclarationMatcher(anything()) matches all declarations, e.g.,
147 /// \brief Matches the top declaration context.
157 /// matches "int X", but not "int Y".
161 /// \brief Matches typedef declarations.
169 /// matches "typedef int X", but not "using Y = int"
172 /// \brief Matches typedef name declarations.
180 /// matches "typedef int X" and "using Y = int"
184 /// \brief Matches type alias declarations.
[all …]
/aosp_15_r20/external/perfetto/src/trace_processor/util/
H A Dglob_unittest.cc30 ASSERT_TRUE(matcher.Matches("")); in TEST()
33 ASSERT_FALSE(matcher.Matches("A")); in TEST()
34 ASSERT_FALSE(matcher.Matches("AXBC")); in TEST()
35 ASSERT_FALSE(matcher.Matches("ABXC")); in TEST()
42 ASSERT_TRUE(matcher.Matches("")); in TEST()
43 ASSERT_TRUE(matcher.Matches("A")); in TEST()
44 ASSERT_TRUE(matcher.Matches("ABCD")); in TEST()
51 ASSERT_TRUE(matcher.Matches("ABC")); in TEST()
54 ASSERT_FALSE(matcher.Matches("AXBC")); in TEST()
55 ASSERT_FALSE(matcher.Matches("ABXC")); in TEST()
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567/include/clang/ASTMatchers/
DASTMatchers.h157 /// Matches any node.
163 /// Example: \c DeclarationMatcher(anything()) matches all declarations, e.g.,
173 /// Matches the top declaration context.
183 /// matches "int X", but not "int Y".
187 /// Matches typedef declarations.
195 /// matches "typedef int X", but not "using Y = int"
199 /// Matches typedef name declarations.
207 /// matches "typedef int X" and "using Y = int"
211 /// Matches type alias declarations.
219 /// matches "using Y = int", but not "typedef int X"
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r530567b/include/clang/ASTMatchers/
DASTMatchers.h157 /// Matches any node.
163 /// Example: \c DeclarationMatcher(anything()) matches all declarations, e.g.,
173 /// Matches the top declaration context.
183 /// matches "int X", but not "int Y".
187 /// Matches typedef declarations.
195 /// matches "typedef int X", but not "using Y = int"
199 /// Matches typedef name declarations.
207 /// matches "typedef int X" and "using Y = int"
211 /// Matches type alias declarations.
219 /// matches "using Y = int", but not "typedef int X"
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r536225/include/clang/ASTMatchers/
DASTMatchers.h157 /// Matches any node.
163 /// Example: \c DeclarationMatcher(anything()) matches all declarations, e.g.,
173 /// Matches the top declaration context.
183 /// matches "int X", but not "int Y".
187 /// Matches typedef declarations.
195 /// matches "typedef int X", but not "using Y = int"
199 /// Matches typedef name declarations.
207 /// matches "typedef int X" and "using Y = int"
211 /// Matches type alias declarations.
219 /// matches "using Y = int", but not "typedef int X"
[all …]
/aosp_15_r20/prebuilts/clang/host/linux-x86/clang-r522817/include/clang/ASTMatchers/
DASTMatchers.h157 /// Matches any node.
163 /// Example: \c DeclarationMatcher(anything()) matches all declarations, e.g.,
173 /// Matches the top declaration context.
183 /// matches "int X", but not "int Y".
187 /// Matches typedef declarations.
195 /// matches "typedef int X", but not "using Y = int"
199 /// Matches typedef name declarations.
207 /// matches "typedef int X" and "using Y = int"
211 /// Matches type alias declarations.
219 /// matches "using Y = int", but not "typedef int X"
[all …]
/aosp_15_r20/external/cronet/third_party/boringssl/src/third_party/googletest/googlemock/test/
H A Dgmock-matchers-comparisons_test.cc132 EXPECT_TRUE(m.Matches(2)); in TEST()
133 EXPECT_FALSE(m.Matches(3)); in TEST()
147 EXPECT_TRUE(m.Matches(4)); in TEST()
148 EXPECT_FALSE(m.Matches(5)); in TEST()
154 EXPECT_TRUE(m1.Matches(5)); in TEST()
155 EXPECT_FALSE(m1.Matches(6)); in TEST()
161 EXPECT_TRUE(m1.Matches(nullptr)); in TEST()
163 EXPECT_FALSE(m1.Matches(&n)); in TEST()
175 EXPECT_TRUE(m1.Matches(1)); in TEST()
176 EXPECT_FALSE(m1.Matches(2)); in TEST()
[all …]
H A Dgmock-matchers-arithmetic_test.cc51 // Tests that Eq() matches a 2-tuple where the first field == the
55 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST()
56 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST()
65 // Tests that Ge() matches a 2-tuple where the first field >= the
69 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST()
70 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST()
71 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST()
80 // Tests that Gt() matches a 2-tuple where the first field > the
84 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST()
85 EXPECT_FALSE(m.Matches(Tuple2(5L, 5))); in TEST()
[all …]
/aosp_15_r20/external/grpc-grpc-java/xds/src/test/java/io/grpc/xds/internal/
H A DMatcherTest.java37 assertThat(matcher.matches(InetAddress.getByName("::0"))).isFalse(); in ipMatcher_ipv4()
38 assertThat(matcher.matches(InetAddress.getByName("10.10.20.0"))).isTrue(); in ipMatcher_ipv4()
39 assertThat(matcher.matches(InetAddress.getByName("10.10.16.0"))).isTrue(); in ipMatcher_ipv4()
40 assertThat(matcher.matches(InetAddress.getByName("10.10.24.10"))).isTrue(); in ipMatcher_ipv4()
41 assertThat(matcher.matches(InetAddress.getByName("10.10.31.0"))).isTrue(); in ipMatcher_ipv4()
42 assertThat(matcher.matches(InetAddress.getByName("10.10.17.0"))).isTrue(); in ipMatcher_ipv4()
43 assertThat(matcher.matches(InetAddress.getByName("10.32.20.0"))).isFalse(); in ipMatcher_ipv4()
44 assertThat(matcher.matches(InetAddress.getByName("10.10.40.0"))).isFalse(); in ipMatcher_ipv4()
46 assertThat(matcher.matches(InetAddress.getByName("10.32.20.0"))).isFalse(); in ipMatcher_ipv4()
47 assertThat(matcher.matches(InetAddress.getByName("0.0.31.0"))).isFalse(); in ipMatcher_ipv4()
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/regex-automata/data/tests/fowler/
Dbasic.toml6 matches = [[7, 18]] qkey
13 matches = [[2, 7]] qkey
20 matches = [[2, 8]] qkey
27 matches = [[1, 2]] qkey
34 matches = [[0, 2]] qkey
41 matches = [[0, 1]] qkey
48 matches = [[0, 1]] qkey
55 matches = [[0, 1]] qkey
62 matches = [[0, 1]] qkey
69 matches = [[1, 3]] qkey
[all …]
/aosp_15_r20/external/libxml2/result/pattern/
H A Dmultiple1 Node /c/b[1]/a[1] matches pattern a
2 Node /c/b[1]/a[2] matches pattern a
3 Node /c/c/b/a[1] matches pattern a
4 Node /c/c/b/a[2] matches pattern a
5 Node /c/b[2]/a[1] matches pattern a
6 Node /c/b[2]/a[2] matches pattern a
7 Node /c/b[1] matches pattern b
8 Node /c/c/b matches pattern b
9 Node /c/b[2] matches pattern b
10 Node /c matches pattern c
[all …]
/aosp_15_r20/external/googletest/googlemock/test/
H A Dgmock-matchers-comparisons_test.cc133 EXPECT_TRUE(m.Matches(2)); in TEST()
134 EXPECT_FALSE(m.Matches(3)); in TEST()
148 EXPECT_TRUE(m.Matches(4)); in TEST()
149 EXPECT_FALSE(m.Matches(5)); in TEST()
155 EXPECT_TRUE(m1.Matches(5)); in TEST()
156 EXPECT_FALSE(m1.Matches(6)); in TEST()
162 EXPECT_TRUE(m1.Matches(nullptr)); in TEST()
164 EXPECT_FALSE(m1.Matches(&n)); in TEST()
176 EXPECT_TRUE(m1.Matches(1)); in TEST()
177 EXPECT_FALSE(m1.Matches(2)); in TEST()
[all …]
H A Dgmock-matchers-arithmetic_test.cc53 // Tests that Eq() matches a 2-tuple where the first field == the
57 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST()
58 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST()
67 // Tests that Ge() matches a 2-tuple where the first field >= the
71 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST()
72 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST()
73 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST()
82 // Tests that Gt() matches a 2-tuple where the first field > the
86 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST()
87 EXPECT_FALSE(m.Matches(Tuple2(5L, 5))); in TEST()
[all …]
/aosp_15_r20/external/cronet/third_party/googletest/src/googlemock/test/
H A Dgmock-matchers-comparisons_test.cc132 EXPECT_TRUE(m.Matches(2)); in TEST()
133 EXPECT_FALSE(m.Matches(3)); in TEST()
147 EXPECT_TRUE(m.Matches(4)); in TEST()
148 EXPECT_FALSE(m.Matches(5)); in TEST()
154 EXPECT_TRUE(m1.Matches(5)); in TEST()
155 EXPECT_FALSE(m1.Matches(6)); in TEST()
161 EXPECT_TRUE(m1.Matches(nullptr)); in TEST()
163 EXPECT_FALSE(m1.Matches(&n)); in TEST()
175 EXPECT_TRUE(m1.Matches(1)); in TEST()
176 EXPECT_FALSE(m1.Matches(2)); in TEST()
[all …]
H A Dgmock-matchers-arithmetic_test.cc51 // Tests that Eq() matches a 2-tuple where the first field == the
55 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST()
56 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST()
65 // Tests that Ge() matches a 2-tuple where the first field >= the
69 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST()
70 EXPECT_TRUE(m.Matches(Tuple2(5L, 5))); in TEST()
71 EXPECT_FALSE(m.Matches(Tuple2(5L, 6))); in TEST()
80 // Tests that Gt() matches a 2-tuple where the first field > the
84 EXPECT_TRUE(m.Matches(Tuple2(5L, 4))); in TEST()
85 EXPECT_FALSE(m.Matches(Tuple2(5L, 5))); in TEST()
[all …]
/aosp_15_r20/external/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp36 EXPECT_TRUE(matches("namespace x { class X {}; } using x::X;", in TEST()
42 EXPECT_TRUE(matches("typedef int X;", NamedX)); in TEST()
43 EXPECT_TRUE(matches("int X;", NamedX)); in TEST()
44 EXPECT_TRUE(matches("class foo { virtual void X(); };", NamedX)); in TEST()
45 EXPECT_TRUE(matches("void foo() try { } catch(int X) { }", NamedX)); in TEST()
46 EXPECT_TRUE(matches("void foo() { int X; }", NamedX)); in TEST()
47 EXPECT_TRUE(matches("namespace X { }", NamedX)); in TEST()
48 EXPECT_TRUE(matches("enum X { A, B, C };", NamedX)); in TEST()
55 EXPECT_TRUE(matches("typedef int Xa;", NamedX)); in TEST()
56 EXPECT_TRUE(matches("int Xb;", NamedX)); in TEST()
[all …]
H A DASTMatchersNarrowingTest.cpp28 EXPECT_TRUE(matches(Program, in TEST()
31 EXPECT_TRUE(matches(Program, in TEST()
36 EXPECT_TRUE(matches(Program, in TEST()
42 EXPECT_TRUE(matches(Program, in TEST()
53 EXPECT_TRUE(matches("class Y { class X {}; };", HasClassX)); in TEST()
54 EXPECT_TRUE(matches("class X {};", HasClassX)); in TEST()
58 EXPECT_TRUE(matches("class Y { class X {}; };", YHasClassX)); in TEST()
77 EXPECT_TRUE(matches( in TEST()
89 EXPECT_TRUE(matches( in TEST()
103 EXPECT_TRUE(matches( in TEST()
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/regex-1.10.4/testdata/fowler/
H A Dbasic.toml10 matches = [[[7, 18]]] qkey
17 matches = [[[2, 7]]] qkey
24 matches = [[[2, 8]]] qkey
31 matches = [[[1, 2]]] qkey
38 matches = [[[0, 2]]] qkey
46 matches = [[[0, 1]]] qkey
54 matches = [[[0, 1]]] qkey
62 matches = [[[0, 1]]] qkey
70 matches = [[[0, 1]]] qkey
78 matches = [[[1, 3]]] qkey
[all …]
/aosp_15_r20/external/cronet/third_party/rust/chromium_crates_io/vendor/regex-1.10.4/testdata/
H A Dword-boundary.toml8 matches = [] qkey
15 matches = [[0, 0], [1, 1]] qkey
22 matches = [[0, 0], [2, 2]] qkey
29 matches = [[0, 0]] qkey
36 matches = [[2, 2]] qkey
43 matches = [] qkey
50 matches = [[6, 9], [14, 17]] qkey
57 matches = [[3, 4]] qkey
64 matches = [[0, 3]] qkey
71 matches = [[4, 7]] qkey
[all …]
H A Dmultiline.toml5 matches = [[0, 3], [4, 7], [8, 11]] qkey
11 matches = [[0, 3], [4, 7], [8, 11]] qkey
17 matches = [[0, 3], [4, 7], [8, 11]] qkey
23 matches = [] qkey
29 matches = [] qkey
35 matches = [] qkey
41 matches = [[0, 0], [4, 4], [8, 8]] qkey
47 matches = [[0, 0], [4, 4], [8, 8]] qkey
53 matches = [[0, 0], [4, 4], [8, 8]] qkey
59 matches = [[3, 3], [7, 7], [11, 11]] qkey
[all …]
H A Dunicode.toml6 matches = [[0, 3]] qkey
12 matches = [[0, 3]] qkey
18 matches = [[0, 3]] qkey
25 matches = [[0, 2]] qkey
33 matches = [] qkey
39 matches = [[0, 1]] qkey
45 matches = [[0, 1]] qkey
51 matches = [] qkey
58 matches = [[0, 3]] qkey
64 matches = [[0, 3]] qkey
[all …]
H A Dword-boundary-special.toml13 matches = [[0, 0]] qkey
20 matches = [[0, 0]] qkey
27 matches = [[1, 1]] qkey
34 matches = [] qkey
41 matches = [[0, 0]] qkey
48 matches = [] qkey
56 matches = [] qkey
63 matches = [] qkey
70 matches = [] qkey
77 matches = [[4, 4]] qkey
[all …]
/aosp_15_r20/external/rust/android-crates-io/crates/regex-automata/data/tests/
Dunicode.toml5 matches = [[0, 3]] qkey
11 matches = [[0, 3]] qkey
18 matches = [[0, 3]] qkey
25 matches = [[0, 2]] qkey
32 matches = [[0, 3]] qkey
38 matches = [[0, 3]] qkey
44 matches = [[0, 8]] qkey
50 matches = [[0, 2]] qkey
56 matches = [[0, 2]] qkey
62 matches = [[2, 5]] qkey
[all …]
/aosp_15_r20/frameworks/base/core/tests/coretests/src/android/util/
H A DPatternsTest.java42 t = Patterns.TOP_LEVEL_DOMAIN.matcher("com").matches(); in testTldPattern()
46 t = Patterns.TOP_LEVEL_DOMAIN.matcher("me").matches(); in testTldPattern()
50 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn--0zwm56d").matches(); in testTldPattern()
54 t = Patterns.TOP_LEVEL_DOMAIN.matcher("\uD55C\uAD6D").matches(); in testTldPattern()
57 t = Patterns.TOP_LEVEL_DOMAIN.matcher("mem").matches(); in testTldPattern()
60 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xn").matches(); in testTldPattern()
63 t = Patterns.TOP_LEVEL_DOMAIN.matcher("xer").matches(); in testTldPattern()
73 assertTrue("Should match 'com'", pattern.matcher("com").matches()); in testIanaTopLevelDomains_matchesValidTld()
80 assertTrue("Should match 'me'", pattern.matcher("me").matches()); in testIanaTopLevelDomains_matchesValidNewTld()
87 assertTrue("Should match Punycode TLD", pattern.matcher("xn--qxam").matches()); in testIanaTopLevelDomains_matchesPunycodeTld()
[all …]
/aosp_15_r20/packages/apps/Launcher3/tests/src/com/android/launcher3/search/
DStringMatcherUtilityTest.java19 import static com.android.launcher3.search.StringMatcherUtility.matches;
46 assertTrue(matches("white", "white cow", MATCHER)); in testMatches()
47 assertTrue(matches("white ", "white cow", MATCHER)); in testMatches()
48 assertTrue(matches("white c", "white cow", MATCHER)); in testMatches()
49 assertTrue(matches("cow", "white cow", MATCHER)); in testMatches()
50 assertTrue(matches("cow", "whiteCow", MATCHER)); in testMatches()
51 assertTrue(matches("cow", "whiteCOW", MATCHER)); in testMatches()
52 assertTrue(matches("cow", "whitecowCOW", MATCHER)); in testMatches()
53 assertTrue(matches("cow", "white2cow", MATCHER)); in testMatches()
55 assertFalse(matches("cow", "whitecow", MATCHER)); in testMatches()
[all …]

12345678910>>...723