Home
last modified time | relevance | path

Searched refs:scope (Results 1 – 25 of 36) sorted by relevance

12

/build/soong/androidmk/parser/
Dscope.go26 type scope struct { struct
32 func (s *scope) Get(name string) string { argument
44 func (s *scope) Set(name, value string) { argument
48 func (s *scope) Call(name string, args []string) []string { argument
56 func (s *scope) SetFunc(name string, f func([]string) []string) { argument
61 return &scope{
75 func (v Variable) EvalFunction(scope Scope) ([]string, bool) {
83 argVals[i] = a.Value(scope)
87 return scope.Call(argVals[0], argVals[1:]), true
97 func (v Variable) Value(scope Scope) string {
[all …]
Dmake_strings.go101 func (ms *MakeString) Value(scope Scope) string {
107 ret += ms.Variables[i].Value(scope)
/build/bazel/rules/java/
Dmerged_txts_test.bzl37 "Base file {} of scope {} is not in args list".format(base_file, ctx.attr.scope),
42 SCOPE_TO_JAVA_SDK_LIBRARY_FILE[ctx.attr.scope],
47 …"java_sdk_library file {} of scope {} is not in args list".format(java_sdk_library_file, ctx.attr.
55 "scope": attr.string(),
63 scope = "public"
67 scope = scope,
82 scope = scope,
90 scope = "system"
94 scope = scope,
102 scope = scope,
[all …]
Dmerged_txts.bzl28 if ctx.attr.scope == "public":
30 elif ctx.attr.scope == "system":
32 elif ctx.attr.scope == "module-lib":
34 elif ctx.attr.scope == "system-server":
41 if ctx.attr.scope != "public":
42 output_name = ctx.attr.scope + "-" + output_name
63 "scope": attr.string(
64 doc = "api scope",
Djava_sysprop_library.bzl49 scope):
74 {sysprop_java} --scope {scope} --java-output-dir {dir} {input} &&
79 scope = scope,
/build/soong/java/
Dprebuilt_apis.go81 func parsePrebuiltPath(ctx android.LoadHookContext, p string) (module string, version string, scope
88 scope = elements[scopeIdx]
89 …if scope != "core" && scope != "public" && scope != "system" && scope != "test" && scope != "modul…
90 ctx.ModuleErrorf("invalid scope %q found in path: %q", scope, p)
100 …Context, p string, allowIncremental bool) (module string, version int, release int, scope string) {
101 module, v, scope := parsePrebuiltPath(ctx, p)
127 func prebuiltApiModuleName(mctx android.LoadHookContext, module, scope, version string) string { argument
128 return fmt.Sprintf("%s_%s_%s_%s", mctx.ModuleName(), scope, version, module)
130 func createImport(mctx android.LoadHookContext, module, scope, version, path, sdkVersion string, co… argument
138 Name: proptools.StringPtr(prebuiltApiModuleName(mctx, module, scope, version)),
[all …]
Dsdk_library.go172 func initApiScope(scope *apiScope) *apiScope {
173 name := scope.name
174 scopeByName[name] = scope
176 scope.propertyName = strings.ReplaceAll(name, "-", "_")
177 scope.fieldName = proptools.FieldNameForProperty(scope.propertyName)
178 scope.prebuiltStubsTag = scopeDependencyTag{
180 apiScope: scope,
183 scope.everythingStubsTag = scopeDependencyTag{
185 apiScope: scope,
188 scope.exportableStubsTag = scopeDependencyTag{
[all …]
Dsdk_library_test.go495 …dule "foo" at tag ".public.annotations.zip": annotations.zip not available for api scope public`)).
520 …r(android.FixtureExpectsAtLeastOneErrorMatchingPattern(`"foo" does not provide api scope system`)).
609 …d.FixtureExpectsAtLeastOneErrorMatchingPattern(`stubs.source not available for api scope public`)).
624 …ndroid.FixtureExpectsAtLeastOneErrorMatchingPattern(`api.txt not available for api scope public`)).
638 …ixtureExpectsAtLeastOneErrorMatchingPattern(`removed-api.txt not available for api scope public`)).
653 …LeastOneErrorMatchingPattern(`module "foo": enabled api scope "system" depends on disabled scope "…
782 stubsPath := func(name string, scope *apiScope) string {
783 name = scope.stubsLibraryModuleName(name)
805 …ExtendWithErrorHandler(android.FixtureExpectsAtLeastOneErrorMatchingPattern(`requires api scope mo…
917 for _, scope := range []string{"", ".system", ".test"} {
[all …]
Dhiddenapi_modular.go660 func (s StubDexJarsByModule) addStubDexJar(ctx android.ModuleContext, module android.Module, scope
669 …if name == scope.nonUpdatablePrebuiltModule || name == scope.nonUpdatableSourceModule || name == s…
703 stubDexJarsByScope[scope] = stubDexJar
734 func (s StubDexJarsByModule) StubDexJarsForScope(scope *HiddenAPIScope) android.Paths {
740 if jars, ok := stubDexJarsByScope[scope]; ok {
/build/blueprint/
Dninja_strings_test.go153 scope := newLocalScope(nil, "namespace.")
156 _, err := scope.LookupVariable(varName)
158 v, err := scope.AddLocalVariable(varName, strings.ToUpper(varName))
166 output, err := parseNinjaString(scope, testCase.input)
202 scope := newScope(nil)
203 scope.AddImport("impPkg", impScope)
206 output, err := parseNinjaString(scope, input)
277 scope := newLocalScope(nil, "")
278 scope.AddLocalVariable("abc", "abc")
279 scope.AddLocalVariable("def", "def")
[all …]
Dninja_defs.go102 func parsePoolParams(scope scope, params *PoolParams) (*poolDef, argument
139 func parseRuleParams(scope scope, params *RuleParams) (*ruleDef, argument
153 if r.Pool != nil && !scope.IsPoolVisible(r.Pool) {
157 value, err := parseNinjaString(scope, params.Command)
164 value, err = parseNinjaString(scope, params.Depfile)
176 value, err = parseNinjaString(scope, params.Description)
192 value, err = parseNinjaString(scope, params.Rspfile)
200 value, err = parseNinjaString(scope, params.RspfileContent)
208 r.CommandDeps, err = parseNinjaStrings(scope, params.CommandDeps)
213 r.CommandOrderOnly, err = parseNinjaStrings(scope, params.CommandOrderOnly)
[all …]
Dninja_strings.go62 type scope interface { interface
73 scope scope member
93 func parseNinjaString(scope scope, str string) (*ninjaString, error) { argument
94 ninjaString, str, err := parseNinjaOrSimpleString(scope, str)
108 func parseNinjaOrSimpleString(scope scope, str string) (*ninjaString, string, error) { argument
124 scope: scope,
211 v, err := state.scope.LookupVariable(state.str[state.varNameStart:i])
247 v, err := state.scope.LookupVariable(state.str[state.varNameStart:i])
267 func parseNinjaStrings(scope scope, strs []string) ([]*ninjaString, argument
275 ninjaStr, err := parseNinjaString(scope, str)
[all …]
Dscope.go52 scope() *basicScope methodSpec
76 scope := newScope(parent)
78 _, err := scope.LookupVariable(argName)
81 err = scope.AddVariable(arg)
94 err := scope.AddVariable(arg)
100 return scope
249 scope *basicScope member
255 scope: newScope(parent),
264 s.scope.parent = pctx.getScope()
268 return s.scope.LookupVariable(name)
[all …]
Dpackage_ctx.go80 scope *basicScope member
87 return p.scope
116 scope: newScope(nil),
225 err := p.scope.AddImport(importPkg.shortName, importPkg.scope)
246 err = p.scope.AddImport(as, importPkg.scope)
279 err = p.scope.AddVariable(v)
300 ninjaStr, err := parseNinjaString(v.pctx.scope, v.value_)
364 err = p.scope.AddVariable(v)
407 err = p.scope.AddVariable(v)
433 ninjaStr, err := parseNinjaString(v.pctx.scope, value)
[all …]
Dsingleton_ctx.go172 scope *localScope member
241 s.scope.ReparentTo(pctx)
243 v, err := s.scope.AddLocalVariable(name, value)
254 s.scope.ReparentTo(pctx)
256 r, err := s.scope.AddLocalRule(name, &params, argNames...)
267 s.scope.ReparentTo(pctx)
269 def, err := parseBuildParams(s.scope, &params, map[string]string{
281 s.scope.ReparentTo(pctx)
283 ninjaStr, err := parseNinjaString(s.scope, str)
301 s.scope.ReparentTo(pctx)
[all …]
Dmodule_ctx.go498 scope *localScope member
765 m.scope.ReparentTo(pctx)
767 v, err := m.scope.AddLocalVariable(name, value)
778 m.scope.ReparentTo(pctx)
780 r, err := m.scope.AddLocalRule(name, &params, argNames...)
791 m.scope.ReparentTo(pctx)
793 def, err := parseBuildParams(m.scope, &params, m.ModuleTags())
1395 scope := parser.NewScope(nil)
1396 file, errs := parser.Parse(filename, strings.NewReader(contents), scope)
/build/soong/scripts/
Dgen-java-current-api-files.sh30 for scope in "${scopes[@]}"; do
32 touch "${api_dir}/${scope}${api}.txt"
/build/bazel/rules/aidl/testing/
DBUILD56 scope = test_scope,
62 scope = test_scope,
84 scope = test_scope,
90 scope = test_scope,
96 scope = test_scope,
102 scope = test_scope,
108 scope = test_scope,
114 scope = test_scope,
120 scope = test_scope,
/build/blueprint/parser/
Dparser.go89 func ParseAndEval(filename string, r io.Reader, scope *Scope) (file *File, errs []error) {
90 p := newParser(r, scope)
97 func Parse(filename string, r io.Reader, scope *Scope) (file *File, errs []error) {
98 p := newParser(r, scope)
117 scope *Scope member
122 func newParser(r io.Reader, scope *Scope) *parser {
124 p.scope = scope
241 if p.scope != nil {
243 if old, local := p.scope.Get(assignment.Name); old == nil {
258 err := p.scope.Add(assignment)
[all …]
/build/soong/sysprop/
Dsysprop_library.go66 `$syspropJavaCmd --scope $scope --java-output-dir $out.tmp $in && ` +
76 `$syspropRustCmd --scope $scope --rust-output-dir $out_dir $in`,
615 scope := "internal"
621 scope = "public"
624 scope = "public"
632 Scope: scope,
681 Scope: scope,
/build/soong/androidmk/
DAndroid.bp58 "parser/scope.go",
/build/soong/androidmk/androidmk/
Dvalues.go72 if ret, ok := ms.Variables[i].EvalFunction(file.scope); ok {
136 if ret, ok := f.Variables[0].EvalFunction(file.scope); ok {
Dandroidmk.go38 scope mkparser.Scope member
141 scope: androidScope(),
169 module, ok := mapIncludePath(x.Args.Value(file.scope))
/build/bazel/rules/
Dprebuilt_file_test.bzl24 # We can't stub a source file object for testing so we scope it out
/build/bazel/rules/android/
Dmanifest_fixer.bzl41 # TODO: b/301430823 - Only pass ctx.actions to limit the scope of what this function can access.

12