Lines Matching refs:p
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 {
126 return p.VariableFunc(name, func(ctx PackageVarContext) string {
127 p, err := safePathForSource(ctx, path)
131 return p.String()
139 func (p PackageContext) SourcePathsVariable(name, separator string, paths ...string) blueprint.Vari…
140 return p.VariableFunc(name, func(ctx PackageVarContext) string {
143 p, err := safePathForSource(ctx, path)
147 ret = append(ret, p.String())
158 func (p PackageContext) SourcePathVariableWithEnvOverride(name, path, env string) blueprint.Variabl…
159 return p.VariableFunc(name, func(ctx PackageVarContext) string {
160 p, err := safePathForSource(ctx, path)
164 return ctx.Config().GetenvWithDefault(env, p.String())
172 func (p PackageContext) HostBinToolVariable(name, path string) blueprint.Variable {
173 return p.VariableFunc(name, func(ctx PackageVarContext) string {
174 return p.HostBinToolPath(ctx, path).String()
178 func (p PackageContext) HostBinToolPath(ctx PackageVarContext, path string) Path {
186 func (p PackageContext) HostJNIToolVariable(name, path string) blueprint.Variable {
187 return p.VariableFunc(name, func(ctx PackageVarContext) string {
188 return p.HostJNIToolPath(ctx, path).String()
192 func (p PackageContext) HostJNIToolPath(ctx PackageVarContext, path string) Path {
204 func (p PackageContext) HostJavaToolVariable(name, path string) blueprint.Variable {
205 return p.VariableFunc(name, func(ctx PackageVarContext) string {
206 return p.HostJavaToolPath(ctx, path).String()
210 func (p PackageContext) HostJavaToolPath(ctx PackageVarContext, path string) Path {
218 func (p PackageContext) IntermediatesPathVariable(name, path string) blueprint.Variable {
219 return p.VariableFunc(name, func(ctx PackageVarContext) string {
228 func (p PackageContext) PrefixedExistentPathsForSourcesVariable(
231 return p.VariableFunc(name, func(ctx PackageVarContext) string {
238 func (p PackageContext) AndroidStaticRule(name string, params blueprint.RuleParams,
240 return p.AndroidRuleFunc(name, func(PackageRuleContext) blueprint.RuleParams {
246 func (p PackageContext) AndroidGomaStaticRule(name string, params blueprint.RuleParams,
248 return p.StaticRule(name, params, argNames...)
251 func (p PackageContext) AndroidRuleFunc(name string,
253 return p.RuleFunc(name, func(ctx PackageRuleContext) blueprint.RuleParams {