/tools/asuite/aidegen/lib/ |
D | native_util.py | 69 def _find_parent(abs_path, current_parent): argument 81 return abs_path 82 if common_util.is_source_under_relative_path(abs_path, current_parent): 84 if common_util.is_source_under_relative_path(current_parent, abs_path): 85 return abs_path 87 os.path.dirname(abs_path), os.path.dirname(current_parent)) 129 _, abs_path = common_util.get_related_paths(cc_module_info, target) 130 parent_folder = _find_parent(abs_path, parent_folder) 185 rel_path, abs_path = common_util.get_related_paths( 187 if _check_java_file_exists(abs_path): [all …]
|
D | common_util.py | 119 abs_path = None 127 abs_path = get_android_root_dir() 130 abs_path = target 131 rel_path = os.path.relpath(abs_path, get_android_root_dir()) 137 abs_path = os.path.join(get_android_root_dir(), rel_path) 142 abs_path = os.path.join(get_android_root_dir(), rel_path) 145 abs_path = os.path.abspath(os.path.join(os.getcwd(), target)) 146 rel_path = os.path.relpath(abs_path, get_android_root_dir()) 149 abs_path = os.getcwd() 150 if is_android_root(abs_path): [all …]
|
D | native_util_unittest.py | 72 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))
|
D | project_info.py | 108 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)
|
D | project_config_unittest.py | 156 abs_path = 'a/b/to/path' 158 mock_get_rel.return_value = rel_path, abs_path 160 mock.Mock(), [abs_path])
|
D | eclipse_project_file_gen.py | 132 abs_path = os.path.join(common_util.get_android_root_dir(), relpath) 133 return cls._PROJECT_LINK.format(alias_name, abs_path)
|
D | common_util_unittest.py | 108 abs_path = '/a/b/c/d' 114 expected = (rel_path, abs_path)
|
/tools/asuite/aidegen/vscode/ |
D | vscode_workspace_file_gen_unittest.py | 49 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)
|
D | vscode_workspace_file_gen.py | 78 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/ |
D | aidegen_functional_test_main.py | 190 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/ |
D | aidegen_main.py | 333 _, abs_path = common_util.get_related_paths(atest_module_info, target) 334 abs_paths.append(abs_path) 340 _, abs_path = common_util.get_related_paths(cc_module_info, target) 341 vs_native = vs_gen(abs_path) 343 if abs_path not in abs_paths: 344 abs_paths.append(abs_path)
|
/tools/test/connectivity/acts/framework/acts/bin/ |
D | act.py | 211 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/ |
D | config_parser.py | 231 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)
|
D | utils.py | 111 def abs_path(path): function 219 p = abs_path(path) 252 path = abs_path(f_path) 268 full_path = abs_path(file_path)
|
/tools/tradefederation/core/atest/test_finders/ |
D | tf_integration_finder.py | 146 abs_path = os.path.join(self.root_dir, integration_dir) 149 abs_path, name)
|
D | test_finder_utils.py | 859 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/ |
D | tf_integration_finder.py | 150 abs_path = os.path.join(self.root_dir, integration_dir) 153 abs_path, name)
|
D | test_finder_utils.py | 873 abs_path = os.path.join(root_dir, integration_dir) 874 test_paths = run_find_cmd(FIND_REFERENCE_TYPE.INTEGRATION, abs_path,
|
/tools/repohooks/tools/ |
D | cpplint.py | 5945 abs_path, base_name = os.path.split(abs_filename) 5949 cfg_file = os.path.join(abs_path, "CPPLINT.cfg") 5950 abs_filename = abs_path
|