/tools/acloud/create/ |
D | create_common.py | 146 if os.path.exists(package_path): 156 for path in dirs_to_check: 158 cvd_host_package = os.path.join(path, name) 159 if os.path.exists(cvd_host_package): 168 def FindLocalImage(path, default_name_pattern, raise_error=True): argument 182 path = os.path.abspath(path) 183 if os.path.isdir(path): 184 names = [name for name in os.listdir(path) if 193 path = os.path.join(path, names[0]) 194 if os.path.isfile(path): [all …]
|
D | goldfish_local_image_local_instance_test.py | 34 self._image_dir = os.path.join(self._temp_dir, "images") 35 self._tool_dir = os.path.join(self._temp_dir, "tool") 36 self._instance_dir = os.path.join(self._temp_dir, "instance") 49 self._emulator_path = os.path.join(self._tool_dir, "emulator", 57 def _CreateEmptyFile(path): argument 58 parent_dir = os.path.dirname(path) 59 if not os.path.exists(parent_dir): 61 with open(path, "w") as _: 66 self.assertEqual(os.path.join(self._instance_dir, "mix_disk"), 68 output_path = os.path.join(output_dir, "mixed_disk.img") [all …]
|
/tools/treble/build/sandbox/ |
D | overlay.py | 55 def _FindBindMountConflict(self, path): argument 71 if path == bind_destination: 74 elif path.startswith(bind_destination + os.sep): 75 relative_path = os.path.relpath(path, bind_destination) 76 path_in_source = os.path.join(bind_mount.source_dir, relative_path) 77 if os.path.exists(path_in_source) and os.listdir(path_in_source): 123 current_dir_relative = os.path.relpath(current_dir_origin, overlay_dir) 124 current_dir_destination = os.path.normpath( 125 os.path.join(destination_dir, current_dir_relative)) 133 os.path.relpath(current_dir_origin, source_dir) in allowed_projects): [all …]
|
D | overlay_test.py | 64 os.mkdir(os.path.join(self.source_dir, 'base_dir')) 65 os.mkdir(os.path.join(self.source_dir, 'base_dir', 'base_project')) 66 os.mkdir(os.path.join(self.source_dir, 'base_dir', 'base_project', '.git')) 67 os.mkdir(os.path.join(self.source_dir, 'no_git_dir')) 68 os.mkdir(os.path.join(self.source_dir, 'no_git_dir', 'no_git_subdir1')) 69 open(os.path.join(self.source_dir, 71 os.mkdir(os.path.join(self.source_dir, 'no_git_dir', 'no_git_subdir2')) 72 open(os.path.join(self.source_dir, 74 os.mkdir(os.path.join(self.source_dir, 'overlays')) 75 os.mkdir(os.path.join(self.source_dir, [all …]
|
/tools/repohooks/rh/ |
D | git.py | 21 _path = os.path.realpath(__file__ + '/../..') 22 if sys.path[0] != _path: 23 sys.path.insert(0, _path) 92 def get_file_content(commit, path): argument 132 def raw_diff(path, target): argument 145 diff = rh.utils.run(cmd, cwd=path, capture_output=True).stdout 184 def find_repo_root(path=None, outer=False): argument 190 if path is None: 191 path = os.getcwd() 192 orig_path = path [all …]
|
D | config_unittest.py | 24 _path = os.path.realpath(__file__ + '/../..') 25 if sys.path[0] != _path: 26 sys.path.insert(0, _path) 59 path = os.path.join(self.tempdir, filename) 60 with open(path, 'w', encoding='utf-8') as fp: 62 return path 80 path = self._write_config('') 81 rh.config.PreUploadFile(path) 85 path = self._write_config("""# This be a comment me matey. 98 rh.config.PreUploadFile(path) [all …]
|
/tools/netsim/testing/netsim-grpc/ |
D | setup.py | 11 from os import path 26 here = path.abspath(path.dirname(__file__)) 27 root_dir = path.dirname(path.dirname(here)) 28 aosp_dir = path.dirname(path.dirname(root_dir)) 29 proto_root_dir = path.join(root_dir, "proto") 30 proto_dir = path.join(proto_root_dir, "netsim") 31 rootcanal_proto_root_dir = path.join( 40 rootcanal_proto_dir = path.join(rootcanal_proto_root_dir, "rootcanal") 41 out_dir = path.join(here, "src", "netsim_grpc", "proto") 47 source = path.join(rootcanal_proto_dir, proto_file) [all …]
|
/tools/acloud/internal/lib/ |
D | ota_tools_test.py | 63 self.path = None 66 def Load(self, path): argument 68 self.path = path 69 if not os.path.isfile(path): 71 with open(path, "r") as f: 80 os.mkdir(os.path.join(self._temp_dir, "bin")) 86 for path in self._captured_files: 87 if os.path.isfile(path): 88 os.remove(path) 91 def _CreateFile(path, contents): argument [all …]
|
D | goldfish_utils_test.py | 44 def _CreateEmptyFile(path): argument 45 os.makedirs(os.path.dirname(path), exist_ok=True) 46 with open(path, "w"): 59 boot_image_path = os.path.join(self._temp_dir, "boot.img") 60 image_dir = os.path.join(self._temp_dir, "image_dir") 63 with open(os.path.join(image_dir, "ramdisk-qemu.img"), "w") as ramdisk: 65 mix_dir = os.path.join(self._temp_dir, "mix_kernel") 66 unpack_dir = os.path.join(mix_dir, "unpacked_boot_img") 71 self._CreateEmptyFile(os.path.join(out_dir, "kernel")) 72 with open(os.path.join(out_dir, "ramdisk"), "w") as ramdisk: [all …]
|
D | cvd_utils_test.py | 59 zip_path = os.path.join(temp_dir, "in.zip") 60 output_dir = os.path.join(temp_dir, "out") 73 sorted(os.listdir(os.path.join(output_dir, "IMAGES")))) 75 os.listdir(os.path.join(output_dir, "META"))) 94 mock_isdir.side_effect = lambda path: path != "/mock/cvd.tar.gz" 138 lambda path: [path.replace("*", "super")] if 139 path.startswith("local/dir/IMAGES") else []) 154 self.CreateFile(os.path.join(image_dir, "vendor_boot.img")) 184 kernel_image_path = os.path.join(image_dir, "Image") 186 self.CreateFile(os.path.join(image_dir, "initramfs.img")) [all …]
|
/tools/asuite/atest/integration_tests/ |
D | snapshot.py | 227 path: str, 235 self.path = path 247 def __init__(self, path: str): 248 self.path = pathlib.Path(path) 251 def add(self, path: pathlib.Path, timestamp: float) -> str: 253 cache_key = path.as_posix() + str(timestamp) 256 content = path.read_bytes() 258 content_path = self.path.joinpath(content_hash[:2], content_hash[2:]) 267 file_path = self.path.joinpath(content_hash[:2], content_hash[2:]) 285 return self.path.joinpath('cache.json') [all …]
|
/tools/netsim/rust/cli/src/ |
D | browser.rs | 22 pub fn open<T: AsRef<OsStr>>(path: T) { in open() 23 let path = path.as_ref(); in open() localVariable 24 println!("Unsupported OS. Open this url:{:?}", path) in open() 28 pub fn open<T: AsRef<OsStr>>(path: T) { in open() 29 let path = path.as_ref(); in open() localVariable 33 open_cmd.arg(path); in open() 39 println!("xdg-open, gnome-open, kde-open not working (linux). Open this url:{:?}", path); in open() 43 pub fn open<T: AsRef<OsStr>>(path: T) { in open() 44 let path = path.as_ref(); in open() localVariable 46 open_cmd.arg(path); in open() [all …]
|
/tools/test/connectivity/tools/ |
D | proto_check.py | 35 if 'PROTOC' in os.environ and os.path.exists(os.environ['PROTOC']): 49 if not os.path.exists(proto_path): 53 if not os.path.exists(output_dir): 55 elif not os.path.isdir(output_dir): 59 input_dir = os.path.dirname(proto_path) 60 output_filename = os.path.basename(proto_path).replace('.proto', '_pb2.py') 61 output_path = os.path.join(output_dir, output_filename) 72 output_module_name = os.path.splitext(output_filename)[0] 90 tmp_proto_gen_file = os.path.join(tmp_dir, '%s.py' % module_name) 106 gen_filename = os.path.basename(proto_file).replace('.proto', '_pb2.py') [all …]
|
/tools/asuite/atest/ |
D | test_mapping.py | 102 self.path = details['path'] 106 return 'Source: %s, path: %s' % (self.test_mapping_file, self.path) 110 path = os.path.realpath( 111 os.path.join(os.path.dirname(self.test_mapping_file), self.path) 113 if os.path.exists(path): 114 return path 116 path = os.path.realpath(os.path.join(root_dir, self.path)) 117 if os.path.exists(path): 118 return path 142 test_mapping_dir = os.path.dirname(test_mapping_file) [all …]
|
/tools/asuite/atest/test_finders/ |
D | module_finder.py | 57 self, path: str, file_path: str = None 75 path=file_path, 80 path=path, 109 config_file = os.path.join( 117 if custom_out_dir is None or not os.path.isabs(custom_out_dir): 118 out_dir = os.path.relpath(out_dir, self.root_dir) 119 vts_out_dir = os.path.join(out_dir, 'vts10', 'android-vts10', 'testcases') 254 config_test_name = os.path.splitext(os.path.basename(rel_config))[0] 275 config_file = os.path.join(self.root_dir, rel_config) 350 def _get_test_info_filter(self, path, methods, **kwargs): argument [all …]
|
D | tf_integration_finder.py | 67 os.path.join(path, res_path) 68 for path in mod_paths 89 config_file = os.path.join(self.root_dir, rel_config) 98 def _load_xml_file(self, path): argument 107 tree = ElementTree.parse(path) 166 abs_path = os.path.join(self.root_dir, integration_dir) 213 jar_path = os.path.join( 221 if os.path.exists(jar_path): 225 jar_path = os.path.join( 233 if os.path.exists(jar_path): [all …]
|
D | suite_plan_finder_unittest.py | 39 os.path.join(uc.ROOT, uc.CTS_INT_DIR) 62 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan + '.xml') 70 self, want_info, self.suite_plan_finder._get_test_info_from_path(path) 74 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan + '.xml') 82 self, want_info, self.suite_plan_finder._get_test_info_from_path(path) 86 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, 'cts-common.xml') 91 self.suite_plan_finder._get_test_info_from_path(path, suite_plan), 94 path = os.path.join(uc.ROOT, 'cts-common.xml') 97 self, want_info, self.suite_plan_finder._get_test_info_from_path(path) 135 os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_name + '.xml') [all …]
|
D | test_finder_utils.py | 137 _VTS_PUSH_DIR = os.path.join( 244 if not os.path.isfile(test_path): 257 for path in parent_test_paths: 258 all_methods |= get_java_methods(path) 428 if not os.path.isdir(search_dir): 434 if os.path.isfile(index_file): 453 out = [path for path in _dict.get(target) if search_dir in path] 502 parent_dir = os.path.realpath(parent_dir) 503 sub_dir = os.path.realpath(sub_dir) 504 if not os.path.isdir(sub_dir) or not os.path.isdir(parent_dir): [all …]
|
/tools/treble/hacksaw/workspace/ |
D | compose_test.go | 34 gitDir := path.Join(codebaseDir, "project", ".git") 38 repoDir := path.Join(codebaseDir, ".repo") 43 listPath := path.Join(repoDir, "project.list") 52 wsTopDir := path.Join(wsTempDir, "hacksaw") 63 path.Join(wsTopDir, ".repo"), 64 path.Join(wsTopDir, "project"), 74 path.Join(wsTopDir, "project"), 75 path.Join(wsTopDir, ".repo"), 94 project2Git := path.Join(codebaseDir, "project2", ".git") 98 project1Git := path.Join(codebaseDir, "project1", ".git") [all …]
|
/tools/asuite/adevice/ |
D | Cargo.toml | 12 adevice_proto = {path = "adevice_proto" } 13 anyhow = { path = "../../../external/rust/crates/anyhow" } 14 atty = { path = "../../../external/rust/crates/atty"} 16 googletest = {path = "../../../external/rust/crates/googletest" } 17 hex = { path = "../../../external/rust/crates/hex" } 18 itertools = { path = "../../../external/rust/crates/itertools"} 19 lazy_static = { path = "../../../external/rust/crates/lazy_static"} 20 protobuf = { path = "../../../external/rust/crates/protobuf" } 21 rayon = { path = "../../../external/rust/crates/rayon"} 22 regex = { path = "../../../external/rust/crates/regex"} [all …]
|
/tools/asuite/aidegen/lib/ |
D | common_util.py | 132 elif os.path.isabs(target): 134 rel_path = os.path.relpath(abs_path, get_android_root_dir()) 140 abs_path = os.path.join(get_android_root_dir(), rel_path) 143 or os.path.isdir(os.path.join(get_android_root_dir(), target))): 145 abs_path = os.path.join(get_android_root_dir(), rel_path) 148 abs_path = os.path.abspath(os.path.join(os.getcwd(), target)) 149 rel_path = os.path.relpath(abs_path, get_android_root_dir()) 156 rel_path = os.path.relpath(abs_path, get_android_root_dir()) 279 if not os.path.isdir(abs_path): 311 return os.path.join(get_android_root_dir(), rel_path) [all …]
|
/tools/netsim/ui/assets/ |
D | netsim-logo.svg | 1 …path d="m0 0l244.0 0l0 349.0l-244.0 0l0 -349.0z" clip-rule="nonzero"/></clipPath><g clip-path="url…
|
D | netsim-logo-b.svg | 1 …path d="m0 0l244.0 0l0 349.0l-244.0 0l0 -349.0z" clip-rule="nonzero"/></clipPath><g clip-path="url…
|
/tools/netsim/ui/dist/assets/ |
D | netsim-logo-b.svg | 1 …path d="m0 0l244.0 0l0 349.0l-244.0 0l0 -349.0z" clip-rule="nonzero"/></clipPath><g clip-path="url…
|
D | netsim-logo.svg | 1 …path d="m0 0l244.0 0l0 349.0l-244.0 0l0 -349.0z" clip-rule="nonzero"/></clipPath><g clip-path="url…
|