Home
last modified time | relevance | path

Searched defs:str (Results 1 – 25 of 198) sorted by relevance

12345678

/tools/treble/cuttlefish/
Dbuild_chd_utils.py28 otatools_zip_path: str, output_dir: str, patterns: List[str] = None
50 def _parse_copy_file_pair(copy_file_pair: str) -> Tuple[str, str]:
72 def copy_files(copy_files_list: List[str], output_dir: str) -> None:
94 def _extract_cil_files(target_files_zip: str, output_dir: str) -> None:
107 def _get_sepolicy_plat_version(target_files_zip: str) -> str:
126 framework_target_files_zip: str, vendor_target_files_zip: str,
127 otatools_dir: str, output_dir: str
Dbuild_chd_debug_ramdisk.py117 def _compress_ramdisk(self, root_dir: str, ramdisk_file: str) -> None:
132 def _decompress_ramdisk(self, ramdisk_file: str, output_dir: str) -> str:
149 def _extract_ramdisk(self, ramdisk_file: str, root_dir: str) -> None:
176 def add_ramdisk(self, ramdisk_root: str) -> None:
199 def remove_file(self, file_name: str) -> None:
231 def pack(self, output_img: str) -> None:
244 def _prepare_env(otatools_dir: str) -> List[str]:
310 def main(temp_dir: str) -> None:
/tools/asuite/atest/integration_tests/
Dsnapshot.py66 name: str,
80 name: str,
81 root_path: str,
82 include_paths: list[str],
83 exclude_paths: Optional[list[str]] = None,
84 env_keys: Optional[list[str]] = None,
85 env: Optional[dict[str, str]] = None,
86 objs: Optional[dict[str, Any]] = None,
110 name: str,
111 root_path: str,
[all …]
Dbazel_mode_test.py203 self, shell_command: str, check: bool = False
217 def add_passing_test(self, module_name: str):
220 def add_failing_test(self, module_name: str):
223 def add_unsupported_passing_test(self, module_name: str):
230 module_name: str,
258 module_name: str,
259 test_src: str,
286 module_name: str,
312 message: str,
337 test_class_name: str,
[all …]
Dadevice_command_success_tests.py119 def _verify_adevice_command_success(self, test_cmd: list[str]):
131 build_cmd: list[str],
132 build_clean_up_cmd: list[str],
133 test_cmd: list[str],
134 expected_in_log: list[str],
135 expected_not_in_log: list[str],
/tools/test/mobly_extensions/scripts/
Dlocal_mobly_runner.py62 def _padded_print(line: str) -> None:
192 def _build_module(module: str) -> None:
210 def _get_module_artifacts(module: str) -> List[str]:
296 requirements_files: List[str],
297 wheel_file: Optional[str]
333 def _parse_adb_devices(lines: List[str]) -> List[str]:
347 apks: List[str],
348 serials: Optional[List[str]] = None,
374 def _generate_mobly_config(serials: Optional[List[str]] = None) -> str:
403 python_executable: Optional[str],
[all …]
/tools/repohooks/tools/
Dpylint.py36 def run_lint(pylint: str, unknown: Optional[List[str]],
37 files: Optional[List[str]], init_hook: str,
38 pylintrc: Optional[str] = None) -> bool:
80 def find_parent_dirs_with_pylintrc(leafdir: str,
81 pylintrc_map: Dict[str, Set[str]]) -> None:
108 def map_pyfiles_to_pylintrc(files: List[str]) -> Dict[str, Set[str]]:
/tools/external_updater/
Dgit_utils.py27 def fetch(proj_path: Path, remote_name: str, branch: str | None = None) -> None:
38 def add_remote(proj_path: Path, name: str, url: str) -> None:
50 def remove_remote(proj_path: Path, name: str) -> None:
65 def parse_remote(line: str) -> tuple[str, str]:
76 def detect_default_branch(proj_path: Path, remote_name: str) -> str:
90 def get_sha_for_branch(proj_path: Path, branch: str):
97 def get_most_recent_tag(proj_path: Path, branch: str) -> str | None:
114 def get_commit_time(proj_path: Path, commit: str) -> datetime.datetime:
122 def list_remote_branches(proj_path: Path, remote_name: str) -> list[str]:
148 def is_commit(commit: str) -> bool:
[all …]
Dexternal_updater.py74 def commit_message_generator(project_name: str, version: str, path: str, bug: int | None = None) ->…
168 def find_ver_types(current_version: str) -> Tuple[str, str]:
301 def write_json(json_file: str, results: Dict[str, Dict[str, str]]) -> None: argument
/tools/test/connectivity/acts/framework/acts/controllers/amarisoft_lib/
Dims.py36 impi: str,
37 impu: str,
38 contact: str,
39 sip_file: str = 'mt_call_qos.sdp',
40 caller: str = 'Amarisoft',
67 text: str,
68 impi: str,
69 sender: Optional[str] = 'Amarisoft') -> None:
87 def send_mms(self, filename: str, sender: str, receiver: str) -> None:
Dssh_utils.py46 host: str,
47 username: str,
48 password: str,
49 port: str = '22') -> None:
95 def run_cmd(self, cmd: str) -> Sequence[str]:
119 def is_file_exist(self, file: str) -> bool:
131 def sftp_upload(self, src: str, dst: str) -> bool:
156 def sftp_download(self, src: str, dst: str) -> bool:
178 def sftp_list_dir(self, path: str) -> Sequence[str]:
Damarisoft_client.py47 async def _send_message_to_callbox(self, uri: str,
48 msg: str) -> Tuple[str, str]:
65 def send_message(self, port: str, msg: str) -> Tuple[str, str]:
78 def verify_response(self, func: str, head: str,
79 body: str) -> Tuple[Mapping[str, Any], Mapping[str, Any]]:
147 def set_config_dir(self, cfg_type: str, path: str) -> None:
162 def get_config_dir(self, cfg_type: str) -> Optional[str]:
179 def set_config_file(self, cfg_type: str, cfg_file: str) -> None:
196 def get_config_file(self, cfg_type: str) -> Optional[str]:
/tools/tradefederation/core/tools/content_uploader/
Duploader.py106 def setup_task_logger(working_dir: str) -> Tuple[logging.Logger, str]:
122 def read_file(file_path: str) -> str:
133 def _run_uploader_command(cmd: str, working_dir: str) -> str:
150 working_dir: str,
151 metrics_file: str,
255 output_dir: str,
256 digests: dict[str, str], argument
257 content_details: list[dict[str, any]],
297 self, artifacts: list[ArtifactConfig], working_dir: str, dist_dir: str
340 def upload(self, artifacts: list[ArtifactConfig], dist_dir: str,
[all …]
Dartifact_manager.py24 def __init__(self, artifacts: Dict[str, ArtifactConfig]):
58 def _process_artifact_override(self, override: str):
77 def _delete_artifact(self, name: str, override: str):
91 def _update_or_create_artifact(self, name: str, source_path_str: str):
123 self, tokens: List[str], attribute_name: str, default: bool
Dtest_uploader.py40 def _create_fake_uploader(self, test_dir: str, text: str) -> str:
51 def _create_fake_imagefile(self, parent_dir: str, name: str):
61 def _upload(self, artifacts, test_dir: str, dist_dir: str) -> str:
90 def _verify(self, command: str, has_flags: list[str], no_flags: list[str]):
/tools/test/mobly_extensions/tools/
Ddevice_flags.py47 def get_value(self, namespace: str, key: str) -> str | None:
85 def get_bool(self, namespace: str, key: str) -> bool:
139 def set_value(self, namespace: str, key: str, val: str) -> None:
151 def enable(self, namespace: str, key: str) -> None:
170 def disable(self, namespace: str, key: str) -> None:
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/power/cellular/
Dssh_library.py20 def __init__(self, hostname: str, username: str):
25 self, hostname: str, username: str
45 def run_command_paramiko(self, command: str) -> tuple[str, str, str]:
76 def close_app(self, app: str) -> str:
90 def start_app(self, app: str, location: str) -> str:
117 def check_app_running(self, app: str) -> bool:
/tools/asuite/atest/
Dmodule_info.py77 def load_from_dict(name_to_module_info: Dict[str, Any]) -> ModuleInfo:
259 name_to_module_info: Dict[str, Any],
260 path_to_module_info: Dict[str, Any],
282 def _save_json_async(self, name_to_module_info: Dict[str, Any], _):
324 name_to_module_info: Dict[str, Any],
325 path_to_module_info: Dict[str, Any],
443 def get_testable_modules_from_index(self, suite: str = None) -> Set[str]:
457 def get_testable_module_from_memory(self, suite: str = None) -> Set[str]:
472 name_to_module_info: Dict[str, Any] = None,
473 path_to_module_info: Dict[str, Any] = None,
[all …]
/tools/external_updater/tests/
Dgitrepo.py36 def run(self, command: list[str]) -> str:
57 def sha_of_ref(self, ref: str) -> str:
73 message: str,
75 update_files: dict[str, str] | None = None,
98 ref: str,
110 def switch_to_new_branch(self, name: str, start_point: str | None = None) -> None:
117 def checkout(self, revision_or_branch: str) -> None:
122 def delete_branch(self, name: str) -> None:
127 def tag(self, name: str, ref: str | None = None) -> None:
134 def commit_message_at_revision(self, revision: str) -> str:
[all …]
/tools/test/mobly_extensions/tools/results_uploader/src/
Dresults_uploader.py125 def _get_project_number(project_id: str) -> str:
132 def _retrieve_api_key(project_id: str) -> str | None:
171 iteration_results: list[str]):
193 def _aggregate_subtest_results(subtest_results: list[str]):
316 src_dir: pathlib.Path, gcs_bucket: str, gcs_dir: str, timeout: int
373 api_key: str,
374 gcs_bucket: str,
375 gcs_base_dir: str,
376 file_paths: list[str],
379 labels: list[str],
Dmobly_result_converter.py133 class_name: Optional[str],
134 test_name: Optional[str],
180 properties_element: ElementTree.Element, name: str, value: str
198 entry: Mapping[str, Any],
244 summary_record: Mapping[str, Any]
287 class_name: str, class_summary: TestSuiteSummary
328 signature: str,
329 child_parent_map: Mapping[str, str], argument
330 parent_type_map: Mapping[str, records.TestParentType],
331 signature_test_name_map: Mapping[str, str],
[all …]
/tools/asuite/atest/logstorage/
Dlogstorage_utils.py39 def is_upload_enabled(args: dict[str, str]) -> bool: argument
91 extra_args: dict[str, str], invocation_properties: dict[str, str] = None argument
197 self, build_record: dict[str, str], invocation_properties: dict[str, str] argument
/tools/external_updater/tests/endtoend/
Dtest_update.py54 updater_cmd: list[str],
73 self, tree_builder: TreeBuilder, updater_cmd: list[str]
88 self, tree_builder: TreeBuilder, updater_cmd: list[str]
108 self, tree_builder: TreeBuilder, updater_cmd: list[str]
126 self, tree_builder: TreeBuilder, updater_cmd: list[str]
144 self, tree_builder: TreeBuilder, updater_cmd: list[str]
161 self, tree_builder: TreeBuilder, updater_cmd: list[str]
178 self, tree_builder: TreeBuilder, updater_cmd: list[str]
194 self, tree_builder: TreeBuilder, updater_cmd: list[str]
/tools/netsim/rust/daemon/src/http_server/
Dhttp_handlers.rs55 pub fn collect_query(param: &str) -> Result<HashMap<&str, &str>, &str> { in collect_query()
86 fn check_valid_file_path(path: &str, valid_files: &HashSet<String>) -> bool { in check_valid_file_path()
94 fn to_content_type(file_path: &Path) -> &str { in to_content_type()
106 fn handle_file(method: &str, path: &str, writer: ResponseWritable) { in handle_file()
122 fn handle_index(request: &Request<Vec<u8>>, _param: &str, writer: ResponseWritable) { in handle_index()
126 fn handle_static(request: &Request<Vec<u8>>, path: &str, writer: ResponseWritable) { in handle_static()
131 fn handle_version(_request: &Request<Vec<u8>>, _param: &str, writer: ResponseWritable) { in handle_version()
136 fn handle_dev(request: &Request<Vec<u8>>, _param: &str, writer: ResponseWritable) { in handle_dev()
/tools/treble/split/
Dmanifest_diff.py101 def subelement_file_changes(tag: str, p1: Element, p2: Element) -> ChangeMap:
122 ignored_attrs: Set[str]) -> ProjectChanges:
140 ignored_attrs: Set[str]) -> ChangeMap:
169 ignored_attrs: Set[str]) -> ChangeMap:
190 ignored_attrs: Set[str]) -> ChangeMap:
214 ignored_attrs: Set[str]) -> ManifestChanges:
233 def compare_manifest_files(manifest_a: str, manifest_b: str,
234 ignored_attrs: Set[str]) -> ManifestChanges:

12345678