Home
last modified time | relevance | path

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

12

/tools/asuite/atest/test_finders/
Dmodule_finder.py54 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
86 file_path, self.root_dir) not in module_srcs:
123 config_file = os.path.join(self.root_dir,
131 out_dir = os.path.relpath(out_dir, self.root_dir)
237 config_file = os.path.join(self.root_dir, rel_config)
361 os.path.relpath(path, self.root_dir)):
389 self.root_dir, test_dir, self.module_info)
486 test_config_path = os.path.join(self.root_dir, test_config)
530 search_dir = os.path.join(self.root_dir,
533 search_dir = self.root_dir
[all …]
Dtf_integration_finder.py56 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
86 config_file = os.path.join(self.root_dir, rel_config)
158 abs_path = os.path.join(self.root_dir, integration_dir)
201 self.root_dir, tf_dir, '..', 'filegroups', 'tradefed',
208 self.root_dir, gtf_dir, '..', 'filegroups',
265 rel_config = os.path.relpath(test_file, self.root_dir)
276 paths = test_finder_utils.find_class_file(self.root_dir,
323 rel_config = os.path.relpath(path, self.root_dir)
Dtest_finder_utils.py607 def find_parent_module_dir(root_dir, start_dir, module_info): argument
623 if not is_equal_or_sub_dir(start_dir, root_dir):
624 raise ValueError('%s not in repo %s' % (start_dir, root_dir))
627 while current_dir != root_dir:
630 rel_dir = os.path.relpath(current_dir, root_dir)
1011 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
1014 abs_path = os.path.join(root_dir, integration_dir)
1032 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
1038 abs_int_dir = os.path.join(root_dir, possible_dir)
Dsuite_plan_finder.py41 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
120 rel_config = os.path.relpath(path, self.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))
Dcommon_util_unittest.py444 root_dir = 'a/path/to/dir'
447 abs_path = os.path.join(root_dir, folder)
448 mock_walk.return_value = [(root_dir, [folder], [target])]
451 abs_path = os.path.join(root_dir, folder)
452 mock_walk.return_value = [(root_dir, [folder], [target])]
455 mock_walk.return_value = [(root_dir, [folder], [target])]
Dmodule_info_util.py316 root_dir = common_util.get_android_root_dir()
318 root_dir, common_util.get_blueprint_json_path(
325 link_rust = os.path.join(root_dir, constant.RUST_PROJECT_JSON)
Dcommon_util.py673 root_dir = get_android_root_dir()
675 root_dir, get_blueprint_json_path(
679 root_dir, get_blueprint_json_path(constant.BLUEPRINT_CC_JSONFILE_NAME))
685 root_dir, get_blueprint_json_path(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)
/tools/asuite/atest-py2/test_finders/
Dmodule_finder.py49 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
100 config_file = os.path.join(self.root_dir,
108 out_dir = os.path.relpath(out_dir, self.root_dir)
180 config_file = os.path.join(self.root_dir, rel_config)
260 os.path.relpath(path, self.root_dir)):
287 self.root_dir, test_dir, self.module_info)
372 test_config_path = os.path.join(self.root_dir, test_config)
408 search_dir = os.path.join(self.root_dir,
411 search_dir = self.root_dir
417 test_paths = test_finder_utils.find_class_file(self.root_dir,
[all …]
Dtf_integration_finder.py50 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
78 config_file = os.path.join(self.root_dir, rel_config)
146 abs_path = os.path.join(self.root_dir, integration_dir)
199 rel_config = os.path.relpath(test_file, self.root_dir)
210 paths = test_finder_utils.find_class_file(self.root_dir,
256 rel_config = os.path.relpath(path, self.root_dir)
Dtest_finder_utils.py486 def find_parent_module_dir(root_dir, start_dir, module_info): argument
502 if not is_equal_or_sub_dir(start_dir, root_dir):
503 raise ValueError('%s not in repo %s' % (start_dir, root_dir))
506 while current_dir != root_dir:
509 rel_dir = os.path.relpath(current_dir, root_dir)
518 if os.path.isfile(os.path.join(root_dir, test_config)):
856 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
859 abs_path = os.path.join(root_dir, integration_dir)
877 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
883 abs_int_dir = os.path.join(root_dir, possible_dir)
Dsuite_plan_finder.py41 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
119 rel_config = os.path.relpath(path, self.root_dir)
/tools/asuite/aidegen/vscode/
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)
135 root_dir = common_util.get_android_root_dir()
138 header_list.append(os.path.join(root_dir, path))
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_workspace_file_gen_unittest.py62 root_dir = 'a/b'
65 abs_path, root_dir)
70 abs_path, root_dir)
/tools/asuite/atest-py2/
Dmodule_info.py49 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
63 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP, '/')
64 out_dir = os.environ.get(constants.ANDROID_PRODUCT_OUT, root_dir)
69 if out_dir.find(root_dir) == 0:
71 module_info_target = os.path.relpath(module_file_path, root_dir)
241 if os.path.isfile(os.path.join(self.root_dir, test_config)):
245 if os.path.isfile(os.path.join(self.root_dir, path,
Dtest_mapping.py117 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP, os.sep)
118 path = os.path.realpath(os.path.join(root_dir, self.path))
/tools/asuite/atest/
Dmodule_info.py122 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
145 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP, '/')
146 out_dir = os.environ.get(constants.ANDROID_PRODUCT_OUT, root_dir)
151 if out_dir.find(root_dir) == 0:
153 module_info_target = os.path.relpath(module_file_path, root_dir)
457 if os.path.isfile(os.path.join(self.root_dir, test_config)):
461 if os.path.isfile(os.path.join(self.root_dir, path,
555 bpfile = os.path.join(self.root_dir, mod_path[0], 'Android.bp')
626 os.path.join(self.root_dir, test_config))
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))
/tools/asuite/aidegen/
Daidegen_main.py383 root_dir = common_util.get_android_root_dir()
384 abs_paths.extend(_get_rust_project_paths(rtargets, root_dir))
438 def _get_rust_project_paths(rtargets, root_dir): argument
452 if not common_util.is_source_under_relative_path(rtarget, root_dir):
453 path = os.path.join(root_dir, rtarget)
/tools/asuite/atest-py2/test_runners/
Datest_tf_test_runner.py90 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
107 key_path = os.path.join(self.root_dir, ape_api_key)
316 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
317 return os.path.commonprefix([output, root_dir]) != root_dir
/tools/external_updater/
Dupdate_package.sh27 root_dir=`pwd`
76 /bin/bash `dirname $0`/regen_bp.sh $root_dir $external_dir
/tools/asuite/atest/test_runners/
Datest_tf_test_runner.py140 self.root_dir = os.environ.get(constants.ANDROID_BUILD_TOP)
177 key_path = os.path.join(self.root_dir, ape_api_key)
459 root_dir = os.environ.get(constants.ANDROID_BUILD_TOP, '')
460 return os.path.commonprefix([output, root_dir]) != root_dir

12