/tools/netsim/rust/cli/src/ |
D | display.rs | 49 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 54 write!(f, "{:indent$}{}", "", Displayer::new(device, self.verbose))?; in fmt() 57 writeln!(f)?; in fmt() 66 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 71 f, in fmt() 79 write!(f, "{:indent$}{}", "", Displayer::new(chip, self.verbose).indent(self.indent))?; in fmt() 87 fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { in fmt() 97 writeln!(f)?; in fmt() 99 f, in fmt() 108 writeln!(f)?; in fmt() [all …]
|
/tools/asuite/atest/integration_tests/ |
D | bazel_mode_test.py | 65 f'atest -c -m --bazel-mode {module_name}' 75 f'atest -c -m --bazel-mode {module_name}' 85 f'atest -c -m --bazel-mode {module_name} && ' 86 f'atest --bazel-mode {module_name}' 90 f':{module_name}_host (cached) PASSED', completed_process 98 self.run_shell_command(f'atest -c -m --bazel-mode {module_name}') 104 f'atest --bazel-mode {module_name}' 107 self.assert_in_stdout(f':{module_name}_host FAILED', completed_process) 116 f'atest -c -m --host --bazel-mode {module_name} ' 117 f'{unsupported_module_name}' [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/utils/ |
D | CachedFileContentsTest.java | 37 File f = mTemporaryFolder.newFile("test"); in createFileAndCheckWithNoChanges() local 38 Files.write("abc", f, Charsets.US_ASCII); in createFileAndCheckWithNoChanges() 42 CachedFileContents<Object> cachedFile = new CachedFileContents<>(f); in createFileAndCheckWithNoChanges() 51 File f = mTemporaryFolder.newFile("test"); in createFileAndCheckChanges() local 52 Files.write("abc", f, Charsets.US_ASCII); in createFileAndCheckChanges() 56 CachedFileContents<Object> cachedFile = new CachedFileContents<>(f); in createFileAndCheckChanges() 59 Files.write("def", f, Charsets.US_ASCII); in createFileAndCheckChanges() 67 File f = mTemporaryFolder.newFile("test"); in createFileUpdateAndCheckChanges() local 68 Files.write("abc", f, Charsets.US_ASCII); in createFileUpdateAndCheckChanges() 72 CachedFileContents<Object> cachedFile = new CachedFileContents<>(f); in createFileUpdateAndCheckChanges() [all …]
|
/tools/repohooks/tools/ |
D | android_test_mapping_format.py | 92 f'{_INVALID_IMPORT_CONFIG} {test_mapping_file}. Each import can ' 93 f'only have one `path` setting. Failed entry: {entry}') 96 f'{_INVALID_IMPORT_CONFIG} {test_mapping_file}. Import can ' 97 f'only have one `path` setting. Failed entry: {entry}') 113 f'{_INVALID_TEST_CONFIG} {test_mapping_file}. Test config must ' 114 f'have a `name` setting. Failed test config: {test}') 118 f'{_INVALID_TEST_CONFIG} {test_mapping_file}. `host` setting in ' 119 f'test config can only have boolean value of `true` or `false`. ' 120 f'Failed test config: {test}') 127 f'{_INVALID_TEST_CONFIG} {test_mapping_file}. `{key}` setting ' [all …]
|
/tools/test/connectivity/acts_tests/tests/google/gnss/ |
D | GnssHsSenTest.py | 58 self.log.info(f'Successfully set the GNSS power level to {pwr_lvl}') 72 self.log.info(f'Start fine GNSS power level sweep part {i + 1}') 78 self.log.info(f'The sensitivity level is: {sensitivity}') 90 self.eecoex_func = f'CELLR,2,850,190,1,{self.cell_tx_ant},{self.cell_pwr}' 92 msg = f'Running GSM850 with {self.cell_tx_ant} antenna \ 102 self.eecoex_func = f'CELLR,2,900,20,1,{self.cell_tx_ant},{self.cell_pwr}' 104 msg = f'Running GSM900 with {self.cell_tx_ant} \ 114 self.eecoex_func = f'CELLR,2,1800,699,1,{self.cell_tx_ant},{self.cell_pwr}' 116 msg = f'Running GSM1800 {self.cell_tx_ant} antenna and GNSS coexistence sensitivity search.' 124 self.eecoex_func = f'CELLR,2,1900,661,1,{self.cell_tx_ant},{self.cell_pwr}' [all …]
|
/tools/treble/hacksaw/workspace/ |
D | copier.go | 30 var f FileCopier 31 return &f 34 func (f FileCopier) GetIsGitProjectFunc(codebaseDir string, gitProjects []string) func(string) (boo… 54 func (f FileCopier) GetContainsGitProjectFunc(codebaseDir string, gitProjects []string) func(string… 77 func (f FileCopier) Copy(codebaseDir string, gitProjects []string, workspaceDir string) error { 78 isGitProject := f.GetIsGitProjectFunc(codebaseDir, gitProjects) 79 containsGitProject := f.GetContainsGitProjectFunc(codebaseDir, gitProjects) 89 return f.CopyNode(info, codebaseDir, path, workspaceDir) 116 destPath, err := f.GetDestPath(codebaseDir, path, workspaceDir) 120 if err = f.CopyDirRecursive(info, path, destPath); err != nil { [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/spirent_lib/ |
D | gss7000.py | 233 infmsg = f'Started running scenario {scenario}' 261 errmsg = (f'"power_offset" must be within [-49, 15], ' 262 f'current input is {power_offset}') 265 cmd = f'-,POW_LEV,V1_A{ant},{power_offset},GPS,0,0,1,1,1,1,0' 268 infmsg = f'Set veichel 1 antenna {ant} power offset: {power_offset}' 282 errmsg = (f'"power_offset" must be within [-170, -115], ' 283 f'current input is {ref_dBm}') 285 cmd = f'REF_DBM,{ref_dBm:.1f}' 287 infmsg = f'Set reference power level: {ref_dBm:.1f}' 325 errmsg = (f'"power_level" must be within [-170, -115], ' [all …]
|
/tools/acloud/setup/ |
D | mkcert.py | 34 _CA_KEY_PATH = os.path.join(_CERT_DIR, f"{_CA_NAME}.key") 35 _CA_CRT_PATH = os.path.join(_CERT_DIR, f"{_CA_NAME}.pem") 43 f"{_CA_NAME}.crt") 44 _CERT_CRT_EXT = ";".join(f"echo \"{ext}\"" for ext in [ 50 _CA_CMD = (f"openssl req -new -x509 -days 9999 -newkey rsa:2048 " 51 f"-sha256 -nodes -keyout \"{_CA_KEY_PATH}\" " 52 f"-out \"{_CA_CRT_PATH}\" -extensions v3_ca " 53 f"-subj \"{_CA_SUBJ}\" -addext \"{_CA_EXT}\"") 56 _TRUST_CA_COPY_CMD = f"sudo cp -p {_CA_CRT_PATH} {_TRUST_CA_PATH}" 60 f"-n \"{_CA_NAME}\" -i \"{_TRUST_CA_PATH}\"") [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/ |
D | ssh.py | 50 return f'status {self.exit_status}, stdout: "{self.stdout}", stderr: "{self.stderr}"' 74 f'SSH command "{command}" unexpectedly returned {result}') 83 f'SSH command "{err.cmd}" timed out after {err.timeout}s, ' 84 f'stdout="{err.stdout}", stderr="{err.stderr}"') 141 f'ConnectTimeout={self.connect_timeout}', 143 f'ServerAliveInterval={self.server_alive_interval}', 145 f'StrictHostKeyChecking={"yes" if self.strict_host_key_checking else "no"}', 147 f'UserKnownHostsFile={self.user_known_hosts_file}', 149 f'LogLevel={self.log_level}', 151 f'{self.user}@{self.host_name}' [all …]
|
D | package_server.py | 80 resp = subprocess.run(f"ip -json route get {dest_ip}".split(), 108 f"Expected only one route to {device_ip}, got {routes}") 112 raise PackageServerError(f'Route does not contain "prefsrc": {route}') 153 with open(f'{self._packages_path}/repository/timestamp.json', 154 'r') as f: 155 data = json.load(f) 160 f'{self._packages_path}/repository/timestamp.json has expired on {expiresAtRaw}' 174 pm_command = f'{self._binary_path} serve -c 2 -repo {self._packages_path} -l :{self._port}' 180 self._log_path = os.path.join(root_dir, f'pm_server.{time_stamp}.log') 193 with open(self._log_path, 'r') as f: [all …]
|
D | utils_lib.py | 78 product_build = f'{product_build}_{fuchsia_device.build_type}' 83 sdk_version = f'f{f_branch}_sdk' 85 f'{FUCHSIA_RELEASE_TESTING_URL}/' 86 f'{sdk_version}-{product_build}.{fuchsia_device.board_type}-release.tgz' 91 f'{FUCHSIA_SDK_URL}/{fuchsia_device.build_number}/images/' 92 f'{product_build}.{fuchsia_device.board_type}-release.tgz') 101 f'Invalid specific_image "{fuchsia_device.specific_image}"') 107 …f'Flashing {fuchsia_device.mdns_name} with {image_path} using authorized keys "{fuchsia_device.aut… 114 logging.info(f'Downloading {file_to_download} to {image_path}') 115 job.run(f'gsutil cp {file_to_download} {image_path}') [all …]
|
/tools/acloud/internal/lib/ |
D | cvd_utils.py | 196 remote_cmd = f"/usr/bin/install_zip.sh {remote_image_dir} < {image_zip}" 225 cmd = (f"tar -cf - --lzop -S -C {image_dir} {' '.join(artifact_files)} | " 226 f"{ssh_obj.GetBaseCmd(constants.SSH_BIN)} -- " 227 f"tar -xf - --lzop -S -C {remote_image_dir}") 241 cmd = (f"tar -cf - --lzop -S -C {cvd_host_package} . | " 242 f"{ssh_obj.GetBaseCmd(constants.SSH_BIN)} -- " 243 f"tar -xf - --lzop -S -C {remote_image_dir}") 247 remote_cmd = f"tar -xzf - -C {remote_image_dir} < {cvd_host_package}" 386 f"{kernel_search_path}, {vendor_boot_search_path} is not a boot " 414 f"{search_path} is not a system_dlkm image or a directory containing " [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | access_point.py | 215 lambda msg: f'[Access Point|{self.ssh_settings.hostname}] {msg}') 281 WLAN_DOWN = f'ip link set {iface} down' 287 BRIDGE_DOWN = f'ip link set {iface} down' 288 BRIDGE_DEL = f'brctl delbr {iface}' 345 cmd = f"ip link show {interface}|grep ether|awk -F' ' '{{print $2}}'" 355 f'channel {hostapd_config.channel}') 388 ipaddress.ip_network(f'{a}.{b}.{int(c) + counter}.{d}')) 397 f'{subnet.router}/{subnet.network.netmask}') 411 f'{self._dhcp_bss[k].router}/{self._dhcp_bss[k].network.netmask}' 520 f'iptables -t nat -A POSTROUTING -o {self.wan} -j MASQUERADE') [all …]
|
/tools/treble/cuttlefish/ |
D | build_chd_utils.py | 43 for f in glob.glob(os.path.join(output_dir, 'bin', '*')): 44 os.chmod(f, 0o777) 61 raise ValueError(f'{copy_file_pair} is not a <src>:<dst> pair.') 64 raise ValueError(f'{copy_file_pair} has more than one matched src files: ' 65 f'{" ".join(src_list)}.') 85 print(f'Copying {src} to {dst}') 100 for f in cil_files: 101 zf.extract(f, output_dir) 118 print(f'cannot get platform sepolicy version from {target_files_zip}') 158 print(f'Merging sepolicy files from {framework_target_files_zip} and ' [all …]
|
/tools/test/connectivity/acts/framework/acts/controllers/amarisoft_lib/ |
D | config_utils.py | 24 TEMPLATE_PATH_ENB = f'{TEMPLATE_PATH}/enb/' 25 TEMPLATE_PATH_MME = f'{TEMPLATE_PATH}/mme/' 117 string_to = f'#define PLMN \"{plmn}\"' 118 self.remote.run_cmd(f'sed -i \'s/\\r//g\' {cfg_path}') 120 f'sed -i \':a;N;$!ba;s/{string_from}/{string_to}/g\' {cfg_path}') 137 string_to = f'#define PLMN \"{plmn}\"' 138 self.remote.run_cmd(f'sed -i \'s/\\r//g\' {cfg_path}') 140 f'sed -i \':a;N;$!ba;s/{string_from}/{string_to}/g\' {cfg_path}') 157 string_to = f'#define FDD_CELL_earfcn {arfcn}' 158 self.remote.run_cmd(f'sed -i \'s/\\r//g\' {cfg_path}') [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/fuchsia/ |
D | utils.py | 50 curl_cmd += f' --limit-rate {limit_rate}' 52 curl_cmd += f' --retry {retry}' 54 curl_cmd += f' {additional_args}' 55 curl_cmd += f' --url {url} > {file_path}' 57 fd.log.info(f'Download {url} to {file_path} by ssh command {curl_cmd}') 61 fd.log.info(f'{url} is downloaded to {file_path} successfully') 64 fd.log.warning(f'Fail to download {url}') 67 fd.log.warning(f'Command "{curl_cmd}" failed with error {e}') 70 fd.log.error(f'Download {url} failed with unexpected exception {e}') 74 fd.log.info(f'Remove the downloaded file {file_path}') [all …]
|
/tools/asuite/atest/ |
D | bazel_mode.py | 77 f'--runs_per_test={str(arg_value)}' 81 f'--flaky_test_attempts={str(arg_value)}' 341 with open(self._md5_checksum_file, 'wb') as f: 342 f.write(self._file_checksum_list.SerializeToString()) 349 with open(self._md5_checksum_file, 'rb') as f: 353 file_md5_list.ParseFromString(f.read()) 425 sorted(f.name for f in self.enabled_features if f.affects_workspace) 536 name = f'{info[constants.MODULE_INFO_ID]}_{name_suffix}' 550 name = f'{info[constants.MODULE_INFO_ID]}_host' 565 name = f'{info[constants.MODULE_INFO_ID]}_host' [all …]
|
/tools/external_updater/ |
D | notifier.py | 70 with open(owner_file, 'r', encoding='utf-8') as f: 71 return f.read().strip() 75 print(f'Sending email for {proj}: {latest_ver}') 80 msg = f'An upgrade change is generated at:\n{match.group(1)}' 85 subject += f" {proj} {latest_ver}" 102 f'--to={recipient}', 103 f'--cc={cc_recipient}', 104 f'--subject={subject}'], 153 msg = f"""Failed to send email for {proj} ({latest_ver}). 165 with open(RESULT_FILE_PATH, 'r', encoding='utf-8') as f: [all …]
|
/tools/repohooks/ |
D | pre-upload.py | 107 f'[{self.COMMIT} ' 108 f'{self.commit_index}/{self.num_commits} ' 109 f'{commit[0:12]}] {commit_summary}' 123 f'[{self.RUNNING} ' 124 f'{self.num_hooks - len(self.hooks)}/{self.num_hooks}] ' 125 f'{pending}' 139 f'This hook took {d} to finish which is fairly slow for ' 154 self.error(f'{hook.name} hook', error) 163 status_line = f'[{self.WARNING}] {hook.name}' 174 status_line = f'[{self.FAILED}] {header}' [all …]
|
/tools/security/remote_provisioning/hwtrust/src/dice/ |
D | entry.rs | 88 fn fmt(&self, f: &mut Formatter) -> Result<(), fmt::Error> { in fmt() 89 writeln!(f, "Issuer: {}", self.issuer)?; in fmt() 90 writeln!(f, "Subject: {}", self.subject)?; in fmt() 91 writeln!(f, "Mode: {:?}", self.mode)?; in fmt() 93 writeln!(f, "Code Desc: {}", hex::encode(code_desc))?; in fmt() 95 writeln!(f, "Code Hash: {}", hex::encode(&self.code_hash))?; in fmt() 97 writeln!(f, "Config Hash: {}", hex::encode(config_hash))?; in fmt() 100 writeln!(f, "Authority Desc: {}", hex::encode(authority_desc))?; in fmt() 102 writeln!(f, "Authority Hash: {}", hex::encode(&self.authority_hash))?; in fmt() 103 writeln!(f, "Config Desc {{")?; in fmt() [all …]
|
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/gnss/ |
D | GnssBlankingBase.py | 70 dut.log.debug(f'The range list is: {range_ls}') 87 f'{no_iteration} iterations of TTFF {ttff_mode} tests finished.') 88 dut.log.info(f'{ttff_mode} PASS criteria is {pe_criteria} meters') 89 dut.log.debug(f'{ttff_mode} TTFF data: {ttff_data}') 99 f'One or more TTFF {ttff_mode} are over test criteria {pe_criteria} meters' 104 f'All TTFF {ttff_mode} are within test criteria {pe_criteria} meters.' 205 self.log.debug(f'set_all_ls: {set_all_ls}') 206 self.log.debug(f'swp_result_ls: {swp_result_ls}') 216 self.log.info(f'Sweep: {value}') 221 self.log.info(f'Sweep: {value}') [all …]
|
D | gnssstatus_utils.py | 85 key = f'{gnss_status.constellation}_{gnss_status.frequency_band}' 124 raise RegexParseException(f'Gnss raw msg parse fail:\n{gnssstatus_raw}\n' 125 f'Please check it manually.') 147 f'Gnsstatus validate failed:\n{self.raw_message}\n{failure_info}' 154 f'Satellite identify fail: {self.constellation}') 159 fail_details = f'{self.constellation} ID {self.svid} not in SV Range' 165 self.failures.append(f'Ant CN not in range: {self.cn}') 167 self.failures.append(f'Base CN not in range: {self.base_cn}') 172 self.failures.append(f'Elevation not in range: {self.elev}') 177 self.failures.append(f'Azimuth not in range: {self.azim}') [all …]
|
D | LabTtffTestBase.py | 49 dut.log.debug(f'glob_re dir: {all_files_in_dir}') 53 dut.log.debug(f'glob_re list: {result_ls}') 179 f'Running rockbottom script for this device {self.dut.model}') 183 f'Not running rockbottom for this device {self.dut.model}') 188 gpstool_ver_cmd = f'dumpsys package {GPS_PKG_NAME} | grep versionName' 190 self.log.info(f'GTW GPSTool version: {self.gpstool_ver}') 197 copy_cmd = f'cp {BCM_GPS_XML_PATH} {self.gps_xml_bk_path}' 199 self.log.debug(f'{BCM_GPS_XML_PATH} is missing') 201 f'Copy {self.gps_xml_bk_path} and rename to {BCM_GPS_XML_PATH}' 203 copy_cmd = f'cp {self.gps_xml_bk_path} {BCM_GPS_XML_PATH}' [all …]
|
/tools/apksig/src/test/java/com/android/apksig/util/ |
D | DataSinkFromRAFTest.java | 37 RandomAccessFile f = null; in createDataSink() local 39 f = new RandomAccessFile(tmp, "rw"); in createDataSink() 41 if (f == null) { in createDataSink() 46 (RandomAccessFileDataSink) DataSinks.asDataSink(f), in createDataSink() 47 new DataSourceFromRAFTest.TmpFileCloseable(tmp, f)); in createDataSink() 52 RandomAccessFile f = dataSink.getFile(); in getContents() local 53 if (f.length() > Integer.MAX_VALUE) { in getContents() 54 throw new IOException("File too large: " + f.length()); in getContents() 56 byte[] contents = new byte[(int) f.length()]; in getContents() 57 f.seek(0); in getContents() [all …]
|
/tools/test/mobly_extensions/scripts/ |
D | local_mobly_runner.py | 60 print(f'\n-----{line}-----\n') 127 f'unspecified, "{_DEFAULT_TESTBED}" will be ' 161 _padded_print(f'Building test module {module}.') 163 subprocess.check_call(f'm -j {module}', shell=True, 170 f'with {_LOCAL_SETUP_INSTRUCTIONS}.' 173 print(f'Failed to build module {module}.') 182 f'outmod {module}', shell=True, executable='/bin/bash' 192 f'environment with {_LOCAL_SETUP_INSTRUCTIONS}.' 196 f'Cannot find the build output of module {module}. Ensure that ' 204 f'Declared file {path} does not exist. Please build your ' [all …]
|