Home
last modified time | relevance | path

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

/tools/asuite/aidegen/lib/
Dcommon_util.py124 rel_path = None
132 rel_path = ''
137 rel_path = os.path.relpath(abs_path, get_android_root_dir())
142 rel_path = paths[0].strip(os.sep)
143 abs_path = os.path.join(get_android_root_dir(), rel_path)
147 rel_path = target.strip(os.sep)
148 abs_path = os.path.join(get_android_root_dir(), rel_path)
152 rel_path = os.path.relpath(abs_path, get_android_root_dir())
157 rel_path = ''
159 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.py120 rel_path, abs_path = common_util.get_related_paths(
125 self.modules_info.get_module_names(rel_path))
126 self.project_relative_path = rel_path
179 rel_path, abs_path = common_util.get_related_paths(
181 if rel_path and abs_path:
184 yield '\t' + os.path.join(rel_path, constant.ANDROID_MK)
186 def _get_modules_under_project_path(self, rel_path): argument
199 rel_path)
200 if rel_path == '':
206 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]
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.py107 rel_path = 'b/c/d'
109 mod_info.get_paths.return_value = [rel_path]
114 expected = (rel_path, abs_path)
284 rel_path = 'a/b'
285 self.assertTrue(common_util.has_build_target(mod_info, rel_path))
286 rel_path = 'd/e'
287 self.assertFalse(common_util.has_build_target(mod_info, rel_path))
Dmodule_info.py113 def is_project_path_relative_module(mod_info, rel_path): argument
135 if rel_path == '':
138 and common_util.is_source_under_relative_path(path, 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/aidegen/
Daidegen_main_unittest.py491 rel_path = 'c/d'
492 mock_get_related.return_value = rel_path, abs_path
527 rel_path = 'c/d'
528 mock_get_rel.return_value = rel_path, abs_path
538 rel_path = 'c/d'
543 [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.py734 def find_test_by_path(self, rel_path): argument
751 logging.debug('Finding test by path: %s', rel_path)
752 path, methods = test_finder_utils.split_methods(rel_path)
768 os.path.realpath(rel_path),
/tools/asuite/atest-py2/
Datest_utils_unittest.py386 rel_path = 'd/e'
387 mock_cwd.return_value = os.path.join(build_top, rel_path)
/tools/asuite/atest/
Datest_utils_unittest.py402 rel_path = 'd/e'
403 mock_cwd.return_value = os.path.join(build_top, rel_path)
Dbazel_mode.py689 rel_path = f.relative_to(config.out_path)
690 symlink = config_prebuilts_dir.joinpath(rel_path)