Home
last modified time | relevance | path

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

123

/tools/asuite/aidegen/project/
Dsource_splitter.py21 from aidegen import constant
90 {p.project_relative_path == constant.FRAMEWORK_PATH
95 constant.FRAMEWORK_PATH))
179 project.dependencies = [constant.FRAMEWORK_SRCJARS]
180 if self._framework_exist and proj_path != constant.FRAMEWORK_PATH:
202 project.dependencies.append(constant.KEY_DEPENDENCIES)
213 mod = dict(self._projects[0].dep_modules[constant.FRAMEWORK_ALL])
214 mod[constant.KEY_DEPENDENCIES] = []
215 mod[constant.KEY_IML_NAME] = constant.FRAMEWORK_SRCJARS
217 mod[constant.KEY_DEPENDENCIES].append(self._framework_iml)
[all …]
/tools/asuite/aidegen/lib/
Dcommon_util.py36 from aidegen import constant
60 _LANG_UNDEFINED = constant.IDE_DICT[constant.IDE_UNDEFINED]
61 _LANG_JAVA = constant.IDE_DICT[constant.IDE_INTELLIJ]
62 _LANG_CC = constant.IDE_DICT[constant.IDE_CLION]
63 _IDE_UNDEFINED = constant.IDE_DICT[constant.IDE_UNDEFINED]
64 _IDE_INTELLIJ = constant.IDE_DICT[constant.IDE_INTELLIJ]
65 _IDE_CLION = constant.IDE_DICT[constant.IDE_CLION]
131 if target == constant.WHOLE_ANDROID_TREE_TARGET:
398 out_dir_common_base = os.getenv(constant.OUT_DIR_COMMON_BASE_ENV_VAR)
403 or constant.ANDROID_DEFAULT_OUT)
[all …]
Dsource_locator.py26 from aidegen import constant
54 _FRAMEWORK_SRCJARS_PATH = os.path.join(constant.FRAMEWORK_PATH,
55 constant.FRAMEWORK_SRCJARS)
158 and self._check_key(constant.KEY_SRCJARS)):
159 for srcjar in self.module_data[constant.KEY_SRCJARS]:
194 if self._is_target_module() and self._check_key(constant.KEY_SRCJARS):
195 for srcjar in self.module_data[constant.KEY_SRCJARS]:
232 self.module_path = (self.module_data[constant.KEY_PATH][0]
233 if self._check_key(constant.KEY_PATH) else '')
244 self.module_depth = (int(self.module_data[constant.KEY_DEPTH])
[all …]
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 …]
Dcommon_util_unittest.py25 from aidegen import constant
78 mod_info, constant.WHOLE_ANDROID_TREE_TARGET))
344 constant.RELATIVE_COMPDB_PATH,
345 constant.COMPDB_JSONFILE_NAME)
347 constant.GEN_JAVA_DEPS: 'a/b/out/soong/bp_java_file',
348 constant.GEN_CC_DEPS: 'a/b/out/soong/bp_java_file',
349 constant.GEN_COMPDB: path_compdb,
350 constant.GEN_RUST: 'a/b/out/soong/bp_java_file'
396 self.assertEqual((constant.JAVA, constant.IDE_INTELLIJ),
399 self.assertEqual((constant.JAVA, constant.IDE_INTELLIJ),
[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 …]
Dclion_project_file_gen.py37 from aidegen import constant
151 constant.CLION_PROJECT_FILE_NAME)
163 mod_name = self.mod_info.get(constant.KEY_MODULE_NAME, '')
199 mod_paths = mod_info.get(constant.KEY_PATH, [])
227 constant.RELATIVE_NATIVE_PATH, cc_path)
284 if constant.KEY_SRCS not in self.mod_info:
288 source_files = self.mod_info[constant.KEY_SRCS]
359 constant.KEY_HEADER: [],
360 constant.KEY_SYSTEM: [],
391 cc_dir = os.path.join(root_dir, constant.RELATIVE_NATIVE_PATH,
[all …]
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 …]
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 …]
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):
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
Dclion_project_file_gen_unittest.py26 from aidegen import constant
48 _SRC_DICT = {constant.KEY_SRCS: [_SRC_PATH]}
205 constant.KEY_HEADER: [],
206 constant.KEY_SYSTEM: [],
226 constant.KEY_HEADER: [],
227 constant.KEY_SYSTEM: [],
275 constant.KEY_HEADER: [],
276 constant.KEY_SYSTEM: [],
428 key = constant.KEY_PATH
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, '&'
118 constant.NOHUP, test_script_path, test_project_path,
119 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,
Dproject_config.py21 from aidegen import constant
95 targets = self.targets if self.language == constant.JAVA else None
100 self.full_repo = (self.targets[0] == constant.WHOLE_ANDROID_TREE_TARGET)
149 return [constant.WHOLE_ANDROID_TREE_TARGET]
152 new_targets.insert(0, constant.WHOLE_ANDROID_TREE_TARGET)
Dconfig_unittest.py25 from aidegen import constant
232 ide_name = constant.IDE_INTELLIJ
237 ide_name = constant.IDE_ANDROID_STUDIO
288 self.assertEqual(cfg.preferred_version(constant.IDE_INTELLIJ), result)
291 self.assertEqual(cfg.preferred_version(constant.IDE_INTELLIJ), None)
305 cfg.set_preferred_version('test', constant.IDE_INTELLIJ)
Dide_common_util.py28 from aidegen import constant
109 constant.NOHUP, sh_path.replace(' ', r'\ '), project_file,
110 constant.IGNORE_STD_OUT_ERR_CMD, process_flag
159 if ide_name == constant.IDE_ECLIPSE:
161 'Launch %s with workspace: %s.', ide_name, constant.ECLIPSE_WS)
/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]
190 if config.ide_name == constant.IDE_ECLIPSE:
212 if ide_util_obj.ide_name() == constant.IDE_ECLIPSE:
222 aidegen_metrics.ends_asuite_metrics(constant.EXIT_CODE_EXCEPTION)
243 ide_name = constant.IDE_NAME_DICT[args.ide[0]]
325 if (jlist and not clist) or (language == constant.JAVA):
328 if (clist and not jlist) or (language == constant.C_CPP):
395 exit_code = constant.EXIT_CODE_NORMAL
[all …]
Daidegen_main_unittest.py27 from aidegen import constant
104 mock_config.ide_name = constant.IDE_ECLIPSE
107 mock_config.ide_name = constant.IDE_ANDROID_STUDIO
110 mock_config.ide_name = constant.IDE_INTELLIJ
134 mock_starts_metrics.assert_called_with([constant.ANDROID_TREE])
137 mock_ends_metrics.assert_called_with(constant.EXIT_CODE_NORMAL)
149 constant.EXIT_CODE_AIDEGEN_EXCEPTION, exc_traceback, msg)
160 mock_ends_metrics.assert_called_with(constant.EXIT_CODE_EXCEPTION,
352 os.environ[constant.AIDEGEN_TEST_MODE] = 'true'
359 del os.environ[constant.AIDEGEN_TEST_MODE]
[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 …]
/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)
695 constant.BLUEPRINT_CC_JSONFILE_NAME)
703 constant.RELATIVE_NATIVE_PATH,
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DCodePrinter.kt132 val constant = ConstantEvaluator.evaluate(null, value) in appendSourceExpression() constant
133 if (constant != null) { in appendSourceExpression()
134 return appendSourceLiteral(constant, sb, owner) in appendSourceExpression()
258 val constant = expression.evaluate() in appendExpression() constant
259 if (constant != null) { in appendExpression()
260 sb.append(constantToSource(constant)) in appendExpression()
451 fun constantToExpression(constant: Any?): String? { in constantToExpression()
452 return when (constant) { in constantToExpression()
456 is Boolean -> constant.toString() in constantToExpression()
457 is Byte -> Integer.toHexString(constant.toInt()) in constantToExpression()
[all …]
DPsiParameterItem.kt141 val constant = defaultExpression.evaluate() in computeDefaultValue() constant
142 return if (constant != null && constant !is Pair<*, *>) { in computeDefaultValue()
143 constantToSource(constant) in computeDefaultValue()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DAlignmentTest.java240 options.setAlignmentRule(AlignmentRules.constant(10));
254 options.setAlignmentRule(AlignmentRules.constant(1024));
282 options.setAlignmentRule(AlignmentRules.constant(1024));
374 options.setAlignmentRule(AlignmentRules.constant(fixedLh));
392 options.setAlignmentRule(AlignmentRules.constant(fixedLh));
576 zfo.setAlignmentRule(AlignmentRules.constant(4));
636 zfo.setAlignmentRule(AlignmentRules.constant(4));
704 zfo.setAlignmentRule(AlignmentRules.constant(4));
764 zfo.setAlignmentRule(AlignmentRules.constant(10));
779 options.setAlignmentRule(AlignmentRules.constant(100));
[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, '',

123