/tools/asuite/aidegen/project/ |
D | project_splitter.py | 23 from aidegen import constant 100 {p.project_relative_path == constant.FRAMEWORK_PATH 105 constant.FRAMEWORK_PATH)) 191 project.dependencies = [constant.FRAMEWORK_SRCJARS] 192 if self._framework_exist and proj_path != constant.FRAMEWORK_PATH: 214 project.dependencies.append(constant.KEY_DEPENDENCIES) 226 mod = dict(self._projects[0].dep_modules[constant.FRAMEWORK_ALL]) 227 mod[constant.KEY_DEPENDENCIES] = [] 228 mod[constant.KEY_IML_NAME] = constant.FRAMEWORK_SRCJARS 230 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 | 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 | 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 | 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, 125 if target == constant.FRAMEWORK_ALL: 171 constant.ANDROID_MK) 178 yield '\t' + os.path.join(rel_path, constant.ANDROID_MK) 202 os.path.join(root_dir, data[constant.KEY_PATH][0])): 274 dep[name][constant.KEY_DEPTH] = depth 276 if (constant.KEY_DEPENDENCIES in dep[name] 277 and dep[name][constant.KEY_DEPENDENCIES]): 278 children.update(dep[name][constant.KEY_DEPENDENCIES]) [all …]
|
D | module_info.py | 22 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
|
D | native_module_info.py | 26 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):
|
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 | 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 | 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 | xml_util.py | 21 from aidegen import constant 39 constant.XML_PARSING_FAILURE, err, 41 constant.INVALID_XML.format(XML_FILE=xml_file))
|
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 | native_util.py | 25 from aidegen import constant 69 module_names.append(mod_info[constant.KEY_MODULE_NAME]) 229 common_util.get_blueprint_json_path(constant.RUST_PROJECT_JSON)) 232 print(constant.WARN_MSG.format( 238 print(constant.WARN_MSG.format(
|
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 | 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 …]
|
/tools/asuite/aidegen/ |
D | aidegen_main.py | 48 from aidegen import constant 90 constant.IDE_CLION, constant.IDE_INTELLIJ, constant.IDE_ECLIPSE] 94 _LANGUAGE_OPTIONS = [constant.JAVA, constant.C_CPP] 191 if config.ide_name == constant.IDE_ECLIPSE: 213 if ide_util_obj.ide_name() == constant.IDE_ECLIPSE: 223 aidegen_metrics.ends_asuite_metrics(constant.EXIT_CODE_EXCEPTION) 244 ide_name = constant.IDE_NAME_DICT[args.ide[0]] 324 print(constant.WARN_MSG.format( 327 if language == constant.JAVA: 330 if language == constant.C_CPP: [all …]
|
D | aidegen_main_unittest.py | 27 from aidegen import constant 105 mock_config.ide_name = constant.IDE_ECLIPSE 108 mock_config.ide_name = constant.IDE_ANDROID_STUDIO 111 mock_config.ide_name = constant.IDE_INTELLIJ 135 mock_starts_metrics.assert_called_with([constant.ANDROID_TREE]) 138 mock_ends_metrics.assert_called_with(constant.EXIT_CODE_NORMAL) 150 constant.EXIT_CODE_AIDEGEN_EXCEPTION, exc_traceback, msg) 161 mock_ends_metrics.assert_called_with(constant.EXIT_CODE_EXCEPTION, 241 lang = constant.JAVA 276 lang = constant.C_CPP [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') 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)): 177 for src in self._mod_info.get(constant.KEY_SRCS, []): [all …]
|
D | xml_gen.py | 40 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_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/asuite/aidegen/vscode/ |
D | vscode_workspace_file_gen.py | 25 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/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, '',
|
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/ |
D | PsiFieldItem.kt | 51 val constant = psiField.computeConstantValue() in type() constant 52 if (constant != null) { in type() 53 return constant in type()
|
/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 …]
|