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

12

/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/tpm/trunks/generator/
H A Dgenerator.py254 match = re.search(r'([^\[]*)(\[.*\])*', name)
257 fixed_name = re.sub(r'([a-z0-9])([A-Z])', r'\1_\2', match.group(1)).lower()
258 return fixed_name + match.group(2) if match.group(2) else fixed_name
668 This method needs to match the OutputForward method in other type classes
1052 match = self._OLD_TYPE_RE.search(self._line)
1053 if not match:
1056 old_type = match.group(1)
1058 match = self._NEW_TYPE_RE.search(self._line)
1059 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);
93 ALOGI("Platform version string does not match expected format. Using version 0.");
113 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/connectivity/shill/
H A Dtesting.h82 bool match = value.properties() == arg.properties(); local
83 if (!match) {
88 return match;
/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/metricsd/
H A Dmetrics_library.cc79 // 0..strlen(device_name)-1 -- this offset in device_name is next to match
82 bool match = false; local
83 while (!match) {
100 match = true;
115 *result = match;
/system/core/fastboot/
H A Dengine.cpp173 static int match(const char* str, const char** value, unsigned count) { function
179 int match; local
183 match = !strncmp(val, str, len);
185 match = !strcmp(val, str);
188 if (match) return 1;
218 yes = match(resp, value, count);
H A Dusbtest.cpp129 ifc_match_func match; member in struct:__anon1523
193 usb = usb_open(tests[i].match);
/system/bt/btif/src/
H A Dbtif_gatt_util.c56 int match = 0; local
65 ++match;
72 if (match == 12)
74 if (match == 14)
/system/connectivity/shill/net/
H A Dnl80211_message.cc306 map<uint16_t, string>::const_iterator match; local
307 match = reason_code_string_->find(status);
308 if (match == reason_code_string_->end()) {
317 return match->second;
322 map<uint16_t, string>::const_iterator match; local
323 match = status_code_string_->find(status);
324 if (match == status_code_string_->end()) {
333 return match->second;
/system/webservd/webservd/
H A Dlog_manager_unittest.cc89 std::string match = base::StringPrintf( local
92 EXPECT_EQ(match, last_entry);
/system/core/toolbox/
H A Dgenerate-input.h-labels.py43 m = r.match(line)
/system/core/libcutils/
H A Dconfig_utils.c41 cnode *node, *match = NULL; local
46 match = node;
48 return match;
/system/extras/simpleperf/
H A Ddso.cpp245 bool match = (build_id == real_build_id); local
246 LOG(DEBUG) << "check kernel build id (" << (match ? "match" : "mismatch") << "): expected "
248 if (!match) {
/system/core/liblog/tests/
H A Dbenchmark_main.cpp85 // see if any of our benchmarks match.
92 int match = regexec(&re, b->Name(), 0, NULL, 0); local
94 if (match != REG_NOMATCH) {
/system/core/fs_mgr/
H A Dfs_mgr_verity.cpp654 static int compare_last_signature(struct fstab_rec *fstab, int *match) argument
665 *match = 1;
708 *match = !memcmp(curr, prev, SHA256_DIGEST_SIZE);
710 if (!*match) {
744 int match = 0; local
771 if (!compare_last_signature(fstab, &match) && !match) {
/system/extras/tests/net_test/
H A Dnet_test.py363 elif re.match("icmp|udp|raw", protocol):
388 _, _, uid, _, _, refcnt, _, extra) = regexp.match(line).groups()
/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.cpp89 * that Base64 cannot be used here due to the need of prefix match on keys. */
283 ALOGW("key found but type doesn't match: %d vs %d", keyBlob->getType(), type);
399 char* match = (char*)malloc(extra + 1); local
400 if (match != NULL) {
401 decode_key(match, p, plen);
402 matches->push(android::String16(match, extra));
403 free(match);
405 ALOGW("could not allocate match of size %zd", extra);
/system/core/adf/libadf/
H A Dadf.c261 bool (*filter)(struct adf_interface_data *data, __u32 match),
262 __u32 match)
282 if (!filter(&data, match))
259 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)
/system/core/init/
H A Ddevices.cpp201 bool match = false; local
207 match = true;
213 match = true;
220 if (match) {

Completed in 4166 milliseconds

12