Home
last modified time | relevance | path

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

12345678910>>...18

/tools/tradefederation/core/atest/
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 …]
/tools/treble/build/sandbox/
Doverlay.py53 def _FindBindMountConflict(self, path): argument
66 if path == bind_destination:
69 elif path.startswith(bind_destination + os.sep):
70 relative_path = os.path.relpath(path, bind_destination)
71 path_in_source = os.path.join(bind_mount.source_dir, relative_path)
72 if os.path.exists(path_in_source) and os.listdir(path_in_source):
109 current_dir_relative = os.path.relpath(current_dir_origin, overlay_dir)
110 current_dir_destination = os.path.normpath(
111 os.path.join(destination_dir, current_dir_relative))
126 current_dir_ancestor = os.path.dirname(current_dir_ancestor)
[all …]
/tools/acloud/create/
Dgoldfish_local_image_local_instance.py108 image_path = os.path.join(image_dir, partition_name + ".img")
109 if not os.path.isfile(image_path):
139 image_path = os.path.join(image_dir, partition_name + ".img")
140 if not os.path.isfile(image_path):
172 emulator_path = os.path.abspath(emulator_path)
174 image_dir = os.path.abspath(avd_spec.local_image_dir)
176 if not (os.path.isfile(os.path.join(image_dir, _SYSTEM_IMAGE_NAME)) or
177 os.path.isfile(os.path.join(image_dir,
243 mixed_super_image_path = os.path.join(output_dir, "mixed_super.img")
244 system_image_path = os.path.join(system_image_dir, _SYSTEM_IMAGE_NAME)
[all …]
Dgoldfish_local_image_local_instance_test.py40 self._image_dir = os.path.join(self._temp_dir, "images")
41 self._tool_dir = os.path.join(self._temp_dir, "tool")
42 self._instance_dir = os.path.join(self._temp_dir, "instance")
52 self._emulator_path = os.path.join(self._tool_dir, "emulator",
60 def _CreateEmptyFile(path): argument
61 parent_dir = os.path.dirname(path)
62 if not os.path.exists(parent_dir):
64 with open(path, "w") as _:
109 os.path.join(self._instance_dir, "logcat.txt"),
111 os.path.join(self._instance_dir, "stdouterr.txt")
[all …]
/tools/repohooks/rh/
Dgit.py24 _path = os.path.realpath(__file__ + '/../..')
25 if sys.path[0] != _path:
26 sys.path.insert(0, _path)
95 def get_file_content(commit, path): argument
105 cmd = ['git', 'show', '%s:%s' % (commit, path)]
135 def raw_diff(path, target): argument
148 diff = rh.utils.run(cmd, cwd=path, capture_output=True).stdout
187 def find_repo_root(path=None): argument
189 if path is None:
190 path = os.getcwd()
[all …]
/tools/acloud/internal/lib/
Dota_tools_test.py62 self.path = None
65 def Load(self, path): argument
67 self.path = path
68 if not os.path.isfile(path):
70 with open(path, "r") as f:
79 os.mkdir(os.path.join(self._temp_dir, "bin"))
85 for path in self._captured_files:
86 if os.path.isfile(path):
87 os.remove(path)
90 def _CreateFile(path, contents): argument
[all …]
/tools/test/connectivity/tools/
Dproto_check.py44 tmp_proto_gen_file = os.path.join(tmp_dir, '%s.py' % module_name)
60 gen_filename = os.path.basename(proto_file).replace('.proto', '_pb2.py')
63 for path in gen_files:
64 if (os.path.basename(path) == gen_filename
65 and path.startswith(os.path.dirname(proto_file))):
66 gen_file = path
67 gen_files.remove(path)
71 for root, _, filenames in os.walk(os.path.dirname(proto_file)):
74 gen_file = os.path.join(root, filename)
86 protoc, '-I=%s' % os.path.dirname(proto_file),
[all …]
/tools/asuite/atest/test_finders/
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 …]
Dtest_finder_utils.py126 _VTS_PUSH_DIR = os.path.join(os.environ.get(constants.ANDROID_BUILD_TOP, ''),
193 cls = os.path.splitext(os.path.split(test_path)[1])[0]
246 if not os.path.isfile(test_path):
372 out_dirs.append(os.path.dirname(out_file.strip()))
377 if os.path.isabs(custom_out_dir):
380 user_out_dir = os.path.join(build_top, custom_out_dir)
423 if not os.path.isdir(search_dir):
428 if os.path.isfile(FIND_INDEXES[ref_type]):
440 out = [path for path in _dict.get(target) if search_dir in path]
489 parent_dir = os.path.realpath(parent_dir)
[all …]
Dtf_integration_finder.py65 return [os.path.join(path, _TF_RES_DIR) for path in mod_paths]
80 config_file = os.path.join(self.root_dir, rel_config)
88 def _load_xml_file(self, path): argument
97 tree = ElementTree.parse(path)
150 abs_path = os.path.join(self.root_dir, integration_dir)
203 rel_config = os.path.relpath(test_file, self.root_dir)
218 for path in paths:
221 path))
232 def find_int_test_by_path(self, path): argument
246 path, _ = test_finder_utils.split_methods(path)
[all …]
Dsuite_plan_finder.py65 def _get_test_info_from_path(self, path, suite_name=None): argument
79 match = _SUITE_PLAN_NAME_RE.match(path)
81 logging.error('Suite plan test outside config dir: %s', path)
112 path, _ = test_finder_utils.split_methods(suite_path)
114 if not path.endswith('.xml'):
116 path = os.path.realpath(path)
118 path, self.suite_plan_dirs)
120 rel_config = os.path.relpath(path, self.root_dir)
/tools/tradefederation/core/atest/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 …]
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 …]
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 …]
Dsuite_plan_finder.py65 def _get_test_info_from_path(self, path, suite_name=None): argument
79 match = _SUITE_PLAN_NAME_RE.match(path)
81 logging.error('Suite plan test outside config dir: %s', path)
111 path, _ = test_finder_utils.split_methods(suite_path)
113 if not path.endswith('.xml'):
115 path = os.path.realpath(path)
117 path, self.suite_plan_dirs)
119 rel_config = os.path.relpath(path, self.root_dir)
/tools/test/connectivity/acts/framework/acts/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/test/connectivity/acts/framework/tests/
Dacts_import_unit_test.py32 def import_module(name, path): argument
33 return imp.load_source(name, path)
41 def import_module(name, path): argument
42 return importlib.machinery.SourceFileLoader(name, path).load_module()
123 acts_path = os.path.dirname(acts.__file__)
124 tests_path = os.path.normpath(os.path.join(acts_path, '../../tests'))
129 full_path = os.path.join(root, f)
135 path = os.path.relpath(os.path.join(root, f), os.getcwd())
138 with self.subTest(msg='import %s' % path):
140 module = import_module(fake_module_name, path)
/tools/tradefederation/core/atest/asuite_lib_test/
Dasuite_lib_run_test.py35 base_path = os.path.dirname(os.path.realpath(__file__))
41 full_file_path = os.path.join(dirpath, f)
42 rel_file_path = os.path.relpath(full_file_path, base_path)
43 rel_file_path, _ = os.path.splitext(rel_file_path)
62 for path in sys.path:
63 if path.endswith('/atest'):
64 sys.path.remove(path)
/tools/acloud/
Dsetup.py30 ACLOUD_DIR = os.path.realpath(os.path.dirname(__file__))
39 if "PROTOC" in os.environ and os.path.exists(os.environ["PROTOC"]):
58 if not os.path.exists(output) or (
59 os.path.exists(source) and
60 os.path.getmtime(source) > os.path.getmtime(output)):
63 if not os.path.exists(source):
80 GenerateProto(os.path.join(ACLOUD_DIR, "internal/proto/user_config.proto"))
81 GenerateProto(os.path.join(ACLOUD_DIR, "internal/proto/internal_config.proto"))
82 open(os.path.join(ACLOUD_DIR, "internal/proto/__init__.py"), "a").close()
/tools/asuite/aidegen/lib/
Dcommon_util.py129 elif os.path.isabs(target):
131 rel_path = os.path.relpath(abs_path, get_android_root_dir())
137 abs_path = os.path.join(get_android_root_dir(), rel_path)
140 or os.path.isdir(os.path.join(get_android_root_dir(), target))):
142 abs_path = os.path.join(get_android_root_dir(), rel_path)
145 abs_path = os.path.abspath(os.path.join(os.getcwd(), target))
146 rel_path = os.path.relpath(abs_path, get_android_root_dir())
153 rel_path = os.path.relpath(abs_path, get_android_root_dir())
276 if not os.path.isdir(abs_path):
308 return os.path.join(get_android_root_dir(), rel_path)
[all …]
Dconfig.py57 _CONFIG_DIR = os.path.join(
58 os.path.expanduser('~'), '.config', 'asuite', 'aidegen')
59 _CONFIG_FILE_PATH = os.path.join(_CONFIG_DIR, _DEFAULT_CONFIG_FILE)
65 _ENABLE_DEBUG_DIR = os.path.join(_CONFIG_DIR, _ENABLE_DEBUG_CONFIG_DIR)
68 DEBUG_ENABLED_FILE_PATH = os.path.join(_ENABLE_DEBUG_DIR,
108 real_version = os.path.realpath(preferred_version)
130 if os.path.exists(self._CONFIG_FILE_PATH):
155 if not os.path.exists(self._CONFIG_DIR):
164 _dir = os.path.join(self._ENABLE_DEBUG_DIR, dir_name)
165 if not os.path.exists(_dir):
[all …]
Dide_common_util.py88 exe_file = os.path.join(root, file_)
122 if os.path.basename(input_path).startswith(ide_file_name):
176 if not os.path.isfile(project_path):
177 return os.path.isdir(project_path) and os.path.isdir(
178 os.path.join(project_path, _IDEA_FOLDER))
180 _, ext = os.path.splitext(os.path.basename(project_path))
182 path = os.path.dirname(project_path)
183 logging.debug('Extracted path is: %s.', path)
184 return os.path.isdir(os.path.join(path, _IDEA_FOLDER))
206 if os.path.isfile(input_path):
[all …]
Dproject_file_gen.py60 _GITIGNORE_ABS_PATH = os.path.join(common_util.get_android_root_dir(),
64 _CODE_STYLE_SRC_PATH = os.path.join(common_util.get_android_root_dir(),
130 idea_dir = os.path.join(target_path, _IDEA_FOLDER)
131 copyright_dir = os.path.join(idea_dir, _COPYRIGHT_FOLDER)
132 code_style_dir = os.path.join(idea_dir, _CODE_STYLE_FOLDER)
134 os.path.join(idea_dir, _COMPILE_XML), templates.XML_COMPILER)
136 os.path.join(idea_dir, _MISC_XML), templates.XML_MISC)
138 os.path.join(copyright_dir, _APACHE_2_XML), templates.XML_APACHE_2)
140 os.path.join(copyright_dir, _PROFILES_SETTINGS_XML),
143 os.path.join(code_style_dir, _CODE_STYLE_CONFIG_XML),
[all …]
/tools/test/connectivity/acts/framework/
Dsetup.py70 test_path = os.path.join(os.path.dirname(__file__),
143 our_dir = os.path.abspath(os.path.dirname(__file__))
144 if our_dir in sys.path:
145 sys.path.remove(our_dir)
147 if os.getcwd() in sys.path:
148 sys.path.remove(os.getcwd())
169 framework_dir = os.path.dirname(os.path.realpath(__file__))
171 os.path.join(framework_dir, 'acts', 'bin', 'act.py'),
172 os.path.join(framework_dir, 'acts', 'bin', 'monsoon.py')
196 if os.path.islink(act_file):
[all …]

12345678910>>...18