Home
last modified time | relevance | path

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

123456

/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:
/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/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()
207 std::smatch match; in ParseConfiguration() local
217 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.py27 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/
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/netd/server/
DTrafficController.cpp96 const std::string uidMatchTypeToString(uint8_t match) { in uidMatchTypeToString() argument
98 FLAG_MSG_TRANS(matchType, HAPPY_BOX_MATCH, match); in uidMatchTypeToString()
99 FLAG_MSG_TRANS(matchType, PENALTY_BOX_MATCH, match); in uidMatchTypeToString()
100 FLAG_MSG_TRANS(matchType, DOZABLE_MATCH, match); in uidMatchTypeToString()
101 FLAG_MSG_TRANS(matchType, STANDBY_MATCH, match); in uidMatchTypeToString()
102 FLAG_MSG_TRANS(matchType, POWERSAVE_MATCH, match); in uidMatchTypeToString()
103 FLAG_MSG_TRANS(matchType, IIF_MATCH, match); in uidMatchTypeToString()
104 if (match) { in uidMatchTypeToString()
105 return StringPrintf("Unknown match: %u", match); in uidMatchTypeToString()
521 Status TrafficController::updateOwnerMapEntry(UidOwnerMatchType match, uid_t uid, FirewallRule rule, in updateOwnerMapEntry() argument
[all …]
DTrafficController.h103 netdutils::Status updateOwnerMapEntry(UidOwnerMatchType match, uid_t uid, FirewallRule rule,
108 netdutils::Status replaceRulesInMap(UidOwnerMatchType match, const std::vector<int32_t>& uids)
206 netdutils::Status removeRule(uint32_t uid, UidOwnerMatchType match) REQUIRES(mMutex);
208 netdutils::Status addRule(uint32_t uid, UidOwnerMatchType match, uint32_t iif = 0)
/system/keymaster/android_keymaster/
Dkeymaster_configuration.cpp48 uint32_t match_to_uint32(const char* expression, const regmatch_t& match) { in match_to_uint32() argument
49 if (match.rm_so == -1) in match_to_uint32()
52 size_t len = match.rm_eo - match.rm_so; in match_to_uint32()
53 std::string s(expression + match.rm_so, len); in match_to_uint32()
/system/sepolicy/prebuilts/api/26.0/private/
Dseapp_contexts14 # 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/27.0/private/
Dseapp_contexts14 # 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/
Dmetadata_helpers.py532 match = re.search(r'<.*>', local_typedef)
533 return bool(match)
608 if re.match("\d", what):
643 return bool(re.match('0x[a-f0-9]+$', instr, re.IGNORECASE))
1177 def filter_sub(match): argument
1178 whole_match = match.group(0)
1179 section1 = match.group(1)
1180 section2 = match.group(2)
1181 section3 = match.group(3)
1182 end_slash = match.group(4)
[all …]
/system/sepolicy/prebuilts/api/28.0/private/
Dseapp_contexts14 # 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/bpf_progs/
Dnetd.c233 int match = bpf_owner_match(skb, sock_uid, direction); in bpf_traffic_account() local
234 if ((direction == BPF_EGRESS) && (match == BPF_DROP)) { in bpf_traffic_account()
237 return match; in bpf_traffic_account()
257 if (match == BPF_DROP_UNLESS_DNS) match = BPF_PASS; in bpf_traffic_account()
259 if (match == BPF_DROP_UNLESS_DNS) match = BPF_DROP; in bpf_traffic_account()
270 return match; in bpf_traffic_account()
280 return match; in bpf_traffic_account()
/system/tools/mkbootimg/
Dmkbootimg.py200 match = re.search(r'^(\d{1,3})(?:\.(\d{1,3})(?:\.(\d{1,3}))?)?', x)
201 if match:
202 a = int(match.group(1))
204 if match.lastindex >= 2:
205 b = int(match.group(2))
206 if match.lastindex == 3:
207 c = int(match.group(3))
217 match = re.search(r'^(\d{4})-(\d{2})(?:-(\d{2}))?', x)
218 if match:
219 y = int(match.group(1)) - 2000
[all …]
/system/keymaster/
Dvalgrind.supp26 match-leak-kinds: reachable
35 match-leak-kinds: reachable
/system/tools/hidl/hashing/
DHash.cpp131 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/
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/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 …]
/system/core/init/test_service/
DREADME.md18 `/proc/self/status`, and attempt to exactly match the second element of the pair
28 And then attempt to exactly match the token after `:`, `0000000000003000`,
30 If they match, the service exits successfully. If not, the service will exit

123456