Home
last modified time | relevance | path

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

1234567

/tools/treble/build/treble_build/local/
Dninja.go41 Command(ctx context.Context, target string) (*bytes.Buffer, error)
42 Input(ctx context.Context, target string) (*bytes.Buffer, error)
43 Query(ctx context.Context, target string) (*bytes.Buffer, error)
44 Path(ctx context.Context, target string, dependency string) (*bytes.Buffer, error)
45 Paths(ctx context.Context, target string, dependency string) (*bytes.Buffer, error)
47 Build(ctx context.Context, target string) (*bytes.Buffer, error)
61 func parseCommand(target string, data *bytes.Buffer) (*app.BuildCommand, error) {
62 out := &app.BuildCommand{Target: target, Cmds: []string{}}
75 func parseInput(target string, data *bytes.Buffer) (*app.BuildInput, error) {
76 out := &app.BuildInput{Target: target, Files: []string{}}
[all …]
Dninja_test.go36 func (n *ninjaTest) Command(ctx context.Context, target string) (*bytes.Buffer, error) {
39 func (n *ninjaTest) Input(ctx context.Context, target string) (*bytes.Buffer, error) {
42 func (n *ninjaTest) Query(ctx context.Context, target string) (*bytes.Buffer, error) {
45 func (n *ninjaTest) Path(ctx context.Context, target string, dependency string) (*bytes.Buffer, err…
48 func (n *ninjaTest) Paths(ctx context.Context, target string, dependency string) (*bytes.Buffer, er…
54 func (n *ninjaTest) Build(ctx context.Context, target string) (*bytes.Buffer, error) {
88 target string
99 target: "test",
150 if res, err := n.Command(nil, test.target); err != nil {
159 if res, err := n.Query(nil, test.target); err != nil {
[all …]
/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.py97 def get_related_paths(atest_module_info, target=None): argument
124 if target == '.':
125 target = None
126 if target:
128 if target == constant.WHOLE_ANDROID_TREE_TARGET:
132 elif os.path.isabs(target):
133 abs_path = target
136 elif atest_module_info.is_module(target):
137 paths = atest_module_info.get_paths(target)
142 elif (atest_module_info.get_module_names(target)
[all …]
Dnative_project_info.py43 def __init__(self, target): argument
56 self.module_names = [target] if self.modules_info.is_module(
57 target) else self.modules_info.get_module_names_in_targets_paths(
58 [target])
119 for target in targets:
120 project = NativeProjectInfo(target)
Dproject_info.py111 def __init__(self, target=None, is_main_project=False): argument
122 self.modules_info, target)
123 self.module_name = self.get_target_name(target, abs_path)
132 if target == constant.FRAMEWORK_ALL:
133 self.dep_modules = self.get_dep_modules([target])
302 return [ProjectInfo(target, i == 0) for i, target in enumerate(targets)]
305 def get_target_name(target, abs_path): argument
323 return target
542 for target in self._targets:
544 target)
Dnative_util_unittest.py241 target = 'a/b/rust'
244 rel_target, native_util._get_relative_path(target, root))
249 target = 'a/b'
251 native_util._is_target_relative_module(path, target))
255 native_util._is_target_relative_module(path, target))
259 native_util._is_target_relative_module(path, target))
261 target = 'a/bc'
263 native_util._is_target_relative_module(path, target))
/tools/treble/build/treble_build/report/
Dreport_test.go50 func (r *reportTest) Command(ctx context.Context, target string) (*app.BuildCommand, error) {
52 out := r.commands[target]
54 err = errors.New(fmt.Sprintf("No command for target %s", target))
59 func (r *reportTest) Input(ctx context.Context, target string) (*app.BuildInput, error) {
61 out := r.inputs[target]
63 err = errors.New(fmt.Sprintf("No inputs for target %s", target))
68 func (r *reportTest) Query(ctx context.Context, target string) (*app.BuildQuery, error) {
70 out := r.queries[target]
72 err = errors.New(fmt.Sprintf("No queries for target %s", target))
77 func (r *reportTest) Path(ctx context.Context, target string, dependency string) (*app.BuildPath, e…
[all …]
Ddependencies.go24 Command(ctx context.Context, target string) (*app.BuildCommand, error)
25 Input(ctx context.Context, target string) (*app.BuildInput, error)
26 Query(ctx context.Context, target string) (*app.BuildQuery, error)
27 Path(ctx context.Context, target string, dependency string) (*app.BuildPath, error)
28 Paths(ctx context.Context, target string, dependency string) ([]*app.BuildPath, error)
/tools/treble/fetcher/
Dfetcher_lib.py144 def fetch_artifact(client, build_id, target, resource_id, dest): argument
160 target=target,
214 def fetch_artifacts(client, out_dir, target, pattern, build_id): argument
233 target=target)
239 target=target,
244 def get_latest_build_id(client, branch, target): argument
258 target=target,
269 def fetch_latest_artifacts(client, out_dir, target, pattern, branch): argument
281 client=client, branch=branch, target=target)
283 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/
Dbazel_mode.py458 target = top.popleft()
463 if target in seen:
466 seen.add(target)
470 for ref in target.dependencies():
473 next_top.append(ref.target())
540 target = package.get_target(target_name)
542 if target:
543 return target
545 target = create_fn()
546 package.add_target(target)
[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/test/java/com/android/tools/metalava/
DRewriteAnnotationsTest.kt32 val target = temporaryFolder.newFolder() in Test copying private annotations from one of the stubs() constant
39 target.path, in Test copying private annotations from one of the stubs()
45 val nullable = File(target, "android/annotation/SdkConstant.java") in Test copying private annotations from one of the stubs()
49 val nonNull = File(target, "androidx/annotation/NonNull.java") in Test copying private annotations from one of the stubs()
54 val recentlyNull = File(target, "androidx/annotation/RecentlyNullable.java") in Test copying private annotations from one of the stubs()
98 val target = temporaryFolder.newFolder() in Test stub-annotations containing unknown annotation() constant
126 target.path, in Test stub-annotations containing unknown annotation()
/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/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(originalName, 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(originalName, 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/asuite/aidegen/
Daidegen_main_unittest.py63 target = 'tradefed'
64 args = aidegen_main._parse_args([target])
65 self.assertEqual(args.targets, [target])
166 target = 'libui'
167 args = [target, '-p', '/opt/abc/bin/idea.sh']
189 target = 'libui'
190 args = aidegen_main._parse_args([target, '-i', 'e'])
200 target = 'libui'
201 args = aidegen_main._parse_args([target, '-i', 'e'])
403 target = ['a', 'b']
[all …]
/tools/asuite/atest/test_finders/
Dtest_finder_utils.py468 def run_find_cmd(ref_type, search_dir, target, methods=None): argument
497 if _dict.get(target):
498 out = [path for path in _dict.get(target) if search_dir in path]
499 logging.debug('Found %s in %s', target, out)
501 if '.' in target:
502 target = target.replace('.', '/')
503 find_cmd = ref_type.find_command.format(search_dir, target)
726 target = line.strip()
728 if not target:
732 if target.endswith(_VTS_PUSH_SUFFIX):
[all …]
/tools/asuite/atest/bazel/runner/src/main/protobuf/
Dbuild_event_stream.proto29 // information about which build target etc the event is related to.
84 // Identifier of an event indicating that a target pattern has been expanded
98 // Identifier of an event indicating that a target has been expanded by
103 // If empty, the id refers to the expansion of the target. If not-empty,
105 // expanded) target.
134 // Identifier of an event indicating that a target was built completely; this
135 // does not include running the test if the target is a test target.
139 // The configuration for which the target was built.
142 // If empty, the id refers to the completion of the target. If not-empty,
144 // completed) target.
[all …]
/tools/asuite/atest/bazel/runner/config/config/
Dformat_module_name_to_test_target.cquery1 def format(target):
2 …"""Return a pair of 'module_name target_label' for the given tradefed test target, '' otherwise."""
3 p = providers(target)
9 # Use space as a delimiter as Bazel labels can use many spacial characters in their target
10 # labels. See: https://bazel.build/concepts/labels#target-names
11 return "%s %s" % (tradefed_test_info.module_name, target.label)
/tools/metalava/src/main/java/com/android/tools/metalava/model/
DAnnotationItem.kt71 target: AnnotationTarget = AnnotationTarget.SIGNATURE_FILE, in toSource()
178 target: AnnotationTarget = AnnotationTarget.SIGNATURE_FILE in mapName()
238 …RECENTLY_NULLABLE -> return if (target == AnnotationTarget.SDK_STUBS_FILE) qualifiedName else ANDR… in mapName()
239 …RECENTLY_NONNULL -> return if (target == AnnotationTarget.SDK_STUBS_FILE) qualifiedName else ANDRO… in mapName()
244 "org.jetbrains.annotations.Nullable" -> return nullableAnnotationName(target) in mapName()
249 "org.jetbrains.annotations.NotNull" -> return nonNullAnnotationName(target) in mapName()
306 isNullableAnnotation(qualifiedName) -> nullableAnnotationName(target) in mapName()
307 isNonNullAnnotation(qualifiedName) -> nonNullAnnotationName(target) in mapName()
324 private fun nullableAnnotationName(target: AnnotationTarget) = in nullableAnnotationName()
325 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/asuite/atest/bazel/resources/rules/
Dsoong_prebuilt.bzl29 # This field contains this target's outputs and all runtime dependency
33 "platform_flavor": "The platform flavor that this target will be built on",
44 # This happens because soong_prebuilt dependency target globs don't match
77 # they're already embedded in this target's output. Note that this is done
113 # Targets that are needed by this target during runtime.
175 runtime_deps: List of runtime dependencies required by this target.
176 static_deps: List of static dependencies required by this target.
177 data: List of data required by this target.
178 device_data: List of data on device variant required by this target.
179 suites: List of test suites this target belongs to.
[all …]

1234567