/build/soong/java/ |
D | prebuilt_apis.go | 48 func parseJarPath(path string) (module string, apiver string, scope string) { 52 scope = elements[1] 58 …piFilePath(ctx android.LoadHookContext, path string) (module string, apiver string, scope string) { 62 scope = elements[1] 63 …if scope != "public" && scope != "system" && scope != "test" && scope != "module-lib" && scope != … 64 ctx.ModuleErrorf("invalid scope %q found in path: %q", scope, path) 73 func prebuiltApiModuleName(mctx android.LoadHookContext, module string, scope string, apiver string… 74 return mctx.ModuleName() + "_" + scope + "_" + apiver + "_" + module 77 func createImport(mctx android.LoadHookContext, module string, scope string, apiver string, path st… 84 props.Name = proptools.StringPtr(prebuiltApiModuleName(mctx, module, scope, apiver)) [all …]
|
D | sdk_library.go | 707 if scope, ok := scopeByName[scopeName]; ok { 708 paths := c.findScopePaths(scope) 732 return nil, fmt.Errorf("unknown scope %s in %s", scope, tag) 740 func (c *commonToSdkLibraryAndImport) getScopePathsCreateIfNeeded(scope *apiScope) *scopePaths { 744 paths := c.scopePaths[scope] 747 c.scopePaths[scope] = paths 753 func (c *commonToSdkLibraryAndImport) findScopePaths(scope *apiScope) *scopePaths { 758 return c.scopePaths[scope] 763 func (c *commonToSdkLibraryAndImport) findClosestScopePath(scope *apiScope) *scopePaths { 764 for s := scope; s != nil; s = s.extends { [all …]
|
D | java_test.go | 630 for _, scope := range []string{"", ".system", ".test"} { 631 fooModule := ctx.ModuleForTests("foo"+scope, "android_common") 634 …sdklibStubsJar := ctx.ModuleForTests("sdklib.stubs"+scope, "android_common").Rule("combineJar").Ou… 1495 testJavaError(t, `"foo" does not provide api scope system`, ` 1568 testJavaError(t, `stubs.source not available for api scope public`, bp+` 1581 testJavaError(t, `api.txt not available for api scope public`, bp+` 1593 testJavaError(t, `removed-api.txt not available for api scope public`, bp+` 1606 testJavaError(t, `module "foo": enabled api scope "system" depends on disabled scope "public"`, ` 1670 testJavaError(t, `requires api scope module-lib from foo but it only has \[\] available`, `
|
/build/soong/androidmk/parser/ |
D | scope.go | 28 type scope struct { struct 34 func (s *scope) Get(name string) string { argument 46 func (s *scope) Set(name, value string) { argument 50 func (s *scope) Call(name string, args []string) []string { argument 58 func (s *scope) SetFunc(name string, f func([]string) []string) { argument 63 return &scope{ 77 func (v Variable) EvalFunction(scope Scope) ([]string, bool) { 85 argVals[i] = a.Value(scope) 89 return scope.Call(argVals[0], argVals[1:]), true 99 func (v Variable) Value(scope Scope) string { [all …]
|
D | make_strings.go | 89 func (ms *MakeString) Value(scope Scope) string { 95 ret += ms.Variables[i].Value(scope)
|
/build/blueprint/ |
D | ninja_defs.go | 102 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 …]
|
D | ninja_strings_test.go | 112 scope := newLocalScope(nil, "namespace") 115 v, err := scope.LookupVariable(varName) 117 v, err = scope.AddLocalVariable(varName, "") 137 output, err := parseNinjaString(scope, testCase.input) 163 scope := newScope(nil) 164 scope.AddImport("impPkg", impScope) 167 output, err := parseNinjaString(scope, input) 194 scope := newLocalScope(nil, "") 195 scope.AddLocalVariable("a", strings.Repeat("b", l/3)) 196 ns, _ := parseNinjaString(scope, strings.Repeat("a", l/3)+"${a}"+strings.Repeat("a", l/3)) [all …]
|
D | scope.go | 52 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 …]
|
D | package_ctx.go | 80 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) 275 err = p.scope.AddVariable(v) 296 ninjaStr, err := parseNinjaString(v.pctx.scope, v.value_) 336 err = p.scope.AddVariable(v) 375 err = p.scope.AddVariable(v) 401 ninjaStr, err := parseNinjaString(v.pctx.scope, value) [all …]
|
D | ninja_strings.go | 51 type scope interface { interface 62 scope scope member 94 func parseNinjaString(scope scope, str string) (ninjaString, error) { argument 109 scope: scope, 196 v, err := state.scope.LookupVariable(state.str[state.varStart:i]) 209 v, err := state.scope.LookupVariable(state.str[state.varStart:i]) 224 v, err := state.scope.LookupVariable(state.str[state.varStart:i]) 250 v, err := state.scope.LookupVariable(state.str[state.varStart:i]) 269 func parseNinjaStrings(scope scope, strs []string) ([]ninjaString, argument 277 ninjaStr, err := parseNinjaString(scope, str)
|
D | singleton_ctx.go | 158 scope *localScope member 217 s.scope.ReparentTo(pctx) 219 v, err := s.scope.AddLocalVariable(name, value) 230 s.scope.ReparentTo(pctx) 232 r, err := s.scope.AddLocalRule(name, ¶ms, argNames...) 243 s.scope.ReparentTo(pctx) 245 def, err := parseBuildParams(s.scope, ¶ms) 254 s.scope.ReparentTo(pctx) 256 ninjaStr, err := parseNinjaString(s.scope, str) 274 s.scope.ReparentTo(pctx) [all …]
|
D | module_ctx.go | 450 scope *localScope member 662 m.scope.ReparentTo(pctx) 664 v, err := m.scope.AddLocalVariable(name, value) 675 m.scope.ReparentTo(pctx) 677 r, err := m.scope.AddLocalRule(name, ¶ms, argNames...) 688 m.scope.ReparentTo(pctx) 690 def, err := parseBuildParams(m.scope, ¶ms) 1194 scope := parser.NewScope(nil) 1195 file, errs := parser.Parse(filename, strings.NewReader(contents), scope)
|
D | context.go | 953 func (c *Context) openAndParse(filename string, scope *parser.Scope, rootDir string, 986 file, subBlueprints, errs = c.parseOne(rootDir, filename, f, scope, parent) 1012 …scope *parser.Scope, parent *fileParseContext) (file *parser.File, subBlueprints []fileParseContex… 1019 scope.Remove("subdirs") 1020 scope.Remove("optional_subdirs") 1021 scope.Remove("build") 1022 file, errs = parser.ParseAndEval(filename, reader, scope) 1040 build, buildPos, err := getLocalStringListFromScope(scope, "build") 1053 subBlueprintsName, _, err := getStringFromScope(scope, "subname") 1070 …subBlueprintsAndScope[i] = fileParseContext{b, parser.NewScope(scope), parent, make(chan struct{})} [all …]
|
D | Blueprints | 20 "scope.go",
|
/build/soong/scripts/ |
D | gen-java-current-api-files.sh | 30 for scope in "${scopes[@]}"; do 32 touch "${api_dir}/${scope}${api}.txt"
|
/build/blueprint/parser/ |
D | parser.go | 86 func ParseAndEval(filename string, r io.Reader, scope *Scope) (file *File, errs []error) { 87 p := newParser(r, scope) 94 func Parse(filename string, r io.Reader, scope *Scope) (file *File, errs []error) { 95 p := newParser(r, scope) 105 scope *Scope member 110 func newParser(r io.Reader, scope *Scope) *parser { 112 p.scope = scope 223 if p.scope != nil { 225 if old, local := p.scope.Get(assignment.Name); old == nil { 240 err := p.scope.Add(assignment) [all …]
|
D | parser_test.go | 1280 scope := NewScope(nil) 1282 _, errs := Parse("", bytes.NewBufferString(input), scope) 1290 assignment, found := scope.Get("FOO")
|
/build/soong/sysprop/ |
D | sysprop_library.go | 56 `$syspropJavaCmd --scope $scope --java-output-dir $out.tmp $in && ` + 450 scope := "internal" 457 scope = "public" 460 scope = "public" 465 Scope: scope,
|
/build/soong/androidmk/androidmk/ |
D | values.go | 72 if ret, ok := ms.Variables[i].EvalFunction(file.scope); ok { 136 if ret, ok := f.Variables[0].EvalFunction(file.scope); ok {
|
D | androidmk.go | 38 scope mkparser.Scope member 125 scope: androidScope(), 146 module, ok := mapIncludePath(x.Args.Value(file.scope))
|
D | android.go | 588 class := ctx.mkvalue.Value(ctx.file.scope) 590 ctx.file.scope.Set("BUILD_PREBUILT", class) 593 ctx.file.scope.Set("BUILD_PREBUILT", "prebuilt")
|
/build/soong/androidmk/ |
D | Android.bp | 54 "parser/scope.go",
|
/build/make/tools/droiddoc/templates-ndk/ |
D | class.cs | 109 <?cs var:class.scope ?> 215 <?cs var:field.scope ?> 272 <?cs var:cl.scope ?>
|
/build/soong/android/soongconfig/ |
D | modules.go | 34 scope := parser.NewScope(nil) 35 file, errs := parser.ParseAndEval(from, r, scope)
|
/build/soong/ |
D | README.md | 214 A module name's **scope** is the smallest namespace containing it. Suppose a 219 The name uniqueness thus means that module's name is unique within its scope. In 238 explicitly defined scope are considered). The `imports` attribute of the
|