/build/soong/androidmk/parser/ |
D | scope.go | 26 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 …]
|
D | make_strings.go | 101 func (ms *MakeString) Value(scope Scope) string { 107 ret += ms.Variables[i].Value(scope)
|
/build/bazel/rules/java/ |
D | merged_txts_test.bzl | 37 "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 …]
|
D | merged_txts.bzl | 28 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",
|
D | java_sysprop_library.bzl | 49 scope): 74 {sysprop_java} --scope {scope} --java-output-dir {dir} {input} && 79 scope = scope,
|
/build/soong/java/ |
D | prebuilt_apis.go | 81 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 …]
|
D | sdk_library.go | 172 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 …]
|
D | sdk_library_test.go | 495 …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 …]
|
D | hiddenapi_modular.go | 660 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/ |
D | ninja_strings_test.go | 153 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 …]
|
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.go | 62 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 …]
|
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) 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 …]
|
D | singleton_ctx.go | 172 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, ¶ms, argNames...) 267 s.scope.ReparentTo(pctx) 269 def, err := parseBuildParams(s.scope, ¶ms, map[string]string{ 281 s.scope.ReparentTo(pctx) 283 ninjaStr, err := parseNinjaString(s.scope, str) 301 s.scope.ReparentTo(pctx) [all …]
|
D | module_ctx.go | 498 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, ¶ms, argNames...) 791 m.scope.ReparentTo(pctx) 793 def, err := parseBuildParams(m.scope, ¶ms, m.ModuleTags()) 1395 scope := parser.NewScope(nil) 1396 file, errs := parser.Parse(filename, strings.NewReader(contents), scope)
|
/build/soong/scripts/ |
D | gen-java-current-api-files.sh | 30 for scope in "${scopes[@]}"; do 32 touch "${api_dir}/${scope}${api}.txt"
|
/build/bazel/rules/aidl/testing/ |
D | BUILD | 56 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/ |
D | parser.go | 89 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/ |
D | sysprop_library.go | 66 `$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/ |
D | Android.bp | 58 "parser/scope.go",
|
/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 141 scope: androidScope(), 169 module, ok := mapIncludePath(x.Args.Value(file.scope))
|
/build/bazel/rules/ |
D | prebuilt_file_test.bzl | 24 # We can't stub a source file object for testing so we scope it out
|
/build/bazel/rules/android/ |
D | manifest_fixer.bzl | 41 # TODO: b/301430823 - Only pass ctx.actions to limit the scope of what this function can access.
|