/system/extras/simpleperf/ |
D | RegEx_test.cpp | 32 auto match = re->SearchAll("aaa"); in TEST() local 33 ASSERT_FALSE(match->IsValid()); in TEST() 34 match = re->SearchAll("ababb"); in TEST() 35 ASSERT_TRUE(match->IsValid()); in TEST() 36 ASSERT_EQ(match->GetField(0), "b"); in TEST() 37 match->MoveToNextMatch(); in TEST() 38 ASSERT_TRUE(match->IsValid()); in TEST() 39 ASSERT_EQ(match->GetField(0), "bb"); in TEST() 40 match->MoveToNextMatch(); in TEST() 41 ASSERT_FALSE(match->IsValid()); in TEST()
|
D | ProbeEvents.cpp | 60 auto match = name_reg->SearchAll(args[0]); in ParseKprobeEventName() local 61 if (match->IsValid()) { in ParseKprobeEventName() 62 if (match->GetField(1).length() > 0) { in ParseKprobeEventName() 63 event->group_name = match->GetField(1); in ParseKprobeEventName() 66 event->event_name = match->GetField(2); in ParseKprobeEventName()
|
/system/extras/boottime_tools/io_analysis/ |
D | check_file_read.py | 242 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 …]
|
D | check_io_trace_all.py | 126 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 …]
|
D | check_io_trace.py | 71 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 …]
|
D | check_verity.py | 83 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/ |
D | host_builtin_map.py | 21 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:
|
D | firmware_handler_test.cpp | 108 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/ |
D | linkerconfigparser.h | 36 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/ |
D | sepolicy-check.c | 70 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/extras/tools/ |
D | check_elf_alignment.sh | 84 for match in $matches; do 85 [[ $(file "${match}") == *"ELF"* ]] || continue 86 res="$(objdump -p "${match}" | grep LOAD | awk '{ print $NF }' | head -1)" 88 echo -e "${match}: ${GREEN}ALIGNED${ENDCOLOR} ($res)" 90 echo -e "${match}: ${RED}UNALIGNED${ENDCOLOR} ($res)" 91 unaligned_libs+=("${match}")
|
/system/libvintf/ |
D | Regex.cpp | 42 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()
|
D | KernelConfigParser.cpp | 63 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/extras/ioblame/ |
D | uidProcessMapper.py | 90 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)
|
D | androidFsParser.py | 133 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))
|
D | ioblame.py | 173 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/sepolicy/tests/ |
D | mini_parser.py | 39 m = re.match(r"(\d+\.\d+).+\.cil", fn) 99 m = re.match(r"type\s+(.+)", stmt) 104 m = re.match(r"expandtypeattribute\s+\((.+)\)\s+(true|false)", stmt) 109 m = re.match(r"typeattribute\s+(.+)", stmt) 114 m = re.match(r"typeattributeset\s+(.+?)\s+\((.+?)\)", stmt, flags = re.M |re.S) 129 pub = re.match(r"(\w+)_\d+_\d+", ta) 135 if re.match(r"type\s+.+", stmt): 137 elif re.match(r"typeattribute\s+.+", stmt): 139 elif re.match(r"typeattributeset\s+.+", stmt): 141 elif re.match(r"expandtypeattribute\s+.+", stmt):
|
/system/tools/hidl/host_utils/ |
D | StringHelper.cpp | 111 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/media/camera/docs/ |
D | metadata_helpers.py | 569 match = re.search(r'<.*>', local_typedef) 570 return bool(match) 645 if re.match("\d", what): 680 return bool(re.match('0x[a-f0-9]+$', instr, re.IGNORECASE)) 1222 def filter_sub(match): argument 1223 whole_match = match.group(0) 1224 section1 = match.group(1) 1225 section2 = match.group(2) 1226 section3 = match.group(3) 1227 end_slash = match.group(4) [all …]
|
/system/logging/logd/integration_test/ |
D | logd_integration_test.py | 78 match = reLineCount.match(line) 79 if match: 80 res.append(int(match.group(1)))
|
/system/apex/tools/ |
D | apex_elf_checker.py | 99 match = _DYNAMIC_SECTION_NEEDED_PATTERN.match(line) 100 if match: 101 needed.append(match.group(1))
|
/system/extras/simpleperf/scripts/ |
D | debug_unwind_reporter.py | 83 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/ |
D | Hash.cpp | 123 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/ |
D | fs_config_test.cpp | 44 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/tools/hidl/ |
D | AST.cpp | 439 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 …]
|