Lines Matching refs:scope
47 func parseJarPath(ctx android.BaseModuleContext, path string) (module string, apiver string, scope …
51 scope = elements[1]
57 …FilePath(ctx android.BaseModuleContext, path string) (module string, apiver string, scope string) {
61 scope = elements[1]
62 if scope != "public" && scope != "system" && scope != "test" {
63 ctx.ModuleErrorf("invalid scope %q found in path: %q", scope, path)
72 func createImport(mctx android.TopDownMutatorContext, module string, scope string, apiver string, p…
79 props.Name = proptools.StringPtr(mctx.ModuleName() + "_" + scope + "_" + apiver + "_" + module)
88 func createFilegroup(mctx android.TopDownMutatorContext, module string, scope string, apiver string…
89 fgName := module + ".api." + scope + "." + apiver
103 for _, scope := range []string{"public", "system", "test", "core"} {
104 vfiles, err := mctx.GlobWithDeps(mydir+apiver+"/"+scope+"/"+name, nil)
106 mctx.ModuleErrorf("failed to glob %s files under %q: %s", name, mydir+apiver+"/"+scope, err)
122 module, apiver, scope := parseJarPath(mctx, localPath)
123 createImport(mctx, module, scope, apiver, localPath)
140 scope string
149 module, apiver, scope := parseApiFilePath(mctx, localPath)
150 createFilegroup(mctx, module, scope, apiver, localPath)
153 key := module + "." + scope
156 m[key] = latestApiInfo{module, scope, apiver, localPath}
173 createFilegroup(mctx, info.module, info.scope, "latest", info.path)