Home
last modified time | relevance | path

Searched refs:pattern (Results 1 – 25 of 30) sorted by relevance

12

/art/libarttools/tools/
Dtools.cc45 bool PartialMatch(const std::filesystem::path& pattern, const std::filesystem::path& path_prefix) { in PartialMatch() argument
46 for (std::filesystem::path::const_iterator pattern_it = pattern.begin(), in PartialMatch()
53 if (pattern_it == pattern.end()) { in PartialMatch()
65 bool FullMatchRecursive(const std::filesystem::path& pattern, in FullMatchRecursive() argument
70 if (pattern_it == pattern.end() && path_it == path.end()) { in FullMatchRecursive()
73 if (pattern_it == pattern.end()) { in FullMatchRecursive()
80 pattern, ++next_pattern_it, path, path_it, /*double_asterisk_visited=*/true) || in FullMatchRecursive()
81 (path_it != path.end() && FullMatchRecursive(pattern, pattern_it, path, ++path_it)); in FullMatchRecursive()
89 return FullMatchRecursive(pattern, ++pattern_it, path, ++path_it); in FullMatchRecursive()
93 bool FullMatch(const std::filesystem::path& pattern, const std::filesystem::path& path) { in FullMatch() argument
[all …]
/art/test/094-pattern/
DAndroid.bp3 // Build rules for ART run-test `094-pattern`.
16 name: "art-run-test-094-pattern",
21 ":art-run-test-094-pattern-expected-stdout",
22 ":art-run-test-094-pattern-expected-stderr",
28 name: "art-run-test-094-pattern-expected-stdout",
29 out: ["art-run-test-094-pattern-expected-stdout.txt"],
36 name: "art-run-test-094-pattern-expected-stderr",
37 out: ["art-run-test-094-pattern-expected-stderr.txt"],
Dinfo.txt1 A simple test to exercise pattern matching.
/art/tools/checker/match/
Dline.py60 pattern = re.escape(get_variable(expression.name, variables, pos))
62 pattern = expression.text
65 pattern = re.compile(pattern)
68 ' compiling fails with error: {}'.format(pattern, pos.filename, pos.line_no, e))
73 match = re.match(pattern, string_word)
/art/test/663-checker-select-generator/
Dinfo.txt3 For example rewrites a simpled diamond pattern e.g.:
16 * Simple diamond pattern with:
19 * Double diamond pattern (i.e. nested simple diamonds) with:
/art/benchmark/stringbuilder-append/
Dinfo.txt1 Benchmarks for the StringBuilder append pattern.
/art/test/697-checker-string-append/
Dinfo.txt1 Test for String append pattern recognition.
/art/test/569-checker-pattern-replacement/
Dinfo.txt1 Test pattern substitution used when we cannot inline.
/art/tools/checker/file_format/checker/
Dstruct.py171 def create_pattern(pattern): argument
172 return TestExpression(TestExpression.Variant.PATTERN, None, pattern)
180 def create_variable_definition(name, pattern): argument
182 return TestExpression(TestExpression.Variant.VAR_DEF, name, pattern)
Dparser.py190 pattern = line[0:match_pattern.end()]
191 pattern = pattern[2:-2]
193 statement.add_expression(TestExpression.create_pattern(pattern))
Dtest.py99 def assertEqualsPattern(self, string, pattern): argument
100 self.assertEqual(self.parse_expression(string), TestExpression.create_pattern(pattern))
105 def assertEqualsVarDef(self, string, name, pattern): argument
107 TestExpression.create_variable_definition(name, pattern))
/art/test/699-checker-string-append2/
Dinfo.txt1 Regression tests for String append pattern recognition bugs. b/146014745
/art/libartbase/base/
Dutils.cc346 std::string pattern(key); in GetProcessStatus() local
347 pattern.push_back(':'); in GetProcessStatus()
353 if (strncmp(pattern.c_str(), line.c_str(), pattern.size()) == 0) { in GetProcessStatus()
355 size_t pos = line.find_first_not_of(" \t", pattern.size()); in GetProcessStatus()
/art/test/593-checker-shift-and-simplifier/
Dinfo.txt1 Regression test on pattern that caused double removal of AND by ARM64 simplifier.
/art/test/460-multiple-returns3/
Dinfo.txt1 Tests inlining of a pattern not generated by DX: multiple
/art/test/452-multiple-returns2/
Dinfo.txt1 Tests inlining of a pattern not generated by DX: multiple
/art/test/448-multiple-returns/
Dinfo.txt1 Tests inlining of a pattern not generated by DX: multiple
/art/test/631-checker-get-class/
Dinfo.txt1 Checker test to make sure we recognize the pattern:
/art/test/622-simplifyifs-exception-edges/smali/
DTest.smali35 # Note: There is no move-exception here to prevent matching the SimplifyIfs() pattern.
67 # Note: There is no move-exception here to prevent matching the SimplifyIfs() pattern.
/art/compiler/dex/
Dinline_method_analyser.cc47 static bool Match(const CodeItemDataAccessor* code_item, MatchFn* const (&pattern)[size]);
70 static bool DoMatch(const CodeItemDataAccessor* code_item, MatchFn* const* pattern, size_t size);
79 bool Matcher::Match(const CodeItemDataAccessor* code_item, MatchFn* const (&pattern)[size]) { in Match()
80 return DoMatch(code_item, pattern, size); in Match()
129 bool Matcher::DoMatch(const CodeItemDataAccessor* code_item, MatchFn* const* pattern, size_t size) { in DoMatch() argument
132 if (!pattern[matcher.pos_](&matcher)) { in DoMatch()
/art/test/980-redefine-object/
Dinfo.txt21 It is also possible it could fail due to the pattern of allocations caused by
/art/test/004-JniTest/src/
DMain.java389 String pattern = "^Shared library .*libarttest.* already opened by ClassLoader.*" + in testDoubleLoad()
391 if (!Pattern.matches(pattern, msg)) { in testDoubleLoad()
/art/tools/ahat/src/main/com/android/ahat/proguard/
DProguardMap.java383 Pattern pattern = Pattern.compile("#\\s*compiler_version:\\s*(\\d+).(\\d+).(?:(\\d+))?"); in tryParseVersion() local
384 Matcher matcher = pattern.matcher(line); in tryParseVersion()
/art/tools/checker/
DREADME8 followed by a pattern that the engine attempts to match in the compiler output.
42 enclosed in round brackets. For example, the pattern '{{foo{2}}}' will parse
/art/perfetto_hprof/
Dperfetto_hprof.cc293 std::string pattern = (*it).ToStdString(); in IsOomeDumpEnabled() local
294 if (fnmatch(pattern.c_str(), argv0, FNM_NOESCAPE) == 0) { in IsOomeDumpEnabled()

12