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))
86 props.Sdk_version = proptools.StringPtr(scope)
92 func createFilegroup(mctx android.LoadHookContext, module string, scope string, apiver string, path…
93 fgName := module + ".api." + scope + "." + apiver
107 …for _, scope := range []string{"public", "system", "test", "core", "module-lib", "system-server"} {
108 vfiles, err := mctx.GlobWithDeps(mydir+apiver+"/"+scope+"/"+name, nil)
110 mctx.ModuleErrorf("failed to glob %s files under %q: %s", name, mydir+apiver+"/"+scope, err)
126 module, apiver, scope := parseJarPath(localPath)
127 createImport(mctx, module, scope, apiver, localPath)
165 scope string
174 module, apiver, scope := parseApiFilePath(mctx, localPath)
175 createFilegroup(mctx, module, scope, apiver, localPath)
178 key := module + "." + scope
181 m[key] = latestApiInfo{module, scope, apiver, localPath}
198 createFilegroup(mctx, info.module, info.scope, "latest", info.path)