Home
last modified time | relevance | path

Searched refs:rel_path (Results 1 – 15 of 15) sorted by relevance

/tools/asuite/aidegen/lib/
Dcommon_util.py121 rel_path = None
129 rel_path = ''
134 rel_path = os.path.relpath(abs_path, get_android_root_dir())
139 rel_path = paths[0].strip(os.sep)
140 abs_path = os.path.join(get_android_root_dir(), rel_path)
144 rel_path = target.strip(os.sep)
145 abs_path = os.path.join(get_android_root_dir(), rel_path)
149 rel_path = os.path.relpath(abs_path, get_android_root_dir())
154 rel_path = ''
156 rel_path = os.path.relpath(abs_path, get_android_root_dir())
[all …]
Dnative_util.py61 rel_path = os.path.relpath(parent_dir, common_util.get_android_root_dir())
63 if rel_path == '.':
64 rel_path = ''
69 mod_info, rel_path)
73 cc_module_info, rel_path, module_names)
193 rel_path, abs_path = common_util.get_related_paths(
197 if _check_native_project_exists(path_info, rel_path):
202 def _check_native_project_exists(path_to_module_info, rel_path): argument
214 if common_util.is_source_under_relative_path(path, rel_path):
Dproject_info.py121 rel_path, abs_path = common_util.get_related_paths(
126 self.modules_info.get_module_names(rel_path))
127 self.project_relative_path = rel_path
180 rel_path, abs_path = common_util.get_related_paths(
182 if rel_path and abs_path:
185 yield '\t' + os.path.join(rel_path, constant.ANDROID_MK)
187 def _get_modules_under_project_path(self, rel_path): argument
200 rel_path)
201 if rel_path == '':
207 data, rel_path):
Dnative_util_unittest.py60 rel_path = 'a/b'
64 rel_path))
65 rel_path = 'a/b/c/d'
68 rel_path))
117 rel_path = 'shared/path/to/be/used2'
118 mock_get_related.return_value = rel_path, os.path.join(parent, rel_path)
122 targets = [rel_path]
Dmodule_info.py112 def is_project_path_relative_module(mod_info, rel_path): argument
134 if rel_path == '':
137 and common_util.is_source_under_relative_path(path, rel_path)):
Dsource_locator.py493 rel_path = self._get_jar_path_from_prebuilts(jar_name)
494 if rel_path:
495 jar_path = rel_path
525 rel_path = ''
531 rel_path = os.path.relpath(
533 return rel_path
Dcommon_util_unittest.py108 rel_path = 'b/c/d'
110 mod_info.get_paths.return_value = [rel_path]
115 expected = (rel_path, abs_path)
285 rel_path = 'a/b'
286 self.assertTrue(common_util.has_build_target(mod_info, rel_path))
287 rel_path = 'd/e'
288 self.assertFalse(common_util.has_build_target(mod_info, rel_path))
Dproject_config_unittest.py155 rel_path = 'to/path'
158 mock_get_rel.return_value = rel_path, abs_path
161 self.assertEqual([rel_path], result)
Dnative_module_info.py96 rel_path, _ = common_util.get_related_paths(self, target)
98 if common_util.is_source_under_relative_path(path, rel_path):
/tools/asuite/atest/
Dbazel_mode.py244 self, rel_path: pathlib.Path = None, affects_workspace: bool = False
256 file_md5_pb2.RootType.SRC_ROOT, rel_path, affects_workspace
261 rel_path: pathlib.Path = None,
274 file_md5_pb2.RootType.RESOURCE_ROOT, rel_path, affects_workspace
278 self, rel_path: pathlib.Path = None, affects_workspace: bool = False
290 file_md5_pb2.RootType.PRODUCT_OUT, rel_path, affects_workspace
296 rel_path: pathlib.Path,
300 rel_path or pathlib.Path()
320 rel_path = abs_path
322 rel_path = abs_path.relative_to(self._root_type_to_path[root_type])
[all …]
/tools/asuite/aidegen/
Daidegen_main_unittest.py502 rel_path = 'c/d'
503 mock_get_related.return_value = rel_path, abs_path
538 rel_path = 'c/d'
539 mock_get_rel.return_value = rel_path, abs_path
549 rel_path = 'c/d'
554 [abs_path], aidegen_main._get_rust_project_paths([rel_path], root))
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py224 def _get_unique_module_name(rel_path, filename): argument
234 code_names = rel_path.split(os.sep)
367 rel_path, abs_path = common_util.get_related_paths(atest_module_info,
371 item_name = _get_unique_module_name(rel_path, filename)
/tools/asuite/atest/test_finders/
Dmodule_finder.py841 def find_test_by_path(self, rel_path: str) -> List[test_info.TestInfo]:
858 logging.debug('Finding test by path: %s', rel_path)
859 path, methods = test_filter_utils.split_methods(rel_path)
878 self.module_info.get_modules_by_path_in_srcs(rel_path),
904 os.path.realpath(rel_path),
/tools/asuite/atest/proto/
Dfile_md5.proto12 string rel_path = 2; field
/tools/tradefederation/core/res/perfetto/
Drecord_android_trace316 def repo_dir(rel_path):
317 return os.path.join(repo_root() or '', rel_path)