Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 295) sorted by relevance

12345678910>>...12

/tools/external_updater/
Dgit_utils.py25 def _run(cmd: List[str], cwd: Path) -> str: argument
30 def fetch(proj_path: Path, remote_names: List[str]) -> None: argument
40 def add_remote(proj_path: Path, name: str, url: str) -> None: argument
51 def remove_remote(proj_path: Path, name: str) -> None: argument
56 def list_remotes(proj_path: Path) -> Dict[str, str]:
65 def parse_remote(line: str) -> Tuple[str, str]: argument
74 def get_sha_for_branch(proj_path: Path, branch: str): argument
79 def get_commits_ahead(proj_path: Path, branch: str, argument
80 base_branch: str) -> List[str]: argument
90 def get_commit_time(proj_path: Path, commit: str) -> datetime.datetime: argument
[all …]
Dgithub_archive_updater.py30 GITHUB_URL_PATTERN: str = (r'^https:\/\/github.com\/([-\w]+)\/([-\w]+)\/' +
35 def _edit_distance(str1: str, str2: str) -> int: argument
48 def choose_best_url(urls: List[str], previous_url: str) -> str: argument
75 VERSION_FIELD: str = 'tag_name'
76 owner: str
77 repo: str
91 def _fetch_latest_release(self) -> Optional[Tuple[str, List[str]]]:
107 def _fetch_latest_tag(self) -> Tuple[str, List[str]]:
109 tags: List[str] = []
Dexternal_updater.py64 def color_string(string: str, color: Color) -> str: argument
126 update_lib=False) -> Union[Updater, str]:
162 return str(err)
165 def _check_path(args: argparse.Namespace, paths: Iterator[str], argument
166 delay: int) -> Dict[str, Dict[str, str]]:
171 if isinstance(updater, str):
177 results[str(relative_path)] = res
182 def _list_all_metadata() -> Iterator[str]:
/tools/acloud/create/
Dcreate_args.py49 type=str,
56 type=str,
95 type=str,
120 type=str,
126 type=str,
131 type=str,
136 type=str,
142 type=str,
148 type=str,
154 type=str,
[all …]
/tools/acloud/internal/lib/
Dcheeps_compute_client_test.py91 'cvd_01_dpi': str(self.DPI),
92 'cvd_01_x_res': str(self.X_RES),
93 'cvd_01_y_res': str(self.Y_RES),
95 str(self.X_RES),
96 str(self.Y_RES),
97 str(self.DPI)),
104 avd_spec.hw_property = {constants.HW_X_RES: str(self.X_RES),
105 constants.HW_Y_RES: str(self.Y_RES),
106 constants.HW_ALIAS_DPI: str(self.DPI)}
139 'cvd_01_dpi': str(self.DPI),
[all …]
Dcvd_compute_client_test.py101 "cvd_01_dpi": str(self.DPI),
108 "cvd_01_x_res": str(self.X_RES),
109 "cvd_01_y_res": str(self.Y_RES),
113 "cvd_01_blank_data_disk_size": str(self.EXTRA_DATA_DISK_SIZE_GB * 1024),
116 "cvd_01_dpi": str(self.DPI),
117 "cvd_01_x_res": str(self.X_RES),
118 "cvd_01_y_res": str(self.Y_RES),
122 "cvd_01_blank_data_disk_size": str(self.EXTRA_DATA_DISK_SIZE_GB * 1024),
160 fake_avd_spec.hw_property[constants.HW_X_RES] = str(self.X_RES)
161 fake_avd_spec.hw_property[constants.HW_Y_RES] = str(self.Y_RES)
[all …]
/tools/acloud/public/
Dacloud_common.py29 type=str,
33 type=str,
39 type=str,
44 type=str,
51 type=str,
70 type=str,
75 type=str,
79 type=str,
85 type=str,
/tools/treble/split/
Dmanifest_diff.py60 ret_str += textwrap.indent(str(self.attributes), _INDENT)
63 ret_str += textwrap.indent(str(self.linkfiles), _INDENT)
66 ret_str += textwrap.indent(str(self.copyfiles), _INDENT)
89 ret_str += (textwrap.indent(str(self.projects) + '\n', _INDENT)
92 ret_str += (textwrap.indent(str(self.remotes) + '\n', _INDENT)
95 ret_str += (textwrap.indent(str(self.other) + '\n', _INDENT)
101 def subelement_file_changes(tag: str, p1: Element, p2: Element) -> ChangeMap: argument
122 ignored_attrs: Set[str]) -> ProjectChanges: argument
140 ignored_attrs: Set[str]) -> ChangeMap: argument
169 ignored_attrs: Set[str]) -> ChangeMap: argument
[all …]
Dmanifest_split.py108 pattern: Pattern[str]
109 sub: str
125 remove_projects: Dict[str, str]
126 add_projects: Dict[str, str]
130 def from_config_files(cls, config_files: List[str]): argument
139 remove_projects: Dict[str, str] = {}
140 add_projects: Dict[str, str] = {}
447 kati_makefiles: List[str] = dataclasses.field(default_factory=list)
448 manual_add_config: str = ""
449 manual_remove_config: str = ""
[all …]
/tools/repohooks/tools/
Dandroid_test_mapping_format.py67 def _filter_comments(json_data: str) -> str: argument
80 def _validate_import(entry: Dict[str, Any], test_mapping_file: str): argument
100 def _validate_test(test: Dict[str, Any], test_mapping_file: str) -> bool: argument
125 any(not isinstance(t, str) for t in value)):
144 def process_file(test_mapping_file: str): argument
171 parser.add_argument('--commit', type=str,
/tools/repohooks/rh/
Dutils_unittest.py81 self.assertNotEqual('', str(result))
83 self.assertNotEqual('', str(result))
115 self.assertIn('mycmd', str(err))
118 self.assertIn('mycmd', str(err))
168 self.assertIn('false', str(ret))
172 self.assertIn('true', str(ret))
180 self.assertIn('false', str(err))
184 self.assertIn('true', str(ret))
193 self.assertIn('false', str(err))
201 self.assertIn('a/b/c/d', str(err))
[all …]
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/
Dui_utils.py22 return '[{start}][{end}]'.format(start=str(self.start), end=str(self.end))
241 args = 'input tap %s %s' % (str(x), str(y))
245 (str(x), str(y), str(x), str(y), str(duration_ms))
/tools/test/connectivity/acts_tests/tests/google/ble/api/
DBleAdvertiseApiTest.py496 + str(exp_is_connectable))
528 str(exp_service_uuids))
559 str(exp_service_uuids))
593 str(exp_service_uuids))
622 str(exp_service_uuids))
1045 self.log.debug(str(error))
1063 self.log.debug(str(error))
1082 self.log.debug(str(error))
1102 self.log.debug(str(error))
1123 self.log.debug(str(error))
[all …]
/tools/security/gdb/gdb_json_printer/gdb_json_printer/
Dprinters.py64 'ctype': str(self.value.type),
126 return address_str + "_" + str(self.value.type.strip_typedefs())
141 gdb.TYPE_CODE_ENUM: {'type': 'enum', 'value_func': lambda value: str(int(value))},
142 gdb.TYPE_CODE_INT: {'type': 'int', 'value_func': lambda value: str(int(value))},
143 gdb.TYPE_CODE_FLT: {'type': 'float', 'value_func': lambda value: str(float(value))},
163 'ctype': str(self.value.type),
185 'ctype': str(self.value.type),
281 'ctype': str(self.value.type),
287 if self.void_ptr_re.match(str(self.value.type.strip_typedefs())) is not None:
343 'element_type': str(self.value.type.target()),
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiRvrTwTest.py161 self.log.info("Set dB to "+str(dB))
162 InputdB=str('V')+str(dB)+str(';')
192 self.log.info("Current dB = "+str(self.getdB(port)))
193 self.log.info("Fail to set Attenuator to "+str(dB)+", "
194 +str(retry)+" times try to reset")
229 self.log.info("Set angle to "+str(DG))
230 InputDG=str('DG')+str(DG)+str(';')
244 self.log.info('Current angle = '+str(self.getDG(port)))
245 self.log.info('Fail set angle to '+str(DG)+', '+str(retry)+' times try to reset')
249 self.log.info('Retry turntable fail for '+str(retry)+' cycles, end test!')
[all …]
DWifiCountrySoftApAcsTest.py319 asserts.assert_false(failures, str(failures))
326 asserts.assert_false(failures, str(failures))
333 asserts.assert_false(failures, str(failures))
340 asserts.assert_false(failures, str(failures))
347 asserts.assert_false(failures, str(failures))
354 asserts.assert_false(failures, str(failures))
361 asserts.assert_false(failures, str(failures))
368 asserts.assert_false(failures, str(failures))
375 asserts.assert_false(failures, str(failures))
/tools/test/connectivity/acts_tests/tests/google/ble/bt5/
DBt5ScanTest.py113 self.log.info("LE 2M: " + str(sup2M) + ", LE Coded: " + str(
114 supCoded) + ", LE Extended Advertising: " + str(
115 supExt) + ", LE Periodic Advertising: " + str(supPeriodic) +
116 ", maximum advertising data length: " + str(maxDataLen))
124 self.log.info("LE 2M: " + str(sup2M) + ", LE Coded: " + str(
125 supCoded) + ", LE Extended Advertising: " + str(
126 supExt) + ", LE Periodic Advertising: " + str(supPeriodic) +
127 ", maximum advertising data length: " + str(maxDataLen))
412 str(address))
459 self.log.info("data: " + str(evt['data']))
[all …]
/tools/test/connectivity/acts/framework/acts/bin/
Dact.py23 from builtins import str
130 type=str,
146 type=str,
151 type=str,
158 type=str,
166 type=str,
173 type=str,
/tools/test/connectivity/acts/framework/acts/controllers/pdu_lib/digital_loggers/
Dwebpowerswitch.py71 self.power_switch.command_on_outlets('on', str(outlet))
80 self.power_switch.command_on_outlets('off', str(outlet))
89 self.power_switch.command_on_outlets('cycle', str(outlet))
101 return {str(outlet): state == 'ON' for outlet, _, state in status_list}
124 actual_state = self.power_switch.status(str(outlet))
/tools/external/fat32lib/src/main/java/de/waldheinz/fs/fat/
DDummy83BufferGenerator.java89 public static String stripLeadingPeriods(String str) { in stripLeadingPeriods() argument
90 final StringBuilder sb = new StringBuilder(str.length()); in stripLeadingPeriods()
92 for (int i=0; i < str.length(); i++) { in stripLeadingPeriods()
93 if (str.charAt(i) != '.') { //NOI18N in stripLeadingPeriods()
94 sb.append(str.substring(i)); in stripLeadingPeriods()
DShortName.java198 private static void checkString(String str, String strType, in checkString() argument
201 if (str == null) in checkString()
204 if (str.length() < minLength) in checkString()
207 " characters: " + str); in checkString()
208 if (str.length() > maxLength) in checkString()
211 " characters: " + str); in checkString()
/tools/test/connectivity/acts/framework/acts/
Dutils.py1073 'attempted %d times.' % (str(func), timeout_s, count))
1378 return str(uc_string).encode('ASCII')
1428 ipv4_address = '.'.join(map(str, ipv4_address))
1441 (item['name'], str(ipaddress.ip_address(ipv6_address))))
1453 if str(on_device_ip) in ifconfig_output:
1454 ipv4_private_local_addresses.append(str(on_device_ip))
1463 if str(on_device_ip) in ifconfig_output:
1464 ipv4_public_addresses.append(str(on_device_ip))
1467 if str(on_device_ip) in ifconfig_output:
1468 ipv6_link_local_addresses.append(str(on_device_ip))
[all …]
/tools/test/connectivity/acts_tests/tests/google/bt/
Drelay_tool.py113 print('%s%s: \n%s\n' % (func_name, str(signature), docstring),
119 parser.add_argument('-c', '--config', type=str, required=True,
121 parser.add_argument('-tb', '--testbed', type=str, required=True,
123 parser.add_argument('-rd', '--relay_device', type=str, required=True,
126 group.add_argument('-cmd', '--command', type=str, nargs='+',
/tools/test/connectivity/acts/framework/acts/controllers/
Dtigertail.py50 return str(self.value)
74 elif isinstance(tigertool_path, str):
107 str(self.serial_number),
109 str(state)],
/tools/test/connectivity/acts_tests/tests/google/ble/system_tests/
DBleStressTest.py173 str(advertise_callback), "onSuccess"])
182 str(error)]))
187 str(error)
226 str(advertise_callback), "onSuccess"])
235 str(error)]))
240 str(error)
256 str(error)]))
261 str(error)

12345678910>>...12