Lines Matching refs:scope
707 if scope, ok := scopeByName[scopeName]; ok {
708 paths := c.findScopePaths(scope)
732 return nil, fmt.Errorf("unknown scope %s in %s", scope, tag)
740 func (c *commonToSdkLibraryAndImport) getScopePathsCreateIfNeeded(scope *apiScope) *scopePaths {
744 paths := c.scopePaths[scope]
747 c.scopePaths[scope] = paths
753 func (c *commonToSdkLibraryAndImport) findScopePaths(scope *apiScope) *scopePaths {
758 return c.scopePaths[scope]
763 func (c *commonToSdkLibraryAndImport) findClosestScopePath(scope *apiScope) *scopePaths {
764 for s := scope; s != nil; s = s.extends {
918 for _, scope := range allApiScopes {
919 scopeProperties := module.scopeToProperties[scope]
928 for _, scope := range allApiScopes {
929 scopeProperties := module.scopeToProperties[scope]
935 defaultEnabledStatus = scope.defaultEnabledStatus
937 defaultEnabledStatus = scope.legacyEnabledStatus(module)
941 enabledScopes[scope] = struct{}{}
942 generatedScopes = append(generatedScopes, scope)
948 for _, scope := range allApiScopes {
949 if _, ok := enabledScopes[scope]; ok {
950 extends := scope.extends
953 ctx.ModuleErrorf("enabled api scope %q depends on disabled scope %q", scope, extends)
1483 for _, scope := range generatedScopes {
1485 path := path.Join(mctx.ModuleDir(), apiDir, scope.apiFilePrefix+api)
1510 for _, scope := range generatedScopes {
1512 …module.createStubsSourcesAndApi(mctx, scope, module.stubsSourceModuleName(scope), scope.droidstubs…
1514 module.createStubsLibrary(mctx, scope)
1560 stubsLibraryModuleName(scope *apiScope, baseName string) string
1562 stubsSourceModuleName(scope *apiScope, baseName string) string
1564 apiModuleName(scope *apiScope, baseName string) string
1570 func (s *defaultNamingScheme) stubsLibraryModuleName(scope *apiScope, baseName string) string {
1571 return scope.stubsLibraryModuleName(baseName)
1574 func (s *defaultNamingScheme) stubsSourceModuleName(scope *apiScope, baseName string) string {
1575 return scope.stubsSourceModuleName(baseName)
1578 func (s *defaultNamingScheme) apiModuleName(scope *apiScope, baseName string) string {
1579 return scope.apiModuleName(baseName)
1587 func (s *frameworkModulesNamingScheme) moduleSuffix(scope *apiScope) string {
1588 suffix := scope.name
1589 if scope == apiScopeModuleLib {
1595 func (s *frameworkModulesNamingScheme) stubsLibraryModuleName(scope *apiScope, baseName string) str…
1596 return fmt.Sprintf("%s-stubs-%sapi", baseName, s.moduleSuffix(scope))
1599 func (s *frameworkModulesNamingScheme) stubsSourceModuleName(scope *apiScope, baseName string) stri…
1600 return fmt.Sprintf("%s-stubs-srcs-%sapi", baseName, s.moduleSuffix(scope))
1603 func (s *frameworkModulesNamingScheme) apiModuleName(scope *apiScope, baseName string) string {
1604 return fmt.Sprintf("%s-api-%sapi", baseName, s.moduleSuffix(scope))
1644 for _, scope := range allApiScopes {
1645 scopeToProperties[scope] = scope.scopeSpecificProperties(module)