Home
last modified time | relevance | path

Searched refs:targets (Results 1 – 25 of 65) sorted by relevance

123

/tools/asuite/aidegen/lib/
Dnative_util_unittest.py43 targets = ['a']
44 self.assertEqual((targets, targets),
46 None, None, targets))
48 self.assertEqual((targets, []),
50 None, None, targets))
53 self.assertEqual(([], targets),
55 None, None, targets))
98 targets = ['multiarch']
99 expected = (parent, targets)
104 cc_mod_info, targets)
[all …]
Dproject_config.py82 self.targets = args.targets.copy()
95 targets = self.targets if self.language == constant.JAVA else None
96 self.atest_module_info = common_util.get_atest_module_info(targets)
99 self.targets = _check_whole_android_tree(self.targets, self.full_repo)
100 self.full_repo = (self.targets[0] == constant.WHOLE_ANDROID_TREE_TARGET)
110 _SKIP_BUILD_CMD.format(' '.join(self.targets))))
130 def _check_whole_android_tree(targets, android_tree): argument
148 if common_util.is_android_root(os.getcwd()) and targets == ['']:
150 new_targets = targets.copy()
156 def is_whole_android_tree(targets, android_tree): argument
[all …]
Dnative_util.py32 def generate_clion_projects(targets): argument
54 parent_dir, targets = _get_merged_native_target(cc_module_info, targets)
60 for target in targets:
91 def _filter_out_modules(targets, filter_func): argument
104 for target in targets:
112 def _get_merged_native_target(cc_module_info, targets): argument
129 for target in targets:
140 def get_native_and_java_projects(atest_module_info, cc_module_info, targets): argument
159 ctargets, lefts = _filter_out_modules(targets, cc_module_info.is_module)
169 def _analyze_native_and_java_projects(atest_module_info, path_info, targets): argument
[all …]
Dproject_config_unittest.py70 self.assertEqual(config.targets, ['a'])
81 self.assertEqual(config_obj.targets, ['a'])
92 self.assertEqual(config.targets, [''])
94 self.assertEqual(config_obj.targets, [''])
99 self.assertEqual(config.targets, [target])
101 self.assertEqual(config_obj.targets, [target])
196 targets = ['Settings']
197 args = aidegen_main._parse_args(targets)
201 project_config._SKIP_BUILD_CMD.format(' '.join(config.targets))))
Dproject_info.py281 def generate_projects(targets): argument
292 return [ProjectInfo(target, i == 0) for i, target in enumerate(targets)]
461 def __init__(self, targets=None): argument
467 super().__init__(targets[0], True)
468 self._targets = targets
564 def _build_target(targets): argument
574 build_cmd.extend(list(targets))
579 'built successfully.'.format('\n'.join(targets)))
Dproject_info_unittest.py105 self.args.targets = ['m1']
220 args.targets = ['m1']
250 targets = []
254 targets.append(test_list[start:end])
255 self.assertEqual(targets, sample)
261 targets = []
264 targets.append(test_list[start:end])
265 self.assertEqual(targets, sample)
Dcommon_util.py163 def is_target_android_root(atest_module_info, targets): argument
174 for target in targets:
209 def _check_modules(atest_module_info, targets, raise_on_lost_module=True): argument
230 for target in targets:
331 def get_atest_module_info(targets=None): argument
349 if targets and not _check_modules(
350 amodule_info, targets, raise_on_lost_module=False):
352 _check_modules(amodule_info, targets)
Dnative_project_info.py74 def generate_projects(cls, targets): argument
94 need_builds = cls._get_need_builds(targets)
108 def _get_need_builds(cls, targets): argument
120 for target in targets:
Dnative_project_info_unittest.py83 targets = ['mod1', 'mod2']
89 set(targets),
90 native_project_info.NativeProjectInfo._get_need_builds(targets))
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py610 targets = set()
619 targets.add(_PERF_SETUP_LABEL)
624 targets.add(target_to_add)
635 targets.add(_CTS_JAR)
636 logging.debug('Targets found in config file: %s', targets)
637 return targets
653 targets = set()
665 targets |= _get_vts_push_group_targets(line.strip(),
669 targets.add(os.path.join(rel_out_dir, sanitized_target))
670 return targets
[all …]
Dmodule_finder.py180 targets = set()
183 targets = test_finder_utils.get_targets_from_xml(config_file,
187 targets.add(constants.VTS_CORE_TF_MODULE)
190 targets.add(_MODULES_IN % mod_dir)
195 targets.add('vts_kernel_tests')
196 return targets
Dtf_integration_finder.py82 targets = test_finder_utils.get_targets_from_xml_root(xml_root,
85 targets.add(constants.GTF_TARGET)
86 return frozenset(targets)
/tools/tradefederation/core/atest/test_finders/
Dtest_finder_utils.py599 targets = set()
608 targets.add(_PERF_SETUP_LABEL)
613 targets.add(target_to_add)
624 targets.add(_CTS_JAR)
625 logging.debug('Targets found in config file: %s', targets)
626 return targets
642 targets = set()
654 targets |= _get_vts_push_group_targets(line.strip(),
658 targets.add(os.path.join(rel_out_dir, sanitized_target))
659 return targets
[all …]
Dmodule_finder.py178 targets = set()
181 targets = test_finder_utils.get_targets_from_xml(config_file,
185 targets.add(constants.VTS_CORE_TF_MODULE)
188 targets.add(_MODULES_IN % mod_dir)
193 targets.add('vts_kernel_tests')
194 return targets
Dtf_integration_finder.py80 targets = test_finder_utils.get_targets_from_xml_root(xml_root,
83 targets.add(constants.GTF_TARGET)
84 return frozenset(targets)
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py400 def _create_some_sample_json_file(targets): argument
408 data = _generate_sample_json(targets)
465 def _test_some_sample_iml(targets=None): argument
471 if targets:
472 return _generate_sample_json(targets)
744 _create_some_sample_json_file(args.targets)
754 if not args.targets[0]:
757 _test_some_sample_iml(args.targets)
/tools/asuite/atest/
Dcli_translator_unittest.py223 targets, test_infos = self.ctr.translate(self.args)
225 self, targets, uc.CLASS_BUILD_TARGETS)
234 targets, test_infos = self.ctr.translate(self.args)
236 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
250 targets, test_infos = self.ctr.translate(self.args)
252 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
267 targets, test_infos = self.ctr.translate(self.args)
269 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
/tools/tradefederation/core/atest/
Dcli_translator_unittest.py222 targets, test_infos = self.ctr.translate(self.args)
224 self, targets, uc.CLASS_BUILD_TARGETS)
233 targets, test_infos = self.ctr.translate(self.args)
235 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
249 targets, test_infos = self.ctr.translate(self.args)
251 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
266 targets, test_infos = self.ctr.translate(self.args)
268 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
/tools/dexter/slicer/
Dbytecode_encoder.cc448 bytecode_.Push<dex::u2>(Pack_16(packed_switch->targets.size())); in Visit()
450 for (size_t i = 0; i < packed_switch->targets.size(); ++i) { in Visit()
555 SLICER_CHECK(reinterpret_cast<dex::u1*>(payload->targets + payload->size) <= in FixupPackedSwitch()
559 auto label = instr->targets[i]; in FixupPackedSwitch()
561 payload->targets[i] = label->offset - base_offset; in FixupPackedSwitch()
573 dex::s4* const targets = payload->data + payload->size; in FixupSparseSwitch() local
574 SLICER_CHECK(reinterpret_cast<dex::u1*>(targets + payload->size) <= in FixupSparseSwitch()
580 targets[i] = label->offset - base_offset; in FixupSparseSwitch()
/tools/asuite/aidegen/
Daidegen_main.py250 def _create_and_launch_java_projects(ide_util_obj, targets): argument
257 projects = project_info.ProjectInfo.generate_projects(targets)
410 args.targets, args.android_tree)
462 targets = config.targets
469 project_info.ProjectInfo.modules_info, cc_module_info, targets)
Daidegen_main_unittest.py61 self.assertEqual(args.targets, [''])
65 self.assertEqual(args.targets, [target])
437 config.targets = [target]
442 mock_get_project.return_value = config.targets, []
449 mock_launch_ide.assert_called_with(args, ide, config.targets, [], True)
466 mock_launch_ide.assert_called_with(args, ide, config.targets, [], False)
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt75 fun targets(): Set<AnnotationTarget> in qualifiedName() method
658 protected var targets: Set<AnnotationTarget>? = null variable in com.android.tools.metalava.model.DefaultAnnotationItem
660 override fun targets(): Set<AnnotationTarget> { in targets() method in com.android.tools.metalava.model.DefaultAnnotationItem
661 if (targets == null) { in targets()
662 targets = AnnotationItem.computeTargets(this) { className -> in targets()
666 return targets!! in targets()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DUAnnotationItem.kt104 override fun targets(): Set<AnnotationTarget> { in <lambda>() method in com.android.tools.metalava.model.psi.UAnnotationItem
105 if (targets == null) { in <lambda>()
106 targets = AnnotationItem.computeTargets(this) { className -> in <lambda>()
110 return targets!! in <lambda>()
DPsiAnnotationItem.kt105 override fun targets(): Set<AnnotationTarget> { in <lambda>() method in com.android.tools.metalava.model.psi.PsiAnnotationItem
106 if (targets == null) { in <lambda>()
107 targets = AnnotationItem.computeTargets(this) { className -> in <lambda>()
111 return targets!! in <lambda>()
/tools/treble/split/
Dmanifest_split.py411 def create_split_manifest(targets, manifest_file, split_manifest_file, argument
447 inputs = get_ninja_inputs(ninja_binary, ninja_build_file, targets)
453 len(input_projects), " ".join(targets))
663 targets=args,

123