Home
last modified time | relevance | path

Searched refs:p (Results 1 – 25 of 203) sorted by relevance

123456789

/build/blueprint/parser/
Dprinter.go62 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 …]
Dparser.go62 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/
Dparser.go42 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/soong/etc/
Dprebuilt_etc.go92 func (p *PrebuiltEtc) inRamdisk() bool {
93 return p.ModuleBase.InRamdisk() || p.ModuleBase.InstallInRamdisk()
96 func (p *PrebuiltEtc) onlyInRamdisk() bool {
97 return p.ModuleBase.InstallInRamdisk()
100 func (p *PrebuiltEtc) InstallInRamdisk() bool {
101 return p.inRamdisk()
104 func (p *PrebuiltEtc) inRecovery() bool {
105 return p.ModuleBase.InRecovery() || p.ModuleBase.InstallInRecovery()
108 func (p *PrebuiltEtc) onlyInRecovery() bool {
109 return p.ModuleBase.InstallInRecovery()
[all …]
Dprebuilt_etc_test.go147 p := ctx.ModuleForTests("foo.conf", "android_arm64_armv8-a").Module().(*PrebuiltEtc)
148 if p.outputFilePath.Base() != "foo.installed.conf" {
149 t.Errorf("expected foo.installed.conf, got %q", p.outputFilePath.Base())
166 p := ctx.ModuleForTests("my_foo", "android_arm64_armv8-a").Module().(*PrebuiltEtc)
167 if p.outputFilePath.Base() != "my_foo" {
168 t.Errorf("expected my_foo, got %q", p.outputFilePath.Base())
171 p = ctx.ModuleForTests("my_bar", "android_arm64_armv8-a").Module().(*PrebuiltEtc)
172 if p.outputFilePath.Base() != "bar.conf" {
173 t.Errorf("expected bar.conf, got %q", p.outputFilePath.Base())
222 p := ctx.ModuleForTests("foo.conf", "android_arm64_armv8-a").Module().(*PrebuiltEtc)
[all …]
/build/soong/cc/
Dvndk_prebuilt.go79 func (p *vndkPrebuiltLibraryDecorator) Name(name string) string {
80 return name + p.NameSuffix()
83 func (p *vndkPrebuiltLibraryDecorator) NameSuffix() string {
84 suffix := p.version()
85 if p.arch() != "" {
86 suffix += "." + p.arch()
88 if Bool(p.properties.Binder32bit) {
94 func (p *vndkPrebuiltLibraryDecorator) version() string {
95 return String(p.properties.Version)
98 func (p *vndkPrebuiltLibraryDecorator) arch() string {
[all …]
Dprebuilt.go60 func (p *prebuiltLinker) prebuilt() *android.Prebuilt {
61 return &p.Prebuilt
64 func (p *prebuiltLinker) PrebuiltSrcs() []string {
65 return p.properties.Srcs
82 func (p *prebuiltLibraryLinker) linkerInit(ctx BaseModuleContext) {}
84 func (p *prebuiltLibraryLinker) linkerDeps(ctx DepsContext, deps Deps) Deps {
85 return p.libraryDecorator.linkerDeps(ctx, deps)
88 func (p *prebuiltLibraryLinker) linkerFlags(ctx ModuleContext, flags Flags) Flags {
92 func (p *prebuiltLibraryLinker) linkerProps() []interface{} {
93 return p.libraryDecorator.linkerProps()
[all …]
Dbinary_sdk_member.go123 func (p *nativeBinaryInfoProperties) PopulateFromVariant(ctx android.SdkMemberContext, variant andr…
126 p.archType = ccModule.Target().Arch.ArchType.String()
127 p.outputFile = getRequiredMemberOutputFile(ctx, ccModule)
130 p.StaticExecutable = binaryLinker.static()
131 p.Nocrt = Bool(binaryLinker.baseLinker.Properties.Nocrt)
137 p.SharedLibs = specifiedDeps.sharedLibs
138 p.SystemSharedLibs = specifiedDeps.systemSharedLibs
142 func (p *nativeBinaryInfoProperties) AddToPropertySet(ctx android.SdkMemberContext, propertySet and…
144 if p.outputFile != nil {
145 propertySet.AddProperty("srcs", []string{nativeBinaryPathFor(*p)})
[all …]
Dvendor_snapshot.go113 func (p *vendorSnapshotLibraryDecorator) Name(name string) string {
114 return name + p.NameSuffix()
117 func (p *vendorSnapshotLibraryDecorator) NameSuffix() string {
118 versionSuffix := p.version()
119 if p.arch() != "" {
120 versionSuffix += "." + p.arch()
124 if p.buildShared() {
126 } else if p.buildStatic() {
135 func (p *vendorSnapshotLibraryDecorator) version() string {
136 return p.properties.Version
[all …]
/build/soong/python/
Dpython.go176 func (p *Module) GetSrcsPathMappings() []pathMapping {
177 return p.srcsPathMappings
180 func (p *Module) GetDataPathMappings() []pathMapping {
181 return p.dataPathMappings
184 func (p *Module) GetSrcsZip() android.Path {
185 return p.srcsZip
192 func (p *Module) Init() android.Module {
194 p.AddProperties(&p.properties, &p.protoProperties)
195 if p.bootstrapper != nil {
196 p.AddProperties(p.bootstrapper.bootstrapperProps()...)
[all …]
Dandroidmk.go29 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/make/tools/
Dpost_process_props.py59 for p in prop_list.get_all_props():
60 if len(p.value) > PROP_VALUE_MAX and not p.name.startswith("ro."):
63 (p.name, PROP_VALUE_MAX))
64 sys.stderr.write("%s (%d)\n" % (p.value, len(p.value)))
66 if p.is_optional():
69 sys.stderr.write(str(p) + "\n")
86 optional_props = [p for p in props if p.is_optional()]
87 overriding_props = [p for p in props if not p.is_optional()]
90 if all(overriding_props[0].value == p.value for p in overriding_props):
91 for p in optional_props:
[all …]
Dtest_post_process_props.py26 p = Prop.from_line("# this is comment")
27 self.assertTrue(p.is_comment())
28 self.assertEqual("", p.name)
29 self.assertEqual("", p.value)
30 self.assertFalse(p.is_optional())
31 self.assertEqual("# this is comment", str(p))
34 p = Prop.from_line(line)
35 self.assertFalse(p.is_comment())
36 self.assertEqual("a", p.name)
37 self.assertEqual("b", p.value)
[all …]
/build/soong/android/
Dpaths.go154 func GenPathWithExt(ctx ModuleContext, subdir string, p Path, ext string) ModuleGenPath {
155 if path, ok := p.(genPathProvider); ok {
158 …f(ctx, "Tried to create generated file from unsupported path: %s(%s)", reflect.TypeOf(p).Name(), p)
164 func ObjPathWithExt(ctx ModuleContext, subdir string, p Path, ext string) ModuleObjPath {
165 if path, ok := p.(objPathProvider); ok {
168 …orf(ctx, "Tried to create object file from unsupported path: %s (%s)", reflect.TypeOf(p).Name(), p)
175 func ResPathWithName(ctx ModuleContext, p Path, name string) ModuleResPath {
176 if path, ok := p.(resPathProvider); ok {
179 …Errorf(ctx, "Tried to create res file from unsupported path: %s (%s)", reflect.TypeOf(p).Name(), p)
198 func (p OptionalPath) Valid() bool {
[all …]
Dpackage_ctx.go72 func (p PackageContext) VariableFunc(name string,
75 return p.PackageContext.VariableFunc(name, func(config interface{}) (string, error) {
76 ctx := &configErrorWrapper{p, config.(Config), nil}
87 func (p PackageContext) PoolFunc(name string,
90 return p.PackageContext.PoolFunc(name, func(config interface{}) (blueprint.PoolParams, error) {
91 ctx := &configErrorWrapper{p, config.(Config), nil}
103 func (p PackageContext) RuleFunc(name string,
106 return p.PackageContext.RuleFunc(name, func(config interface{}) (blueprint.RuleParams, error) {
107 ctx := &configErrorWrapper{p, config.(Config), nil}
125 func (p PackageContext) SourcePathVariable(name, path string) blueprint.Variable {
[all …]
Dprebuilt.go77 func (p *Prebuilt) Name(name string) string {
81 func (p *Prebuilt) ForcePrefer() {
82 p.properties.Prefer = proptools.BoolPtr(true)
85 func (p *Prebuilt) Prefer() bool {
86 return proptools.Bool(p.properties.Prefer)
94 func (p *Prebuilt) SingleSourcePath(ctx ModuleContext) Path {
95 if p.srcsSupplier != nil {
96 srcs := p.srcsSupplier()
99 ctx.PropertyErrorf(p.srcsPropertyName, "missing prebuilt source file")
104 ctx.PropertyErrorf(p.srcsPropertyName, "multiple prebuilt source files")
[all …]
Dmakefile_goal.go49 func (p *makefileGoal) inputPath() *string {
50 if p.properties.Product_out_path != nil {
51 …return proptools.StringPtr(filepath.Join("$(PRODUCT_OUT)", proptools.String(p.properties.Product_o…
57 func (p *makefileGoal) OutputFiles(tag string) (Paths, error) {
61 return Paths{p.outputFilePath}, nil
65 func (p *makefileGoal) DepsMutator(ctx BottomUpMutatorContext) {
66 if p.inputPath() == nil {
71 func (p *makefileGoal) GenerateAndroidBuildActions(ctx ModuleContext) {
72 filename := filepath.Base(proptools.String(p.inputPath()))
73 p.outputFilePath = PathForModuleOut(ctx, filename).OutputPath
[all …]
Dphony.go49 func (p *phonySingleton) GenerateBuildActions(ctx SingletonContext) {
50 p.phonyMap = getPhonyMap(ctx.Config())
51 p.phonyList = SortedStringKeys(p.phonyMap)
52 for _, phony := range p.phonyList {
53 p.phonyMap[phony] = SortedUniquePaths(p.phonyMap[phony])
57 for _, phony := range p.phonyList {
61 Implicits: p.phonyMap[phony],
67 func (p phonySingleton) MakeVars(ctx MakeVarsContext) {
68 for _, phony := range p.phonyList {
69 ctx.Phony(phony, p.phonyMap[phony]...)
Dtesting.go181 for _, p := range provider.BuildParamsForTests() {
182 if strings.Contains(p.Rule.String(), rule) {
183 return newTestingBuildParams(provider, p)
190 p := maybeBuildParamsFromRule(provider, rule)
191 if p.Rule == nil {
194 return p
198 for _, p := range provider.BuildParamsForTests() {
199 if strings.Contains(p.Description, desc) {
200 return newTestingBuildParams(provider, p)
207 p := maybeBuildParamsFromDescription(provider, desc)
[all …]
/build/soong/apex/
Dprebuilt.go57 func (p *prebuiltCommon) Prebuilt() *android.Prebuilt {
58 return &p.prebuilt
61 func (p *prebuiltCommon) isForceDisabled() bool {
62 return p.properties.ForceDisable
65 func (p *prebuiltCommon) checkForceDisable(ctx android.ModuleContext) bool {
82 if forceDisable && p.prebuilt.SourceExists() {
83 p.properties.ForceDisable = true
138 func (p *Prebuilt) installable() bool {
139 return p.properties.Installable == nil || proptools.Bool(p.properties.Installable)
142 func (p *Prebuilt) OutputFiles(tag string) (android.Paths, error) {
[all …]
/build/soong/phony/
Dphony.go43 func (p *phony) GenerateAndroidBuildActions(ctx android.ModuleContext) {
44 p.requiredModuleNames = ctx.RequiredModuleNames()
45 p.hostRequiredModuleNames = ctx.HostRequiredModuleNames()
46 p.targetRequiredModuleNames = ctx.TargetRequiredModuleNames()
47 if len(p.requiredModuleNames) == 0 &&
48 len(p.hostRequiredModuleNames) == 0 && len(p.targetRequiredModuleNames) == 0 {
54 func (p *phony) AndroidMk() android.AndroidMkData {
60 if p.Host() {
63 if len(p.requiredModuleNames) > 0 {
65 strings.Join(p.requiredModuleNames, " "))
[all …]
/build/blueprint/
Dpackage_ctx.go86 func (p *packageContext) getScope() *basicScope {
87 return p.scope
112 p := &packageContext{
119 packageContexts[pkgPath] = p
121 return p
218 func (p *packageContext) Import(pkgPath string) {
225 err := p.scope.AddImport(importPkg.shortName, importPkg.scope)
234 func (p *packageContext) ImportAs(as, pkgPath string) {
246 err = p.scope.AddImport(as, importPkg.scope)
267 func (p *packageContext) StaticVariable(name, value string) Variable {
[all …]
/build/make/tools/atree/
Dfiles.cpp14 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/
Dmicrofactory.go191 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/java/
Dplatform_compat_config.go49 func (p *platformCompatConfig) compatConfigMetadata() android.OutputPath {
50 return p.metadataFile
53 func (p *platformCompatConfig) CompatConfig() android.OutputPath {
54 return p.configFile
57 func (p *platformCompatConfig) SubDir() string {
73 func (p *platformCompatConfigSingleton) GenerateBuildActions(ctx android.SingletonContext) {
99 p.metadata = outputPath
102 func (p *platformCompatConfigSingleton) MakeVars(ctx android.MakeVarsContext) {
103 if p.metadata != nil {
104 ctx.Strict("INTERNAL_PLATFORM_MERGED_COMPAT_CONFIG", p.metadata.String())
[all …]

123456789