Home
last modified time | relevance | path

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

12345

/tools/asuite/aidegen/lib/
Dcommon_util.py89 def get_related_paths(atest_module_info, target=None): argument
109 if target:
111 if atest_module_info.is_module(target):
112 paths = atest_module_info.get_paths(target)
117 elif (atest_module_info.get_module_names(target) or os.path.isdir(
118 os.path.join(constant.ANDROID_ROOT_PATH, target))):
119 rel_path = target.strip(os.sep)
123 abs_path = os.path.abspath(os.path.join(os.getcwd(), target))
146 for target in targets:
147 _, abs_path = get_related_paths(atest_module_info, target)
[all …]
Dproject_info.py77 def __init__(self, module_info, target=None): argument
87 rel_path, abs_path = get_related_paths(module_info, target)
88 target = self._get_target_name(target, abs_path)
97 self._display_convert_make_files_message(module_info, target)
123 def _display_convert_make_files_message(self, module_info, target): argument
137 _ANDROID_MK_WARN.format(target, '\n'.join(mk_set))))
284 return [ProjectInfo(module_info, target) for target in targets]
287 def _get_target_name(target, abs_path): argument
305 return target
/tools/asuite/aidegen/
Daidegen_main_unittest.py47 target = 'tradefed'
48 args = aidegen_main._parse_args([target])
49 self.assertEqual(args.targets, [target])
89 target = 'tradefed'
90 args = aidegen_main._parse_args([target, '-n'])
92 args = aidegen_main._parse_args([target])
102 target = 'tradefed'
103 args = aidegen_main._parse_args([target, '-s'])
106 args = aidegen_main._parse_args([target])
130 target = 'nothing'
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DModifierList.kt214 target: AnnotationTarget, in write()
249 target, in write()
260 if (item.deprecated && target.isStubsFile()) { in write()
339 if (list.isNative() && target.isStubsFile()) { in write()
343 …if (item.deprecated && includeDeprecated && !target.isStubsFile() && !compatibility.deprecatedAsAn… in write()
347 … if (list.isSynchronized() && (compatibility.includeSynchronized || target.isStubsFile())) { in write()
359 …if (item.deprecated && includeDeprecated && !target.isStubsFile() && !compatibility.deprecatedAsAn… in write()
427 … if (list.isSynchronized() && (compatibility.includeSynchronized || target.isStubsFile())) { in write()
431 if (list.isNative() && target.isStubsFile()) { in write()
439 target: AnnotationTarget, in writeAnnotations()
[all …]
DClassItem.kt638 includeSelf = false, includeParents = false, target = this in <lambda>()
650 includeSelf = false, includeParents = true, target = this in <lambda>()
664 target: ClassItem in <lambda>()
671 … superClass.filteredInterfaceTypes(predicate, types, true, includeParents, target) in <lambda>()
679 … (target.qualifiedName() == "android.telephony.mbms.vendor.MbmsDownloadServiceBase" || in <lambda>()
680target.qualifiedName() == "android.telephony.mbms.vendor.MbmsStreamingServiceBase") in <lambda>()
687 … superClass.filteredInterfaceTypes(predicate, types, true, includeParents, target) in <lambda>()
696 val replacementMap = target.mapTypeVariables(this) in <lambda>()
705 cls.filteredInterfaceTypes(predicate, types, true, includeParents, target) in <lambda>()
708 cls.filteredInterfaceTypes(predicate, types, true, includeParents, target) in <lambda>()
[all …]
DAnnotationItem.kt63 fun toSource(target: AnnotationTarget = AnnotationTarget.SIGNATURE_FILE): String in qualifiedName()
164 target: AnnotationTarget = AnnotationTarget.SIGNATURE_FILE in mapName()
251 …RECENTLY_NULLABLE -> return if (target == AnnotationTarget.SDK_STUBS_FILE) qualifiedName else ANDR… in mapName()
252 …RECENTLY_NONNULL -> return if (target == AnnotationTarget.SDK_STUBS_FILE) qualifiedName else ANDRO… in mapName()
258 …"org.jetbrains.annotations.Nullable" -> return if (target == AnnotationTarget.SDK_STUBS_FILE) ANDR… in mapName()
264 …"org.jetbrains.annotations.NotNull" -> return if (target == AnnotationTarget.SDK_STUBS_FILE) ANDRO… in mapName()
355 target in mapName()
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiAnnotationItem.kt60 override fun toSource(target: AnnotationTarget): String { in originalName()
62 appendAnnotation(codebase, sb, psiAnnotation, originalName, target) in originalName()
132 target: AnnotationTarget in appendAnnotation()
134 … val qualifiedName = AnnotationItem.mapName(codebase, originalName, null, target) ?: return in appendAnnotation()
147 appendValue(codebase, sb, attributes[0].value, target) in appendAnnotation()
158 appendValue(codebase, sb, attribute.value, target) in appendAnnotation()
168 target: AnnotationTarget in appendValue()
213 appendValue(codebase, sb, value.lOperand, target) in appendValue()
217 appendValue(codebase, sb, value.rOperand, target) in appendValue()
228 appendValue(codebase, sb, initializer, target) in appendValue()
[all …]
DUAnnotationItem.kt59 override fun toSource(target: AnnotationTarget): String { in originalName()
61 appendAnnotation(codebase, sb, uAnnotation, originalName, target) in originalName()
117 target: AnnotationTarget in appendAnnotation()
119 … val qualifiedName = AnnotationItem.mapName(codebase, originalName, null, target) ?: return in appendAnnotation()
132 appendValue(codebase, sb, attributes[0].expression, target) in appendAnnotation()
143 appendValue(codebase, sb, attribute.expression, target) in appendAnnotation()
153 target: AnnotationTarget in appendValue()
198 appendValue(codebase, sb, value.leftOperand, target) in appendValue()
202 appendValue(codebase, sb, value.rightOperand, target) in appendValue()
214 appendValue(codebase, sb, initializer, target) in appendValue()
[all …]
DPsiTypePrinter.kt315 val target = if (results.size == 1) results[0].element else null in <lambda>() constant
316 when (target) { in <lambda>()
331 val fqn = target.qualifiedName in <lambda>()
345 buffer.append(target.name) in <lambda>()
359 is PsiPackage -> return target.qualifiedName in <lambda>()
/tools/tradefederation/core/atest/test_finders/
Dtest_finder_utils.py331 def run_find_cmd(ref_type, search_dir, target): argument
343 find_cmd = FIND_CMDS[ref_type].format(search_dir, prune_cond, target)
560 target = line.strip()
562 if not target:
566 if target.endswith(_VTS_PUSH_SUFFIX):
570 sanitized_target = target.split(_XML_PUSH_DELIM, 1)[0].strip()
611 target = value
615 target = os.path.join(rel_out_dir, match.group('target'))
618 target = value.split(_XML_PUSH_DELIM, 1)[0].strip()
619 target = os.path.join(rel_out_dir, target)
[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>()
DApiLint.kt1510 val target = name.substring(2) in <lambda>() constant
1511 val expected = "setIs$target" in <lambda>()
1512 errorIfExists(methods, name, expected, "setHas$target") in <lambda>()
1514 val target = name.substring(3) in <lambda>() constant
1515 val expected = "setHas$target" in <lambda>()
1516 errorIfExists(methods, name, expected, "setIs$target") in <lambda>()
1517 errorIfExists(methods, name, expected, "set$target") in <lambda>()
1519 val target = name.substring(3) in <lambda>() constant
1520 val expected = "set$target" in <lambda>()
1521 errorIfExists(methods, name, expected, "setIs$target") in <lambda>()
[all …]
DStubWriter.kt70 fun writeSourceList(target: File, root: File?) { in writeSourceList()
71 target.parentFile?.mkdirs() in writeSourceList()
78 target.writeText(contents) in writeSourceList()
142 target = annotationTarget, in writePackageInfo()
266 target = annotationTarget, in visitClass()
330 target = annotationTarget, in appendModifiers()
/tools/test/connectivity/acts/framework/acts/
Dtest_decorators.py169 def __init__(self, target, instance): argument
175 self.target = target
177 self.__name__ = target.__name__
184 return self.target(self.instance, *args, **kwargs)
190 return self.target.gather(self.instance, *args, **kwargs)
/tools/tradefederation/core/tests/src/com/android/tradefed/result/
DJsonHttpTestResultReporterTest.java98 CollectingTestListener target, in injectTestRun() argument
109 target.testRunStarted(runName, 1, attempt); in injectTestRun()
111 target.testStarted(test); in injectTestRun()
113 target.testFailed(test, "trace"); in injectTestRun()
115 target.testEnded(test, TfMetricProtoUtil.upgradeConvert(testMetrics)); in injectTestRun()
116 target.testRunEnded(0, TfMetricProtoUtil.upgradeConvert(runMetrics)); in injectTestRun()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DInstalledInstrumentationsTest.java296 for (InstrumentationTarget target : parser.getInstrumentationTargets()) { in buildTests()
297 if (mRunner == null || mRunner.equals(target.runnerName)) { in buildTests()
300 if (mTotalShards > 0 && !target.isShardable()) { in buildTests()
320 t.setPackageName(target.packageName); in buildTests()
321 t.setRunnerName(target.runnerName); in buildTests()
322 t.setCoverageTarget(target.targetName); in buildTests()
323 if (mTotalShards > 0 && target.isShardable()) { in buildTests()
/tools/acloud/
DREADME.md23 * Run lunch for an AVD target
61 for cuttlefish phone target in the branch of your repo)
70 target in the branch of your repo)
79 target and/or build id (e.g. `--branch my_branch`). Acloud will assume the
85 * `--build-target`: Defaults to the phone target for cuttlefish (e.g.
89 target set from above.
94 This will be used to choose the default hw properties and infer build target
/tools/metalava/src/test/java/com/android/tools/metalava/
DRewriteAnnotationsTest.kt36 val target = temporaryFolder.newFolder() in Test copying private annotations from one of the stubs() constant
43 target.path in Test copying private annotations from one of the stubs()
47 val nonNull = File(target, "androidx/annotation/NonNull.java") in Test copying private annotations from one of the stubs()
52 val recentlyNull = File(target, "androidx/annotation/RecentlyNullable.java") in Test copying private annotations from one of the stubs()
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/data_storage/bigquery/
Dtest_bigquery_utils.py136 target = [
141 assert utils.get_schema_from_dict(dict) == target
209 target = ('FIELD1', 'FIELD2', 'FIELD3', 'FIELD4', 'FIELD5')
210 assert utils.get_tuple_from_schema(schema) == target
256 target = [(None, None, None, True, 300, None), (None, False, None, None,
259 assert utils.get_formatted_rows(row_list, schema) == target
/tools/acloud/internal/lib/
Dandroid_build_client.py74 target=build_target,
115 target=build_target,
144 api = self.service.build().get(buildId=build_id, target=build_target)
167 target=build_target,
Dandroid_build_client_test.py76 target=self.BUILD_TARGET,
108 target=self.BUILD_TARGET,
143 target=self.BUILD_TARGET,
157 target=self.BUILD_TARGET,
/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/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/tradefederation/core/
DCleanSpec.mk47 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/GoogleTradeFed_intermedia…
48 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/GoogleTradeFedTests_inter…
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py123 for target, filelist in _TEST_IML_DICT.items():
124 aidegen_main.main([target, '-n'])
125 _, abs_path = get_related_paths(atest_module_info, target)

12345