Lines Matching refs:r
60 func (r *hidlPackageRoot) getFullPackageRoot() string {
61 return "-r" + r.Name() + ":" + *r.properties.Path
64 func (r *hidlPackageRoot) getCurrentPath() android.OptionalPath {
65 return r.currentPath
68 func (r *hidlPackageRoot) requireFrozen() bool {
69 return proptools.BoolDefault(r.properties.Require_frozen, false)
72 func (r *hidlPackageRoot) generateCurrentFile(ctx android.ModuleContext) {
73 if !r.currentPath.Valid() {
77 output := android.PathForModuleGen(ctx, r.Name()+".txt")
78 r.genOutputs = append(r.genOutputs, output)
82 Input: r.currentPath.Path(),
90 func (r *hidlPackageRoot) Srcs() android.Paths {
91 return r.genOutputs
94 func (r *hidlPackageRoot) GenerateAndroidBuildActions(ctx android.ModuleContext) {
95 if r.properties.Path == nil {
96 r.properties.Path = proptools.StringPtr(ctx.ModuleDir())
99 if proptools.BoolDefault(r.properties.Use_current, false) {
100 if *r.properties.Path != ctx.ModuleDir() {
104 "the path of hidl_package_root.", *r.properties.Path, ctx.ModuleDir())
108 r.currentPath = android.OptionalPathForPath(android.PathForModuleSrc(ctx, "current.txt"))
110 r.currentPath = android.ExistentPathForSource(ctx, ctx.ModuleDir(), "current.txt")
113 r.generateCurrentFile(ctx)
116 func (r *hidlPackageRoot) DepsMutator(ctx android.BottomUpMutatorContext) {
123 r := &hidlPackageRoot{}
124 r.AddProperties(&r.properties)
125 android.InitAndroidModule(r)
128 packageRoots = append(packageRoots, r)
131 return r