Lines Matching refs:ctx
72 func (r *hidlPackageRoot) generateCurrentFile(ctx android.ModuleContext) {
77 output := android.PathForModuleGen(ctx, r.Name()+".txt")
80 ctx.ModuleBuild(pctx, android.ModuleBuildParams{
94 func (r *hidlPackageRoot) GenerateAndroidBuildActions(ctx android.ModuleContext) {
96 r.properties.Path = proptools.StringPtr(ctx.ModuleDir())
100 if *r.properties.Path != ctx.ModuleDir() {
101 ctx.PropertyErrorf("path", "Cannot use unrelated path with use_current. "+
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) {