Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 138) sorted by relevance

123456

/tools/asuite/aidegen/lib/
Dcommon_util.py100 def get_related_paths(atest_module_info, target=None): argument
127 if target == '.':
128 target = None
129 if target:
131 if target == constant.WHOLE_ANDROID_TREE_TARGET:
135 elif os.path.isabs(target):
136 abs_path = target
139 elif atest_module_info.is_module(target):
140 paths = atest_module_info.get_paths(target)
145 elif (atest_module_info.get_module_names(target)
[all …]
Dnative_util.py60 for target in targets:
61 mod_info = cc_module_info.get_module_info(target)
104 for target in targets:
105 if filter_func(target):
106 jtargets.append(target)
108 lefts.append(target)
129 for target in targets:
130 _, abs_path = common_util.get_related_paths(cc_module_info, target)
132 if cc_module_info.is_module(target):
133 new_targets.append(target)
[all …]
Dproject_info.py98 def __init__(self, target=None, is_main_project=False): argument
109 self.modules_info, target)
110 self.module_name = self.get_target_name(target, abs_path)
119 if target == constant.FRAMEWORK_ALL:
120 self.dep_modules = self.get_dep_modules([target])
292 return [ProjectInfo(target, i == 0) for i, target in enumerate(targets)]
295 def get_target_name(target, abs_path): argument
313 return target
512 for target in self._targets:
514 target)
Dnative_project_info.py44 def __init__(self, target): argument
57 self.module_names = [target] if self.modules_info.is_module(
58 target) else self.modules_info.get_module_names_in_targets_paths(
59 [target])
120 for target in targets:
121 project = NativeProjectInfo(target)
Dnative_module_info_unittest.py261 target = 'test'
269 mod_info.get_robolectric_test_name(target)
271 mod_info.is_robolectric_test(target)
273 mod_info.is_auto_gen_test_config(target)
277 mod_info.is_native_test(target)
Dcommon_util_unittest.py123 result = common_util.get_related_paths(mod_info, target=None)
131 result = common_util.get_related_paths(mod_info, target=None)
133 result = common_util.get_related_paths(mod_info, target='.')
200 target = 'nothing'
202 self.assertFalse(common_util._check_modules(mod_info, [target], False))
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py407 def run_find_cmd(ref_type, search_dir, target, methods=None): argument
438 if _dict.get(target):
439 logging.debug('Found %s in %s', target, FIND_INDEXES[ref_type])
440 out = [path for path in _dict.get(target) if search_dir in path]
443 if '.' in target:
444 target = target.replace('.', '/')
445 find_cmd = FIND_CMDS[ref_type].format(search_dir, prune_cond, target)
658 target = line.strip()
660 if not target:
664 if target.endswith(_VTS_PUSH_SUFFIX):
[all …]
/tools/tradefederation/core/atest/test_finders/
Dtest_finder_utils.py399 def run_find_cmd(ref_type, search_dir, target, methods=None): argument
430 if _dict.get(target):
431 logging.debug('Found %s in %s', target, FIND_INDEXES[ref_type])
432 out = [path for path in _dict.get(target) if search_dir in path]
435 if '.' in target:
436 target = target.replace('.', '/')
437 find_cmd = FIND_CMDS[ref_type].format(search_dir, prune_cond, target)
647 target = line.strip()
649 if not target:
653 if target.endswith(_VTS_PUSH_SUFFIX):
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DModifierList.kt239 target: AnnotationTarget, in <lambda>()
275 target, in <lambda>()
286 if (item.deprecated && target.isStubsFile()) { in <lambda>()
363 if (list.isNative() && target.isStubsFile()) { in <lambda>()
367 …if (item.deprecated && includeDeprecated && !target.isStubsFile() && !compatibility.deprecatedAsAn… in <lambda>()
371 … if (list.isSynchronized() && (compatibility.includeSynchronized || target.isStubsFile())) { in <lambda>()
383 …if (item.deprecated && includeDeprecated && !target.isStubsFile() && !compatibility.deprecatedAsAn… in <lambda>()
457 … if (list.isSynchronized() && (compatibility.includeSynchronized || target.isStubsFile())) { in <lambda>()
461 if (list.isNative() && target.isStubsFile()) { in <lambda>()
469 target: AnnotationTarget, in <lambda>()
[all …]
DAnnotationItem.kt70 target: AnnotationTarget = AnnotationTarget.SIGNATURE_FILE, in qualifiedName()
173 target: AnnotationTarget = AnnotationTarget.SIGNATURE_FILE in mapName()
262 …RECENTLY_NULLABLE -> return if (target == AnnotationTarget.SDK_STUBS_FILE) qualifiedName else ANDR… in mapName()
263 …RECENTLY_NONNULL -> return if (target == AnnotationTarget.SDK_STUBS_FILE) qualifiedName else ANDRO… in mapName()
269 "org.jetbrains.annotations.Nullable" -> return nullableAnnotationName(target) in mapName()
275 "org.jetbrains.annotations.NotNull" -> return nonNullAnnotationName(target) in mapName()
345 isNullableAnnotation(qualifiedName) -> nullableAnnotationName(target) in mapName()
346 isNonNullAnnotation(qualifiedName) -> nonNullAnnotationName(target) in mapName()
367 target in mapName()
391 private fun nullableAnnotationName(target: AnnotationTarget) = in nullableAnnotationName()
[all …]
DClassItem.kt641 includeSelf = false, includeParents = false, target = this in <lambda>()
653 includeSelf = false, includeParents = true, target = this in <lambda>()
667 target: ClassItem in <lambda>()
674 … superClass.filteredInterfaceTypes(predicate, types, true, includeParents, target) in <lambda>()
678 … superClass.filteredInterfaceTypes(predicate, types, true, includeParents, target) in <lambda>()
687 val replacementMap = target.mapTypeVariables(this) in <lambda>()
696 cls.filteredInterfaceTypes(predicate, types, true, includeParents, target) in <lambda>()
699 cls.filteredInterfaceTypes(predicate, types, true, includeParents, target) in <lambda>()
745 fun mapTypeVariables(target: ClassItem): Map<String, String> = codebase.unsupported() in <lambda>()
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py286 def _git_checkout_target_commit_id(target, commit_id): argument
303 _, abs_path = common_util.get_related_paths(atest_module_info, target)
322 for target in data_id_dict:
323 commit_id = data_id_dict.get(target, '')
324 current_commit_id = _git_checkout_target_commit_id(target, commit_id)
325 spec_and_cur_commit_id_dict[target] = {}
326 spec_and_cur_commit_id_dict[target]['current'] = current_commit_id
330 def _generate_target_real_iml_data(target): argument
342 aidegen_main.main([target, '-s', '-n', '-v'])
352 target)
[all …]
/tools/asuite/aidegen/
Daidegen_main_unittest.py63 target = 'tradefed'
64 args = aidegen_main._parse_args([target])
65 self.assertEqual(args.targets, [target])
168 target = 'libui'
169 args = aidegen_main._parse_args([target, '-i', 'e'])
179 target = 'libui'
180 args = aidegen_main._parse_args([target, '-i', 'e'])
369 target = ['a', 'b']
374 aidegen_main._create_and_launch_java_projects(ide_obj, target)
375 self.assertTrue(mock_prj.called_with(target))
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DUAnnotationItem.kt60 override fun toSource(target: AnnotationTarget, showDefaultAttrs: Boolean): String { in <lambda>()
62 appendAnnotation(codebase, sb, uAnnotation, originalName, target, showDefaultAttrs) in <lambda>()
146 target: AnnotationTarget, in <lambda>()
149 … val qualifiedName = AnnotationItem.mapName(codebase, originalName, null, target) ?: return in <lambda>()
162 appendValue(codebase, sb, attributes[0].second, target, showDefaultAttrs) in <lambda>()
173 appendValue(codebase, sb, attribute.second, target, showDefaultAttrs) in <lambda>()
183 target: AnnotationTarget, in <lambda>()
228 appendValue(codebase, sb, value.leftOperand, target, showDefaultAttrs) in <lambda>()
232 appendValue(codebase, sb, value.rightOperand, target, showDefaultAttrs) in <lambda>()
244 appendValue(codebase, sb, initializer, target, showDefaultAttrs) in <lambda>()
[all …]
DPsiAnnotationItem.kt61 override fun toSource(target: AnnotationTarget, showDefaultAttrs: Boolean): String { in <lambda>()
63 appendAnnotation(codebase, sb, psiAnnotation, originalName, target, showDefaultAttrs) in <lambda>()
161 target: AnnotationTarget, in <lambda>()
164 … val qualifiedName = AnnotationItem.mapName(codebase, originalName, null, target) ?: return in <lambda>()
177 appendValue(codebase, sb, attributes[0].second, target, showDefaultAttrs) in <lambda>()
188 appendValue(codebase, sb, attribute.second, target, showDefaultAttrs) in <lambda>()
198 target: AnnotationTarget, in <lambda>()
243 appendValue(codebase, sb, value.lOperand, target, showDefaultAttrs) in <lambda>()
247 appendValue(codebase, sb, value.rOperand, target, showDefaultAttrs) in <lambda>()
258 appendValue(codebase, sb, initializer, target, showDefaultAttrs) in <lambda>()
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/
DRewriteAnnotations.kt51 fun modifyAnnotationSources(codebase: Codebase?, source: File, target: File, pkg: String = "") { in <lambda>()
63 target.parentFile.mkdirs() in <lambda>()
64 target.writeText( in <lambda>()
73 modifyAnnotationSources(codebase, it, File(target, it.name), newPackage) in <lambda>()
79 fun copyAnnotations(codebase: Codebase, source: File, target: File, pkg: String = "") { in <lambda>()
91 target.parentFile.mkdirs() in <lambda>()
92 source.copyTo(target) in <lambda>()
96 copyAnnotations(codebase, it, File(target, it.name), newPackage) in <lambda>()
/tools/acloud/
DREADME.md23 * Run lunch for an AVD target
57 for cuttlefish phone target in the branch of your repo, default aosp main (master)
67 target in the branch of your repo)
76 target and/or build id (e.g. `--branch my_branch`). Acloud will assume the
82 * `--build-target`: Defaults to the phone target for cuttlefish (e.g.
86 target set from above.
91 This will be used to choose the default hw properties and infer build target
/tools/tradefederation/core/test_framework/com/android/tradefed/testtype/
DInstalledInstrumentationsTest.java342 for (InstrumentationTarget target : parser.getInstrumentationTargets()) { in buildTests()
343 if (mRunner == null || mRunner.equals(target.runnerName)) { in buildTests()
346 if (mTotalShards > 0 && !target.isShardable()) { in buildTests()
365 String targetPackageName = target.packageName; in buildTests()
391 t.setRunnerName(target.runnerName); in buildTests()
392 t.setCoverageTarget(target.targetName); in buildTests()
393 if (mTotalShards > 0 && target.isShardable()) { in buildTests()
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DJsonHttpTestResultReporterTest.java114 CollectingTestListener target, in injectTestRun() argument
125 target.testRunStarted(runName, 1, attempt); in injectTestRun()
127 target.testStarted(test); in injectTestRun()
129 target.testFailed(test, "trace"); in injectTestRun()
131 target.testEnded(test, TfMetricProtoUtil.upgradeConvert(testMetrics)); in injectTestRun()
132 target.testRunEnded(0, TfMetricProtoUtil.upgradeConvert(runMetrics)); in injectTestRun()
/tools/test/connectivity/acts/framework/acts/
Dtest_decorators.py250 def __init__(self, target, instance): argument
256 self.target = target
258 self.__name__ = target.__name__
265 return self.target(self.instance, *args, **kwargs)
271 return self.target.gather(self.instance, *args, **kwargs)
/tools/acloud/internal/lib/
Dandroid_build_client.py85 target=build_target,
126 target=build_target,
155 api = self.service.build().get(buildId=build_id, target=build_target)
178 target=build_target,
210 target=build_target)
216 target=build_target,
Dgoldfish_compute_client.py126 def GetKernelBuildArtifact(target): argument
127 if target == "kernel":
129 if target == "kernel_x86_64":
131 if target == "kernel_aarch64":
134 "Don't know the artifact name for '%s' target" % target)
/tools/dexter/dexter/
Ddissasembler.cc80 for (auto target : packed_switch->targets) { in Visit() local
82 printf("Label_%d", target->id); in Visit()
94 printf("Label_%d", switchCase.target->id); in Visit()
108 bool PrintCodeIrVisitor::Visit(lir::CodeLocation* target) { in Visit() argument
109 printf("Label_%d", target->label->id); in Visit()
/tools/test/connectivity/acts/framework/tests/libs/proc/
Dprocess_test.py24 def __init__(self, target=None): argument
25 self.target = target
113 self.assertEqual(process._listening_thread.target, process._exec_loop)
296 self.assertEqual(process._redirection_thread.target,
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/google/protobuf/
Ddescriptor.proto342 // Depending on the target platform, this can emit Deprecated annotations
387 // Depending on the target platform, this can emit Deprecated annotations
406 // use a native map in the target language to hold the keys and values.
475 // Depending on the target platform, this can emit Deprecated annotations
499 // Depending on the target platform, this can emit Deprecated annotations
513 // Depending on the target platform, this can emit Deprecated annotations
533 // Depending on the target platform, this can emit Deprecated annotations
553 // Depending on the target platform, this can emit Deprecated annotations

123456