Home
last modified time | relevance | path

Searched refs:constant (Results 1 – 25 of 46) sorted by relevance

12

/tools/asuite/aidegen/project/
Dsource_splitter.py21 from aidegen import constant
90 {p.project_relative_path == constant.FRAMEWORK_PATH
95 constant.FRAMEWORK_PATH))
171 project.dependencies = [constant.FRAMEWORK_SRCJARS]
172 if self._framework_exist and proj_path != constant.FRAMEWORK_PATH:
193 project.dependencies.append(constant.KEY_DEPENDENCIES)
204 mod = dict(self._projects[0].dep_modules[constant.FRAMEWORK_ALL])
205 mod[constant.KEY_DEPENDENCIES] = []
206 mod[constant.KEY_IML_NAME] = constant.FRAMEWORK_SRCJARS
208 mod[constant.KEY_DEPENDENCIES].append(self._framework_iml)
[all …]
/tools/asuite/aidegen/lib/
Dmodule_info_util.py33 from aidegen import constant
41 constant.KEY_CLASS,
42 constant.KEY_PATH,
43 constant.KEY_INSTALLED,
44 constant.KEY_DEPENDENCIES,
45 constant.KEY_SRCS,
46 constant.KEY_SRCJARS,
47 constant.KEY_CLASSES_JAR,
48 constant.KEY_TAG,
49 constant.KEY_COMPATIBILITY,
[all …]
Dmodule_info.py22 from aidegen import constant
50 constant.BLUEPRINT_JAVA_JSONFILE_NAME)
54 constant.MERGED_MODULE_INFO)
80 for x in constant.TARGET_CLASSES)
102 if constant.KEY_PATH not in mod_info:
104 path = mod_info[constant.KEY_PATH][0]
107 if (constant.KEY_CLASS in mod_info
Dsource_locator.py26 from aidegen import constant
54 _FRAMEWORK_SRCJARS_PATH = os.path.join(constant.FRAMEWORK_PATH,
55 constant.FRAMEWORK_SRCJARS)
157 and self._check_key(constant.KEY_SRCJARS)):
158 for srcjar in self.module_data[constant.KEY_SRCJARS]:
193 if self._is_target_module() and self._check_key(constant.KEY_SRCJARS):
194 for srcjar in self.module_data[constant.KEY_SRCJARS]:
231 self.module_path = (self.module_data[constant.KEY_PATH][0]
232 if self._check_key(constant.KEY_PATH) else '')
243 self.module_depth = (int(self.module_data[constant.KEY_DEPTH])
[all …]
Dproject_info.py24 from aidegen import constant
53 _CORE_MODULES = [constant.FRAMEWORK_ALL, constant.CORE_ALL,
119 if target == constant.FRAMEWORK_ALL:
172 constant.ANDROID_MK)
179 yield '\t' + os.path.join(rel_path, constant.ANDROID_MK)
193 constant.TARGET_CLASSES, rel_path)
202 constant.TARGET_CLASSES)
271 dep[name][constant.KEY_DEPTH] = depth
273 if (constant.KEY_DEPENDENCIES in dep[name]
274 and dep[name][constant.KEY_DEPENDENCIES]):
[all …]
Dnative_module_info.py26 from aidegen import constant
56 constant.BLUEPRINT_CC_JSONFILE_NAME)
94 if target == constant.WHOLE_ANDROID_TREE_TARGET:
122 for header in (constant.KEY_HEADER, constant.KEY_SYSTEM):
167 if constant.KEY_SRCS not in mod_info:
169 for src in mod_info[constant.KEY_SRCS]:
189 for header in (constant.KEY_HEADER, constant.KEY_SYSTEM):
Dcommon_util.py36 from aidegen import constant
125 if target == constant.WHOLE_ANDROID_TREE_TARGET:
392 out_dir_common_base = os.getenv(constant.OUT_DIR_COMMON_BASE_ENV_VAR)
397 or constant.ANDROID_DEFAULT_OUT)
421 return os.path.join(get_android_root_dir(), constant.AIDEGEN_ROOT_PATH)
462 return os.path.isfile(os.path.join(abs_path, constant.ANDROID_BP))
474 return os.path.isfile(os.path.join(abs_path, constant.ANDROID_MK))
488 constant.RE_INSIDE_PATH_CHECK.format(relative_path), source)
500 return str(data).replace(os.path.expanduser('~'), constant.USER_HOME)
651 product = os.environ.get(constant.TARGET_PRODUCT)
[all …]
Dxml_util.py21 from aidegen import constant
39 constant.XML_PARSING_FAILURE, err,
41 constant.INVALID_XML.format(XML_FILE=xml_file))
Dproject_config.py21 from aidegen import constant
75 self.ide_name = constant.IDE_NAME_DICT[args.ide[0]]
95 self.full_repo = (self.targets[0] == constant.WHOLE_ANDROID_TREE_TARGET)
144 return [constant.WHOLE_ANDROID_TREE_TARGET]
147 new_targets.insert(0, constant.WHOLE_ANDROID_TREE_TARGET)
Dproject_config_unittest.py26 from aidegen import constant
49 exspected = [constant.WHOLE_ANDROID_TREE_TARGET]
54 exspected = constant.WHOLE_ANDROID_TREE_TARGET
65 self.assertEqual(config.ide_name, constant.IDE_INTELLIJ)
76 self.assertEqual(config_obj.ide_name, constant.IDE_INTELLIJ)
91 self.assertEqual(config.ide_name, constant.IDE_INTELLIJ)
95 self.assertEqual(config_obj.ide_name, constant.IDE_INTELLIJ)
118 self.assertEqual(config.ide_name, constant.IDE_ANDROID_STUDIO)
120 self.assertEqual(config_obj.ide_name, constant.IDE_ANDROID_STUDIO)
123 self.assertEqual(config.ide_name, constant.IDE_ECLIPSE)
[all …]
Dclion_project_file_gen.py37 from aidegen import constant
148 constant.CLION_PROJECT_FILE_NAME)
160 mod_name = self.mod_info.get(constant.KEY_MODULE_NAME, '')
179 mod_paths = mod_info.get(constant.KEY_PATH, [])
202 constant.RELATIVE_NATIVE_PATH, cc_path)
259 if constant.KEY_SRCS not in self.mod_info:
263 source_files = self.mod_info[constant.KEY_SRCS]
334 constant.KEY_HEADER: [],
335 constant.KEY_SYSTEM: [],
366 cc_dir = os.path.join(root_dir, constant.RELATIVE_NATIVE_PATH,
[all …]
Dide_common_util_unittest.py26 from aidegen import constant
98 constant.IDE_INTELLIJ),
103 constant.IDE_INTELLIJ),
111 constant.NOHUP, test_script_path, test_project_path,
112 constant.IGNORE_STD_OUT_ERR_CMD
Declipse_project_file_gen.py21 from aidegen import constant
131 alias_name = os.path.join(constant.KEY_DEPENDENCIES, relpath)
152 constant.IDE_ECLIPSE,
196 alias_path = os.path.join(constant.KEY_DEPENDENCIES, r_path)
239 src = os.path.join(constant.KEY_DEPENDENCIES, src)
265 alias_module_path = os.path.join(constant.KEY_DEPENDENCIES,
Dide_common_util.py28 from aidegen import constant
107 constant.NOHUP, sh_path.replace(' ', r'\ '), project_file,
108 constant.IGNORE_STD_OUT_ERR_CMD
157 if ide_name == constant.IDE_ECLIPSE:
159 'Launch %s with workspace: %s.', ide_name, constant.ECLIPSE_WS)
Dide_util.py42 from aidegen import constant
66 '(y/n)' % constant.ECLIPSE_WS)
468 self._ide_name = constant.IDE_INTELLIJ
744 self._ide_name = constant.IDE_ANDROID_STUDIO
887 self._ide_name = constant.IDE_ECLIPSE
930 if (os.path.exists(os.path.expanduser(constant.ECLIPSE_WS))
932 self.cmd.extend(['-data', constant.ECLIPSE_WS])
933 self.cmd.extend([constant.IGNORE_STD_OUT_ERR_CMD])
956 self.cmd = [constant.NOHUP, self._installed_path.replace(' ', r'\ ')]
986 self._ide_name = constant.IDE_CLION
[all …]
Daidegen_metrics.py23 from aidegen import constant
72 metrics_base.MetricsBase.tool_name = constant.AIDEGEN_TOOL_NAME
Dnative_util.py26 from aidegen import constant
60 module_names.append(mod_info[constant.KEY_MODULE_NAME])
204 if fnmatch.filter(filenames, constant.JAVA_FILES):
Daidegen_metrics_unittest.py22 from aidegen import constant
55 exit_code = constant.EXIT_CODE_NORMAL
/tools/asuite/aidegen/
Daidegen_main.py48 from aidegen import constant
90 constant.IDE_CLION, constant.IDE_INTELLIJ, constant.IDE_ECLIPSE]
94 _LANGUAGE_OPTIONS = [constant.JAVA, constant.C_CPP]
181 if config.ide_name == constant.IDE_ECLIPSE:
203 if ide_util_obj.ide_name() == constant.IDE_ECLIPSE:
213 aidegen_metrics.ends_asuite_metrics(constant.EXIT_CODE_EXCEPTION)
234 ide_name = constant.IDE_NAME_DICT[args.ide[0]]
304 if constant.IDE_NAME_DICT[args.ide[0]] == constant.IDE_CLION:
305 answer = constant.C_CPP
307 os.environ.get(constant.AIDEGEN_TEST_MODE, 'false')):
[all …]
/tools/asuite/aidegen/idea/
Diml.py34 from aidegen import constant
71 mod_info[constant.KEY_PATH][0])
73 mod_info[constant.KEY_IML_NAME] + '.iml')
153 if content_type.get(constant.KEY_SRCS, None):
155 if content_type.get(constant.KEY_DEP_SRCS, None):
157 if content_type.get(constant.KEY_JARS, None):
159 if content_type.get(constant.KEY_SRCJARS, None):
161 if content_type.get(constant.KEY_DEPENDENCIES, None):
170 constant.ANDROID_MANIFEST)):
176 for src in self._mod_info[constant.KEY_SRCS]:
[all …]
Dxml_gen.py40 from aidegen import constant
65 self._xml_abspath = os.path.join(module_abspath, constant.IDEA_FOLDER,
110 exit_code=constant.XML_PARSING_FAILURE, stack_trace=xml_err,
/tools/asuite/aidegen/vscode/
Dvscode_workspace_file_gen.py25 from aidegen import constant
52 workspace_dict[_FOLDERS].append({_NAME: name, constant.KEY_PATH: path})
78 abs_path = workspace_dict[_FOLDERS][0][constant.KEY_PATH]
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py33 from aidegen import constant
204 dep_name = ''.join([constant.KEY_DEPENDENCIES, '.iml'])
548 if constant.LINUX_GLIBC_COMMON in sample:
549 lnew = sample.replace(constant.LINUX_GLIBC_COMMON,
550 constant.ANDROID_COMMON)
552 lnew = sample.replace(constant.ANDROID_COMMON,
553 constant.LINUX_GLIBC_COMMON)
590 constant.BLUEPRINT_JAVA_JSONFILE_NAME)
697 constant.BLUEPRINT_CC_JSONFILE_NAME)
705 constant.RELATIVE_NATIVE_PATH,
[all …]
/tools/asuite/aidegen/sdk/
Djdk_table.py39 from aidegen import constant
81 constant.AIDEGEN_ROOT_PATH,
159 constant.XML_PARSING_FAILURE, '',
205 constant.USER_HOME, os.path.expanduser('~'))
254 constant.LOCATE_SDK_PATH_FAILURE, '',
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiFieldItem.kt51 val constant = psiField.computeConstantValue() in type() constant
52 if (constant != null) { in type()
53 return constant in type()

12