Home
last modified time | relevance | path

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

123456

/tools/asuite/aidegen/lib/
Dnative_util.py66 for target in targets:
67 mod_info = cc_module_info.get_module_info(target)
110 for target in targets:
111 if filter_func(target):
112 jtargets.append(target)
114 lefts.append(target)
135 for target in targets:
136 _, abs_path = common_util.get_related_paths(cc_module_info, target)
138 if cc_module_info.is_module(target):
139 new_targets.append(target)
[all …]
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 …]
Dproject_info.py110 def __init__(self, target=None, is_main_project=False): argument
121 self.modules_info, target)
122 self.module_name = self.get_target_name(target, abs_path)
131 if target == constant.FRAMEWORK_ALL:
132 self.dep_modules = self.get_dep_modules([target])
301 return [ProjectInfo(target, i == 0) for i, target in enumerate(targets)]
304 def get_target_name(target, abs_path): argument
322 return target
540 for target in self._targets:
542 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_util_unittest.py242 target = 'a/b/rust'
245 rel_target, native_util._get_relative_path(target, root))
250 target = 'a/b'
252 native_util._is_target_relative_module(path, target))
256 native_util._is_target_relative_module(path, target))
260 native_util._is_target_relative_module(path, target))
262 target = 'a/bc'
264 native_util._is_target_relative_module(path, 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))
446 target = 'test.java'
448 mock_walk.return_value = [(root_dir, [folder], [target])]
450 target = 'test.kt'
452 mock_walk.return_value = [(root_dir, [folder], [target])]
454 target = 'test.cpp'
[all …]
/tools/asuite/atest/
Dbazel_mode.py236 target = top.popleft()
241 if target in seen:
244 seen.add(target)
248 for ref in target.dependencies():
251 next_top.append(ref.target())
291 target = package.get_target(target_name)
293 if target:
294 return target
296 target = create_fn()
297 package.add_target(target)
[all …]
/tools/treble/fetcher/
Dfetcher_lib.py144 def fetch_artifact(client, build_id, target, resource_id, dest): argument
160 target=target,
216 def fetch_artifacts(client, out_dir, target, pattern, build_id): argument
235 target=target)
241 target=target,
246 def get_latest_build_id(client, branch, target): argument
260 target=target,
271 def fetch_latest_artifacts(client, out_dir, target, pattern, branch): argument
283 client=client, branch=branch, target=target)
285 fetch_artifacts(client, out_dir, target, pattern, build_id)
Dfetcher.py46 target=args.target) if args.branch else args.build_id
52 target=args.target,
60 target=args.target,
/tools/asuite/atest-py2/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/treble/hacksaw/mount/
Dfake.go38 func (f *fakeMounter) Mount(source string, target string, fstype string, flags uintptr, data string…
41 f.mountMap[target] = MountEntry{
50 func (f *fakeMounter) Unmount(target string, flags int) error {
51 _, ok := f.mountMap[target]
53 return fmt.Errorf("Mount %s not found", target)
55 delete(f.mountMap, target)
61 for target, _ := range f.mountMap {
62 list = append(list, target)
/tools/asuite/aidegen_functional_test/
Daidegen_functional_test_main.py302 def _git_checkout_target_commit_id(target, commit_id): argument
319 _, abs_path = common_util.get_related_paths(atest_module_info, target)
338 for target in data_id_dict:
339 commit_id = data_id_dict.get(target, '')
340 current_commit_id = _git_checkout_target_commit_id(target, commit_id)
341 spec_and_cur_commit_id_dict[target] = {}
342 spec_and_cur_commit_id_dict[target]['current'] = current_commit_id
346 def _generate_target_real_iml_data(target): argument
358 aidegen_main.main([target, '-s', '-n', '-v'])
368 target)
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/psi/
DPsiAnnotationItem.kt58 override fun toSource(target: AnnotationTarget, showDefaultAttrs: Boolean): String { in <lambda>()
60 appendAnnotation(codebase, sb, psiAnnotation, originalName, target, showDefaultAttrs) in <lambda>()
137 target: AnnotationTarget, in <lambda>()
140 … val qualifiedName = AnnotationItem.mapName(codebase, originalName, null, target) ?: return in <lambda>()
153 appendValue(codebase, sb, attributes[0].second, target, showDefaultAttrs) in <lambda>()
164 appendValue(codebase, sb, attribute.second, target, showDefaultAttrs) in <lambda>()
174 target: AnnotationTarget, in <lambda>()
221 appendValue(codebase, sb, value.lOperand, target, showDefaultAttrs) in <lambda>()
225 appendValue(codebase, sb, value.rOperand, target, showDefaultAttrs) in <lambda>()
236 appendValue(codebase, sb, initializer, target, showDefaultAttrs) in <lambda>()
[all …]
DUAnnotationItem.kt58 override fun toSource(target: AnnotationTarget, showDefaultAttrs: Boolean): String { in <lambda>()
60 appendAnnotation(codebase, sb, uAnnotation, originalName, target, showDefaultAttrs) in <lambda>()
121 target: AnnotationTarget, in <lambda>()
124 … val qualifiedName = AnnotationItem.mapName(codebase, originalName, null, target) ?: return in <lambda>()
137 appendValue(codebase, sb, attributes[0].second, target, showDefaultAttrs) in <lambda>()
148 appendValue(codebase, sb, attribute.second, target, showDefaultAttrs) in <lambda>()
158 target: AnnotationTarget, in <lambda>()
182 appendValue(codebase, sb, value.leftOperand, target, showDefaultAttrs) in <lambda>()
186 appendValue(codebase, sb, value.rightOperand, target, showDefaultAttrs) in <lambda>()
198 appendValue(codebase, sb, initializer, target, showDefaultAttrs) in <lambda>()
[all …]
/tools/treble/split/
DREADME.md6 projects necessary to build a given target. If a project isn't used for building
7 the target, it shouldn't be in the split manifest. This smaller manifest can be
8 used to sync the Android source tree and build the specific target. This sync
17 specific to your target.
28 Use standard Android build commands to build your target.
36 # Set command line variables for the Android target you are using and the build
37 # target that should be buildable from your split manifest.
57 the partial target files package.
64 1. Attempt a build of your target.
98 partition, such as `out/target/product/<device>/system`.
[all …]
/tools/asuite/aidegen/
Daidegen_main_unittest.py65 target = 'tradefed'
66 args = aidegen_main._parse_args([target])
67 self.assertEqual(args.targets, [target])
168 target = 'libui'
169 args = [target, '-p', '/opt/abc/bin/idea.sh']
178 target = 'libui'
179 args = aidegen_main._parse_args([target, '-i', 'e'])
189 target = 'libui'
190 args = aidegen_main._parse_args([target, '-i', 'e'])
392 target = ['a', 'b']
[all …]
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py518 def run_find_cmd(ref_type, search_dir, target, methods=None): argument
549 if _dict.get(target):
550 out = [path for path in _dict.get(target) if search_dir in path]
551 logging.debug('Found %s in %s', target, out)
554 if '.' in target:
555 target = target.replace('.', '/')
556 find_cmd = FIND_CMDS[ref_type].format(search_dir, prune_cond, target)
777 target = line.strip()
779 if not target:
783 if target.endswith(_VTS_PUSH_SUFFIX):
[all …]
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt72 target: AnnotationTarget = AnnotationTarget.SIGNATURE_FILE, in toSource()
181 target: AnnotationTarget = AnnotationTarget.SIGNATURE_FILE in mapName()
237 …RECENTLY_NULLABLE -> return if (target == AnnotationTarget.SDK_STUBS_FILE) qualifiedName else ANDR… in mapName()
238 …RECENTLY_NONNULL -> return if (target == AnnotationTarget.SDK_STUBS_FILE) qualifiedName else ANDRO… in mapName()
243 "org.jetbrains.annotations.Nullable" -> return nullableAnnotationName(target) in mapName()
248 "org.jetbrains.annotations.NotNull" -> return nonNullAnnotationName(target) in mapName()
319 isNullableAnnotation(qualifiedName) -> nullableAnnotationName(target) in mapName()
320 isNonNullAnnotation(qualifiedName) -> nonNullAnnotationName(target) in mapName()
356 private fun nullableAnnotationName(target: AnnotationTarget) = in nullableAnnotationName()
357 if (target == AnnotationTarget.SDK_STUBS_FILE) ANDROID_NULLABLE else ANDROIDX_NULLABLE in nullableAnnotationName()
[all …]
DModifierList.kt269 target: AnnotationTarget, in <lambda>()
303 target, in <lambda>()
400 if (list.isSynchronized() && target.isStubsFile()) { in <lambda>()
404 if (list.isNative() && target.isStubsFile()) { in <lambda>()
421 target: AnnotationTarget, in <lambda>()
445 target = target in <lambda>()
457 target: AnnotationTarget in <lambda>()
476 if (!annotation.targets.contains(target)) { in <lambda>()
521 val source = printAnnotation.toSource(target, showDefaultAttrs = false) in <lambda>()
/tools/metalava/src/test/java/com/android/tools/metalava/
DRewriteAnnotationsTest.kt37 val target = temporaryFolder.newFolder() in Test copying private annotations from one of the stubs() constant
44 target.path, in Test copying private annotations from one of the stubs()
50 val nullable = File(target, "android/annotation/SdkConstant.java") in Test copying private annotations from one of the stubs()
54 val nonNull = File(target, "androidx/annotation/NonNull.java") in Test copying private annotations from one of the stubs()
59 val recentlyNull = File(target, "androidx/annotation/RecentlyNullable.java") in Test copying private annotations from one of the stubs()
103 val target = temporaryFolder.newFolder() in Test stub-annotations containing unknown annotation() constant
131 target.path, in Test stub-annotations containing unknown annotation()
/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/external_updater/
Dregen_bp.sh39 rm -rf target.tmp cargo.out Cargo.lock
72 SRC=`ls ./target.tmp/*/debug/build/$PKGNAME-*/out/$OUTF ||
73 ls ./target.tmp/debug/build/$PKGNAME-*/out/$OUTF || true`
86 --exclude-dir target.tmp --exclude-dir target \
/tools/asuite/atest/logstorage/
Dlogstorage_utils.py80 return self.client.target().list(branch=branch,
96 def insert_local_build(self, external_id, target, branch): argument
111 "name": target,
112 "target": target
134 target=build_record['target']['name'],
/tools/acloud/internal/lib/
Dgoldfish_compute_client.py127 def GetKernelBuildArtifact(target): argument
139 if target == "kernel":
141 if target == "kernel_x86_64":
143 if target == "kernel_aarch64":
146 "Don't know the artifact name for '%s' target" % target)
/tools/test/connectivity/acts/framework/acts/
Dtest_decorators.py331 def __init__(self, target, instance): argument
337 self.target = target
339 self.__name__ = target.__name__
346 return self.target(self.instance, *args, **kwargs)
352 return self.target.gather(self.instance, *args, **kwargs)

123456