Lines Matching +full:- +full:p

7 //     http://www.apache.org/licenses/LICENSE-2.0
84 func (p *Prebuilt) Name(name string) string {
94 func (p *Prebuilt) ForcePrefer() {
95 p.properties.Prefer = proptools.BoolPtr(true)
98 func (p *Prebuilt) Prefer() bool {
99 return proptools.Bool(p.properties.Prefer)
133 // The below source-related functions and the srcs, src fields are based on an assumption that
138 func (p *Prebuilt) SingleSourcePath(ctx ModuleContext) Path {
139 return SingleSourcePathFromSupplier(ctx, p.srcsSupplier, p.srcsPropertyName)
142 func (p *Prebuilt) UsePrebuilt() bool {
143 return p.properties.UsePrebuilt
167 p := module.Prebuilt()
168 module.AddProperties(&p.properties)
178 p.srcsSupplier = srcsSupplier
179 p.srcsPropertyName = srcsPropertyName
246 if p := GetEmbeddedPrebuilt(module); p != nil {
247 return p.UsePrebuilt()
253 // has been initialized as a prebuilt and so returns a non-nil value from the
263 if p, ok := module.(PrebuiltInterface); ok {
264 return p.Prebuilt()
284 if p := GetEmbeddedPrebuilt(m); p != nil {
288 p.properties.PrebuiltRenamedToSource = true
299 if p := GetEmbeddedPrebuilt(m); p != nil && m.Enabled() && !p.properties.PrebuiltRenamedToSource {
303 p.properties.SourceExists = true
312 if p := GetEmbeddedPrebuilt(m); p != nil {
313 if p.srcsSupplier == nil {
316 if !p.properties.SourceExists {
317 p.properties.UsePrebuilt = p.usePrebuilt(ctx, nil, m)
321 p := GetEmbeddedPrebuilt(prebuiltModule)
322 if p.usePrebuilt(ctx, s, prebuiltModule) {
323 p.properties.UsePrebuilt = true
335 if p := GetEmbeddedPrebuilt(m); p != nil {
337 if p.properties.UsePrebuilt {
338 if p.properties.SourceExists {
355 func (p *Prebuilt) usePrebuilt(ctx TopDownMutatorContext, source Module, prebuilt Module) bool {
356 if p.srcsSupplier != nil && len(p.srcsSupplier(ctx, prebuilt)) == 0 {
361 // end up shadowing non-prebuilt module when prebuilt module under same
367 // TODO: use p.Properties.Name and ctx.ModuleDir to override preference
368 if Bool(p.properties.Prefer) {
375 func (p *Prebuilt) SourceExists() bool {
376 return p.properties.SourceExists