• Home
  • Raw
  • Download

Lines Matching refs:scope

705 		if scope, ok := scopeByName[scopeName]; ok {
706 paths := c.findScopePaths(scope)
730 return nil, fmt.Errorf("unknown scope %s in %s", scope, tag)
738 func (c *commonToSdkLibraryAndImport) getScopePathsCreateIfNeeded(scope *apiScope) *scopePaths {
742 paths := c.scopePaths[scope]
745 c.scopePaths[scope] = paths
751 func (c *commonToSdkLibraryAndImport) findScopePaths(scope *apiScope) *scopePaths {
756 return c.scopePaths[scope]
761 func (c *commonToSdkLibraryAndImport) findClosestScopePath(scope *apiScope) *scopePaths {
762 for s := scope; s != nil; s = s.extends {
916 for _, scope := range allApiScopes {
917 scopeProperties := module.scopeToProperties[scope]
926 for _, scope := range allApiScopes {
927 scopeProperties := module.scopeToProperties[scope]
933 defaultEnabledStatus = scope.defaultEnabledStatus
935 defaultEnabledStatus = scope.legacyEnabledStatus(module)
939 enabledScopes[scope] = struct{}{}
940 generatedScopes = append(generatedScopes, scope)
946 for _, scope := range allApiScopes {
947 if _, ok := enabledScopes[scope]; ok {
948 extends := scope.extends
951 ctx.ModuleErrorf("enabled api scope %q depends on disabled scope %q", scope, extends)
1495 for _, scope := range generatedScopes {
1497 path := path.Join(mctx.ModuleDir(), apiDir, scope.apiFilePrefix+api)
1522 for _, scope := range generatedScopes {
1523 stubsSourceArgs := scope.droidstubsArgsForGeneratingStubsSource
1524 stubsSourceModuleName := module.stubsSourceModuleName(scope)
1529 if scope.createStubsSourceAndApiTogether {
1531 module.createStubsSourcesAndApi(mctx, scope, stubsSourceModuleName, true, true, stubsSourceArgs)
1533 module.createStubsSourcesAndApi(mctx, scope, stubsSourceModuleName, true, false, stubsSourceArgs)
1535 apiArgs := scope.droidstubsArgsForGeneratingApi
1536 apiName := module.apiModuleName(scope)
1537 module.createStubsSourcesAndApi(mctx, scope, apiName, false, true, apiArgs)
1540 module.createStubsLibrary(mctx, scope)
1586 stubsLibraryModuleName(scope *apiScope, baseName string) string
1588 stubsSourceModuleName(scope *apiScope, baseName string) string
1590 apiModuleName(scope *apiScope, baseName string) string
1596 func (s *defaultNamingScheme) stubsLibraryModuleName(scope *apiScope, baseName string) string {
1597 return scope.stubsLibraryModuleName(baseName)
1600 func (s *defaultNamingScheme) stubsSourceModuleName(scope *apiScope, baseName string) string {
1601 return scope.stubsSourceModuleName(baseName)
1604 func (s *defaultNamingScheme) apiModuleName(scope *apiScope, baseName string) string {
1605 return scope.apiModuleName(baseName)
1613 func (s *frameworkModulesNamingScheme) moduleSuffix(scope *apiScope) string {
1614 suffix := scope.name
1615 if scope == apiScopeModuleLib {
1621 func (s *frameworkModulesNamingScheme) stubsLibraryModuleName(scope *apiScope, baseName string) str…
1622 return fmt.Sprintf("%s-stubs-%sapi", baseName, s.moduleSuffix(scope))
1625 func (s *frameworkModulesNamingScheme) stubsSourceModuleName(scope *apiScope, baseName string) stri…
1626 return fmt.Sprintf("%s-stubs-srcs-%sapi", baseName, s.moduleSuffix(scope))
1629 func (s *frameworkModulesNamingScheme) apiModuleName(scope *apiScope, baseName string) string {
1630 return fmt.Sprintf("%s-api-%sapi", baseName, s.moduleSuffix(scope))
1670 for _, scope := range allApiScopes {
1671 scopeToProperties[scope] = scope.scopeSpecificProperties(module)