/aosp_15_r20/tools/external_updater/ |
H A D | git_utils.py | 27 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 …]
|
H A D | test_manifest.py | 28 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 …]
|
/aosp_15_r20/external/toolchain-utils/rust_tools/ |
H A D | auto_update_rust_bootstrap.py | 102 rust_bootstrap_ebuild: Path, 121 ebuild: Path, rust_bootstrap_version: EbuildVersion 240 ebuild_dir: Path, 260 copy_rust_bootstrap_script: Path, prebuilt_gs_path: str, dry_run: bool 293 ebuild: Path, version: EbuildVersion, dry_run: bool 304 def is_ebuild_linked_to_in_dir(root_ebuild_path: Path) -> bool: 324 def uprev_ebuild(ebuild: Path, version: EbuildVersion, dry_run: bool) -> Path: 355 def update_ebuild_manifest(rust_bootstrap_ebuild: Path): 364 git_dir: Path, rust_bootstrap_dir: Path, commit_message: str 393 def upload_changes(git_dir: Path): [all …]
|
/aosp_15_r20/external/rust/cxx/gen/build/src/ |
D | out.rs | 7 pub(crate) fn write(path: impl AsRef<Path>, content: &[u8]) -> Result<()> { in write() 33 original: impl AsRef<Path>, in relative_symlink_file() 34 link: impl AsRef<Path>, in relative_symlink_file() 46 original: impl AsRef<Path>, in absolute_symlink_file() 47 link: impl AsRef<Path>, in absolute_symlink_file() 58 original: impl AsRef<Path>, in relative_symlink_dir() 59 link: impl AsRef<Path>, in relative_symlink_dir() 81 path_for_symlink: &Path, in symlink_file() 82 path_for_copy: &Path, in symlink_file() 83 link: &Path, in symlink_file() [all …]
|
/aosp_15_r20/external/rust/crates/quiche/src/ |
D | path.rs | 114 pub struct Path { struct 128 state: PathState, argument 131 active: bool, 134 pub recovery: recovery::Recovery, 138 in_flight_challenges: VecDeque<([u8; 8], usize, time::Instant)>, 141 max_challenge_size: usize, 144 probing_lost: usize, 147 last_probe_lost_time: Option<time::Instant>, 150 received_challenges: VecDeque<[u8; 8]>, 153 pub sent_count: usize, [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/quiche/src/ |
D | path.rs | 114 pub struct Path { struct 128 state: PathState, argument 131 active: bool, 134 pub recovery: recovery::Recovery, 138 in_flight_challenges: VecDeque<([u8; 8], usize, time::Instant)>, 141 max_challenge_size: usize, 144 probing_lost: usize, 147 last_probe_lost_time: Option<time::Instant>, 150 received_challenges: VecDeque<[u8; 8]>, 153 pub sent_count: usize, [all …]
|
/aosp_15_r20/art/test/ |
H A D | run_test_build.py | 125 def run(self, executable: pathlib.Path, args: List[Union[pathlib.Path, str]]): 165 def rbe_wrap(self, args, inputs: Set[pathlib.Path]=None): 185 def rbe_javac(self, javac_path:Path, args): 189 def rbe_d8(self, d8_path:Path, args): 197 def rbe_smali(self, smali_path:Path, args): 249 javac_classpath: List[Path]=[], 262 class Path(pathlib.Path): class 286 def zip(zip_target: Path, *files: Path): 303 def make_jasmin(dst_dir: Path, src_dir: Path) -> Optional[Path]: 310 def make_smali(dst_dex: Path, src_dir: Path) -> Optional[Path]: [all …]
|
/aosp_15_r20/external/pytorch/tools/ |
H A D | nightly.py | 361 def _nightly_version(site_dir: Path) -> str: 391 def checkout_nightly_version(branch: str, site_dir: Path) -> None: 399 def pull_nightly_version(site_dir: Path) -> None: 406 def _get_listing_linux(source_dir: Path) -> list[Path]: 416 def _get_listing_osx(source_dir: Path) -> list[Path]: 426 def _get_listing_win(source_dir: Path) -> list[Path]: 436 def _glob_pyis(d: Path) -> set[str]: 440 def _find_missing_pyi(source_dir: Path, target_dir: Path) -> list[Path]: 447 def _get_listing(source_dir: Path, target_dir: Path, platform: str) -> list[Path]: 464 def _remove_existing(path: Path) -> None: [all …]
|
/aosp_15_r20/external/pigweed/pw_presubmit/py/pw_presubmit/ |
H A D | build.py | 208 def write_gn_args_file(destination_file: Path, **kwargs) -> str: 365 def get_gn_args(directory: Path) -> list[dict[str, dict[str, str]]]: 400 def _get_paths_from_command(source_dir: Path, *args, **kwargs) -> Set[Path]: 438 def _search_files_for_paths(build_files: Iterable[Path]) -> Iterable[Path]: 448 def _read_compile_commands(compile_commands: Path) -> dict: 453 def compiled_files(compile_commands: Path) -> Iterable[Path]: 463 compile_commands: Path | Iterable[Path], 464 files: Iterable[Path], 484 files: Iterable[Path], 485 bazel_dirs: Iterable[Path] = (), [all …]
|
/aosp_15_r20/external/toolchain-utils/llvm_tools/ |
H A D | patch_utils.py | 161 def git_apply(patch_path: Path) -> List[Union[str, Path]]: 166 def git_am(patch_path: Path) -> List[Union[str, Path]]: 171 def gnu_patch(root_dir: Path, patch_path: Path) -> List[Union[str, Path]]: 205 def from_dict(cls, workdir: Path, data: Dict[str, Any]): 271 root_dir: Path, 312 self, root_dir: Path, patch_cmd: Optional[Callable] = None 366 def json_to_patch_entries(workdir: Path, json_fd: IO[str]) -> List[PatchEntry]: 376 def json_str_to_patch_entries(workdir: Path, json_str: str) -> List[PatchEntry]: 407 llvm_src_dir: Path, 408 patches_json_fp: Path, [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/std/src/ |
H A D | path.rs | 571 fn as_ref(&self) -> &Path { in as_ref() 695 pub fn as_path(&self) -> &'a Path { in as_path() 799 fn as_ref(&self) -> &Path { in as_ref() 844 pub fn as_path(&self) -> &'a Path { in as_path() 852 fn as_ref(&self) -> &Path { in as_ref() 1220 pub fn as_path(&self) -> &Path { in as_path() 1239 pub fn leak<'a>(self) -> &'a mut Path { in leak() 1286 fn _push(&mut self, path: &Path) { in _push() 1634 pub fn into_boxed_path(self) -> Box<Path> { in into_boxed_path() 1735 fn from(path: &Path) -> Box<Path> { in from() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/std/src/ |
H A D | path.rs | 571 fn as_ref(&self) -> &Path { in as_ref() 695 pub fn as_path(&self) -> &'a Path { in as_path() 799 fn as_ref(&self) -> &Path { in as_ref() 844 pub fn as_path(&self) -> &'a Path { in as_path() 852 fn as_ref(&self) -> &Path { in as_ref() 1220 pub fn as_path(&self) -> &Path { in as_path() 1239 pub fn leak<'a>(self) -> &'a mut Path { in leak() 1286 fn _push(&mut self, path: &Path) { in _push() 1634 pub fn into_boxed_path(self) -> Box<Path> { in into_boxed_path() 1735 fn from(path: &Path) -> Box<Path> { in from() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/std/src/ |
H A D | path.rs | 571 fn as_ref(&self) -> &Path { in as_ref() 695 pub fn as_path(&self) -> &'a Path { in as_path() 799 fn as_ref(&self) -> &Path { in as_ref() 844 pub fn as_path(&self) -> &'a Path { in as_path() 852 fn as_ref(&self) -> &Path { in as_ref() 1220 pub fn as_path(&self) -> &Path { in as_path() 1239 pub fn leak<'a>(self) -> &'a mut Path { in leak() 1286 fn _push(&mut self, path: &Path) { in _push() 1634 pub fn into_boxed_path(self) -> Box<Path> { in into_boxed_path() 1735 fn from(path: &Path) -> Box<Path> { in from() [all …]
|
/aosp_15_r20/build/pesto/experiments/prepare_bazel_test_env/ |
H A D | bazelenv.py | 52 def __init__(self, soong_workspace: pathlib.Path): 141 def __init__(self, stage_path: pathlib.Path, workspace_path: pathlib.Path, 142 resource_path: pathlib.Path): 193 def __init__(self, stage_path: pathlib.Path, workspace_path: pathlib.Path, 194 resource_path: pathlib.Path): 254 def __init__(self, stage_path: pathlib.Path, workspace_path: pathlib.Path, 255 resource_path: pathlib.Path, 256 global_prebuilts_dir: pathlib.Path, prebuilts_dir_name: str): 320 def _make_executable_if_script(path: pathlib.Path) -> None: 378 workspace_base_path: pathlib.Path, [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/std/src/ |
H A D | path.rs | 571 fn as_ref(&self) -> &Path { in as_ref() 695 pub fn as_path(&self) -> &'a Path { in as_path() 799 fn as_ref(&self) -> &Path { in as_ref() 844 pub fn as_path(&self) -> &'a Path { in as_path() 852 fn as_ref(&self) -> &Path { in as_ref() 1225 pub fn as_path(&self) -> &Path { in as_path() 1272 fn _push(&mut self, path: &Path) { in _push() 1552 pub fn into_boxed_path(self) -> Box<Path> { in into_boxed_path() 1653 fn from(path: &Path) -> Box<Path> { in from() 1666 fn from(cow: Cow<'_, Path>) -> Box<Path> { in from() argument [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/std/src/ |
H A D | path.rs | 571 fn as_ref(&self) -> &Path { in as_ref() 695 pub fn as_path(&self) -> &'a Path { in as_path() 799 fn as_ref(&self) -> &Path { in as_ref() 844 pub fn as_path(&self) -> &'a Path { in as_path() 852 fn as_ref(&self) -> &Path { in as_ref() 1225 pub fn as_path(&self) -> &Path { in as_path() 1272 fn _push(&mut self, path: &Path) { in _push() 1552 pub fn into_boxed_path(self) -> Box<Path> { in into_boxed_path() 1653 fn from(path: &Path) -> Box<Path> { in from() 1666 fn from(cow: Cow<'_, Path>) -> Box<Path> { in from() argument [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/which/src/ |
D | lib.rs | 153 V: AsRef<path::Path>, in which_in() 206 V: AsRef<path::Path>, in which_in_all() 403 pub struct Path { struct 404 inner: path::PathBuf, argument 407 impl Path { impl 411 pub fn new<T: AsRef<OsStr>>(binary_name: T) -> Result<Path> { in new() 430 V: AsRef<path::Path>, in new_in() 447 V: AsRef<path::Path>, in all_in() 453 pub fn as_path(&self) -> &path::Path { in as_path() 463 impl fmt::Debug for Path { implementation [all …]
|
/aosp_15_r20/tools/asuite/atest/ |
H A D | bazel_mode.py | 229 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 …]
|
/aosp_15_r20/external/pytorch/.github/scripts/ |
H A D | file_io_utils.py | 10 def zip_folder(folder_to_zip: Path, dest_file_base_name: Path) -> Path: 25 def unzip_folder(zip_file_path: Path, unzip_to_folder: Path) -> None: 34 def ensure_dir_exists(dir: Path) -> None: 38 def copy_file(source_file: Path, dest_file: Path) -> None: 43 def load_json_file(file_path: Path) -> Any: 51 def write_json_file(file_path: Path, content: Any) -> None: 67 def upload_file_to_s3(file_name: Path, bucket: str, key: str) -> None: 79 bucket_name: str, prefix: str, download_folder: Path
|
/aosp_15_r20/system/usb_info_tools/typec_connector_class_helper/src/ |
H A D | typec_class_utils.rs | 105 dir_path: &Path, in get_sorted_paths_from_dir() 156 pub fn print_identity<W: Write>(dev_path: &Path, out_writer: &mut OutputWriter<W>) -> Result<()> { in print_identity() 191 partner_path: &Path, in print_partner_identity() 251 pub fn get_partner_product_type(partner_dir: &Path, pd_rev: PdRev) -> ProductType { in get_partner_product_type() 324 vdo_path: &Path, in print_vdo() 354 pub fn print_alt_mode<W: Write>(alt_mode_dir_path: &Path, out_writer: &mut OutputWriter<W>) { in print_alt_mode() 375 pub fn print_pdo_capabilities<W: Write>(capabilities: &Path, out_writer: &mut OutputWriter<W>) { in print_pdo_capabilities() 392 pub fn print_pdos<W: Write>(pdo_dir_path: &Path, out_writer: &mut OutputWriter<W>) { in print_pdos() 411 pub fn print_partner<W: Write>(port_path: &Path, out_writer: &mut OutputWriter<W>) -> Result<()> { in print_partner() 490 pub fn print_cable_identity<W: Write>(cable: &Path, out_writer: &mut OutputWriter<W>) { in print_cable_identity() [all …]
|
/aosp_15_r20/system/extras/simpleperf/scripts/ |
H A D | binary_cache_builder.py | 42 def __init__(self, binary_dir: Path): 76 def read_build_id(self, path: Path): 101 def check_and_pull_binary(self, path: str, expected_build_id: str, binary_cache_file: Path): 123 def pull_file_from_device(self, device_path: str, host_path: Path) -> bool: 135 def pull_kernel_symbols(self, file_path: Path): 146 def __init__(self, readelf: ReadElf, lib_dirs: List[Path]): 180 def is_platform_symbols_dir(self, lib_dir: Path): 185 def search_platform_symbols_dir(self, lib_dir: Path): 201 def search_dir(self, lib_dir: Path): 224 self, from_path: Path, expected_build_id: str, device_path: str): [all …]
|
/aosp_15_r20/external/toolchain-utils/pgo_tools/ |
H A D | create_chroot_and_generate_pgo_profile.py | 33 def find_repo_root(base_dir: Path) -> Path: 45 def create_fresh_bootstrap_chroot(repo_root: Path, chroot_info: ChrootInfo): 61 repo_root: Path, 63 chroot_output_file: Path, 83 def compress_pgo_profile(pgo_profile: Path) -> Path: 92 repo_root: Path, path: Path, info: ChrootInfo 101 def locate_current_llvm_ebuild(repo_root: Path) -> Path: 129 repo_root: Path, profile_path: Path
|
/aosp_15_r20/external/rust/android-crates-io/crates/libfuzzer-sys/libfuzzer/ |
D | FuzzerIO.cpp | 34 long GetEpoch(const std::string &Path) { in GetEpoch() 41 Unit FileToVector(const std::string &Path, size_t MaxSize, bool ExitOnError) { in FileToVector() 61 std::string FileToString(const std::string &Path) { in FileToString() 67 void CopyFileToErr(const std::string &Path) { in CopyFileToErr() 71 void WriteToFile(const Unit &U, const std::string &Path) { in WriteToFile() 75 void WriteToFile(const std::string &Data, const std::string &Path) { in WriteToFile() 80 void WriteToFile(const uint8_t *Data, size_t Size, const std::string &Path) { in WriteToFile() 88 void AppendToFile(const std::string &Data, const std::string &Path) { in AppendToFile() 93 void AppendToFile(const uint8_t *Data, size_t Size, const std::string &Path) { in AppendToFile() 101 void ReadDirToVectorOfUnits(const char *Path, std::vector<Unit> *V, long *Epoch, in ReadDirToVectorOfUnits() [all …]
|
/aosp_15_r20/external/executorch/examples/apple/coreml/scripts/ |
H A D | inspector_utils.py | 51 root_dir_path: Path, 143 def write_to_file(buffer: bytes, file_path: Path): 152 bundled_program_path: Path, 170 root_dir_path: Path, 171 bundled_program_path: Path, 172 et_dump_path: Path, 173 debug_buffer_path: Path, 202 root_dir_path: Path, 203 working_dir_path: Path, 271 root_dir_path: Path, [all …]
|
/aosp_15_r20/external/crosvm/tools/contrib/ |
H A D | cargo_refactor.py | 24 def append_to_file(file_path: Path, appendix: str): 29 def replace_in_file(file_path: Path, search: SearchPattern, replace: Replacement): 48 def replace_path_in_all_cargo_toml(old_path: Path, new_path: Path): 57 def update_path_deps(toml: Path, from_path: Path, to_path: Path): 66 def move_crate(from_path: Path, to_path: Path): 91 def chdir(path: Union[Path, str]):
|