/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/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/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() 207 std::smatch match; in ParseConfiguration() local 217 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/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/sepolicy/tests/ |
D | mini_parser.py | 27 m = re.match(r"(\d+\.\d+).+\.cil", fn) 81 m = re.match(r"type\s+(.+)", stmt) 86 m = re.match(r"expandtypeattribute\s+\((.+)\)\s+(true|false)", stmt) 91 m = re.match(r"typeattribute\s+(.+)", stmt) 96 m = re.match(r"typeattributeset\s+(.+?)\s+\((.+?)\)", stmt, flags = re.M |re.S) 111 pub = re.match(r"(\w+)_\d+_\d+", ta) 117 if re.match(r"type\s+.+", stmt): 119 elif re.match(r"typeattribute\s+.+", stmt): 121 elif re.match(r"typeattributeset\s+.+", stmt): 123 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/sepolicy/prebuilts/api/27.0/private/ |
D | seapp_contexts | 14 # isEphemeralApp=true will match apps marked by PackageManager as Ephemeral 15 # isV2App=true will match apps in the v2 app sandbox. 16 # isOwner=true will only match for the owner/primary user. 17 # isOwner=false will only match for secondary users. 18 # If unspecified, the entry can match either case. 19 # An unspecified string selector will match any value. 20 # A user string selector that ends in * will perform a prefix match. 21 # user=_app will match any regular app UID. 22 # user=_isolated will match any isolated service UID. 23 # isPrivApp=true will only match for applications preinstalled in [all …]
|
/system/sepolicy/prebuilts/api/26.0/private/ |
D | seapp_contexts | 14 # isEphemeralApp=true will match apps marked by PackageManager as Ephemeral 15 # isV2App=true will match apps in the v2 app sandbox. 16 # isOwner=true will only match for the owner/primary user. 17 # isOwner=false will only match for secondary users. 18 # If unspecified, the entry can match either case. 19 # An unspecified string selector will match any value. 20 # A user string selector that ends in * will perform a prefix match. 21 # user=_app will match any regular app UID. 22 # user=_isolated will match any isolated service UID. 23 # isPrivApp=true will only match for applications preinstalled in [all …]
|
/system/media/camera/docs/ |
D | metadata_helpers.py | 534 match = re.search(r'<.*>', local_typedef) 535 return bool(match) 610 if re.match("\d", what): 645 return bool(re.match('0x[a-f0-9]+$', instr, re.IGNORECASE)) 1182 def filter_sub(match): argument 1183 whole_match = match.group(0) 1184 section1 = match.group(1) 1185 section2 = match.group(2) 1186 section3 = match.group(3) 1187 end_slash = match.group(4) [all …]
|
/system/sepolicy/prebuilts/api/28.0/private/ |
D | seapp_contexts | 14 # isEphemeralApp=true will match apps marked by PackageManager as Ephemeral 15 # isV2App=true will match apps in the v2 app sandbox. 16 # isOwner=true will only match for the owner/primary user. 17 # isOwner=false will only match for secondary users. 18 # If unspecified, the entry can match either case. 19 # An unspecified string selector will match any value. 20 # A user string selector that ends in * will perform a prefix match. 21 # user=_app will match any regular app UID. 22 # user=_isolated will match any isolated service UID. 23 # isPrivApp=true will only match for applications preinstalled in [all …]
|
/system/netd/server/ |
D | TrafficController.cpp | 99 const std::string uidMatchTypeToString(uint8_t match) { in uidMatchTypeToString() argument 101 FLAG_MSG_TRANS(matchType, HAPPY_BOX_MATCH, match); in uidMatchTypeToString() 102 FLAG_MSG_TRANS(matchType, PENALTY_BOX_MATCH, match); in uidMatchTypeToString() 103 FLAG_MSG_TRANS(matchType, DOZABLE_MATCH, match); in uidMatchTypeToString() 104 FLAG_MSG_TRANS(matchType, STANDBY_MATCH, match); in uidMatchTypeToString() 105 FLAG_MSG_TRANS(matchType, POWERSAVE_MATCH, match); in uidMatchTypeToString() 106 FLAG_MSG_TRANS(matchType, RESTRICTED_MATCH, match); in uidMatchTypeToString() 107 FLAG_MSG_TRANS(matchType, IIF_MATCH, match); in uidMatchTypeToString() 108 if (match) { in uidMatchTypeToString() 109 return StringPrintf("Unknown match: %u", match); in uidMatchTypeToString() [all …]
|
/system/keymaster/android_keymaster/ |
D | keymaster_configuration.cpp | 50 uint32_t match_to_uint32(const char* expression, const regmatch_t& match) { in match_to_uint32() argument 51 if (match.rm_so == -1) return 0; in match_to_uint32() 53 size_t len = match.rm_eo - match.rm_so; in match_to_uint32() 54 std::string s(expression + match.rm_so, len); in match_to_uint32()
|
/system/netd/bpf_progs/ |
D | netd.c | 236 int match = bpf_owner_match(skb, sock_uid, direction); in bpf_traffic_account() local 237 if ((direction == BPF_EGRESS) && (match == BPF_DROP)) { in bpf_traffic_account() 240 return match; in bpf_traffic_account() 260 if (match == BPF_DROP_UNLESS_DNS) match = BPF_PASS; in bpf_traffic_account() 262 if (match == BPF_DROP_UNLESS_DNS) match = BPF_DROP; in bpf_traffic_account() 273 return match; in bpf_traffic_account() 283 return match; in bpf_traffic_account()
|
/system/keymaster/ |
D | valgrind.supp | 26 match-leak-kinds: reachable 35 match-leak-kinds: reachable
|
/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/iorap/src/inode2filename/ |
D | search_directories.cc | 748 std::optional<SearchMatch> match; member 762 if (s.match) { in operator <<() 763 os << s.match.value(); in operator <<() 808 search_state->match = std::nullopt; in SearchDirectoriesForMatchingInodes() 826 search_state->match = SearchMatch{inode.value(), dir_entry.filename}; in SearchDirectoriesForMatchingInodes() 836 bool cond = !state->inode_set.Empty() || state->match; in SearchDirectoriesForMatchingInodes() 842 << state->inode_set.Empty() << ", match:" << state->match.has_value(); in SearchDirectoriesForMatchingInodes() 886 return search_state->match.has_value(); }) in SearchDirectoriesForMatchingInodes() 888 return std::move(search_state->match.value()); }) in SearchDirectoriesForMatchingInodes() 1048 std::optional<InodeResult> match; member [all …]
|
/system/tools/hidl/hashing/ |
D | Hash.cpp | 131 std::smatch match; in readHashFile() local 132 bool valid = std::regex_match(line, match, kHashLine); in readHashFile() 140 CHECK_EQ(match.size(), 3u); in readHashFile() 142 std::string hash = match.str(1); in readHashFile() 143 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 …]
|