Searched refs:match (Results 1 - 25 of 39) sorted by relevance

12

/system/tools/hidl/utils/
H A DFQName.cpp124 std::smatch match; local
125 if (std::regex_match(s, match, kRE1)) {
126 CHECK_EQ(match.size(), 5u);
128 mPackage = match.str(1);
129 parseVersion(match.str(2), match.str(3));
130 mName = match.str(4);
131 } else if (std::regex_match(s, match, kRE2)) {
132 CHECK_EQ(match.size(), 4u);
134 parseVersion(match
205 std::smatch match; local
[all...]
H A DStringHelper.cpp71 std::smatch match; local
83 if (std::regex_search(copy, match, kStartLowercase))
84 matches.push_back(match.str(0));
85 if (std::regex_search(copy, match, kStartCapcase))
86 matches.push_back(match.str(0));
87 if (std::regex_search(copy, match, kStartUppercase))
88 matches.push_back(match.str(0));
91 for (std::string &match : matches)
92 if(match.length() > maxmatch.length())
93 maxmatch = match;
[all...]
/system/tpm/attestation/common/
H A Dproto_print.py144 match = message_re.search(line)
145 if match:
149 current_message_stack.append(Message(prefix + match.group(1)))
153 match = field_re.search(line)
154 if match:
155 current_message_stack[-1].AddField(match.group(1),
156 match.group(2),
157 match.group(3))
160 match = enum_re.search(line)
161 if match
[all...]
/system/sepolicy/tools/
H A Dsepolicy-check.c70 int match; local
85 match = 1;
86 match &= check(s_op, source_type, cur->key.source_type);
87 match &= check(t_op, target_type, cur->key.target_type);
88 match &= check(c_op, target_class, cur->key.target_class);
89 match &= check_perm(cur, perm);
90 if (match) {
112 * - 0 indicates a successful return without a match
113 * - 1 indicates a successful return with a match
126 int match; local
240 int match = 1; local
[all...]
/system/core/logcat/
H A Dgetopt_long.cpp114 // Returns -1 if short_too is set and the option does not match long_options.
146 int match = -1; local
156 // exact match
157 match = i;
162 // a partial match of a single character.
165 if (match == -1) { // first partial match
166 match = i;
167 } else if (long_options[i].has_arg != long_options[match].has_arg ||
168 long_options[i].flag != long_options[match]
[all...]
/system/tpm/trunks/generator/
H A Dgenerator.py256 match = re.search(r'([^\[]*)(\[.*\])*', name)
259 fixed_name = re.sub(r'([a-z0-9])([A-Z])', r'\1_\2', match.group(1)).lower()
260 return fixed_name + match.group(2) if match.group(2) else fixed_name
670 This method needs to match the OutputForward method in other type classes
1055 match = self._OLD_TYPE_RE.search(self._line)
1056 if not match:
1059 old_type = match.group(1)
1061 match = self._NEW_TYPE_RE.search(self._line)
1062 if not match
[all...]
/system/keymaster/
H A Dkeymaster_configuration.cpp53 uint32_t match_to_uint32(const char* expression, const regmatch_t& match) { argument
54 if (match.rm_so == -1)
57 size_t len = match.rm_eo - match.rm_so;
58 std::string s(expression + match.rm_so, len);
88 ALOGI("Platform version string does not match expected format. Using version 0.");
117 ALOGI("Platform patchlevel string does not match expected format. Using patchlevel 0");
/system/core/mkbootimg/
H A Dmkbootimg103 match = re.search(r'^(\d{1,3})(?:\.(\d{1,3})(?:\.(\d{1,3}))?)?', x)
104 if match:
105 a = int(match.group(1))
107 if match.lastindex >= 2:
108 b = int(match.group(2))
109 if match.lastindex == 3:
110 c = int(match.group(3))
119 match = re.search(r'^(\d{4})-(\d{2})-(\d{2})', x)
120 if match:
121 y = int(match
[all...]
/system/tools/hidl/
H A DAST.cpp157 Type *match = importAST->findDefinedType(fqName, &matchingName); local
158 if (match == nullptr) {
162 mImportedTypes[importAST].insert(match);
175 Type *match = importAST->findDefinedType(fqName, &matchingName); local
176 if (match == nullptr) {
180 mImportedTypes[importAST].insert(match);
368 Type *match = importedAST->findDefinedType(fqName, &matchingName); local
370 if (match != nullptr) {
382 resolvedType = match;
386 // Keep going even after finding a match
395 Type *match = importedAST->findDefinedType(fqName, &matchingName); local
461 Type *match = importedAST->findDefinedType(ifc, &matchingName); local
[all...]
H A DHash.cpp126 std::smatch match; local
127 bool valid = std::regex_match(line, match, kHashLine);
135 CHECK_EQ(match.size(), 3u);
137 std::string hash = match.str(1);
138 std::string fqName = match.str(2);
/system/media/camera/docs/
H A Dmetadata_helpers.py528 match = re.search(r'<.*>', local_typedef)
529 return bool(match)
604 if re.match("\d", what):
639 return bool(re.match('0x[a-f0-9]+$', instr, re.IGNORECASE))
1055 def filter_sub(match):
1056 whole_match = match.group(0)
1057 section1 = match.group(1)
1058 section2 = match.group(2)
1059 section3 = match.group(3)
1060 end_slash = match
[all...]
/system/core/fastboot/
H A Dengine.cpp171 static int match(const char* str, const char** value, unsigned count) { function
177 int match; local
181 match = !strncmp(val, str, len);
183 match = !strcmp(val, str);
186 if (match) return 1;
216 yes = match(resp, value, count);
H A Dusbtest.cpp129 ifc_match_func match; member in struct:__anon1421
193 usb = usb_open(tests[i].match);
/system/bt/btif/src/
H A Dbtif_gatt_util.cc54 int match = 0; local
60 if (p_uuid[i] == BASE_UUID[i]) ++match;
65 if (match == 12) return LEN_UUID_32;
66 if (match == 14) return LEN_UUID_16;
/system/libvintf/
H A DHalManifest.cpp239 return true; // match!
282 bool match = false; local
302 match = true;
305 if (!match) {
312 bool match = false; local
315 match = true;
319 if (!match) {
/system/core/toolbox/
H A Dgenerate-input.h-labels.py44 m = r.match(line)
/system/core/libcutils/
H A Dconfig_utils.c41 cnode *node, *match = NULL; local
46 match = node;
48 return match;
/system/core/fs_mgr/
H A Dfs_mgr_verity.cpp571 static int compare_last_signature(struct fstab_rec *fstab, int *match) argument
582 *match = 1;
623 *match = !memcmp(curr, prev, SHA256_DIGEST_LENGTH);
625 if (!*match) {
657 int match = 0; local
683 if (!compare_last_signature(fstab, &match) && !match) {
/system/core/liblog/tests/
H A Dbenchmark_main.cpp84 // see if any of our benchmarks match.
92 int match = regexec(&re, b->Name(), 0, NULL, 0); local
94 if (match != REG_NOMATCH) {
/system/libhidl/transport/
H A DServiceManagement.cpp188 std::smatch match; local
189 if (std::regex_match(lib, match, gLibraryFileNamePattern)) {
190 *matchedName = match.str(1) + "::I*";
/system/extras/tests/sdcard/
H A Dplot_sdcard.py58 self.summary = re.match('([a-z_]+)_total', self.name)
146 if re.match('[a-z_]', line):
/system/security/keystore/
H A Dkeystore.cpp98 * that Base64 cannot be used here due to the need of prefix match on keys. */
303 ALOGW("key found but type doesn't match: %d vs %d", keyBlob->getType(), type);
408 char* match = (char*)malloc(extra + 1); local
409 if (match != NULL) {
410 decode_key(match, p, plen);
411 matches->push(android::String16(match, extra));
412 free(match);
414 ALOGW("could not allocate match of size %zd", extra);
/system/core/adf/libadf/
H A Dadf.cpp249 bool (*filter)(struct adf_interface_data *data, __u32 match),
250 __u32 match)
264 if (filter(&data, match))
247 adf_interfaces_filter(struct adf_device *dev, adf_id_t *in, size_t n_in, adf_id_t **out, bool (*filter)(struct adf_interface_data *data, __u32 match), __u32 match) argument
/system/core/libpixelflinger/include/private/pixelflinger/
H A Dggl_context.h239 inline int match(const needs_filter_t& filter);
263 int needs_t::match(const needs_filter_t& filter) { function in class:android::needs_t
/system/extras/pagecache/
H A Dpagecache.py232 m = re.match('.* (mm_filemap_add_to_page_cache|mm_filemap_delete_from_page_cache): dev (\d+):(\d+) ino ([0-9a-z]+) page=([0-9a-z]+) pfn=\d+ ofs=(\d+).*', line)
250 result = re.match('([0-9]+)d? ([0-9]+) ([0-9]+) (.*)', line)

Completed in 552 milliseconds

12