Home
last modified time | relevance | path

Searched defs:Path (Results 1 – 25 of 49) sorted by relevance

12

/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:
56 def list_remotes(proj_path: Path) -> dict[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]:
135 def list_local_branches(proj_path: Path) -> list[str]:
[all …]
Dtest_manifest.py28 def test_repo_tree(self, repo_tree: Path) -> None:
36 def test_no_manifest(self, tmp_path: Path) -> None:
45 def test_default_missing(self, tmp_path: Path) -> None:
61 def test_name_missing(self, tmp_path: Path) -> None:
80 def test_multiple_default(self, tmp_path: Path) -> None:
99 def test_remote_default(self, tmp_path: Path) -> None:
118 def test_revision_default(self, tmp_path: Path) -> None:
136 def test_path_default(self, tmp_path: Path) -> None:
154 def test_remote_explicit(self, tmp_path: Path) -> None:
172 def test_revision_explicit(self, tmp_path: Path) -> None:
[all …]
Dfileutils.py47 def find_tree_containing(project: Path) -> Path:
104 def get_absolute_project_path(proj_path: Path) -> Path:
131 def get_metadata_path(proj_path: Path) -> Path:
136 def get_relative_project_path(proj_path: Path) -> Path:
141 def canonicalize_project_path(proj_path: Path) -> Path:
168 def read_metadata(proj_path: Path) -> metadata_pb2.MetaData:
203 def write_metadata(proj_path: Path, metadata: metadata_pb2.MetaData, keep_date: bool) -> None:
246 def find_local_bp_files(proj_path: Path, latest_version: str) -> list[str]:
258 def bpfmt(proj_path: Path, bp_files: list[str]) -> bool:
Dmanifest.py29 def find_manifest_xml_for_tree(root: Path) -> Path:
71 def __init__(self, xml_path: Path) -> None:
104 def __init__(self, path: Path, projects: list[Project]) -> None:
109 def for_tree(root: Path) -> Manifest:
Dconftest.py22 def make_repo_tree(root: Path) -> Path:
30 def fixture_repo_tree(tmp_path: Path) -> Path:
Dupdater_utils.py30 def create_updater(metadata: metadata_pb2.MetaData, proj_path: Path,
69 def run_post_update(proj_path: Path, old_project_path: Path | None = None) -> None:
150 def build(proj_path: Path) -> None:
Dhashtags.py18 def find_hashtag(proj_path: Path) -> str:
Dexternal_updater.py55 def build_updater(proj_path: Path) -> Tuple[Updater, metadata_pb2.MetaData]:
235 proj_path: Path,
275 def check_and_update_path(args: argparse.Namespace, paths: Iterable[Path],
/tools/external_updater/tests/endtoend/treebuilder/
Dtest_fakerepo.py28 def test_project_created(self, tmp_path: Path) -> None:
36 def test_project_error_if_path_reused(self, tmp_path: Path) -> None:
46 def test_create_manifest_repo_xml_structure(self, tmp_path: Path) -> None:
77 def test_init_and_sync(self, tmp_path: Path) -> None:
Dfakeproject.py37 self, tree_path: Path, upstream_path: Path, android_mirror_path: Path
Dtest_treebuilder.py27 def test_repo_tree(self, tmp_path: Path) -> None:
32 def test_repo_tree_error_if_name_reused(self, tmp_path: Path) -> None:
Dtest_fakeproject.py25 def test_constructor_initializes_upstream_repo(self, tmp_path: Path) -> None:
34 def test_initial_import(self, tmp_path: Path) -> None:
Dtreebuilder.py25 def __init__(self, temp_dir: Path) -> None:
/tools/asuite/
Dpreupload_hook_script.py29 def _filter_python_files(files: list[pathlib.Path]) -> list[pathlib.Path]:
41 def _run_python_lint(lint_bin: str, files: list[pathlib.Path]) -> None:
66 def _run_pylint(files: list[pathlib.Path]) -> None:
71 def _run_gpylint(files: list[pathlib.Path]) -> None:
84 def _run_pyformat(files: list[pathlib.Path]) -> None:
133 files: list[pathlib.Path], projects: list[str], root_files: bool
/tools/netsim/scripts/
Denvironment.py30 def __init__(self, aosp: Path):
64 def __init__(self, aosp: Path):
83 def __init__(self, aosp: Path):
158 def get_default_environment(aosp: Path):
/tools/asuite/atest/logstorage/
Dlog_uploader.py99 artifact_path: pathlib.Path,
145 def _get_file_paths(cls, directory: pathlib.Path) -> list[pathlib.Path]:
166 def _create_artifact_metadata(artifact_path: pathlib.Path) -> dict[str, str]:
175 def upload_directory(self, artifacts_dir: pathlib.Path) -> None:
181 def upload_single_file(self, artifact_path: pathlib.Path) -> None:
198 def _create_resource_id(self, artifact_path: pathlib.Path) -> str:
249 def upload_logs_detached(logs_dir: pathlib.Path):
/tools/asuite/atest/integration_tests/
Dsnapshot.py52 def __init__(self, storage_dir: pathlib.Path):
134 def __init__(self, storage_path: pathlib.Path):
174 def __init__(self, storage_path: pathlib.Path):
251 def add(self, path: pathlib.Path, timestamp: float) -> str:
291 def __init__(self, storage_path: pathlib.Path):
342 def _is_excluded(self, path: str, exclude_paths: list[pathlib.Path]) -> bool:
350 root: pathlib.Path,
351 paths: list[pathlib.Path],
352 exclude_paths: list[pathlib.Path],
400 def process_directory(path: pathlib.Path) -> None:
[all …]
Dresult_compare_test.py147 def parse_standard_result(result_file: Path) -> Dict[str, str]:
165 def parse_bazel_result(result_file: Path) -> Dict[str, str]:
/tools/asuite/atest/
Dbazel_mode.py229 src_root_path: pathlib.Path,
230 resource_root_path: pathlib.Path,
231 product_out_path: pathlib.Path,
232 md5_checksum_file_path: pathlib.Path,
244 self, rel_path: pathlib.Path = None, affects_workspace: bool = False
261 rel_path: pathlib.Path = None,
278 self, rel_path: pathlib.Path = None, affects_workspace: bool = False
296 rel_path: pathlib.Path,
314 self, root_type: file_md5_pb2.RootType, abs_path: pathlib.Path
332 def register_file_with_abs_path(self, abs_path: pathlib.Path):
[all …]
Dbanner.py35 def create(config_dir: Path) -> BannerHistory:
53 def __init__(self, history_file: Path, history: dict):
74 def __init__(self, config_dir: Path):
Datest_execution_info.py255 log_path: pathlib.Path,
347 repo_out_dir: pathlib.Path = None,
510 repo_out_path: pathlib.Path,
511 log_path: pathlib.Path,
/tools/test/mobly_extensions/tools/results_uploader/src/
Dresults_uploader.py146 mobly_dir: pathlib.Path, dest_dir: pathlib.Path) -> _TestResultInfo:
316 src_dir: pathlib.Path, gcs_bucket: str, gcs_dir: str, timeout: int
Dmobly_result_converter.py200 mobly_base_directory: Optional[pathlib.Path],
434 mobly_base_directory: Optional[pathlib.Path],
638 mobly_results_path: pathlib.Path,
639 mobly_base_directory: Optional[pathlib.Path] = None,
/tools/asuite/adevice/src/
Dfingerprint.rs69 pub fn from_path(file_path: &Path, cache: &Cache) -> Result<Self> { in from_path()
84 pub fn from_symlink(file_path: &Path, metadata: &fs::Metadata) -> Result<Self> { in from_symlink()
101 pub fn from_file(file_path: &Path, metadata: &fs::Metadata, cache: &Cache) -> Result<Self> { in from_file()
199 partition_root: &Path, in fingerprint_partitions()
258 file_path: &Path, in get_or_compute_digest()
288 pub fn cache_key(&self, file_path: &Path, metadata: &fs::Metadata) -> Result<String> { in cache_key()
320 file_path: &Path, in write_to_file()
1035 tmp_root: &Path, in make_partition()
1061 fn create_symlink(target: &Path, link_name: &str, directory: &Path) -> PathBuf { in create_symlink()
/tools/external_updater/tests/endtoend/
Dconftest.py83 def tree_builder_fixture(tmp_path: Path) -> TreeBuilder:

12