• Home
  • Raw
  • Download

Lines Matching refs:scope

48 func parseJarPath(path string) (module string, apiver string, scope string) {
52 scope = elements[1]
58 …piFilePath(ctx android.LoadHookContext, path string) (module string, apiver string, scope string) {
62 scope = elements[1]
63 …if scope != "public" && scope != "system" && scope != "test" && scope != "module-lib" && scope != …
64 ctx.ModuleErrorf("invalid scope %q found in path: %q", scope, path)
73 func prebuiltApiModuleName(mctx android.LoadHookContext, module string, scope string, apiver string…
74 return mctx.ModuleName() + "_" + scope + "_" + apiver + "_" + module
77 func createImport(mctx android.LoadHookContext, module string, scope string, apiver string, path st…
84 props.Name = proptools.StringPtr(prebuiltApiModuleName(mctx, module, scope, apiver))
93 func createFilegroup(mctx android.LoadHookContext, module string, scope string, apiver string, path…
94 fgName := module + ".api." + scope + "." + apiver
108 …for _, scope := range []string{"public", "system", "test", "core", "module-lib", "system-server"} {
109 vfiles, err := mctx.GlobWithDeps(mydir+apiver+"/"+scope+"/"+name, nil)
111 mctx.ModuleErrorf("failed to glob %s files under %q: %s", name, mydir+apiver+"/"+scope, err)
127 module, apiver, scope := parseJarPath(localPath)
128 createImport(mctx, module, scope, apiver, localPath)
166 scope string
175 module, apiver, scope := parseApiFilePath(mctx, localPath)
176 createFilegroup(mctx, module, scope, apiver, localPath)
179 key := module + "." + scope
182 m[key] = latestApiInfo{module, scope, apiver, localPath}
199 createFilegroup(mctx, info.module, info.scope, "latest", info.path)