Home
last modified time | relevance | path

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

12345

/tools/repohooks/tools/
Dcpplint.py665 return _regexp_compile_cache[pattern].match(s)
1464 if _RE_PATTERN_INCLUDE.match(elided):
1478 match = Match(r'^([^\'"]*)([\'"])(.*)$', elided)
1479 if not match:
1482 head, quote, tail = match.groups()
1952 match = Match(r'#endif\s*//\s*' + cppvar + r'(_)?\b', endif)
1953 if match:
1954 if match.group(1) == '_':
1971 match = Match(r'#endif\s*/\*\s*' + cppvar + r'(_)?\s*\*/', endif)
1972 if match:
[all …]
/tools/loganalysis/src/com/android/loganalysis/parser/
DDmesgParser.java167 Matcher match = null; in parseServiceInfo() local
168 if ((match = matches(START_SERVICE, line)) != null) { in parseServiceInfo()
170 serviceItem.setServiceName(match.group(SERVICENAME)); in parseServiceInfo()
172 match.group(TIMESTAMP)) * 1000)); in parseServiceInfo()
173 getServiceInfoItems().put(match.group(SERVICENAME), serviceItem); in parseServiceInfo()
175 } else if ((match = matches(EXIT_SERVICE, line)) != null) { in parseServiceInfo()
176 if (getServiceInfoItems().containsKey(match.group(SERVICENAME))) { in parseServiceInfo()
178 match.group(SERVICENAME)); in parseServiceInfo()
180 match.group(TIMESTAMP)) * 1000)); in parseServiceInfo()
198 Matcher match = null; in parseStageInfo() local
[all …]
DEventsLogParser.java75 Matcher match = null; in parseTransitionDelayInfo() local
77 if ((match = matches(SYSUI_TRANSITION_INFO_PATTERN, line)) != null) { in parseTransitionDelayInfo()
79 match.group(TRANSITION_INFO)); in parseTransitionDelayInfo()
90 delayItem.setDateTime(String.format("%s %s", match.group(DATE), in parseTransitionDelayInfo()
91 match.group(TIME))); in parseTransitionDelayInfo()
134 Matcher match = null; in parseLatencyInfo() local
135 if ((match = matches(ACTION_LATENCY, line)) != null) { in parseLatencyInfo()
137 latencyItem.setActionId(Integer.parseInt(match.group("action"))); in parseLatencyInfo()
138 latencyItem.setDelay(Long.parseLong(match.group("delay"))); in parseLatencyInfo()
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_performance_test_utils.py119 match = re.search(self.PEER_REGEX, llstats_output)
120 if not match:
125 for match in match_iter:
126 current_mcs = self.MCS_ID(self.MODE_MAP[match.group('mode')],
127 int(match.group('num_streams')) + 1,
128 self.BW_MAP[match.group('bw')],
129 int(match.group('mcs')),
130 int(match.group('rate'), 16) / 1000)
132 txmpdu=int(match.group('txmpdu')),
133 rxmpdu=int(match.group('rxmpdu')),
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/
Dapollo_lib.py110 match = re.search(DEVICE_REGEX, line)
111 interface = match.group('interface')
115 commander_port = '/dev/' + match.group('port')
118 log_port = '/dev/' + match.group('port')
121 device_serial = match.group('device_serial')
338 match = re.match(regexp, res[0][0])
339 if match:
340 connlib41 = match.group('m2') + match.group('m1')
354 match = re.search(regexp, res[0][0])
355 if match:
[all …]
Db29_lib.py69 match = re.search(DEVICE_REGEX, line)
70 device_serial = match.group('device_serial')
72 commander_port = '/dev/' + match.group('port')
120 match = version_match.search(version_str)
121 version = match.groups()[0]
125 def _parse_output_of_running_process(self, subprocess, match, timeout=30): argument
136 success_match = re.compile(match)
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py190 match = _PACKAGE_RE.match(line)
191 if match:
192 package = match.group('package')
211 match = _CC_CLASS_RE.match(line)
212 if match:
228 match = _PACKAGE_RE.match(line)
229 if match:
230 return match.group('package')
249 if constants.JAVA_EXT_RE.match(test_path):
252 elif constants.CC_EXT_RE.match(test_path):
[all …]
Dtf_integration_finder.py193 match = _INT_NAME_RE.match(test_file)
194 if not match:
198 int_name = match.group('int_name')
262 match = _INT_NAME_RE.match(rel_config)
263 if not match:
267 int_name = match.group('int_name')
/tools/tradefederation/core/atest/test_finders/
Dtest_finder_utils.py183 match = _PACKAGE_RE.match(line)
184 if match:
185 package = match.group('package')
204 match = _CC_CLASS_RE.match(line)
205 if match:
221 match = _PACKAGE_RE.match(line)
222 if match:
223 return match.group('package')
242 if constants.JAVA_EXT_RE.match(test_path):
245 elif constants.CC_EXT_RE.match(test_path):
[all …]
Dtf_integration_finder.py189 match = _INT_NAME_RE.match(test_file)
190 if not match:
194 int_name = match.group('int_name')
257 match = _INT_NAME_RE.match(rel_config)
258 if not match:
262 int_name = match.group('int_name')
/tools/asuite/atest/tools/
Datest_tools.py104 match = constants.ACLOUD_REPORT_FILE_RE.match(acloud_args)
105 if match:
106 return match.group('report_file')
177 match = output_re.match(entry)
178 if match:
179 _dict.setdefault(match.group(key), set()).add(
180 match.group(value))
310 match = constants.QCLASS_OUTPUT_RE.match(entry)
311 if match:
312 fqcn = match.group('package') + '.' + match.group('class')
[all …]
/tools/acloud/create/
Davd_spec.py236 match = _RE_RES.match(value)
237 if match:
238 arg_hw_properties[_X_RES] = match.group("x_res")
239 arg_hw_properties[_Y_RES] = match.group("y_res")
244 match = _RE_MEMORY.match(value)
245 if match and match.group("gb_size"):
247 int(match.group("gb_size")) * 1024)
248 elif match and match.group("mb_size"):
249 arg_hw_properties[key] = match.group("mb_size")
254 if not _RE_INT.match(value):
[all …]
/tools/tradefederation/contrib/src/com/android/performance/tests/
DHermeticLaunchTest.java351 Matcher match = null; in analyzeLogCatData() local
385 if ((match = matches(LAUNCH_ENTRY, line)) != null) { in analyzeLogCatData()
387 if ((match = matches(pattern, line)) != null) { in analyzeLogCatData()
389 int displayTimeInMs = extractLaunchTime(match.group("launchtime")); in analyzeLogCatData()
552 Matcher match = null; in parseAtraceInfoFile() local
554 if ((match = matches(ATRACE_HEADER_ENTRIES, line)) != null) { in parseAtraceInfoFile()
555 int buffered = Integer.parseInt(match.group("buffered")); in parseAtraceInfoFile()
556 int written = Integer.parseInt(match.group("written")); in parseAtraceInfoFile()
563 } else if ((match = matches(TRACE_ENTRY1, line)) != null in parseAtraceInfoFile()
564 || (match = matches(TRACE_ENTRY2, line)) != null) { in parseAtraceInfoFile()
[all …]
/tools/acloud/list/
Dinstance.py176 match = _RE_TIMEZONE.match(start_time)
180 if match:
578 match = cls._INSTANCE_NAME_PATTERN.match(name)
581 if match and os.path.isfile(timestamp_path):
582 instance_id = int(match.group("id"))
694 zone_match = _RE_ZONE.match(zone_info)
725 match = re_pattern.match(line)
726 if match:
727 adb_port = int(match.group(_RE_GROUP_ADB))
728 vnc_port = int(match.group(_RE_GROUP_VNC))
/tools/tradefederation/core/atest/tools/
Datest_tools.py156 match = output_re.match(entry)
157 if match:
158 _dict.setdefault(match.group(key), set()).add(match.group(value))
284 match = constants.QCLASS_OUTPUT_RE.match(entry)
285 if match:
286 fqcn = match.group('package') + '.' + match.group('class')
287 _dict.setdefault(fqcn, set()).add(match.group('java_path'))
/tools/test/connectivity/acts/framework/acts/controllers/rohdeschwarz_lib/
Dcontest.py171 match = re.search('(?<={}).+(?=\\\\)'.format(prefix),
173 if match:
174 testplan_directory = match.group(0)
178 match = re.search('(?<=Exit code: )-?\d+', output)
179 if match:
180 exit_code = int(match.group(0))
270 match = re.search('(?<=Margin search completed, the lowest '
273 if match:
275 match.group(0))
/tools/acloud/setup/
Dsetup_common.py117 match = _INSTALLED_RE.match(line)
118 if match:
119 installed_ver = match.group("installed_ver").strip()
121 match = _CANDIDATE_RE.match(line)
122 if match:
123 candidate_ver = match.group("candidate_ver").strip()
/tools/tradefederation/core/atest/test_runners/
Drobolectric_test_runner.py165 if not reg.match(buf) or data == '':
173 match = EVENT_RE.match(event)
174 if match:
176 event_data = json.loads(match.group('json_data'),
181 match.group('json_data'))
183 event_name = match.group('event_name')
/tools/asuite/atest/test_runners/
Drobolectric_test_runner.py171 if not reg.match(buf) or data == '':
179 match = EVENT_RE.match(event)
180 if match:
182 event_data = json.loads(match.group('json_data'),
187 match.group('json_data'))
189 event_name = match.group('event_name')
/tools/acloud/reconnect/
Dreconnect.py93 match = re.search(_WEBRTC_PORTS_SEARCH, line)
94 if match:
115 match = _RE_DISPLAY.match(display)
116 if match:
117 utils.LaunchVncClient(vnc_port, match.group(1), match.group(2))
/tools/repohooks/rh/
Dhooks.py373 if check_re.match(line):
397 if check_re.match(line):
510 if check_re.match(line):
584 if check_re_field_misspells.match(line):
603 if (check_re_relnote.match(cur_line) and
610 not check_re_empty_string.match(next_line)):
634 if check_re_relnote.match(cur_line) and contains_quote:
694 if check_re.match(line):
/tools/test/connectivity/acts/framework/acts/controllers/utils_lib/commands/
Droute.py100 match = re.search('dev (?P<net_interface>.*)', line)
102 if match:
106 match.groupdict()['net_interface'])
109 match = re.search(
112 if match:
115 d = match.groupdict()
Dip.py60 match = re.search('inet (?P<address>[^\s]*) brd (?P<bcast>[^\s]*)',
62 if match:
63 d = match.groupdict()
68 match = re.search('inet (?P<address>[^\s]*)', line)
69 if match:
70 d = match.groupdict()
/tools/test/connectivity/acts/framework/acts/controllers/
Dadb.py159 if DEVICE_OFFLINE_REGEX.match(err):
165 if ret == 1 and (DEVICE_NOT_FOUND_REGEX.match(err)
166 or CANNOT_BIND_LISTENER_REGEX.match(err)):
286 match = re.search(ADB_VERSION_REGEX, version_output)
288 if not match:
292 return int(match.group(1))
/tools/test/connectivity/acts_tests/tests/google/coex/hotspot_tests/
DHotspotWiFiChannelTest.py216 match = re.search('freq=.*', out)
217 if match:
218 freq = match.group(0).split('=')[1]
236 match = re.search(r'[0-9.]+MHz', out)
237 if match:
238 bandwidth = match.group(0).strip('MHz')

12345