Home
last modified time | relevance | path

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

/tools/asuite/aidegen/lib/
Dcommon_util.py118 rel_path = None
126 rel_path = ''
131 rel_path = os.path.relpath(abs_path, get_android_root_dir())
136 rel_path = paths[0].strip(os.sep)
137 abs_path = os.path.join(get_android_root_dir(), rel_path)
141 rel_path = target.strip(os.sep)
142 abs_path = os.path.join(get_android_root_dir(), rel_path)
146 rel_path = os.path.relpath(abs_path, get_android_root_dir())
151 rel_path = ''
153 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 = ''
66 cc_module_info, rel_path, module_names)
185 rel_path, abs_path = common_util.get_related_paths(
189 if _check_native_project_exists(path_info, rel_path):
209 def _check_native_project_exists(path_to_module_info, rel_path): argument
221 if common_util.is_source_under_relative_path(path, rel_path):
Dnative_util_unittest.py59 rel_path = 'a/b'
63 rel_path))
64 rel_path = 'a/b/c/d'
67 rel_path))
116 rel_path = 'shared/path/to/be/used2'
117 mock_get_related.return_value = rel_path, os.path.join(parent, rel_path)
121 targets = [rel_path]
Dproject_info.py108 rel_path, abs_path = common_util.get_related_paths(
113 self.modules_info.get_module_names(rel_path))
114 self.project_relative_path = rel_path
174 rel_path, abs_path = common_util.get_related_paths(
176 if rel_path and abs_path:
179 yield '\t' + os.path.join(rel_path, constant.ANDROID_MK)
181 def _get_modules_under_project_path(self, rel_path): argument
193 constant.TARGET_CLASSES, rel_path)
197 data, 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.py84 def is_project_path_relative_module(mod_info, rel_path): argument
105 if rel_path == '':
108 and common_util.is_source_under_relative_path(path, rel_path)):
Dsource_locator.py495 rel_path = self._get_jar_path_from_prebuilts(jar_name)
496 if rel_path:
497 jar_path = rel_path
527 rel_path = ''
533 rel_path = os.path.relpath(
535 return 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.py97 rel_path, _ = common_util.get_related_paths(self, target)
99 if common_util.is_source_under_relative_path(path, rel_path):
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py208 def _get_unique_module_name(rel_path, filename): argument
218 code_names = rel_path.split(os.sep)
351 rel_path, abs_path = common_util.get_related_paths(atest_module_info,
355 item_name = _get_unique_module_name(rel_path, filename)
/tools/tradefederation/core/atest/
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.py387 rel_path = 'd/e'
388 mock_cwd.return_value = os.path.join(build_top, rel_path)