/aosp_15_r20/external/rust/android-crates-io/crates/which/src/ |
D | lib.rs | 56 pub fn which<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which() 60 /// Find an executable binary's path by name, ignoring `cwd`. 64 /// Does not resolve relative paths. 80 pub fn which_global<T: AsRef<OsStr>>(binary_name: T) -> Result<path::PathBuf> { in which_global() 84 /// Find all binaries with `binary_name` using `cwd` to resolve relative paths. 85 pub fn which_all<T: AsRef<OsStr>>(binary_name: T) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all() 86 let cwd = env::current_dir().ok(); in which_all() localVariable 92 finder.find(binary_name, env::var_os("PATH"), cwd, binary_checker) in which_all() 95 /// Find all binaries with `binary_name` ignoring `cwd`. 98 ) -> Result<impl Iterator<Item = path::PathBuf>> { in which_all_global() [all …]
|
/aosp_15_r20/external/pigweed/pw_protobuf_compiler/ts/ |
H A D | build.ts | 7 // https://www.apache.org/licenses/LICENSE-2.0 19 const googProtobufPath = require.resolve('google-protobuf'); 20 const googProtobufModule = fs.readFileSync(googProtobufPath, 'utf-8'); 25 cwd: string = process.cwd(), 27 return new Promise<void>((resolve) => { 30 { cwd }, 37 resolve(); 55 cwd: string = process.cwd(), 58 path.resolve( 59 path.dirname(require.resolve('ts-protoc-gen/generate.js')), [all …]
|
/aosp_15_r20/external/pigweed/pw_build/py/ |
H A D | python_runner_test.py | 8 # https://www.apache.org/licenses/LICENSE-2.0 31 ROOT / 'some' / 'cwd', 85 self.assertEqual(label.dir, ROOT.joinpath('some/cwd')) 87 label.out_dir, ROOT.joinpath('out', toolchain, 'obj/some/cwd') 90 label.gen_dir, ROOT.joinpath('out', toolchain, 'gen/some/cwd') 97 self.assertEqual(label.dir, ROOT.joinpath('some/cwd/tgt')) 100 ROOT.joinpath('out', toolchain, 'obj/some/cwd/tgt'), 104 ROOT.joinpath('out', toolchain, 'gen/some/cwd/tgt'), 124 self.assertEqual(TEST_PATHS.resolve('//'), TEST_PATHS.root) 126 TEST_PATHS.resolve('//foo/bar'), TEST_PATHS.root / 'foo' / 'bar' [all …]
|
/aosp_15_r20/external/python/cpython3/PC/layout/ |
D | main.py | 4 See python make_layout.py --help for usage. 24 __path__ = [str(Path(__file__).resolve().parent)] 113 with open(ns.build / "TCL_LIBRARY.env", "r", encoding="utf-8-sig") as f: 284 # name argument added to address bpo-37641 348 with open(ns.temp / PYTHON_PTH_NAME, "w", encoding="utf-8") as f: 355 print("Lib/site-packages", file=f) 413 log_debug("Copy {} -> {}", src, ns.copy / dest) 440 log_debug("Copy {} -> {}", src, ns.copy / dest) 481 parser.add_argument("-v", help="Increase verbosity", action="count") 483 "-s", [all …]
|
/aosp_15_r20/tools/metalava/metalava-testing/src/main/java/com/android/tools/metalava/testing/ |
H A D | AndroidTestUtils.kt | 8 * http://www.apache.org/licenses/LICENSE-2.0 27 val jar = File(sdkRoot, "platforms/android-$apiLevel/android.jar") in getAndroidJarFromEnv() 35 * Check to see if this file is the top level metalava directory by looking for a `metalava-model` 38 private fun File.isMetalavaRootDir(): Boolean = resolve("metalava-model").isDirectory in isMetalavaRootDir() 44 val localFile = metalavaDir.resolve("../../prebuilts/sdk/$apiLevel/public/android.jar") in isMetalavaRootDir() 58 val localFile = metalavaDir.resolve("../../prebuilts/sdk/$apiLevel/$apiSurface/api/android.txt") in getAndroidTxt() 67 // This is either running in tools/metalava or tools/metalava/subproject-dir and we need to look in getMetalavaDir() 68 // in prebuilts/sdk, so first find tools/metalava then resolve relative to that. in getMetalavaDir() 69 val cwd = File("").absoluteFile in getMetalavaDir() constant 71 if (cwd.isMetalavaRootDir()) cwd in getMetalavaDir() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/library/backtrace/src/ |
H A D | capture.rs | 2 use crate::resolve; 13 /// Representation of an owned and self-contained backtrace. 18 /// `Backtrace` supports pretty-printing of backtraces through its `Debug` 28 // Frames here are listed from top-to-bottom of the stack 64 fn ip(&self) -> *mut c_void { in ip() 72 fn symbol_address(&self) -> *mut c_void { in symbol_address() 80 fn module_base_address(&self) -> Option<*mut c_void> { in module_base_address() 91 /// Resolve all addresses in the frame to their symbolic names. 92 fn resolve_symbols(&self) -> Vec<BacktraceSymbol> { in resolve_symbols() 107 resolve(ip as *mut c_void, sym); in resolve_symbols() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/library/backtrace/src/ |
H A D | capture.rs | 2 use crate::resolve; 13 /// Representation of an owned and self-contained backtrace. 18 /// `Backtrace` supports pretty-printing of backtraces through its `Debug` 28 // Frames here are listed from top-to-bottom of the stack 64 fn ip(&self) -> *mut c_void { in ip() 72 fn symbol_address(&self) -> *mut c_void { in symbol_address() 80 fn module_base_address(&self) -> Option<*mut c_void> { in module_base_address() 91 /// Resolve all addresses in the frame to their symbolic names. 92 fn resolve_symbols(&self) -> Vec<BacktraceSymbol> { in resolve_symbols() 107 resolve(ip as *mut c_void, sym); in resolve_symbols() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/library/backtrace/src/ |
H A D | capture.rs | 2 use crate::resolve; 13 /// Representation of an owned and self-contained backtrace. 18 /// `Backtrace` supports pretty-printing of backtraces through its `Debug` 28 // Frames here are listed from top-to-bottom of the stack 64 fn ip(&self) -> *mut c_void { in ip() 72 fn symbol_address(&self) -> *mut c_void { in symbol_address() 80 fn module_base_address(&self) -> Option<*mut c_void> { in module_base_address() 91 /// Resolve all addresses in the frame to their symbolic names. 92 fn resolve_symbols(&self) -> Vec<BacktraceSymbol> { in resolve_symbols() 107 resolve(ip as *mut c_void, sym); in resolve_symbols() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/library/backtrace/src/ |
H A D | capture.rs | 2 use crate::resolve; 13 /// Representation of an owned and self-contained backtrace. 18 /// `Backtrace` supports pretty-printing of backtraces through its `Debug` 28 // Frames here are listed from top-to-bottom of the stack 64 fn ip(&self) -> *mut c_void { in ip() 72 fn symbol_address(&self) -> *mut c_void { in symbol_address() 80 fn module_base_address(&self) -> Option<*mut c_void> { in module_base_address() 91 /// Resolve all addresses in the frame to their symbolic names. 92 fn resolve_symbols(&self) -> Vec<BacktraceSymbol> { in resolve_symbols() 107 resolve(ip as *mut c_void, sym); in resolve_symbols() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/library/backtrace/src/ |
H A D | capture.rs | 2 use crate::resolve; 13 /// Representation of an owned and self-contained backtrace. 18 /// `Backtrace` supports pretty-printing of backtraces through its `Debug` 28 // Frames here are listed from top-to-bottom of the stack 64 fn ip(&self) -> *mut c_void { in ip() 72 fn symbol_address(&self) -> *mut c_void { in symbol_address() 80 fn module_base_address(&self) -> Option<*mut c_void> { in module_base_address() 91 /// Resolve all addresses in the frame to their symbolic names. 92 fn resolve_symbols(&self) -> Vec<BacktraceSymbol> { in resolve_symbols() 107 resolve(ip as *mut c_void, sym); in resolve_symbols() [all …]
|
/aosp_15_r20/external/python/pyfakefs/pyfakefs/ |
D | fake_filesystem.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 22 >>> pathname = '/a/new/dir/new-file' 73 ['new-file'] 185 is_case_sensitive: `True` if a case-sensitive file system is assumed. 202 ) -> None: 226 # Windows fs on non-Windows systems and vice verse; 228 # Windows-specific features 231 # can be used to test some MacOS-specific behavior under other systems 234 # is_case_sensitive can be used to test pyfakefs for case-sensitive 235 # file systems on non-case-sensitive systems and vice verse [all …]
|
D | fake_path.py | 7 # http://www.apache.org/licenses/LICENSE-2.0 49 def _copy_module(old: ModuleType) -> ModuleType: 74 def dir() -> List[str]: 114 self._os_path.os = self.os = os_module # type: ignore[attr-defined] 118 def reset(cls, filesystem: "FakeFilesystem") -> None: 125 def exists(self, path: AnyStr) -> bool: 136 def lexists(self, path: AnyStr) -> bool: 156 file_obj = self.filesystem.resolve(path) 165 def isabs(self, path: AnyStr) -> bool: 172 def isdir(self, path: AnyStr) -> bool: [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/lib/rustlib/src/rust/vendor/backtrace/src/ |
H A D | capture.rs | 2 use crate::{resolve, resolve_frame, trace, BacktraceFmt, Symbol, SymbolName}; 11 /// Representation of an owned and self-contained backtrace. 16 /// `Backtrace` supports pretty-printing of backtraces through its `Debug` 24 #[cfg_attr(feature = "serialize-rustc", derive(RustcDecodable, RustcEncodable))] 27 // Frames here are listed from top-to-bottom of the stack 63 fn ip(&self) -> *mut c_void { in ip() 70 fn symbol_address(&self) -> *mut c_void { in symbol_address() 77 fn module_base_address(&self) -> Option<*mut c_void> { in module_base_address() 87 /// Resolve all addresses in the frame to their symbolic names. 88 fn resolve_symbols(&self) -> Vec<BacktraceSymbol> { in resolve_symbols() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0.u1/lib/rustlib/src/rust/vendor/backtrace/src/ |
H A D | capture.rs | 2 use crate::{resolve, resolve_frame, trace, BacktraceFmt, Symbol, SymbolName}; 11 /// Representation of an owned and self-contained backtrace. 16 /// `Backtrace` supports pretty-printing of backtraces through its `Debug` 24 #[cfg_attr(feature = "serialize-rustc", derive(RustcDecodable, RustcEncodable))] 27 // Frames here are listed from top-to-bottom of the stack 63 fn ip(&self) -> *mut c_void { in ip() 70 fn symbol_address(&self) -> *mut c_void { in symbol_address() 77 fn module_base_address(&self) -> Option<*mut c_void> { in module_base_address() 87 /// Resolve all addresses in the frame to their symbolic names. 88 fn resolve_symbols(&self) -> Vec<BacktraceSymbol> { in resolve_symbols() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-x86/1.81.0/lib/rustlib/src/rust/vendor/backtrace/src/ |
H A D | capture.rs | 2 use crate::{resolve, resolve_frame, trace, BacktraceFmt, Symbol, SymbolName}; 11 /// Representation of an owned and self-contained backtrace. 16 /// `Backtrace` supports pretty-printing of backtraces through its `Debug` 24 #[cfg_attr(feature = "serialize-rustc", derive(RustcDecodable, RustcEncodable))] 27 // Frames here are listed from top-to-bottom of the stack 63 fn ip(&self) -> *mut c_void { in ip() 70 fn symbol_address(&self) -> *mut c_void { in symbol_address() 77 fn module_base_address(&self) -> Option<*mut c_void> { in module_base_address() 87 /// Resolve all addresses in the frame to their symbolic names. 88 fn resolve_symbols(&self) -> Vec<BacktraceSymbol> { in resolve_symbols() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.81.0/lib/rustlib/src/rust/vendor/backtrace/src/ |
H A D | capture.rs | 2 use crate::{resolve, resolve_frame, trace, BacktraceFmt, Symbol, SymbolName}; 11 /// Representation of an owned and self-contained backtrace. 16 /// `Backtrace` supports pretty-printing of backtraces through its `Debug` 24 #[cfg_attr(feature = "serialize-rustc", derive(RustcDecodable, RustcEncodable))] 27 // Frames here are listed from top-to-bottom of the stack 63 fn ip(&self) -> *mut c_void { in ip() 70 fn symbol_address(&self) -> *mut c_void { in symbol_address() 77 fn module_base_address(&self) -> Option<*mut c_void> { in module_base_address() 87 /// Resolve all addresses in the frame to their symbolic names. 88 fn resolve_symbols(&self) -> Vec<BacktraceSymbol> { in resolve_symbols() [all …]
|
/aosp_15_r20/prebuilts/rust/linux-musl-x86/1.80.1/lib/rustlib/src/rust/vendor/backtrace/src/ |
H A D | capture.rs | 2 use crate::{resolve, resolve_frame, trace, BacktraceFmt, Symbol, SymbolName}; 11 /// Representation of an owned and self-contained backtrace. 16 /// `Backtrace` supports pretty-printing of backtraces through its `Debug` 24 #[cfg_attr(feature = "serialize-rustc", derive(RustcDecodable, RustcEncodable))] 27 // Frames here are listed from top-to-bottom of the stack 63 fn ip(&self) -> *mut c_void { in ip() 70 fn symbol_address(&self) -> *mut c_void { in symbol_address() 77 fn module_base_address(&self) -> Option<*mut c_void> { in module_base_address() 87 /// Resolve all addresses in the frame to their symbolic names. 88 fn resolve_symbols(&self) -> Vec<BacktraceSymbol> { in resolve_symbols() [all …]
|
/aosp_15_r20/external/angle/util/posix/ |
H A D | crash_handler_posix.cpp | 3 // Use of this source code is governed by a BSD-style license that can be 55 } while (eintr_wrapper_result == -1 && errno == EINTR); \ 66 } while (eintr_wrapper_result == -1 && errno == EINTR && \ 116 int ok = -1; 189 // seq_file only writes out a page-sized amount on each call. Refer to header 194 if (fd == -1) 199 proc_maps->clear(); 205 size_t pos = proc_maps->size(); 206 proc_maps->resize(pos + kReadSize); 213 proc_maps->clear(); [all …]
|
/aosp_15_r20/external/autotest/utils/frozen_chromite/lib/ |
H A D | path_util.py | 1 # -*- coding: utf-8 -*- 3 # Use of this source code is governed by a BSD-style license that can be 45 # tree checkout). This approach might result in arbitrary repo-contained 48 # repo-contained. Eventually we'll want to make this behavior explicit, by 67 # The chroot link allows us to resolve paths when the chroot is symlinked 96 recommended for non-chroot paths. 99 path (str|None): The path to resolve. 145 """Translates a fully-expanded host |path| into a chroot equivalent. 199 """Translates a fully-expanded chroot |path| into a host equivalent. 253 # only resolve its dirname but leave the basename intact. This means our [all …]
|
/aosp_15_r20/external/pigweed/pw_presubmit/py/pw_presubmit/ |
H A D | python_checks.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 68 def _transform_lcov_file_paths(lcov_file: Path, repo_root: Path) -> str: 90 # pylint: disable=no-member 92 repo_root # type: ignore[attr-defined] 94 # pylint: enable=no-member 100 # pylint: disable=no-member 102 repo_root # type: ignore[attr-defined] 104 # pylint: enable=no-member 130 '--keep', 132 cwd=ctx.output_dir, [all …]
|
/aosp_15_r20/external/cronet/build/android/test/incremental_javac_gn/ |
H A D | incremental_javac_test_android_library.py | 4 # Use of this source code is governed by a BSD-style license that can be 18 _CHROMIUM_SRC = pathlib.Path(__file__).resolve().parents[4].resolve() 31 args: shell command-line (as passed to subprocess.Popen()) 38 'Output:-----------------------------------------\n{}\n' 39 '------------------------------------------------\n').format( 44 def _run_command(args, check_returncode=True, cwd=None, env=None): argument 49 cwd=cwd, 81 cwd=_CHROMIUM_SRC) 86 parser.add_argument('--target-name', 90 parser.add_argument('--gn-args-path', [all …]
|
/aosp_15_r20/external/angle/build/android/test/incremental_javac_gn/ |
H A D | incremental_javac_test_android_library.py | 4 # Use of this source code is governed by a BSD-style license that can be 19 _CHROMIUM_SRC = pathlib.Path(__file__).resolve().parents[4].resolve() 35 args: shell command-line (as passed to subprocess.Popen()) 42 'Output:-----------------------------------------\n{}\n' 43 '------------------------------------------------\n').format( 48 def _run_command(args, check_returncode=True, cwd=None, env=None): argument 53 cwd=cwd, 85 cwd=_CHROMIUM_SRC) 90 parser.add_argument('--target-name', 94 parser.add_argument('--gn-args-path', [all …]
|
/aosp_15_r20/external/pigweed/pw_build/py/pw_build/ |
H A D | gn_resolver.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 36 def abspath(path: Path) -> Path: 42 """The set of paths needed to resolve GN paths to filesystem paths.""" 46 cwd: Path 51 def resolve(self, gn_path: str) -> Path: member in GnPaths 56 return abspath(self.cwd.joinpath(gn_path)) 58 def resolve_paths(self, gn_paths: str, sep: str = ';') -> str: 60 return sep.join(str(self.resolve(path)) for path in gn_paths.split(sep)) 79 # Handle explicitly-specified toolchains 81 label, toolchain = label[:-1].rsplit('(', 1) [all …]
|
/aosp_15_r20/external/google-cloud-java/generation/new_client/ |
H A D | new-client.py | 7 # https://www.apache.org/licenses/LICENSE-2.0 34 "--api_shortname", 41 "--name-pretty", 45 help="The human-friendly name that appears in README.md" 48 "--product-docs", 55 "--api-description", 63 "--release-level", 67 help="A label that appears in repo-metadata.json. The first library " 71 "--transport", 75 help="A label that appears in repo-metadata.json" [all …]
|
/aosp_15_r20/external/python/cpython3/kokoro/ |
D | prepare_windows_externals.py | 9 # http://www.apache.org/licenses/LICENSE-2.0 26 # Use resolve to ensure consistent capitalization between runs of this script, which is important 28 PYTHON_SRC = Path(__file__).parent.parent.resolve() 31 CMAKE_BIN = TOP / 'prebuilts/cmake/windows-x86/bin/cmake.exe' 35 def create_new_dir(path: Path) -> None: 41 def run_cmd(args: List[Union[str, Path]], cwd: Path) -> None: 42 print(f'cd {cwd}') 45 subprocess.run(str_args, cwd=cwd, check=True) 48 def read_xml_file(path: Path) -> minidom.Element: 53 def write_xml_file(root: minidom.Element, path: Path) -> None: [all …]
|