Home
last modified time | relevance | path

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

/build/soong/java/
Dprebuilt_apis.go47 func parseJarPath(ctx android.BaseModuleContext, path string) (module string, apiver string, scope
51 scope = elements[1]
57 …FilePath(ctx android.BaseModuleContext, path string) (module string, apiver string, scope string) {
61 scope = elements[1]
62 if scope != "public" && scope != "system" && scope != "test" {
63 ctx.ModuleErrorf("invalid scope %q found in path: %q", scope, path)
72 func createImport(mctx android.TopDownMutatorContext, module string, scope string, apiver string, p…
79 props.Name = proptools.StringPtr(mctx.ModuleName() + "_" + scope + "_" + apiver + "_" + module)
88 func createFilegroup(mctx android.TopDownMutatorContext, module string, scope string, apiver string…
89 fgName := module + ".api." + scope + "." + apiver
[all …]
Dsdk_library.go695 for _, scope := range []string{"", "system-", "test-"} {
697 path := path.Join(mctx.ModuleDir(), "api", scope+api)
/build/soong/androidmk/parser/
Dscope.go28 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 …]
Dmake_strings.go89 func (ms *MakeString) Value(scope Scope) string {
95 ret += ms.Variables[i].Value(scope)
/build/blueprint/
Dninja_defs.go101 func parsePoolParams(scope scope, params *PoolParams) (*poolDef, argument
138 func parseRuleParams(scope scope, params *RuleParams) (*ruleDef, argument
152 if r.Pool != nil && !scope.IsPoolVisible(r.Pool) {
156 value, err := parseNinjaString(scope, params.Command)
163 value, err = parseNinjaString(scope, params.Depfile)
175 value, err = parseNinjaString(scope, params.Description)
191 value, err = parseNinjaString(scope, params.Rspfile)
199 value, err = parseNinjaString(scope, params.RspfileContent)
207 r.CommandDeps, err = parseNinjaStrings(scope, params.CommandDeps)
212 r.CommandOrderOnly, err = parseNinjaStrings(scope, params.CommandOrderOnly)
[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 …]
Dninja_strings_test.go102 scope := newLocalScope(nil, "namespace")
105 v, err := scope.LookupVariable(varName)
107 v, err = scope.AddLocalVariable(varName, "")
115 output, err := parseNinjaString(scope, testCase.input)
147 scope := newScope(nil)
148 scope.AddImport("impPkg", impScope)
151 output, err := parseNinjaString(scope, input)
Dpackage_ctx.go80 scope *basicScope member
87 return p.scope
116 scope: newScope(nil),
224 err := p.scope.AddImport(importPkg.shortName, importPkg.scope)
245 err = p.scope.AddImport(as, importPkg.scope)
274 err = p.scope.AddVariable(v)
295 ninjaStr, err := parseNinjaString(v.pctx.scope, v.value_)
335 err = p.scope.AddVariable(v)
374 err = p.scope.AddVariable(v)
400 ninjaStr, err := parseNinjaString(v.pctx.scope, value)
[all …]
Dninja_strings.go42 type scope interface { interface
55 scope scope member
87 func parseNinjaString(scope scope, str string) (*ninjaString, error) { argument
96 scope: scope,
183 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
196 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
211 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
237 v, err := state.scope.LookupVariable(state.str[state.varStart:i])
256 func parseNinjaStrings(scope scope, strs []string) ([]*ninjaString, argument
264 ninjaStr, err := parseNinjaString(scope, str)
Dsingleton_ctx.go91 scope *localScope member
150 s.scope.ReparentTo(pctx)
152 v, err := s.scope.AddLocalVariable(name, value)
163 s.scope.ReparentTo(pctx)
165 r, err := s.scope.AddLocalRule(name, &params, argNames...)
176 s.scope.ReparentTo(pctx)
178 def, err := parseBuildParams(s.scope, &params)
187 s.scope.ReparentTo(pctx)
189 ninjaStr, err := parseNinjaString(s.scope, str)
207 s.scope.ReparentTo(pctx)
[all …]
Dmodule_ctx.go292 scope *localScope member
499 m.scope.ReparentTo(pctx)
501 v, err := m.scope.AddLocalVariable(name, value)
512 m.scope.ReparentTo(pctx)
514 r, err := m.scope.AddLocalRule(name, &params, argNames...)
525 m.scope.ReparentTo(pctx)
527 def, err := parseBuildParams(m.scope, &params)
Dcontext.go875 func (c *Context) openAndParse(filename string, scope *parser.Scope, rootDir string,
908 file, subBlueprints, errs = c.parseOne(rootDir, filename, f, scope, parent)
934scope *parser.Scope, parent *fileParseContext) (file *parser.File, subBlueprints []fileParseContex…
941 scope.Remove("subdirs")
942 scope.Remove("optional_subdirs")
943 scope.Remove("build")
944 file, errs = parser.ParseAndEval(filename, reader, scope)
962 build, buildPos, err := getLocalStringListFromScope(scope, "build")
975 subBlueprintsName, _, err := getStringFromScope(scope, "subname")
992 …subBlueprintsAndScope[i] = fileParseContext{b, parser.NewScope(scope), parent, make(chan struct{})}
[all …]
DBlueprints20 "scope.go",
/build/soong/scripts/
Dgen-java-current-api-files.sh29 for scope in "${scopes[@]}"; do
31 touch "${api_dir}/${scope}${api}.txt"
/build/soong/androidmk/cmd/androidmk/
Dvalues.go63 func makeToStringExpression(ms *mkparser.MakeString, scope mkparser.Scope) (bpparser.Expression, er…
73 if ret, ok := ms.Variables[i].EvalFunction(scope); ok {
128 func makeToListExpression(ms *mkparser.MakeString, scope mkparser.Scope) (bpparser.Expression, erro…
138 if ret, ok := f.Variables[0].EvalFunction(scope); ok {
161 s, err := makeToStringExpression(f, scope)
Dandroidmk.go47 scope mkparser.Scope member
154 scope: androidScope(),
173 module, ok := mapIncludePath(x.Args.Value(file.scope))
374 exp, err = makeToListExpression(val, file.scope)
376 exp, err = makeToStringExpression(val, file.scope)
Dandroid.go579 class := ctx.mkvalue.Value(ctx.file.scope)
581 ctx.file.scope.Set("BUILD_PREBUILT", class)
584 ctx.file.scope.Set("BUILD_PREBUILT", "prebuilt")
/build/blueprint/parser/
Dparser.go86 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 …]
/build/soong/androidmk/
DAndroid.bp43 "parser/scope.go",
/build/make/tools/droiddoc/templates-ndk/
Dclass.cs109 <?cs var:class.scope ?>
215 <?cs var:field.scope ?>
272 <?cs var:cl.scope ?>
/build/make/tools/droiddoc/templates-ndk/assets/
DGPL-LICENSE.txt73 covered by this License; they are outside its scope. The act of
132 the scope of this License.
/build/make/core/
DLINUX_KERNEL_COPYING89 covered by this License; they are outside its scope. The act of
148 the scope of this License.
/build/make/tools/droiddoc/templates-ndk/assets/js/
Dandroid_3p-bundle.js2662 …,iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!… property
2666scope:"default",tolerance:"intersect"},_create:function(){var b=this.options,c=b.accept;this.isove… property
2678 …!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",toleranc… property
/build/kati/
DINTERNALS.md481 *$(A)* in *test3* is a simple variable. Though *$(A)* in the global scope is