Home
last modified time | relevance | path

Searched refs:root_dir (Results 1 – 25 of 33) sorted by relevance

12

/tools/asuite/aidegen/vscode/
Dvscode_workspace_file_gen.py49 root_dir = common_util.get_android_root_dir()
51 name = _get_unique_project_name(path, root_dir)
85 def _get_unique_project_name(abs_path, root_dir): argument
98 unique_name = os.path.relpath(abs_path, root_dir).replace(os.sep, '.')
100 unique_name = os.path.basename(root_dir)
Dvscode_native_project_file_gen.py80 root_dir = common_util.get_android_root_dir()
82 [os.path.relpath(self.mod_dir, root_dir)])
116 root_dir = common_util.get_android_root_dir()
118 root_dir, _COMPILE_COMMANDS_FILE_DIR, _COMPILE_COMMANDS_FILE_NAME)
134 root_dir = common_util.get_android_root_dir()
137 header_list.append(os.path.join(root_dir, path))
Dvscode_workspace_file_gen_unittest.py62 root_dir = 'a/b'
65 abs_path, root_dir)
70 abs_path, root_dir)
/tools/asuite/aidegen/lib/
Dnative_util.py228 root_dir = common_util.get_android_root_dir()
230 root_dir,
243 return _get_rust_targets(targets, rust_dict[_CRATES_KEY], root_dir)
246 def _get_rust_targets(targets, rust_modules_info, root_dir): argument
264 rel_target = _get_relative_path(target, root_dir)
265 if not os.path.isdir(os.path.join(root_dir, rel_target)):
279 def _get_relative_path(target, root_dir): argument
291 return os.path.relpath(target, root_dir)
Dclion_project_file_gen.py393 root_dir = common_util.get_android_root_dir()
394 cc_dir = os.path.join(root_dir, constant.RELATIVE_NATIVE_PATH,
396 cc_out_dir = os.path.join(root_dir, common_util.get_android_out_dir(),
435 root_dir = common_util.get_android_root_dir()
436 parent_dir = os.path.relpath(abs_project_path, root_dir)
448 link_project_dir = os.path.join(root_dir,
450 os.path.relpath(project_dir, root_dir))
Dmodule_info_util.py319 root_dir = common_util.get_android_root_dir()
321 root_dir, common_util.get_blueprint_json_path(
328 link_rust = os.path.join(root_dir, constant.RUST_PROJECT_JSON)
Dnative_module_info.py77 root_dir = common_util.get_android_root_dir()
78 module_info_target = os.path.relpath(module_file, root_dir)
Dcommon_util_unittest.py446 root_dir = 'a/path/to/dir'
449 abs_path = os.path.join(root_dir, folder)
450 mock_walk.return_value = [(root_dir, [folder], [target])]
453 abs_path = os.path.join(root_dir, folder)
454 mock_walk.return_value = [(root_dir, [folder], [target])]
457 mock_walk.return_value = [(root_dir, [folder], [target])]
Dcommon_util.py670 root_dir = get_android_root_dir()
672 root_dir, get_blueprint_json_path(
676 root_dir, get_blueprint_json_path(constant.BLUEPRINT_CC_JSONFILE_NAME))
682 root_dir, get_blueprint_json_path(constant.RUST_PROJECT_JSON))
Dproject_info.py204 root_dir = common_util.get_android_root_dir()
209 os.path.join(root_dir, data[constant.KEY_PATH][0])):
/tools/asuite/atest/test_finders/
Dtf_integration_finder.py52 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
89 config_file = os.path.join(self.root_dir, rel_config)
166 abs_path = os.path.join(self.root_dir, integration_dir)
214 self.root_dir,
226 self.root_dir,
292 rel_config = os.path.relpath(test_file, self.root_dir)
305 paths = test_finder_utils.find_class_file(self.root_dir, class_name)
352 rel_config = os.path.relpath(path, self.root_dir)
Dmodule_finder.py53 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
110 self.root_dir, test.data[constants.TI_REL_CONFIG]
118 out_dir = os.path.relpath(out_dir, self.root_dir)
275 config_file = os.path.join(self.root_dir, rel_config)
409 ) != os.path.relpath(path, self.root_dir):
436 self.root_dir, test_dir, self.module_info
550 test_config_path = os.path.join(self.root_dir, test_config)
606 search_dir = os.path.join(self.root_dir, os.path.dirname(rel_config))
608 search_dir = self.root_dir
620 self.root_dir, search_class_name, is_native_test, methods
[all …]
Dsuite_plan_finder.py42 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
130 rel_config = os.path.relpath(path, self.root_dir)
Dtest_finder_utils.py509 def find_parent_module_dir(root_dir, start_dir, module_info): argument
525 if not is_equal_or_sub_dir(start_dir, root_dir):
526 raise ValueError('%s not in repo %s' % (start_dir, root_dir))
529 while current_dir != root_dir:
532 rel_dir = os.path.relpath(current_dir, root_dir)
881 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
884 abs_path = os.path.join(root_dir, integration_dir)
901 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
907 abs_int_dir = os.path.join(root_dir, possible_dir)
Dtf_integration_finder_unittest.py66 self.tf_finder.root_dir = uc.ROOT
186 tf_int_finder.root_dir = uc.TEST_DATA_DIR
/tools/netsim/testing/netsim-grpc/
Dsetup.py27 root_dir = path.dirname(path.dirname(here))
28 aosp_dir = path.dirname(path.dirname(root_dir))
29 proto_root_dir = path.join(root_dir, "proto")
/tools/external_updater/
Dupdate_package.sh27 root_dir=`pwd`
87 /bin/bash `dirname $0`/regen_bp.sh $root_dir $external_dir
/tools/asuite/aidegen/
Daidegen_main.py390 root_dir = common_util.get_android_root_dir()
391 abs_paths.extend(_get_rust_project_paths(rtargets, root_dir))
445 def _get_rust_project_paths(rtargets, root_dir): argument
459 if not common_util.is_source_under_relative_path(rtarget, root_dir):
460 path = os.path.join(root_dir, rtarget)
/tools/asuite/atest/
Dtest_mapping.py115 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP, os.sep)
116 path = os.path.realpath(os.path.join(root_dir, self.path))
Dmodule_info.py510 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
771 if pth == Path(self.root_dir):
780 rel_dir = str(Path(xml).relative_to(self.root_dir).parent)
805 apks.add(os.path.join(self.root_dir, artifact))
885 os.path.join(self.root_dir, test_config)
899 return Path(self.root_dir).joinpath(mod_path[0], filename)
Dcli_translator.py100 self.root_dir = os.getenv(constants.ANDROID_BUILD_TOP, os.sep)
573 while path not in (self.root_dir, os.sep):
719 self.mod_info, str(Path(os.getcwd()).relative_to(self.root_dir))
/tools/asuite/atest/coverage/
Dcoverage.py380 def _generate_lcov_report(out_dir, reports, root_dir=None): argument
382 if root_dir:
383 cmd.extend(['-p', root_dir])
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/
Dpackage_server.py176 root_dir = context.get_current_context().get_full_output_path()
180 self._log_path = os.path.join(root_dir, f'pm_server.{time_stamp}.log')
Dffx.py159 root_dir = context.get_current_context().get_full_output_path()
163 target_dir = os.path.join(root_dir, f'{self.mdns_name}_{time_stamp}')
/tools/repohooks/tools/
Dcpplint.py1584 root_dir = project_dir
1585 while os.path.exists(root_dir):
1587 if os.path.normcase(root_dir) == os.path.normcase(repo):
1588 return os.path.relpath(fullname, root_dir).replace('\\', '/')
1589 one_up_dir = os.path.dirname(root_dir)
1590 if one_up_dir == root_dir:
1592 root_dir = one_up_dir
1597 root_dir = project_dir
1598 one_up_dir = os.path.dirname(root_dir)
1600 root_dir = os.path.dirname(root_dir)
[all …]

12