Home
last modified time | relevance | path

Searched refs:path (Results 1 – 25 of 413) sorted by relevance

12345678910>>...17

/tools/treble/build/sandbox/
Doverlay.py55 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 …]
Doverlay_test.py64 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/acloud/create/
Dcreate_common.py89 for path in dirs_to_check:
90 cvd_host_package = os.path.join(path, constants.CVD_HOST_PACKAGE)
91 if os.path.exists(cvd_host_package):
100 def FindLocalImage(path, default_name_pattern): argument
114 path = os.path.abspath(path)
115 if os.path.isdir(path):
116 names = [name for name in os.listdir(path) if
119 raise errors.GetLocalImageError("No image in %s." % path)
122 (path, " ".join(names)))
123 path = os.path.join(path, names[0])
[all …]
Dgoldfish_local_image_local_instance.py233 mixed_super_image_path = os.path.join(output_dir, "mixed_super.img")
236 os.path.join(image_dir, _MISC_INFO_FILE_NAME),
241 disabled_vbmeta_image_path = os.path.join(output_dir,
246 combined_image = os.path.join(output_dir, "combined.img")
249 os.path.join(image_dir, _SYSTEM_QEMU_CONFIG_FILE_NAME),
276 if os.path.isfile(os.path.join(search_path, _EMULATOR_BIN_NAME)):
280 sdk_repo_dir = os.path.join(search_path,
282 if os.path.isfile(os.path.join(sdk_repo_dir, _EMULATOR_BIN_NAME)):
290 if (prebuilt_emulator_dir and os.path.isfile(
291 os.path.join(prebuilt_emulator_dir, _EMULATOR_BIN_NAME))):
[all …]
Dgoldfish_local_image_local_instance_test.py42 self._image_dir = os.path.join(self._temp_dir, "images")
43 self._tool_dir = os.path.join(self._temp_dir, "tool")
44 self._instance_dir = os.path.join(self._temp_dir, "instance")
57 self._emulator_path = os.path.join(self._tool_dir, "emulator",
65 def _CreateEmptyFile(path): argument
66 parent_dir = os.path.dirname(path)
67 if not os.path.exists(parent_dir):
69 with open(path, "w") as _:
115 os.path.join(self._instance_dir, "logcat.txt"),
117 os.path.join(self._instance_dir, "stdouterr.txt")
[all …]
/tools/repohooks/rh/
Dconfig_unittest.py24 _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') 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 …]
Dgit.py21 _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
102 cmd = ['git', 'show', '%s:%s' % (commit, path)]
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): argument
186 if path is None:
187 path = os.getcwd()
[all …]
/tools/asuite/atest/test_finders/
Dtf_integration_finder.py71 return [os.path.join(path, res_path) for path in mod_paths
87 config_file = os.path.join(self.root_dir, rel_config)
95 def _load_xml_file(self, path): argument
104 tree = ElementTree.parse(path)
159 abs_path = os.path.join(self.root_dir, integration_dir)
201 jar_path = os.path.join(
204 if os.path.exists(jar_path):
208 jar_path = os.path.join(
211 if os.path.exists(jar_path):
236 extract_path = os.path.join(
[all …]
Dsuite_plan_finder_unittest.py42 self.suite_plan_finder.suite_plan_dirs = [os.path.join(uc.ROOT, uc.CTS_INT_DIR)]
62 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan+'.xml')
68 self, want_info, self.suite_plan_finder._get_test_info_from_path(path))
71 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan+'.xml')
77 self, want_info, self.suite_plan_finder._get_test_info_from_path(path))
80 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, 'cts-common.xml')
83 self, want_info, self.suite_plan_finder._get_test_info_from_path(path, suite_plan))
85 path = os.path.join(uc.ROOT, 'cts-common.xml')
88 self, want_info, self.suite_plan_finder._get_test_info_from_path(path))
120 _search.return_value = [os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_name + '.xml')]
[all …]
Dmodule_finder.py54 def _determine_testable_module(self, path, file_path=None): argument
70 for mod in self.module_info.get_module_names(path):
82 if file_path and os.path.relpath(
120 config_file = os.path.join(self.root_dir,
127 if custom_out_dir is None or not os.path.isabs(custom_out_dir):
128 out_dir = os.path.relpath(out_dir, self.root_dir)
129 vts_out_dir = os.path.join(out_dir, 'vts10', 'android-vts10', 'testcases')
198 config_test_name = os.path.splitext(os.path.basename(
219 config_file = os.path.join(self.root_dir, rel_config)
280 def _get_test_info_filter(self, path, methods, **kwargs): argument
[all …]
Dtest_finder_utils.py147 _VTS_PUSH_DIR = os.path.join(os.environ.get(constants.ANDROID_BUILD_TOP, ''),
214 cls = os.path.splitext(os.path.split(test_path)[1])[0]
282 if not os.path.isfile(test_path):
423 out_dirs.append(os.path.dirname(out_file.strip()))
428 if os.path.isabs(custom_out_dir):
431 user_out_dir = os.path.join(build_top, custom_out_dir)
474 if not os.path.isdir(search_dir):
482 if os.path.isfile(FIND_INDEXES[ref_type]) and is_valid_mlocate:
493 out = [path for path in _dict.get(target) if search_dir in path]
543 parent_dir = os.path.realpath(parent_dir)
[all …]
/tools/asuite/atest-py2/
Dtest_mapping.py105 self.path = details['path']
109 return 'Source: %s, path: %s' % (self.test_mapping_file, self.path)
113 path = os.path.realpath(os.path.join(
114 os.path.dirname(self.test_mapping_file), self.path))
115 if os.path.exists(path):
116 return path
118 path = os.path.realpath(os.path.join(root_dir, self.path))
119 if os.path.exists(path):
120 return path
143 test_mapping_dir = os.path.dirname(test_mapping_file)
[all …]
/tools/asuite/atest/
Dtest_mapping.py103 self.path = details['path']
107 return 'Source: %s, path: %s' % (self.test_mapping_file, self.path)
111 path = os.path.realpath(os.path.join(
112 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
141 test_mapping_dir = os.path.dirname(test_mapping_file)
[all …]
Datest_utils.py51 sys.path.insert(0, os.path.dirname(sysconfig.get_paths()['purelib']))
52 sys.path.insert(0, os.path.dirname(sysconfig.get_paths()['stdlib']))
85 print('sys.path: %s', sys.path)
98 CMD_RESULT_PATH = os.path.join(os.environ.get(constants.ANDROID_BUILD_TOP,
104 TEST_INFO_CACHE_ROOT = os.path.join(os.path.expanduser('~'), '.atest',
131 (os.path.relpath(os.environ.get(
218 error_log_file = os.path.join(get_build_out_dir(), "error.log")
220 if os.path.isfile(error_log_file):
242 if os.path.isabs(custom_out_dir):
245 user_out_dir = os.path.join(build_top, custom_out_dir)
[all …]
/tools/acloud/internal/lib/
Dota_tools_test.py63 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 …]
/tools/test/connectivity/tools/
Dproto_check.py35 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/treble/hacksaw/workspace/
Dcompose_test.go34 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 …]
Dcopier_test.go31 project1GitDir := path.Join(codebaseDir, "project1", ".git")
36 project1File := path.Join(codebaseDir, "project1", "projectfile")
40 symlink := path.Join(codebaseDir, "symlink")
41 if err = os.Symlink(path.Join(codebaseDir, "project1"), symlink); err != nil {
44 project2GitDir := path.Join(codebaseDir, "dirwithprojects", "project2", ".git")
48 dirWithoutProjects := path.Join(codebaseDir, "dirwithoutprojects")
52 projectSiblingFile := path.Join(codebaseDir, "dirwithprojects", "projectsiblingfile")
56 noProjectFile1 := path.Join(dirWithoutProjects, "noprojectfile1")
60 noProjectFile2 := path.Join(dirWithoutProjects, "noprojectfile2")
64 topFile := path.Join(codebaseDir, "topfile")
[all …]
/tools/asuite/atest-py2/test_finders/
Dsuite_plan_finder_unittest.py38 self.suite_plan_finder.suite_plan_dirs = [os.path.join(uc.ROOT, uc.CTS_INT_DIR)]
58 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan+'.xml')
64 self, want_info, self.suite_plan_finder._get_test_info_from_path(path))
67 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan+'.xml')
73 self, want_info, self.suite_plan_finder._get_test_info_from_path(path))
76 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, 'cts-common.xml')
79 self, want_info, self.suite_plan_finder._get_test_info_from_path(path, suite_plan))
81 path = os.path.join(uc.ROOT, 'cts-common.xml')
84 self, want_info, self.suite_plan_finder._get_test_info_from_path(path))
116 _search.return_value = [os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_name + '.xml')]
[all …]
Dtest_finder_utils.py119 _VTS_PUSH_DIR = os.path.join(os.environ.get(constants.ANDROID_BUILD_TOP, ''),
186 cls = os.path.splitext(os.path.split(test_path)[1])[0]
239 if not os.path.isfile(test_path):
364 out_dirs.append(os.path.dirname(out_file.strip()))
369 if os.path.isabs(custom_out_dir):
372 user_out_dir = os.path.join(build_top, custom_out_dir)
415 if not os.path.isdir(search_dir):
420 if os.path.isfile(FIND_INDEXES[ref_type]):
432 out = [path for path in _dict.get(target) if search_dir in path]
479 parent_dir = os.path.realpath(parent_dir)
[all …]
Dtf_integration_finder.py63 return [os.path.join(path, _TF_RES_DIR) for path in mod_paths]
78 config_file = os.path.join(self.root_dir, rel_config)
86 def _load_xml_file(self, path): argument
95 tree = ElementTree.parse(path)
146 abs_path = os.path.join(self.root_dir, integration_dir)
199 rel_config = os.path.relpath(test_file, self.root_dir)
214 for path in paths:
217 path))
228 def find_int_test_by_path(self, path): argument
242 path, _ = test_finder_utils.split_methods(path)
[all …]
Dmodule_finder.py52 def _determine_testable_module(self, path): argument
65 for mod in self.module_info.get_module_names(path):
100 config_file = os.path.join(self.root_dir,
107 if custom_out_dir is None or not os.path.isabs(custom_out_dir):
108 out_dir = os.path.relpath(out_dir, self.root_dir)
109 vts_out_dir = os.path.join(out_dir, 'vts10', 'android-vts10', 'testcases')
180 config_file = os.path.join(self.root_dir, rel_config)
221 def _get_test_info_filter(self, path, methods, **kwargs): argument
236 _, file_name = test_finder_utils.get_dir_path_and_filename(path)
245 path)
[all …]
/tools/test/openhst/
Dstress_test_common.py36 def MakeDirsIfNeeded(path): argument
38 if not os.path.isdir(path):
39 os.makedirs(path)
47 path = os.path.join(FLAGS.resource_path, os.path.basename(resource_name))
48 if os.path.exists(path):
49 return open(path, "rb").read()
52 if os.path.exists(resource_name):
54 return open(os.path.join(RESOURCE_DIR, os.path.basename(resource_name)),
63 os.path.join(RESOURCE_DIR, "device_config.common.ascii_proto")), config)
69 os.path.join(RESOURCE_DIR,
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/coex/
Daudio_test_utils.py70 def __init__(self, path, audio_params=None): argument
77 self.path = path
79 self.analysis_path = os.path.join(self.log_path,
102 return audio_analysis.get_file_THDN(filename=self.path,
106 return audio_analysis.get_file_max_THDN(filename=self.path,
136 return audio_analysis.get_file_anomaly_durations(filename=self.path,
146 while os.path.exists(self.analysis_path % counter):
157 if not os.path.exists(self.path):
160 quality_analysis(filename=self.path,
174 original_record_file_name = 'original_' + os.path.basename(self.path)
[all …]
/tools/asuite/aidegen/lib/
Dcommon_util.py135 elif os.path.isabs(target):
137 rel_path = os.path.relpath(abs_path, get_android_root_dir())
143 abs_path = os.path.join(get_android_root_dir(), rel_path)
146 or os.path.isdir(os.path.join(get_android_root_dir(), target))):
148 abs_path = os.path.join(get_android_root_dir(), rel_path)
151 abs_path = os.path.abspath(os.path.join(os.getcwd(), target))
152 rel_path = os.path.relpath(abs_path, get_android_root_dir())
159 rel_path = os.path.relpath(abs_path, get_android_root_dir())
282 if not os.path.isdir(abs_path):
314 return os.path.join(get_android_root_dir(), rel_path)
[all …]

12345678910>>...17