Home
last modified time | relevance | path

Searched refs:match (Results 1 – 25 of 143) sorted by relevance

123456

/system/extras/simpleperf/
DRegEx_test.cpp31 auto match = re->SearchAll("aaa"); in TEST() local
32 ASSERT_FALSE(match->IsValid()); in TEST()
33 match = re->SearchAll("ababb"); in TEST()
34 ASSERT_TRUE(match->IsValid()); in TEST()
35 ASSERT_EQ(match->GetField(0), "b"); in TEST()
36 match->MoveToNextMatch(); in TEST()
37 ASSERT_TRUE(match->IsValid()); in TEST()
38 ASSERT_EQ(match->GetField(0), "bb"); in TEST()
39 match->MoveToNextMatch(); in TEST()
40 ASSERT_FALSE(match->IsValid()); in TEST()
DProbeEvents.cpp59 auto match = name_reg->SearchAll(args[0]); in ParseKprobeEventName() local
60 if (match->IsValid()) { in ParseKprobeEventName()
61 if (match->GetField(1).length() > 0) { in ParseKprobeEventName()
62 event->group_name = match->GetField(1); in ParseKprobeEventName()
65 event->event_name = match->GetField(2); in ParseKprobeEventName()
/system/extras/boottime_tools/io_analysis/
Dcheck_file_read.py242 match = self.re_open.match(line)
243 if match:
244 self.handle_open(match)
246 match = self.re_ext4_access.match(line)
247 if match:
248 self.handle_ext4_block_exit(match)
250 match = self.re_bio_remap.match(line)
251 if match:
252 self.handle_bio_remap(match)
254 match = self.re_block_issue.match(line)
[all …]
Dcheck_io_trace_all.py126 match = self.re_block.match(l)
127 if not match:
130 self.do_parse_bio_queue(l, match)
136 def do_parse_bio_queue(self, l, match): argument
137 pid = match.group(1)
138 start_time = float(match.group(2))*1000 #ms
139 major = int(match.group(3))
140 minor = int(match.group(4))
142 operation = match.group(5)
143 block_num = int(match.group(6))
[all …]
Dcheck_io_trace.py71 match = self.re_block_queue.match(l)
72 if not match:
74 start_time = int(float(match.group(1))*1000000) #us
75 major = int(match.group(2))
76 minor = int(match.group(3))
77 operation = match.group(4)
78 block_num = int(match.group(5))
79 size = int(match.group(6))
80 process = match.group(7)
129 def parse_block_trace(self, l, match): argument
[all …]
Dcheck_verity.py83 match = self.re.match(line)
84 if not match:
86 time = int(float(match.group(1))*1000000) #us
87 step = match.group(2)
88 block_nr = int(match.group(5))
89 size = int(match.group(6))
/system/core/init/
Dhost_builtin_map.py21 match = CHECK_REGEX.match(line) variable
22 if match:
23 check_functions.append(match.group(1))
39 match = DO_REGEX.match(line) variable
40 if match:
41 if match.group(1) in check_functions:
Dfirmware_handler_test.cpp108 ASSERT_TRUE(h.match("/dev/path/a.bin")); in TEST()
109 ASSERT_FALSE(h.match("/dev/path/a.bi")); in TEST()
112 ASSERT_TRUE(h.match("/dev/path/a.bin")); in TEST()
113 ASSERT_TRUE(h.match("/dev/path/a.bix")); in TEST()
114 ASSERT_FALSE(h.match("/dev/path/b.bin")); in TEST()
117 ASSERT_TRUE(h.match("/dev/path/a.bin")); in TEST()
118 ASSERT_TRUE(h.match("/dev/other/a.bin")); in TEST()
119 ASSERT_FALSE(h.match("/dev/other/c.bin")); in TEST()
120 ASSERT_FALSE(h.match("/dev/path/b.bin")); in TEST()
/system/linkerconfig/contents/tests/configuration/include/
Dlinkerconfigparser.h36 std::smatch match; in ParseDirPath() local
38 ASSERT_TRUE(std::regex_match(line, match, dir_regex)) << line; in ParseDirPath()
39 ASSERT_EQ(3u, match.size()) << line; in ParseDirPath()
40 std::string section_name = match[1]; in ParseDirPath()
41 std::string dir_path = match[2]; in ParseDirPath()
51 inline void ParseAdditionalNamespaces(const std::smatch& match, in ParseAdditionalNamespaces() argument
54 ASSERT_EQ(2u, match.size()); in ParseAdditionalNamespaces()
55 std::stringstream namespaces(match[1]); in ParseAdditionalNamespaces()
215 std::smatch match; in ParseConfiguration() local
225 if (std::regex_match(line, match, section_name_regex)) { in ParseConfiguration()
[all …]
/system/sepolicy/tools/
Dsepolicy-check.c70 int match; in expand_and_check() local
85 match = 1; in expand_and_check()
86 match &= check(s_op, source_type, cur->key.source_type); in expand_and_check()
87 match &= check(t_op, target_type, cur->key.target_type); in expand_and_check()
88 match &= check(c_op, target_class, cur->key.target_class); in expand_and_check()
89 match &= check_perm(cur, perm); in expand_and_check()
90 if (match) { in expand_and_check()
126 int match; in check_rule() local
174 match = expand_and_check(s_op, key.source_type, in check_rule()
178 if (match) in check_rule()
[all …]
/system/libvintf/
DRegex.cpp42 regmatch_t match; in matches() local
44 regexec(mImpl.get(), s.c_str(), 1 /* nmatch */, &match /* pmatch */, 0 /* flags */); in matches()
45 return status == 0 && match.rm_so == 0 && match.rm_eo >= 0 && in matches()
46 static_cast<size_t>(match.rm_eo) == s.length(); in matches()
DKernelConfigParser.cpp63 std::smatch match; in processRemaining() local
67 if (std::regex_match(mRemaining, match, sKeyValuePattern)) { in processRemaining()
68 if (mConfigs.emplace(match[1], trimTrailingSpaces(match[2])).second) { in processRemaining()
71 mError << "Duplicated key in configs: " << match[1] << "\n"; in processRemaining()
88 if (mProcessComments && std::regex_match(mRemaining, match, sNotSetPattern)) { in processRemaining()
89 if (mConfigs.emplace(match[1], "n").second) { in processRemaining()
92 mError << "Key " << match[1] << " is set but commented as not set" in processRemaining()
99 if (std::regex_match(mRemaining, match, sCommentPattern)) { in processRemaining()
/system/sepolicy/tests/
Dmini_parser.py39 m = re.match(r"(\d+\.\d+).+\.cil", fn)
93 m = re.match(r"type\s+(.+)", stmt)
98 m = re.match(r"expandtypeattribute\s+\((.+)\)\s+(true|false)", stmt)
103 m = re.match(r"typeattribute\s+(.+)", stmt)
108 m = re.match(r"typeattributeset\s+(.+?)\s+\((.+?)\)", stmt, flags = re.M |re.S)
123 pub = re.match(r"(\w+)_\d+_\d+", ta)
129 if re.match(r"type\s+.+", stmt):
131 elif re.match(r"typeattribute\s+.+", stmt):
133 elif re.match(r"typeattributeset\s+.+", stmt):
135 elif re.match(r"expandtypeattribute\s+.+", stmt):
Dapex_sepolicy_tests.py73 match matcher:
77 return pathlib.PurePath(path).match(pattern)
79 return re.match(pattern, path)
84 match rule:
/system/extras/ioblame/
DuidProcessMapper.py90 match = self.packageUidMatcher.match(line)
91 if (match):
92 packageName = match.group(1)
93 appId = int(match.group(2))
103 match = reMatcher.match(line)
104 if not match:
106 return match.group(1)
DandroidFsParser.py133 match = self.re_matcher.match(line)
134 if not match:
137 self.do_parse_start(line, match)
143 def do_parse_start(self, line, match): argument
144 pid = int(match.group(1))
146 filename = match.group(3)
148 numBytes = int(match.group(5))
149 cmdLine = match.group(6)
150 pid = int(match.group(7))
Dioblame.py173 match = re.compile(RE_LS_BLOCK_DEVICE).match(result)
174 if not match:
178 return match.group(1)
346 match = matcher.match(line)
348 if not match:
351 readIos = int(match.group(4))
352 readSectors = int(match.group(6))
353 writeIos = int(match.group(8))
354 writeSectors = int(match.group(10))
382 match = self.uidIoStatsReMatcher.match(line)
[all …]
/system/tools/hidl/host_utils/
DStringHelper.cpp111 std::smatch match; in Tokenize() local
116 if (std::regex_search(copy, match, kStartLowercase)) matches.push_back(match.str(0)); in Tokenize()
117 if (std::regex_search(copy, match, kStartCapcase)) matches.push_back(match.str(0)); in Tokenize()
118 if (std::regex_search(copy, match, kStartUppercase)) matches.push_back(match.str(0)); in Tokenize()
119 if (std::regex_search(copy, match, kStartNumcase)) matches.push_back(match.str(0)); in Tokenize()
123 for (std::string& match : matches) in Tokenize()
124 if (match.length() > maxmatch.length()) maxmatch = match; in Tokenize()
/system/logging/logd/integration_test/
Dlogd_integration_test.py72 match = reLineCount.match(line)
73 if match:
74 res.append(int(match.group(1)))
/system/media/camera/docs/
Dmetadata_helpers.py541 match = re.search(r'<.*>', local_typedef)
542 return bool(match)
617 if re.match("\d", what):
652 return bool(re.match('0x[a-f0-9]+$', instr, re.IGNORECASE))
1194 def filter_sub(match): argument
1195 whole_match = match.group(0)
1196 section1 = match.group(1)
1197 section2 = match.group(2)
1198 section3 = match.group(3)
1199 end_slash = match.group(4)
[all …]
/system/extras/simpleperf/scripts/
Ddebug_unwind_reporter.py83 def match(self, sample: Sample) -> bool: member in SampleFilter
88 def match(self, sample: Sample) -> bool: member in CompleteCallChainFilter
99 def match(self, sample: Sample) -> bool: member in ErrorCodeFilter
107 def match(self, sample: Sample) -> bool: member in EndDsoFilter
115 def match(self, sample: Sample) -> bool: member in EndSymbolFilter
123 def match(self, sample: Sample) -> bool: member in SampleTimeFilter
174 if exclude_filter.match(sample):
177 if not include_filter.match(sample):
/system/tools/hidl/hashing/
DHash.cpp123 std::smatch match; in readHashFile() local
124 bool valid = std::regex_match(line, match, kHashLine); in readHashFile()
132 CHECK_EQ(match.size(), 3u); in readHashFile()
134 std::string hash = match.str(1); in readHashFile()
135 std::string fqName = match.str(2); in readHashFile()
/system/core/libcutils/
Dfs_config_test.cpp44 bool match; member
149 bool match, retval = false; in check_fs_config_cmp() local
151 match = __for_testing_only__fs_config_cmp(tests[idx].dir, tests[idx].prefix, in check_fs_config_cmp()
154 if (match != tests[idx].match) { in check_fs_config_cmp()
155 GTEST_LOG_(ERROR) << tests[idx].path << (match ? " matched " : " didn't match ") in check_fs_config_cmp()
/system/keymaster/
Dvalgrind.supp26 match-leak-kinds: reachable
35 match-leak-kinds: reachable
/system/tools/hidl/
DAST.cpp439 Type* match = importAST->findDefinedType(fqName, &matchingName); in importFQName() local
440 if (match == nullptr) { in importFQName()
444 mImportedTypes[importAST].insert(match); in importFQName()
458 Type* match = importAST->findDefinedType(fqName, &matchingName); in importFQName() local
459 if (match == nullptr) { in importFQName()
463 mImportedTypes[importAST].insert(match); in importFQName()
662 Type *match = importedAST->findDefinedType(fqName, &matchingName); in lookupTypeFromImports() local
664 if (match != nullptr) { in lookupTypeFromImports()
676 resolvedType = match; in lookupTypeFromImports()
689 Type *match = importedAST->findDefinedType(fqName, &matchingName); in lookupTypeFromImports() local
[all …]

123456