Home
last modified time | relevance | path

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

123

/tools/repohooks/tools/
Dcpplint.py659 return _regexp_compile_cache[pattern].match(s)
1458 if _RE_PATTERN_INCLUDE.match(elided):
1472 match = Match(r'^([^\'"]*)([\'"])(.*)$', elided)
1473 if not match:
1476 head, quote, tail = match.groups()
1946 match = Match(r'#endif\s*//\s*' + cppvar + r'(_)?\b', endif)
1947 if match:
1948 if match.group(1) == '_':
1965 match = Match(r'#endif\s*/\*\s*' + cppvar + r'(_)?\s*\*/', endif)
1966 if match:
[all …]
/tools/loganalysis/src/com/android/loganalysis/parser/
DDmesgParser.java174 Matcher match = null; in parseServiceInfo() local
175 if ((match = matches(START_SERVICE, line)) != null) { in parseServiceInfo()
177 serviceItem.setServiceName(match.group(SERVICENAME)); in parseServiceInfo()
179 match.group(TIMESTAMP)) * 1000)); in parseServiceInfo()
180 getServiceInfoItems().put(match.group(SERVICENAME), serviceItem); in parseServiceInfo()
182 } else if ((match = matches(EXIT_SERVICE, line)) != null) { in parseServiceInfo()
183 if (getServiceInfoItems().containsKey(match.group(SERVICENAME))) { in parseServiceInfo()
185 match.group(SERVICENAME)); in parseServiceInfo()
187 match.group(TIMESTAMP)) * 1000)); in parseServiceInfo()
205 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/acloud/list/
Dinstance.py74 match = _RE_TIMEZONE.match(start_time)
78 if match:
212 match = _RE_LAUNCH_CVD.match(line)
213 if match:
215 x_res = match.group("x_res")
216 y_res = match.group("y_res")
217 dpi = match.group("dpi")
218 date_str = match.group("date_str").strip()
344 match = re_pattern.match(line)
345 if match:
[all …]
/tools/test/connectivity/acts/framework/acts/libs/metrics/
Dcpu_metric.py26 match = CPU_INFO_REGEX.match(cpu_info_line)
27 if match:
29 'total': float(match.group('total')) / 100.0,
30 'user': float(match.group('user')) / 100.0,
31 'kernel': float(match.group('kernel')) / 100.0,
32 'io': float(match.group('iowait')) / 100.0,
33 'irq': float(match.group('irq')) / 100.0,
34 'softirg': float(match.group('softirq')) / 100.0,
/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/test/connectivity/acts/framework/acts/test_utils/wifi/
Dwifi_performance_test_utils.py325 match = re.search(LOSS_REGEX, line)
326 self.packet_loss_percentage = float(match.group('loss'))
328 match = re.search(RTT_REGEX, line)
331 float(match.group('timestamp')),
332 float(match.group('rtt'))))
488 match = re.search('bssid=.*', status_output)
489 if match:
490 bssid = match.group(0).split('=')[1]
495 match = re.search('FREQUENCY=.*', signal_poll_output)
496 if match:
[all …]
/tools/acloud/create/
Davd_spec.py201 match = _RE_RES.match(value)
202 if match:
203 arg_hw_properties[_X_RES] = match.group("x_res")
204 arg_hw_properties[_Y_RES] = match.group("y_res")
209 match = _RE_GBSIZE.match(value)
210 if match:
212 int(match.group("gb_size")) * 1024)
217 if not _RE_INT.match(value):
284 if re.match(r"(.*_)?%s" % flavor, flavor_string):
409 if re.match(r"(.*_)?%s_" % avd_type_abbr,
[all …]
/tools/tradefederation/core/atest/test_finders/
Dtest_finder_utils.py166 match = _PACKAGE_RE.match(line)
167 if match:
168 package = match.group('package')
187 match = _CC_CLASS_RE.match(line)
188 if match:
204 match = _PACKAGE_RE.match(line)
205 if match:
206 return match.group('package')
490 if _APK_RE.match(value):
613 match = _VTS_BINARY_SRC_DELIM_RE.match(value)
[all …]
Dtf_integration_finder.py182 match = _INT_NAME_RE.match(test_file)
183 if not match:
187 int_name = match.group('int_name')
243 match = _INT_NAME_RE.match(rel_config)
244 if not match:
248 int_name = match.group('int_name')
Dsuite_plan_finder.py79 match = _SUITE_PLAN_NAME_RE.match(path)
80 if not match:
83 suite = match.group('suite')
84 suite_plan_name = match.group('suite_plan_name')
/tools/acloud/setup/
Dsetup_common.py115 match = _INSTALLED_RE.match(line)
116 if match:
117 installed_ver = match.group("installed_ver").strip()
119 match = _CANDIDATE_RE.match(line)
120 if match:
121 candidate_ver = match.group("candidate_ver").strip()
Dgcp_setup_runner.py343 project_match = _PROJECT_RE.match(line)
349 zone_match = _ZONE_RE.match(line)
499 match = _BUCKET_RE.match(output_line)
500 if match.group("bucket") == bucket_name:
521 region_match = _BUCKET_REGION_RE.match(region_line.strip())
/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/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/tradefederation/core/atest/test_runners/
Drobolectric_test_runner.py163 if not reg.match(buf) or data == '':
171 match = EVENT_RE.match(event)
172 if match:
174 event_data = json.loads(match.group('json_data'),
179 match.group('json_data'))
181 event_name = match.group('event_name')
Datest_tf_test_runner.py221 match = EVENT_RE.match(buf)
222 if match:
224 event_data = json.loads(match.group('json_data'))
228 event_name = match.group('event_name')
229 buf = buf[match.end():]
/tools/acloud/reconnect/
Dreconnect.py55 match = _RE_DISPLAY.match(display)
56 if match:
57 utils.LaunchVncClient(vnc_port, match.group(1), match.group(2))
/tools/test/connectivity/acts/framework/acts/controllers/
Dadb.py171 if DEVICE_OFFLINE_REGEX.match(err):
177 if ret == 1 and (DEVICE_NOT_FOUND_REGEX.match(err) or
178 CANNOT_BIND_LISTENER_REGEX.match(err)):
292 match = re.search(ADB_VERSION_REGEX,
295 if not match:
299 return int(match.group(1))
/tools/external_updater/
Dupdater_utils.py69 match = VERSION_RE.match(version)
70 if match is None:
73 return match.group('prefix', 'version', 'suffix')
/tools/acloud/internal/lib/
Dadb_tools.py90 match = re.match(r"%s\s(?P<adb_status>.+)" % self._device_serial, device)
91 if match:
92 return match.group("adb_status")
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceManager.java344 Matcher match = BUGREPORTZ_RESPONSE_PATTERN.matcher(output); in getBugreportzWithSsh() local
345 if (!match.find()) { in getBugreportzWithSsh()
349 String remoteFilePath = match.group(2); in getBugreportzWithSsh()
377 Matcher match = BUGREPORTZ_RESPONSE_PATTERN.matcher(output); in getNestedDeviceSshBugreportz() local
378 if (match.find()) { in getNestedDeviceSshBugreportz()
382 Matcher match = BUGREPORTZ_RESPONSE_PATTERN.matcher(output); in getNestedDeviceSshBugreportz() local
383 if (!match.find()) { in getNestedDeviceSshBugreportz()
387 String deviceFilePath = match.group(2); in getNestedDeviceSshBugreportz()
/tools/acloud/delete/
Ddelete.py61 match = _RE_LAUNCH_CVD.match(process)
62 if match:
63 launch_cvd_path = match.group("launch_cvd")

123