Home
last modified time | relevance | path

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

/tools/asuite/aidegen/lib/
Dcommon_util.py125 abs_path = None
133 abs_path = get_android_root_dir()
136 abs_path = 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)
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())
155 abs_path = os.getcwd()
156 if is_android_root(abs_path):
[all …]
Dnative_util.py70 def _find_parent(abs_path, current_parent): argument
82 return abs_path
83 if common_util.is_source_under_relative_path(abs_path, current_parent):
85 if common_util.is_source_under_relative_path(current_parent, abs_path):
86 return abs_path
88 os.path.dirname(abs_path), os.path.dirname(current_parent))
130 _, abs_path = common_util.get_related_paths(cc_module_info, target)
131 parent_folder = _find_parent(abs_path, parent_folder)
186 rel_path, abs_path = common_util.get_related_paths(
188 if _check_java_file_exists(abs_path):
[all …]
Dproject_info.py108 rel_path, abs_path = common_util.get_related_paths(
110 self.module_name = self.get_target_name(target, abs_path)
115 self.project_absolute_path = abs_path
174 rel_path, abs_path = common_util.get_related_paths(
176 if rel_path and abs_path:
177 if (common_util.exist_android_mk(abs_path)
178 and not common_util.exist_android_bp(abs_path)):
295 def get_target_name(target, abs_path): argument
311 if abs_path == common_util.get_android_root_dir():
312 return os.path.basename(abs_path)
Dnative_util_unittest.py72 abs_path = 'a/b/c/d'
73 expected = abs_path
74 result = native_util._find_parent(abs_path, current_parent)
77 result = native_util._find_parent(abs_path, current_parent)
81 result = native_util._find_parent(abs_path, current_parent)
85 result = native_util._find_parent(abs_path, current_parent)
166 abs_path = os.path.join(root_dir, folder)
168 self.assertTrue(native_util._check_java_file_exists(abs_path))
171 self.assertFalse(native_util._check_java_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.py132 abs_path = os.path.join(common_util.get_android_root_dir(), relpath)
133 return cls._PROJECT_LINK.format(alias_name, abs_path)
Dcommon_util_unittest.py108 abs_path = '/a/b/c/d'
114 expected = (rel_path, abs_path)
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py190 def _get_project_file_names(abs_path): argument
202 abs_path)
223 def _get_git_current_commit_id(abs_path): argument
239 os.chdir(abs_path)
260 def _git_checkout_commit_id(abs_path, commit_id): argument
276 os.chdir(abs_path)
279 err = _COMMIT_ID_NOT_EXIST_ERROR.format(commit_id, abs_path)
303 _, abs_path = common_util.get_related_paths(atest_module_info, target)
304 current_commit_id = _get_git_current_commit_id(abs_path)
305 _git_checkout_commit_id(abs_path, commit_id)
[all …]
/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/
Daidegen_main.py347 _, abs_path = common_util.get_related_paths(atest_module_info, target)
348 abs_paths.append(abs_path)
354 _, abs_path = common_util.get_related_paths(cc_module_info, target)
355 vs_native = vs_gen(abs_path)
357 if abs_path not in abs_paths:
358 abs_paths.append(abs_path)
/tools/test/connectivity/acts/framework/acts/
Dutils.py112 def abs_path(path): function
220 p = abs_path(path)
253 path = abs_path(f_path)
269 full_path = abs_path(file_path)
Dconfig_parser.py231 config_path, _ = os.path.split(utils.abs_path(test_config_path))
250 test_run_config.log_path = utils.abs_path(test_run_config.log_path)
/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/tradefederation/core/atest/test_finders/
Dtf_integration_finder.py146 abs_path = os.path.join(self.root_dir, integration_dir)
149 abs_path, name)
Dtest_finder_utils.py859 abs_path = os.path.join(root_dir, integration_dir)
860 test_paths = run_find_cmd(FIND_REFERENCE_TYPE.INTEGRATION, abs_path,
/tools/asuite/atest/test_finders/
Dtf_integration_finder.py150 abs_path = os.path.join(self.root_dir, integration_dir)
153 abs_path, name)
Dtest_finder_utils.py873 abs_path = os.path.join(root_dir, integration_dir)
874 test_paths = run_find_cmd(FIND_REFERENCE_TYPE.INTEGRATION, abs_path,
/tools/repohooks/tools/
Dcpplint.py5961 abs_path, base_name = os.path.split(abs_filename)
5965 cfg_file = os.path.join(abs_path, "CPPLINT.cfg")
5966 abs_filename = abs_path
Dcheckpatch.pl16 my $D = dirname(abs_path($P));
141 open(my $script, '<', abs_path($P)) or