/tools/asuite/aidegen/lib/ |
D | project_file_gen.py | 60 _IDEA_DIR = os.path.join(_ROOT_DIR, 'templates/idea') 61 _TEMPLATE_IML_PATH = os.path.join(_ROOT_DIR, 'templates/module-template.iml') 65 _TEMPLATE_MODULES_PATH = os.path.join(_IDEA_DIR, _MODULES_XML) 66 _TEMPLATE_VCS_PATH = os.path.join(_IDEA_DIR, _VCS_XML) 81 _GITIGNORE_ABS_PATH = os.path.join(constant.ANDROID_ROOT_PATH, 85 _CODE_STYLE_SRC_PATH = os.path.join(constant.ANDROID_ROOT_PATH, 90 _ECLIP_TEMPLATE_PATH = os.path.join(_ROOT_DIR, 'templates/eclipse/eclipse.xml') 94 _ECLIP_PROJECT_PATH = os.path.join(_ROOT_DIR, 'templates/eclipse/project.xml') 132 parent_path = os.path.relpath(abs_module_path, 228 def _read_file_content(path): argument [all …]
|
D | ide_util.py | 190 return [os.path.join(f, self._bin_file_name) for f in self._bin_folders] 252 def _set_jdk_config(self, path): argument 258 jdk_table_path = os.path.join(path, self._IDE_JDK_TABLE_PATH) 260 if os.path.isfile(jdk_table_path): 347 _config_source = os.path.join(constant.ANDROID_ROOT_PATH, 'development', 351 return _config_source if os.path.isfile(_config_source) else None 363 _JDK_PATH = os.path.join(constant.ANDROID_ROOT_PATH, 367 _JDK_PART_TEMPLATE_PATH = os.path.join( 369 _JDK_FULL_TEMPLATE_PATH = os.path.join(constant.AIDEGEN_ROOT_PATH, 376 self._ls_ce_path = os.path.join('/opt/intellij-ce-2*/bin', [all …]
|
D | project_file_gen_unittest.py | 38 _ANDROID_PROJECT_PATH = os.path.join(_TEST_DATA_PATH, 'android_project') 39 _PROJECT_PATH = os.path.join(_TEST_DATA_PATH, 'project') 40 _ANDROID_FACET_SAMPLE = os.path.join(_TEST_DATA_PATH, 'android_facet.iml') 41 _PROJECT_FACET_SAMPLE = os.path.join(_TEST_DATA_PATH, 'project_facet.iml') 42 _MODULE_DEP_SAMPLE = os.path.join(_TEST_DATA_PATH, 'module_dependency.iml') 43 _IML_SAMPLE = os.path.join(_TEST_DATA_PATH, 'test.iml') 44 _CLASSPATH_SAMPLE = os.path.join(_TEST_DATA_PATH, 'eclipse.classpath') 45 _DEPENDENCIES_IML_SAMPLE = os.path.join(_TEST_DATA_PATH, 'dependencies.iml') 46 _MODULE_XML_SAMPLE = os.path.join(_TEST_DATA_PATH, 'modules.xml') 47 _VCS_XML_SAMPLE = os.path.join(_TEST_DATA_PATH, 'vcs.xml') [all …]
|
D | project_info.py | 152 android_mk = os.path.join(self.project_absolute_path, _ANDROID_MK) 153 android_bp = os.path.join(self.project_absolute_path, _ANDROID_BP) 154 if os.path.isfile(android_mk) and not os.path.isfile(android_bp): 155 yield '\t' + os.path.join(self.project_relative_path, _ANDROID_MK) 158 mod_mk = os.path.join(abs_path, _ANDROID_MK) 159 mod_bp = os.path.join(abs_path, _ANDROID_BP) 160 if os.path.isfile(mod_mk) and not os.path.isfile(mod_bp): 161 yield '\t' + os.path.join(rel_path, _ANDROID_MK) 217 path = data['path'][0] 218 return any(key_dir in path.split(os.sep) for key_dir in _KEY_ROBOTESTS) [all …]
|
D | common_util.py | 115 abs_path = os.path.join(constant.ANDROID_ROOT_PATH, rel_path) 117 elif (atest_module_info.get_module_names(target) or os.path.isdir( 118 os.path.join(constant.ANDROID_ROOT_PATH, target))): 120 abs_path = os.path.join(constant.ANDROID_ROOT_PATH, rel_path) 123 abs_path = os.path.abspath(os.path.join(os.getcwd(), target)) 124 rel_path = os.path.relpath(abs_path, constant.ANDROID_ROOT_PATH) 131 rel_path = os.path.relpath(abs_path, constant.ANDROID_ROOT_PATH) 253 if not os.path.isdir(abs_path): 285 return os.path.join(constant.ANDROID_ROOT_PATH, rel_path) 307 path = data['path'][0] [all …]
|
/tools/tradefederation/core/atest/test_finders/ |
D | test_finder_utils.py | 102 _VTS_PUSH_DIR = os.path.join(os.environ.get(constants.ANDROID_BUILD_TOP, ''), 169 cls = os.path.splitext(os.path.split(test_path)[1])[0] 227 tests = list(set([path.split(":")[0] for path in tests])) 296 out_dirs.append(os.path.dirname(out_file.strip())) 301 if os.path.isabs(custom_out_dir): 304 user_out_dir = os.path.join(build_top, custom_out_dir) 392 parent_dir = os.path.realpath(parent_dir) 393 sub_dir = os.path.realpath(sub_dir) 394 if not os.path.isdir(sub_dir) or not os.path.isdir(parent_dir): 396 return os.path.commonprefix([sub_dir, parent_dir]) == parent_dir [all …]
|
D | module_finder.py | 56 def _determine_testable_module(self, path): argument 69 for mod in self.module_info.get_module_names(path): 103 config_file = os.path.join(self.root_dir, 110 if custom_out_dir is None or not os.path.isabs(custom_out_dir): 111 out_dir = os.path.relpath(out_dir, self.root_dir) 112 vts_out_dir = os.path.join(out_dir, 'vts', 'android-vts', 'testcases') 182 config_file = os.path.join(self.root_dir, rel_config) 215 def _get_test_info_filter(self, path, methods, **kwargs): argument 230 _, file_name = test_finder_utils.get_dir_path_and_filename(path) 239 path) [all …]
|
D | test_finder_utils_unittest.py | 34 INT_DIR1 = os.path.join(uc.TEST_DATA_DIR, 'integration_dir_testing/int_dir1') 35 INT_DIR2 = os.path.join(uc.TEST_DATA_DIR, 'integration_dir_testing/int_dir2') 60 VTS_PLAN_TARGETS = {os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-staging-default.xml'), 61 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-aa.xml'), 62 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-bb.xml'), 63 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-cc.xml'), 64 os.path.join(uc.TEST_DATA_DIR, VTS_PLAN_DIR, 'vts-dd.xml')} 120 path = os.path.join(uc.ROOT, CLASS_DIR, uc.CLASS_NAME + '.java') 122 self, test_finder_utils.extract_test_path(uc.FIND_ONE), path) 123 path = os.path.join(uc.ROOT, CLASS_DIR, uc.CLASS_NAME + '.java') [all …]
|
D | suite_plan_finder_unittest.py | 38 self.suite_plan_finder.suite_plan_dirs = [os.path.join(uc.ROOT, uc.CTS_INT_DIR)] 58 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan+'.xml') 64 self, want_info, self.suite_plan_finder._get_test_info_from_path(path)) 67 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_plan+'.xml') 73 self, want_info, self.suite_plan_finder._get_test_info_from_path(path)) 76 path = os.path.join(uc.ROOT, uc.CTS_INT_DIR, 'cts-common.xml') 79 self, want_info, self.suite_plan_finder._get_test_info_from_path(path, suite_plan)) 81 path = os.path.join(uc.ROOT, 'cts-common.xml') 84 self, want_info, self.suite_plan_finder._get_test_info_from_path(path)) 116 _search.return_value = os.path.join(uc.ROOT, uc.CTS_INT_DIR, suite_name + '.xml') [all …]
|
D | tf_integration_finder.py | 63 return [os.path.join(path, _TF_RES_DIR) for path in mod_paths] 78 config_file = os.path.join(self.root_dir, rel_config) 86 def _load_xml_file(self, path): argument 95 tree = ElementTree.parse(path) 143 abs_path = os.path.join(self.root_dir, integration_dir) 192 rel_config = os.path.relpath(test_file, self.root_dir) 200 path = test_finder_utils.find_class_file(self.root_dir, 202 if not path: 205 path) 214 def find_int_test_by_path(self, path): argument [all …]
|
D | suite_plan_finder.py | 65 def _get_test_info_from_path(self, path, suite_name=None): argument 79 match = _SUITE_PLAN_NAME_RE.match(path) 81 logging.error('Suite plan test outside config dir: %s', path) 110 path, _ = test_finder_utils.split_methods(suite_path) 112 if not path.endswith('.xml'): 114 path = os.path.realpath(path) 116 path, self.suite_plan_dirs) 118 rel_config = os.path.relpath(path, self.root_dir)
|
D | tf_integration_finder_unittest.py | 35 GTF_INT_CONFIG = os.path.join(uc.GTF_INT_DIR, uc.GTF_INT_NAME + '.xml') 56 self.tf_finder.integration_dirs = [os.path.join(uc.ROOT, uc.INT_DIR), 57 os.path.join(uc.ROOT, uc.GTF_INT_DIR)] 71 mock_find.return_value = os.path.join(uc.ROOT, uc.INT_DIR, uc.INT_NAME + '.xml') 81 mock_find.return_value = os.path.join(uc.ROOT, uc.GTF_INT_DIR, 102 path = os.path.join(uc.INT_DIR, uc.INT_NAME + '.xml') 104 self, uc.INT_INFO, self.tf_finder.find_int_test_by_path(path)) 105 path = os.path.join(uc.GTF_INT_DIR, uc.GTF_INT_NAME + '.xml') 107 self, uc.GTF_INT_INFO, self.tf_finder.find_int_test_by_path(path)) 114 search.return_value = os.path.join(uc.TEST_DATA_DIR, [all …]
|
/tools/test/connectivity/acts/framework/acts/test_utils/coex/ |
D | bluez_test_utils.py | 60 self.log_path = os.path.join(log_path, "bluez") 82 for path, interfaces in objects.items(): 84 devices[path] = interfaces[ADAPTER_INTERFACE] 152 file_name = os.path.join(self.log_path, 176 def get_properties(self, props, path, check): argument 184 return props.Get(path, check) 186 def properties_changed(self, interface, changed, invalidated, path): argument 188 if path == "/org/bluez/hci0/dev_" + (self.bd_address).replace(":", "_"): 225 for path, ifaces in objects.items(): 230 path.endswith(pattern): [all …]
|
D | audio_test_utils.py | 41 def __init__(self, test_params, path): argument 42 super(SshAudioCapture, self).__init__(test_params, path) 43 self.remote_path = path 64 cur_path = os.path.dirname(os.path.realpath(__file__)) 65 local_path = os.path.join(cur_path, "audio_capture.py") 68 path = self.audio_params["dest_path"] 71 path, test_params) 75 self.remote_path, os.path.join( 162 def audio_quality_analysis(self, path): argument 171 dest_file_path = os.path.join(path, [all …]
|
/tools/repohooks/rh/ |
D | git.py | 24 _path = os.path.realpath(__file__ + '/../..') 25 if sys.path[0] != _path: 26 sys.path.insert(0, _path) 107 def get_file_content(commit, path): argument 117 cmd = ['git', 'show', '%s:%s' % (commit, path)] 136 def raw_diff(path, target): argument 149 diff = rh.utils.run_command(cmd, cwd=path, capture_output=True).output 187 def find_repo_root(path=None): argument 189 if path is None: 190 path = os.getcwd() [all …]
|
/tools/tradefederation/core/atest/ |
D | test_mapping.py | 98 self.path = details['path'] 102 return 'Source: %s, path: %s' % (self.test_mapping_file, self.path) 106 path = os.path.realpath(os.path.join( 107 os.path.dirname(self.test_mapping_file), self.path)) 108 if os.path.exists(path): 109 return path 111 path = os.path.realpath(os.path.join(root_dir, self.path)) 112 if os.path.exists(path): 113 return path
|
D | cli_translator.py | 258 def _find_files(self, path, file_name=TEST_MAPPING): argument 269 for root, _, filenames in os.walk(path): 271 test_mapping_files.append(os.path.join(root, filename)) 317 self, path='', test_group=constants.TEST_GROUP_PRESUBMIT, argument 338 path = os.path.realpath(path) 341 test_mapping_file = os.path.join(path, file_name) 342 if os.path.exists(test_mapping_file): 347 test_mapping_files.update(self._find_files(path, file_name)) 350 while path != root_dir and path != os.sep: 351 path = os.path.dirname(path) [all …]
|
D | module_info.py | 65 module_file_path = os.path.join(out_dir, _MODULE_INFO) 71 module_info_target = os.path.relpath(module_file_path, root_dir) 76 module_file_path = os.path.join( 79 if not os.path.isfile(module_file_path) or force_build: 124 for path in mod_info.get(constants.MODULE_PATH, []): 127 if path in path_to_module_info: 128 path_to_module_info[path].append(mod_info) 130 path_to_module_info[path] = [mod_info] 230 if os.path.isfile(os.path.join(self.root_dir, test_config)): 233 for path in mod_info.get(constants.MODULE_PATH, []): [all …]
|
/tools/test/connectivity/acts/tests/google/tel/live/ |
D | TelLiveSettingsTest.py | 139 path = self.user_params.get(path_key) 140 if not path: 142 elif isinstance(path, list): 143 if not path[0]: 145 path = path[0] 146 if "dev/null" in path: 148 if not os.path.exists(path): 149 self.log.error("path %s does not exist", path) 151 path = os.path.join(self.user_params[Config.key_config_path], 152 path) [all …]
|
/tools/metalava/src/test/java/com/android/tools/metalava/ |
D | DriverTest.kt | 165 for (path in classPath.split(':')) { in <lambda>() constant 166 val file = File(path) in <lambda>() 172 paths.add(file.path) in <lambda>() 190 return javaHomeFile.path in <lambda>() 424 var sourcePath = sourcePathDir.path in <lambda>() 438 arrayOf(signatureFile.path) in <lambda>() 441 signatureFile.path, in <lambda>() 449 arrayOf(apiJar.path) in <lambda>() 451 … sourceFiles.asSequence().map { File(project, it.targetPath).path }.toList().toTypedArray() in <lambda>() 457 .map { it.path } in <lambda>() [all …]
|
/tools/test/connectivity/tools/ |
D | proto_check.py | 44 tmp_proto_gen_file = os.path.join(tmp_dir, '%s.py' % module_name) 60 gen_filename = os.path.basename(proto_file).replace('.proto', '_pb2.py') 63 for path in gen_files: 64 if (os.path.basename(path) == gen_filename 65 and path.startswith(os.path.dirname(proto_file))): 66 gen_file = path 67 gen_files.remove(path) 71 for root, _, filenames in os.walk(os.path.dirname(proto_file)): 74 gen_file = os.path.join(root, filename) 86 protoc, '-I=%s' % os.path.dirname(proto_file), [all …]
|
/tools/test/connectivity/acts/framework/tests/ |
D | acts_import_unit_test.py | 32 def import_module(name, path): argument 33 return imp.load_source(name, path) 41 def import_module(name, path): argument 42 return importlib.machinery.SourceFileLoader(name, path).load_module() 122 acts_path = os.path.dirname(acts.__file__) 123 tests_path = os.path.normpath(os.path.join(acts_path, '../../tests')) 128 full_path = os.path.join(root, f) 134 path = os.path.relpath(os.path.join(root, f), os.getcwd()) 137 with self.subTest(msg='import %s' % path): 139 module = import_module(fake_module_name, path)
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/ |
D | GCSBucketUtilFuncTest.java | 72 Path path = Paths.get(mRemoteRoot, FILE_NAME); in testStringUploadThenDownLoad() local 73 mBucket.pushString(FILE_CONTENT, path); in testStringUploadThenDownLoad() 74 Assert.assertEquals(FILE_CONTENT, mBucket.pullContents(path)); in testStringUploadThenDownLoad() 166 Path path = Paths.get(mRemoteRoot, FILE_NAME); in testLs_file() local 167 mBucket.pushString(FILE_CONTENT, path); in testLs_file() 176 Path path = Paths.get(mRemoteRoot, FOLDER_NAME, FILE_NAME); in testIsFile() local 177 mBucket.pushString(FILE_CONTENT, path); in testIsFile() 183 Path path = Paths.get(mRemoteRoot, FOLDER_NAME, FILE_NAME); in testIsFile_folder() local 184 mBucket.pushString(FILE_CONTENT, path); in testIsFile_folder() 195 Path path = Paths.get(mRemoteRoot, FILE_NAME); in testStat() local [all …]
|
/tools/acloud/ |
D | setup.py | 24 ACLOUD_DIR = os.path.realpath(os.path.dirname(__file__)) 33 if "PROTOC" in os.environ and os.path.exists(os.environ["PROTOC"]): 52 if (not os.path.exists(output) or (os.path.exists(source) and 53 os.path.getmtime(source) > os.path.getmtime(output))): 56 if not os.path.exists(source): 72 generate_proto(os.path.join(ACLOUD_DIR, "internal/proto/user_config.proto")) 73 generate_proto(os.path.join(ACLOUD_DIR, "internal/proto/internal_config.proto")) 74 open(os.path.join(ACLOUD_DIR, "internal/proto/__init__.py"), "a").close()
|
/tools/test/connectivity/acts/framework/ |
D | setup.py | 135 our_dir = os.path.abspath(os.path.dirname(__file__)) 136 if our_dir in sys.path: 137 sys.path.remove(our_dir) 139 if os.getcwd() in sys.path: 140 sys.path.remove(os.getcwd()) 162 framework_dir = os.path.dirname(os.path.realpath(__file__)) 163 scripts = [os.path.join(framework_dir, 'acts', 'bin', 'act.py'), 164 os.path.join(framework_dir, 'acts', 'bin', 'monsoon.py')] 185 if os.path.islink(act_path): 187 elif os.path.exists(act_path):
|