/tools/asuite/aidegen/project/ |
D | project_splitter.py | 25 from aidegen import constant 102 {p.project_relative_path == constant.FRAMEWORK_PATH 107 constant.FRAMEWORK_PATH)) 193 project.dependencies = [constant.FRAMEWORK_SRCJARS] 194 if self._framework_exist and proj_path != constant.FRAMEWORK_PATH: 216 project.dependencies.append(constant.KEY_DEPENDENCIES) 228 mod = dict(self._projects[0].dep_modules[constant.FRAMEWORK_ALL]) 229 mod[constant.KEY_DEPENDENCIES] = [] 230 mod[constant.KEY_IML_NAME] = constant.FRAMEWORK_SRCJARS 232 mod[constant.KEY_DEPENDENCIES].append(self._framework_iml) [all …]
|
/tools/asuite/aidegen/lib/ |
D | common_util.py | 38 from aidegen import constant 62 _IDE_UNDEFINED = constant.IDE_DICT[constant.IDE_UNDEFINED] 63 _IDE_INTELLIJ = constant.IDE_DICT[constant.IDE_INTELLIJ] 64 _IDE_CLION = constant.IDE_DICT[constant.IDE_CLION] 65 _IDE_VSCODE = constant.IDE_DICT[constant.IDE_VSCODE] 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) 427 return os.path.join(get_android_root_dir(), constant.AIDEGEN_ROOT_PATH) 468 return os.path.isfile(os.path.join(abs_path, constant.ANDROID_BP)) [all …]
|
D | source_locator.py | 26 from aidegen import constant 42 _TARGET_AAPT2_SRCJAR = constant.NAME_AAPT2 + constant.SRCJAR_EXT 43 _TARGET_BUILD_FILES = [_TARGET_AAPT2_SRCJAR, constant.TARGET_R_SRCJAR] 51 _FRAMEWORK_SRCJARS_PATH = os.path.join(constant.FRAMEWORK_PATH, 52 constant.FRAMEWORK_SRCJARS) 155 and self._check_key(constant.KEY_SRCJARS)): 156 for srcjar in self.module_data[constant.KEY_SRCJARS]: 191 if self._is_target_module() and self._check_key(constant.KEY_SRCJARS): 192 for srcjar in self.module_data[constant.KEY_SRCJARS]: 221 return os.path.join(target_folder, constant.NAME_AAPT2) [all …]
|
D | module_info_util.py | 33 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 …]
|
D | common_util_unittest.py | 25 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), 398 self.assertEqual((constant.JAVA, constant.IDE_INTELLIJ), [all …]
|
D | project_info.py | 25 from aidegen import constant 51 _CORE_MODULES = [constant.FRAMEWORK_ALL, constant.CORE_ALL, 54 constant.GEN_JAVA_DEPS: 'true', 55 constant.GEN_CC_DEPS: 'true', 56 constant.GEN_COMPDB: 'true', 57 constant.GEN_RUST: 'true' 131 if target == constant.FRAMEWORK_ALL: 177 constant.ANDROID_MK) 184 yield '\t' + os.path.join(rel_path, constant.ANDROID_MK) 208 os.path.join(root_dir, data[constant.KEY_PATH][0])): [all …]
|
D | clion_project_file_gen.py | 37 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: 289 source_files = self.mod_info[constant.KEY_SRCS] 362 constant.KEY_HEADER: [], 363 constant.KEY_SYSTEM: [], 394 cc_dir = os.path.join(root_dir, constant.RELATIVE_NATIVE_PATH, [all …]
|
D | module_info.py | 28 from aidegen import constant 79 constant.BLUEPRINT_JAVA_JSONFILE_NAME) 83 constant.MERGED_MODULE_INFO) 109 for x in constant.TARGET_CLASSES) 131 if (constant.KEY_PATH not in mod_info 132 or not mod_info[constant.KEY_PATH]): 134 path = mod_info[constant.KEY_PATH][0] 137 if (constant.KEY_CLASS in mod_info
|
D | native_module_info.py | 26 from aidegen import constant 56 constant.BLUEPRINT_CC_JSONFILE_NAME) 93 if target == constant.WHOLE_ANDROID_TREE_TARGET: 121 for header in (constant.KEY_HEADER, constant.KEY_SYSTEM): 166 if constant.KEY_SRCS not in mod_info: 168 for src in mod_info[constant.KEY_SRCS]: 188 for header in (constant.KEY_HEADER, constant.KEY_SYSTEM):
|
D | project_config_unittest.py | 26 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_UNDEFINED) 76 self.assertEqual(config_obj.ide_name, constant.IDE_UNDEFINED) 91 self.assertEqual(config.ide_name, constant.IDE_UNDEFINED) 95 self.assertEqual(config_obj.ide_name, constant.IDE_UNDEFINED) 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 …]
|
D | project_config.py | 21 from aidegen import constant 76 self.language = constant.LANGUAGE_NAME_DICT[args.language[0]] 77 self.ide_name = constant.IDE_NAME_DICT[args.ide[0]] 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)
|
D | ide_common_util_unittest.py | 26 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, ''
|
D | ide_util.py | 42 from aidegen import constant 66 '(y/n)' % constant.ECLIPSE_WS) 477 self._ide_name = constant.IDE_INTELLIJ 830 self._ide_name = constant.IDE_ANDROID_STUDIO 973 self._ide_name = constant.IDE_ECLIPSE 1016 if (os.path.exists(os.path.expanduser(constant.ECLIPSE_WS)) 1018 self.cmd.extend(['-data', constant.ECLIPSE_WS]) 1019 self.cmd.extend([constant.IGNORE_STD_OUT_ERR_CMD, '&']) 1042 self.cmd = [constant.NOHUP, self._installed_path.replace(' ', r'\ ')] 1072 self._ide_name = constant.IDE_CLION [all …]
|
D | eclipse_project_file_gen.py | 21 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,
|
D | ide_common_util.py | 28 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)
|
D | native_util.py | 25 from aidegen import constant 71 module_names.append(mod_info[constant.KEY_MODULE_NAME]) 231 common_util.get_blueprint_json_path(constant.RUST_PROJECT_JSON)) 234 print(constant.WARN_MSG.format( 240 print(constant.WARN_MSG.format(
|
D | clion_project_file_gen_unittest.py | 26 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
|
D | xml_util.py | 21 from aidegen import constant 39 constant.XML_PARSING_FAILURE, err, 41 constant.INVALID_XML.format(XML_FILE=xml_file))
|
/tools/asuite/aidegen/ |
D | aidegen_main.py | 49 from aidegen import constant 91 constant.IDE_CLION, constant.IDE_INTELLIJ, constant.IDE_ECLIPSE] 95 _LANGUAGE_OPTIONS = [constant.JAVA, constant.C_CPP] 193 if config.ide_name == constant.IDE_ECLIPSE: 215 if ide_util_obj.ide_name() == constant.IDE_ECLIPSE: 225 aidegen_metrics.ends_asuite_metrics(constant.EXIT_CODE_EXCEPTION) 246 ide_name = constant.IDE_NAME_DICT[args.ide[0]] 328 print(constant.WARN_MSG.format( 333 java_list = targets[constant.JAVA] if constant.JAVA in targets else None 334 c_cpp_list = targets[constant.C_CPP] if constant.C_CPP in targets else None [all …]
|
D | aidegen_main_unittest.py | 27 from aidegen import constant 106 mock_config.ide_name = constant.IDE_ECLIPSE 109 mock_config.ide_name = constant.IDE_ANDROID_STUDIO 112 mock_config.ide_name = constant.IDE_INTELLIJ 136 mock_starts_metrics.assert_called_with([constant.ANDROID_TREE]) 139 mock_ends_metrics.assert_called_with(constant.EXIT_CODE_NORMAL) 151 constant.EXIT_CODE_AIDEGEN_EXCEPTION, exc_traceback, msg) 162 mock_ends_metrics.assert_called_with(constant.EXIT_CODE_EXCEPTION, 250 lang = constant.C_CPP 251 java_targets = {constant.JAVA: ['a', 'b', 'c'], [all …]
|
/tools/asuite/aidegen/idea/ |
D | iml.py | 34 from aidegen import constant 71 mod_info[constant.KEY_PATH][0]) 73 mod_info[constant.KEY_IML_NAME] + '.iml') 161 if content_type.get(constant.KEY_SRCS, None): 163 if content_type.get(constant.KEY_DEP_SRCS, None): 165 if content_type.get(constant.KEY_JARS, None): 167 if content_type.get(constant.KEY_SRCJARS, None): 169 if content_type.get(constant.KEY_DEPENDENCIES, None): 178 constant.ANDROID_MANIFEST)): 185 for src in self._mod_info.get(constant.KEY_SRCS, []): [all …]
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | CodePrinter.kt | 133 val constant = ConstantEvaluator.evaluate(null, value) in appendSourceExpression() constant 134 if (constant != null) { in appendSourceExpression() 135 return appendSourceLiteral(constant, sb, owner) in appendSourceExpression() 259 val constant = expression.evaluate() in appendExpression() constant 260 if (constant != null) { in appendExpression() 261 sb.append(constantToSource(constant)) in appendExpression() 459 fun constantToExpression(constant: Any?): String? { in constantToExpression() 460 return when (constant) { in constantToExpression() 464 is Boolean -> constant.toString() in constantToExpression() 465 is Byte -> Integer.toHexString(constant.toInt()) in constantToExpression() [all …]
|
/tools/asuite/aidegen_functional_test/ |
D | aidegen_functional_test_main.py | 34 from aidegen import constant 220 dep_name = ''.join([constant.KEY_DEPENDENCIES, '.iml']) 565 if constant.LINUX_GLIBC_COMMON in sample: 566 lnew = sample.replace(constant.LINUX_GLIBC_COMMON, 567 constant.ANDROID_COMMON) 569 lnew = sample.replace(constant.ANDROID_COMMON, 570 constant.LINUX_GLIBC_COMMON) 608 constant.BLUEPRINT_JAVA_JSONFILE_NAME) 713 constant.BLUEPRINT_CC_JSONFILE_NAME) 721 constant.RELATIVE_NATIVE_PATH, [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | AlignmentTest.java | 240 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/ |
D | jdk_table.py | 39 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, '',
|