Home
last modified time | relevance | path

Searched refs:targets (Results 1 – 25 of 63) 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 …]
Dnative_util.py36 def generate_clion_projects(targets): argument
58 parent_dir, targets = _get_merged_native_target(cc_module_info, targets)
64 for target in targets:
95 def _filter_out_modules(targets, filter_func): argument
108 for target in targets:
116 def _get_merged_native_target(cc_module_info, targets): argument
133 for target in targets:
144 def get_java_cc_and_rust_projects(atest_module_info, cc_module_info, targets): argument
163 rtargets = _filter_out_rust_projects(targets)
164 ctargets, lefts = _filter_out_modules(targets, cc_module_info.is_module)
[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 …]
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.py284 def generate_projects(targets): argument
295 return [ProjectInfo(target, i == 0) for i, target in enumerate(targets)]
483 def __init__(self, targets=None): argument
489 super().__init__(targets[0], True)
490 self._targets = targets
591 def _build_target(targets): argument
601 build_cmd.extend(list(targets))
606 '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-py2/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/atest/test_finders/
Dtest_finder_utils.py669 targets = set()
682 targets.add(target_to_add)
693 targets.add(_CTS_JAR)
695 targets.update(DALVIK_TEST_DEPS)
696 logging.debug('Targets found in config file: %s', targets)
697 return targets
713 targets = set()
725 targets |= _get_vts_push_group_targets(line.strip(),
729 targets.add(os.path.join(rel_out_dir, sanitized_target))
730 return targets
[all …]
Dmodule_finder.py217 targets = set()
220 targets = test_finder_utils.get_targets_from_xml(config_file,
224 targets.add(constants.VTS_CORE_TF_MODULE)
227 targets.update(constants.SUITE_DEPS.get(suite, []))
230 targets.add(constants.MODULES_IN + mod_dir)
235 targets.add('vts_kernel_tests')
239 targets.add(module_name)
240 return targets
/tools/metalava/src/test/java/com/android/tools/metalava/model/
DAnnotationTargetTest.kt26 fun `All annotation targets contain INTERNAL`() { in <lambda>()
31 val targets = value as Collection<*> in <lambda>() constant
32 assertTrue("$name: should contain $INTERNAL but doesn't: $targets", in <lambda>()
33 targets.contains(INTERNAL)) in <lambda>()
/tools/asuite/atest-py2/
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/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py416 def _create_some_sample_json_file(targets): argument
424 data = _generate_sample_json(targets)
482 def _test_some_sample_iml(targets=None): argument
488 if targets:
489 return _generate_sample_json(targets)
766 _create_some_sample_json_file(args.targets)
778 if not args.targets[0]:
781 _test_some_sample_iml(args.targets)
/tools/asuite/atest/
Dcli_translator_unittest.py249 targets, test_infos = self.ctr.translate(self.args)
251 self, targets, uc.CLASS_BUILD_TARGETS)
261 targets, test_infos = self.ctr.translate(self.args)
263 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
281 targets, test_infos = self.ctr.translate(self.args)
283 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
299 targets, test_infos = self.ctr.translate(self.args)
301 self, targets, uc.MODULE_CLASS_COMBINED_BUILD_TARGETS)
/tools/asuite/aidegen/
Daidegen_main.py251 def _create_and_launch_java_projects(ide_util_obj, targets): argument
258 projects = project_info.ProjectInfo.generate_projects(targets)
475 args.targets, args.android_tree)
527 targets = config.targets
531 project_info.ProjectInfo.modules_info, cc_module_info, targets)
Daidegen_main_unittest.py62 self.assertEqual(args.targets, [''])
66 self.assertEqual(args.targets, [target])
514 config.targets = [target]
519 mock_get_project.return_value = config.targets, [], []
527 args, ide, constant.JAVA, config.targets, [], [], True)
545 args, ide, constant.JAVA, config.targets, [], [], False)
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt75 fun targets(): Set<AnnotationTarget> in qualifiedName() method
675 protected var targets: Set<AnnotationTarget>? = null variable in com.android.tools.metalava.model.DefaultAnnotationItem
677 override fun targets(): Set<AnnotationTarget> { in targets() method in com.android.tools.metalava.model.DefaultAnnotationItem
678 if (targets == null) { in targets()
679 targets = AnnotationItem.computeTargets(this) { className -> in targets()
683 return targets!! in 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/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.py452 def create_split_manifest(targets, manifest_file, split_manifest_file, argument
488 inputs = get_ninja_inputs(ninja_binary, ninja_build_file, targets)
494 len(input_projects), " ".join(targets))
706 targets=args,

123