Home
last modified time | relevance | path

Searched refs:abs_path (Results 1 – 21 of 21) sorted by relevance

/tools/asuite/aidegen/lib/
Dcommon_util.py122 abs_path = None
130 abs_path = get_android_root_dir()
133 abs_path = target
134 rel_path = os.path.relpath(abs_path, get_android_root_dir())
140 abs_path = os.path.join(get_android_root_dir(), rel_path)
145 abs_path = os.path.join(get_android_root_dir(), rel_path)
148 abs_path = os.path.abspath(os.path.join(os.getcwd(), target))
149 rel_path = os.path.relpath(abs_path, get_android_root_dir())
152 abs_path = os.getcwd()
153 if is_android_root(abs_path):
[all …]
Dnative_util.py76 def _find_parent(abs_path, current_parent): argument
88 return abs_path
89 if common_util.is_source_under_relative_path(abs_path, current_parent):
91 if common_util.is_source_under_relative_path(current_parent, abs_path):
92 return abs_path
94 os.path.dirname(abs_path), os.path.dirname(current_parent))
136 _, abs_path = common_util.get_related_paths(cc_module_info, target)
137 parent_folder = _find_parent(abs_path, parent_folder)
193 rel_path, abs_path = common_util.get_related_paths(
195 if common_util.check_java_or_kotlin_file_exists(abs_path):
Dproject_info.py121 rel_path, abs_path = common_util.get_related_paths(
123 self.module_name = self.get_target_name(target, abs_path)
128 self.project_absolute_path = abs_path
138 self.iml_name = iml.IMLGenerator.get_unique_iml_name(abs_path)
180 rel_path, abs_path = common_util.get_related_paths(
182 if rel_path and abs_path:
183 if (common_util.exist_android_mk(abs_path)
184 and not common_util.exist_android_bp(abs_path)):
305 def get_target_name(target, abs_path): argument
321 if abs_path == common_util.get_android_root_dir():
[all …]
Dnative_util_unittest.py73 abs_path = 'a/b/c/d'
74 expected = abs_path
75 result = native_util._find_parent(abs_path, current_parent)
78 result = native_util._find_parent(abs_path, current_parent)
82 result = native_util._find_parent(abs_path, current_parent)
86 result = native_util._find_parent(abs_path, current_parent)
Dcommon_util_unittest.py109 abs_path = '/a/b/c/d'
115 expected = (rel_path, abs_path)
449 abs_path = os.path.join(root_dir, folder)
451 self.assertTrue(common_util.check_java_or_kotlin_file_exists(abs_path))
453 abs_path = os.path.join(root_dir, folder)
455 self.assertTrue(common_util.check_java_or_kotlin_file_exists(abs_path))
458 self.assertFalse(common_util.check_java_or_kotlin_file_exists(abs_path))
Dproject_config_unittest.py156 abs_path = 'a/b/to/path'
158 mock_get_rel.return_value = rel_path, abs_path
160 mock.Mock(), [abs_path])
Declipse_project_file_gen.py131 abs_path = os.path.join(common_util.get_android_root_dir(), relpath)
132 return cls._PROJECT_LINK.format(alias_name, abs_path)
/tools/asuite/aidegen/vscode/
Dvscode_workspace_file_gen_unittest.py49 abs_path = 'a/b'
52 {'folders': [{'name': folder_name, 'path': abs_path}]})
56 file_path = os.path.join(abs_path, file_name)
61 abs_path = 'a/b/to/project'
65 abs_path, root_dir)
67 abs_path = 'a/b'
70 abs_path, root_dir)
Dvscode_workspace_file_gen.py78 abs_path = workspace_dict[_FOLDERS][0][constant.KEY_PATH]
80 file_path = os.path.join(abs_path, file_name)
85 def _get_unique_project_name(abs_path, root_dir): argument
98 unique_name = os.path.relpath(abs_path, root_dir).replace(os.sep, '.')
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py205 def _get_project_file_names(abs_path): argument
218 abs_path)
239 def _get_git_current_commit_id(abs_path): argument
255 os.chdir(abs_path)
276 def _git_checkout_commit_id(abs_path, commit_id): argument
292 os.chdir(abs_path)
295 err = _COMMIT_ID_NOT_EXIST_ERROR.format(commit_id, abs_path)
319 _, abs_path = common_util.get_related_paths(atest_module_info, target)
320 current_commit_id = _get_git_current_commit_id(abs_path)
321 _git_checkout_commit_id(abs_path, commit_id)
[all …]
/tools/asuite/aidegen/
Daidegen_main.py415 _, abs_path = common_util.get_related_paths(atest_module_info, target)
416 if abs_path:
417 abs_paths.append(abs_path)
435 _, abs_path = common_util.get_related_paths(cc_module_info, target)
436 if not abs_path:
438 vs_native = vs_gen(abs_path)
440 if abs_path not in abs_paths:
441 abs_paths.append(abs_path)
Daidegen_main_unittest.py501 abs_path = 'a/b/c/d'
503 mock_get_related.return_value = rel_path, abs_path
505 [abs_path], aidegen_main._get_java_project_paths(
537 abs_path = 'a/b/c/d'
539 mock_get_rel.return_value = rel_path, abs_path
540 self.assertEqual([abs_path], aidegen_main._get_cc_project_paths(['CC']))
548 abs_path = 'a/b/c/d'
552 [abs_path], aidegen_main._get_rust_project_paths([abs_path], root))
554 [abs_path], aidegen_main._get_rust_project_paths([rel_path], root))
/tools/asuite/atest/
Dbazel_mode.py299 abs_path = self._root_type_to_path[root_type].joinpath(
304 return abs_path
306 if abs_path.is_dir():
307 for file in abs_path.glob('**/*'):
310 self._register_file(root_type, abs_path)
311 return abs_path
314 self, root_type: file_md5_pb2.RootType, abs_path: pathlib.Path
316 if not abs_path.is_file():
317 logging.debug(' ignore %s: not a file.', abs_path)
320 rel_path = abs_path
[all …]
/tools/test/connectivity/acts/framework/acts/bin/
Dact.py211 test_run_config.controller_configs[testpath_key] = utils.abs_path(
220 test_run_config.log_path = utils.abs_path(test_run_config.log_path)
/tools/test/connectivity/acts/framework/acts/
Dconfig_parser.py230 config_path, _ = os.path.split(utils.abs_path(test_config_path))
249 test_run_config.log_path = utils.abs_path(test_run_config.log_path)
Dutils.py120 def abs_path(path): function
228 p = abs_path(path)
261 path = abs_path(f_path)
277 full_path = abs_path(file_path)
/tools/test/connectivity/acts/framework/acts/controllers/openwrt_lib/
Dnetwork_settings.py193 def path_exists(self, abs_path): argument
200 self.ssh.run("ls %s" % abs_path)
205 def create_folder(self, abs_path): argument
211 if not self.path_exists(abs_path):
212 self.ssh.run("mkdir %s" % abs_path)
214 self.log.info("%s already existed." %abs_path)
/tools/asuite/atest/test_finders/
Dtf_integration_finder.py166 abs_path = os.path.join(self.root_dir, integration_dir)
168 test_finder_utils.TestReferenceType.INTEGRATION, abs_path, name
Dtest_finder_utils.py891 abs_path = os.path.join(root_dir, integration_dir)
892 test_paths = run_find_cmd(TestReferenceType.INTEGRATION, abs_path, name)
/tools/repohooks/tools/
Dcpplint.py6560 abs_path, base_name = os.path.split(abs_filename)
6564 cfg_file = os.path.join(abs_path, _config_filename)
6565 abs_filename = abs_path
Dcheckpatch.pl19 my $D = dirname(abs_path($P));
161 open(my $script, '<', abs_path($P)) or
1114 my $root_path = abs_path($root);