Home
last modified time | relevance | path

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

12345678910>>...20

/tools/asuite/atest/test_finders/
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 …]
Dmodule_finder.py54 def _determine_testable_module(self, path): argument
67 for mod in self.module_info.get_module_names(path):
102 config_file = os.path.join(self.root_dir,
109 if custom_out_dir is None or not os.path.isabs(custom_out_dir):
110 out_dir = os.path.relpath(out_dir, self.root_dir)
111 vts_out_dir = os.path.join(out_dir, 'vts10', 'android-vts10', 'testcases')
182 config_file = os.path.join(self.root_dir, rel_config)
223 def _get_test_info_filter(self, path, methods, **kwargs): argument
238 _, file_name = test_finder_utils.get_dir_path_and_filename(path)
247 path)
[all …]
Dtest_finder_utils_unittest.py38 INT_DIR1 = os.path.join(uc.TEST_DATA_DIR, 'integration_dir_testing/int_dir1')
39 INT_DIR2 = os.path.join(uc.TEST_DATA_DIR, 'integration_dir_testing/int_dir2')
66 VTS_PLAN_TARGETS = {os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-staging-default.xml'),
67 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-aa.xml'),
68 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-bb.xml'),
69 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-cc.xml'),
70 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-dd.xml')}
128 paths = [os.path.join(uc.ROOT, CLASS_DIR, uc.CLASS_NAME + '.java')]
131 paths = [os.path.join(uc.ROOT, CLASS_DIR, uc.CLASS_NAME + '.java')]
135 paths = [os.path.join(uc.ROOT, CLASS_DIR, uc.CLASS_NAME + '.java')]
[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 …]
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 …]
/tools/tradefederation/core/atest/test_finders/
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 …]
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 …]
Dtest_finder_utils_unittest.py35 INT_DIR1 = os.path.join(uc.TEST_DATA_DIR, 'integration_dir_testing/int_dir1')
36 INT_DIR2 = os.path.join(uc.TEST_DATA_DIR, 'integration_dir_testing/int_dir2')
63 VTS_PLAN_TARGETS = {os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-staging-default.xml'),
64 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-aa.xml'),
65 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-bb.xml'),
66 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-cc.xml'),
67 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-dd.xml')}
125 paths = [os.path.join(uc.ROOT, CLASS_DIR, uc.CLASS_NAME + '.java')]
128 paths = [os.path.join(uc.ROOT, CLASS_DIR, uc.CLASS_NAME + '.java')]
132 paths = [os.path.join(uc.ROOT, CLASS_DIR, uc.CLASS_NAME + '.java')]
[all …]
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 …]
/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/asuite/aidegen/lib/
Dide_util.py79 LINUX_JDK_PATH = os.path.join(common_util.get_android_root_dir(),
83 LINUX_ANDROID_SDK_PATH = os.path.join(os.getenv('HOME'), 'Android/Sdk')
84 MAC_JDK_PATH = os.path.join(common_util.get_android_root_dir(),
88 MAC_ANDROID_SDK_PATH = os.path.join(os.getenv('HOME'), 'Library/Android/sdk')
230 jdk_file = os.path.join(_config_path, self._IDE_JDK_TABLE_PATH)
239 intellij_config_dir = os.path.join(_config_path, self._CONFIG_DIR)
254 file_type_path = os.path.join(_config_path, self._IDE_FILE_TYPE_PATH)
255 if not os.path.isfile(file_type_path):
338 return [os.path.join(f, self._bin_file_name) for f in self._bin_folders]
349 path = ide_common_util.get_scripts_from_dir_path(
[all …]
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 …]
Dclion_project_file_gen.py147 os.path.join(self.mod_path, self.mod_name))
148 if not os.path.exists(self.cc_dir):
150 self.cc_path = os.path.join(self.cc_dir,
204 for path in mod_paths:
205 if common_util.is_source_under_relative_path(path, parent_dir):
206 mod_path = path
225 return os.path.join(common_util.get_android_root_dir(),
391 cc_dir = os.path.join(root_dir, constant.RELATIVE_NATIVE_PATH,
393 cc_out_dir = os.path.join(root_dir, common_util.get_android_out_dir(),
395 if not os.path.exists(cc_dir):
[all …]
Dsource_locator.py54 _FRAMEWORK_SRCJARS_PATH = os.path.join(constant.FRAMEWORK_PATH,
125 self.specific_soong_path = os.path.join(
160 if not os.path.exists(common_util.get_abs_path(srcjar)):
181 if (os.path.basename(srcjar) in _TARGET_BUILD_FILES
196 if not os.path.exists(common_util.get_abs_path(srcjar)):
221 target_folder, target_file = os.path.split(srcjar)
222 base_dirname = os.path.basename(target_folder)
224 return os.path.join(target_folder, _NAME_AAPT2)
226 return os.path.join(os.path.dirname(target_folder),
272 src_item = os.path.relpath(src_item)
[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/treble/build/sandbox/
Doverlay.py54 def _FindBindMountConflict(self, path): argument
67 if path == bind_destination:
70 elif path.startswith(bind_destination + os.sep):
71 relative_path = os.path.relpath(path, bind_destination)
72 path_in_source = os.path.join(bind_mount.source_dir, relative_path)
73 if os.path.exists(path_in_source) and os.listdir(path_in_source):
113 current_dir_relative = os.path.relpath(current_dir_origin, overlay_dir)
114 current_dir_destination = os.path.normpath(
115 os.path.join(destination_dir, current_dir_relative))
123 os.path.relpath(current_dir_origin, source_dir) in allowed_projects):
[all …]
Doverlay_test.py36 os.mkdir(os.path.join(self.source_dir, 'base_dir'))
37 os.mkdir(os.path.join(self.source_dir, 'base_dir', 'base_project'))
38 os.mkdir(os.path.join(self.source_dir, 'base_dir', 'base_project', '.git'))
39 os.mkdir(os.path.join(self.source_dir, 'overlays'))
40 os.mkdir(os.path.join(self.source_dir,
42 os.mkdir(os.path.join(self.source_dir,
44 os.mkdir(os.path.join(self.source_dir,
46 os.mkdir(os.path.join(self.source_dir,
48 os.mkdir(os.path.join(self.source_dir,
51 os.mkdir(os.path.join(self.source_dir,
[all …]
/tools/metalava/src/test/java/com/android/tools/metalava/
DDriverTest.kt189 for (path in classPath.split(':')) { in <lambda>() constant
190 val file = File(path) in <lambda>()
196 paths.add(file.path) in <lambda>()
214 return javaHomeFile.path in <lambda>()
491 var sourcePath = sourcePathDir.path in <lambda>()
514 args.add(signatureFile.path) in <lambda>()
524 arrayOf(apiJar.path) in <lambda>()
526 … sourceFiles.asSequence().map { File(project, it.targetPath).path }.toList().toTypedArray() in <lambda>()
532 .map { it.path } in <lambda>()
554 arrayOf(ARG_MERGE_QUALIFIER_ANNOTATIONS, merged.path) in <lambda>()
[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/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/test/connectivity/acts_tests/tests/google/tel/live/
DTelLiveSettingsTest.py140 path = self.user_params.get(path_key)
141 if not path:
143 elif isinstance(path, list):
144 if not path[0]:
146 path = path[0]
147 if "dev/null" in path:
149 if not os.path.exists(path):
150 self.log.error("path %s does not exist", path)
152 path = os.path.join(
153 self.user_params[Config.key_config_path.value], path)
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DDriver.kt250 if (sources.isNotEmpty() && sources[0].path.endsWith(DOT_TXT)) { in processFlags()
252 sources.firstOrNull { !it.path.endsWith(DOT_TXT) }?. let { in processFlags()
258 } else if (sources.size == 1 && sources[0].path.endsWith(DOT_JAR)) { in processFlags()
362 if (previousApiFile.path.endsWith(DOT_JAR)) { in processFlags()
405 val rootPath = root.path in processFlags()
407 val path = it.path in processFlags() constant
408 if (path.startsWith(rootPath)) { in processFlags()
409 path.substring(rootPath.length) in processFlags()
411 path in processFlags()
440 val path = subtractApiFile.path in subtractApi() constant
[all …]
/tools/tradefederation/core/atest/
Dcli_translator.py309 def _find_files(self, path, file_name=constants.TEST_MAPPING): argument
320 for root, _, filenames in os.walk(path):
322 test_mapping_files.append(os.path.join(root, filename))
364 self, path='', test_group=constants.TEST_GROUP_PRESUBMIT, argument
386 path = os.path.realpath(path)
389 test_mapping_file = os.path.join(path, file_name)
390 if os.path.exists(test_mapping_file):
395 test_mapping_files.update(self._find_files(path, file_name))
398 while path != root_dir and path != os.sep:
399 path = os.path.dirname(path)
[all …]

12345678910>>...20