/build/blueprint/parser/ |
D | printer.go | 62 p := newPrinter(file) 64 for _, def := range p.defs { 65 p.printDef(def) 67 p.flush() 68 return p.output, nil 73 p := newPrinter(dummyFile) 74 p.printExpression(expression) 75 p.flush() 76 return p.output, nil 79 func (p *printer) Print() ([]byte, error) { [all …]
|
D | parser.go | 62 func parse(p *parser) (file *File, errs []error) { 66 errs = p.errors 73 defs := p.parseDefinitions() 74 p.accept(scanner.EOF) 75 errs = p.errors 76 comments := p.comments 79 Name: p.scanner.Filename, 87 p := newParser(r, scope) 88 p.eval = true 89 p.scanner.Filename = filename [all …]
|
/build/soong/androidmk/parser/ |
D | parser.go | 42 func (p *parser) Parse() ([]Node, []error) { 52 p.parseLines() 53 p.accept(scanner.EOF) 54 p.nodes = append(p.nodes, p.comments...) 55 sort.Sort(byPosition(p.nodes)) 57 return p.nodes, p.errors 70 p := &parser{} 71 p.lines = []int{0} 72 p.scanner.Init(r) 73 p.scanner.Error = func(sc *scanner.Scanner, msg string) { [all …]
|
/build/kati/ |
D | parser.go | 68 p := &parser{ 71 p.mk.filename = filename 72 p.outStmts = &p.mk.stmts 73 return p 76 func (p *parser) srcpos() srcpos { 78 filename: p.mk.filename, 79 lineno: p.lineno, 83 func (p *parser) addStatement(stmt ast) { 84 *p.outStmts = append(*p.outStmts, stmt) 87 p.inRecipe = true [all …]
|
D | file_cache.cc | 38 for (auto p : cache_) { in ~MakefileCacheManagerImpl() local 39 delete p.second; in ~MakefileCacheManagerImpl() 45 auto p = cache_.emplace(filename, result); in ReadMakefile() local 46 if (p.second) { in ReadMakefile() 47 p.first->second = result = new Makefile(filename); in ReadMakefile() 49 result = p.first->second; in ReadMakefile() 55 for (const auto& p : cache_) in GetAllFilenames() local 56 out->insert(p.first); in GetAllFilenames()
|
D | pathutil.go | 352 test, p := o.apply(w, path, ent) 353 if p { 411 if p, ok := seen[ent.id]; ok { 413 …rf("find: File system loop detected; `%s' is part of the same file system loop as `%s'.", lpath, p) 508 var p bool 510 test, p = op.apply(w, path, ent) 511 if p { 539 func (p *findCommandParser) parse() error { 540 p.fc.depth = 1<<31 - 1 // max int32 544 tok, err := p.token() [all …]
|
/build/soong/android/ |
D | prebuilt.go | 49 func (p *Prebuilt) Name(name string) string { 53 func (p *Prebuilt) SingleSourcePath(ctx ModuleContext) Path { 54 if p.srcs != nil { 55 if len(*p.srcs) == 0 { 60 if len(*p.srcs) > 1 { 67 return PathForModuleSrc(ctx, (*p.srcs)[0]) 69 if proptools.String(p.src) == "" { 73 return PathForModuleSrc(ctx, *p.src) 77 func (p *Prebuilt) UsePrebuilt() bool { 78 return p.properties.UsePrebuilt [all …]
|
D | prebuilt_etc.go | 72 func (p *PrebuiltEtc) inRecovery() bool { 73 return p.properties.InRecovery || p.ModuleBase.InstallInRecovery() 76 func (p *PrebuiltEtc) onlyInRecovery() bool { 77 return p.ModuleBase.InstallInRecovery() 80 func (p *PrebuiltEtc) InstallInRecovery() bool { 81 return p.inRecovery() 84 func (p *PrebuiltEtc) DepsMutator(ctx BottomUpMutatorContext) { 85 if p.properties.Src == nil { 90 func (p *PrebuiltEtc) SourceFilePath(ctx ModuleContext) Path { 91 return PathForModuleSrc(ctx, String(p.properties.Src)) [all …]
|
D | package_ctx.go | 78 func (p PackageContext) VariableFunc(name string, 81 return p.PackageContext.VariableFunc(name, func(config interface{}) (string, error) { 82 ctx := &configErrorWrapper{p, config.(Config), nil} 93 func (p PackageContext) PoolFunc(name string, 96 return p.PackageContext.PoolFunc(name, func(config interface{}) (blueprint.PoolParams, error) { 97 ctx := &configErrorWrapper{p, config.(Config), nil} 108 func (p PackageContext) RuleFunc(name string, 111 return p.PackageContext.RuleFunc(name, func(config interface{}) (blueprint.RuleParams, error) { 112 ctx := &configErrorWrapper{p, config.(Config), nil} 125 func (p PackageContext) SourcePathVariable(name, path string) blueprint.Variable { [all …]
|
D | paths.go | 128 func GenPathWithExt(ctx ModuleContext, subdir string, p Path, ext string) ModuleGenPath { 129 if path, ok := p.(genPathProvider); ok { 132 …f(ctx, "Tried to create generated file from unsupported path: %s(%s)", reflect.TypeOf(p).Name(), p) 138 func ObjPathWithExt(ctx ModuleContext, subdir string, p Path, ext string) ModuleObjPath { 139 if path, ok := p.(objPathProvider); ok { 142 …orf(ctx, "Tried to create object file from unsupported path: %s (%s)", reflect.TypeOf(p).Name(), p) 149 func ResPathWithName(ctx ModuleContext, p Path, name string) ModuleResPath { 150 if path, ok := p.(resPathProvider); ok { 153 …Errorf(ctx, "Tried to create res file from unsupported path: %s (%s)", reflect.TypeOf(p).Name(), p) 172 func (p OptionalPath) Valid() bool { [all …]
|
D | testing.go | 162 for _, p := range provider.BuildParamsForTests() { 163 if strings.Contains(p.Rule.String(), rule) { 164 return newTestingBuildParams(provider, p) 171 p := maybeBuildParamsFromRule(provider, rule) 172 if p.Rule == nil { 175 return p 179 for _, p := range provider.BuildParamsForTests() { 180 if p.Description == desc { 181 return newTestingBuildParams(provider, p) 188 p := maybeBuildParamsFromDescription(provider, desc) [all …]
|
D | prebuilt_etc_test.go | 111 p := ctx.ModuleForTests("foo.conf", "android_arm64_armv8-a_core").Module().(*PrebuiltEtc) 112 if p.outputFilePath.Base() != "foo.installed.conf" { 113 t.Errorf("expected foo.installed.conf, got %q", p.outputFilePath.Base()) 130 p := ctx.ModuleForTests("my_foo", "android_arm64_armv8-a_core").Module().(*PrebuiltEtc) 131 if p.outputFilePath.Base() != "my_foo" { 132 t.Errorf("expected my_foo, got %q", p.outputFilePath.Base()) 135 p = ctx.ModuleForTests("my_bar", "android_arm64_armv8-a_core").Module().(*PrebuiltEtc) 136 if p.outputFilePath.Base() != "bar.conf" { 137 t.Errorf("expected bar.conf, got %q", p.outputFilePath.Base()) 194 p := ctx.ModuleForTests("foo.conf", buildOS+"_common").Module().(*PrebuiltEtc) [all …]
|
D | proto.go | 49 func ProtoDeps(ctx BottomUpMutatorContext, p *ProtoProperties) { 50 if String(p.Proto.Plugin) != "" && String(p.Proto.Type) != "" { 54 if plugin := String(p.Proto.Plugin); plugin != "" { 61 func GetProtoFlags(ctx ModuleContext, p *ProtoProperties) ProtoFlags { 65 if len(p.Proto.Local_include_dirs) > 0 { 66 localProtoIncludeDirs := PathsForModuleSrc(ctx, p.Proto.Local_include_dirs) 69 if len(p.Proto.Include_dirs) > 0 { 70 rootProtoIncludeDirs := PathsForSource(ctx, p.Proto.Include_dirs) 79 plugin := String(p.Proto.Plugin) 86 if plugin := String(p.Proto.Plugin); plugin != "" { [all …]
|
/build/soong/cc/ |
D | vndk_prebuilt.go | 74 func (p *vndkPrebuiltLibraryDecorator) Name(name string) string { 75 return name + p.NameSuffix() 78 func (p *vndkPrebuiltLibraryDecorator) NameSuffix() string { 79 suffix := p.version() 80 if p.arch() != "" { 81 suffix += "." + p.arch() 83 if Bool(p.properties.Binder32bit) { 89 func (p *vndkPrebuiltLibraryDecorator) version() string { 90 return String(p.properties.Version) 93 func (p *vndkPrebuiltLibraryDecorator) arch() string { [all …]
|
D | prebuilt.go | 48 func (p *prebuiltLinker) prebuilt() *android.Prebuilt { 49 return &p.Prebuilt 52 func (p *prebuiltLinker) PrebuiltSrcs() []string { 53 return p.properties.Srcs 70 func (p *prebuiltLibraryLinker) linkerInit(ctx BaseModuleContext) {} 72 func (p *prebuiltLibraryLinker) linkerDeps(ctx DepsContext, deps Deps) Deps { 73 return p.libraryDecorator.linkerDeps(ctx, deps) 76 func (p *prebuiltLibraryLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags { 80 func (p *prebuiltLibraryLinker) linkerProps() []interface{} { 81 return p.libraryDecorator.linkerProps() [all …]
|
/build/soong/python/ |
D | python.go | 174 func (p *Module) GetSrcsPathMappings() []pathMapping { 175 return p.srcsPathMappings 178 func (p *Module) GetDataPathMappings() []pathMapping { 179 return p.dataPathMappings 182 func (p *Module) GetSrcsZip() android.Path { 183 return p.srcsZip 190 func (p *Module) Init() android.Module { 192 p.AddProperties(&p.properties, &p.protoProperties) 193 if p.bootstrapper != nil { 194 p.AddProperties(p.bootstrapper.bootstrapperProps()...) [all …]
|
D | androidmk.go | 29 func (p *Module) subAndroidMk(data *android.AndroidMkData, obj interface{}) { 30 if p.subAndroidMkOnce == nil { 31 p.subAndroidMkOnce = make(map[subAndroidMkProvider]bool) 34 if !p.subAndroidMkOnce[androidmk] { 35 p.subAndroidMkOnce[androidmk] = true 36 androidmk.AndroidMk(p, data) 41 func (p *Module) AndroidMk() android.AndroidMkData { 42 ret := android.AndroidMkData{OutputFile: p.installSource} 44 p.subAndroidMk(&ret, p.installer) 49 func (p *binaryDecorator) AndroidMk(base *Module, ret *android.AndroidMkData) { [all …]
|
/build/blueprint/ |
D | package_ctx.go | 86 func (p *packageContext) getScope() *basicScope { 87 return p.scope 112 p := &packageContext{ 119 packageContexts[pkgPath] = p 121 return p 217 func (p *packageContext) Import(pkgPath string) { 224 err := p.scope.AddImport(importPkg.shortName, importPkg.scope) 233 func (p *packageContext) ImportAs(as, pkgPath string) { 245 err = p.scope.AddImport(as, importPkg.scope) 266 func (p *packageContext) StaticVariable(name, value string) Variable { [all …]
|
/build/make/tools/atree/ |
D | files.cpp | 14 is_comment_line(const char* p) in is_comment_line() argument 16 while (*p && isspace(*p)) { in is_comment_line() 17 p++; in is_comment_line() 19 return *p == '#'; in is_comment_line() 34 is_whitespace_line(const char* p) in is_whitespace_line() argument 36 while (*p) { in is_whitespace_line() 37 if (!isspace(*p)) { in is_whitespace_line() 40 p++; in is_whitespace_line() 46 is_exclude_line(const char* p) { in is_exclude_line() argument 47 while (*p) { in is_exclude_line() [all …]
|
/build/blueprint/microfactory/ |
D | microfactory.go | 191 func (p *GoPackage) FindDeps(config *Config, path string) error { 195 err := p.findDeps(config, path, depSet) 199 p.allDeps = depSet.packageList 262 func (p *GoPackage) findDeps(config *Config, path string, allPackages *linkedDepSet) error { 308 p.files = append(p.files, filename) 351 sort.Strings(p.files) 354 fmt.Fprintf(os.Stderr, "Package %q depends on %v\n", p.Name, deps) 359 p.directDeps = append(p.directDeps, allPackages.getByName(dep)) 365 func (p *GoPackage) Compile(config *Config, outDir string) error { 366 p.mutex.Lock() [all …]
|
/build/soong/xml/ |
D | xml.go | 70 func (p *prebuiltEtcXml) timestampFilePath(ctx android.ModuleContext) android.WritablePath { 71 return android.PathForModuleOut(ctx, p.PrebuiltEtc.SourceFilePath(ctx).Base()+"-timestamp") 74 func (p *prebuiltEtcXml) DepsMutator(ctx android.BottomUpMutatorContext) { 75 p.PrebuiltEtc.DepsMutator(ctx) 78 func (p *prebuiltEtcXml) GenerateAndroidBuildActions(ctx android.ModuleContext) { 79 p.PrebuiltEtc.GenerateAndroidBuildActions(ctx) 81 if p.properties.Schema != nil { 82 schema := android.PathForModuleSrc(ctx, proptools.String(p.properties.Schema)) 89 Input: p.PrebuiltEtc.SourceFilePath(ctx), 90 Output: p.timestampFilePath(ctx), [all …]
|
/build/blueprint/bootstrap/ |
D | writedocs.go | 123 <p>{{.Text}}</p> 137 <p>{{.Text}}</p> 139 <p>{{.Text}}</p> 166 <p>{{.Text}}</p> 167 {{range .OtherTexts}}<p>{{.}}</p>{{end}} 174 <p>{{.Text}}</p> 175 {{range .OtherTexts}}<p>{{.}}</p>{{end}} 176 <p><i>Type: {{.Type}}</i></p> 177 {{if .Default}}<p><i>Default: {{.Default}}</i></p>{{end}}
|
/build/make/core/ |
D | product-graph.mk | 19 $(sort $(foreach p, \ 22 , $(if $(strip $(p)),$(strip $(p)),)) \ 27 $(foreach p,$(1),\ 28 $(if $(filter $(p),$(_all_products_visited)),, \ 29 $(p) \ 30 $(eval _all_products_visited += $(p)) \ 31 $(call all-products-inner, $(PRODUCTS.$(strip $(p)).INHERITS_FROM))
|
/build/make/core/tasks/ |
D | find-shareduid-violation.py | 32 p = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE) 33 out, err = map(lambda b: b.decode('utf-8'), p.communicate()) 34 return p.returncode == 0, out, err 60 for p in partitions: 61 for f in glob(os.path.join(product_out, p, "*", "*", "*.apk")): 67 shareduid_app_dict[shared_uid].append((p, apk_file)) 73 partitions = {p for p, _ in app_infos} 76 output[uid][part].extend([a for p, a in app_infos if p == part])
|
/build/soong/cmd/pom2bp/ |
D | pom2bp.go | 173 func (p Pom) IsAar() bool { 174 return p.Packaging == "aar" 177 func (p Pom) IsJar() bool { 178 return p.Packaging == "jar" 181 func (p Pom) IsHostModule() bool { 182 return hostModuleNames.IsHostModule(p.GroupId, p.ArtifactId) 185 func (p Pom) IsDeviceModule() bool { 186 return !p.IsHostModule() 189 func (p Pom) ModuleType() string { 190 if p.IsAar() { [all …]
|