Lines Matching refs:apiScope

597 	scopePaths map[*apiScope]*scopePaths
648 func (c *commonToSdkLibraryAndImport) stubsLibraryModuleName(apiScope *apiScope) string {
649 return c.namingScheme.stubsLibraryModuleName(apiScope, c.moduleBase.BaseModuleName())
654 func (c *commonToSdkLibraryAndImport) stubsSourceModuleName(apiScope *apiScope) string {
655 return c.namingScheme.stubsSourceModuleName(apiScope, c.moduleBase.BaseModuleName())
660 func (c *commonToSdkLibraryAndImport) apiModuleName(apiScope *apiScope) string {
661 return c.namingScheme.apiModuleName(apiScope, c.moduleBase.BaseModuleName())
740 func (c *commonToSdkLibraryAndImport) getScopePathsCreateIfNeeded(scope *apiScope) *scopePaths {
742 c.scopePaths = make(map[*apiScope]*scopePaths)
753 func (c *commonToSdkLibraryAndImport) findScopePaths(scope *apiScope) *scopePaths {
763 func (c *commonToSdkLibraryAndImport) findClosestScopePath(scope *apiScope) *scopePaths {
782 var apiScope *apiScope
785 apiScope = apiScopeSystem
787 apiScope = apiScopeModuleLib
789 apiScope = apiScopeTest
791 apiScope = apiScopeSystemServer
793 apiScope = apiScopePublic
796 paths := c.findClosestScopePath(apiScope)
804 …ctx.ModuleErrorf("requires api scope %s from %s but it only has %q available", apiScope.name, c.mo…
902 scopeToProperties map[*apiScope]*ApiScopeProperties
927 enabledScopes := make(map[*apiScope]struct{})
983 for _, apiScope := range module.getGeneratedApiScopes(ctx) {
985 ctx.AddVariationDependencies(nil, apiScope.stubsTag, module.stubsLibraryModuleName(apiScope))
988 …ctx.AddVariationDependencies(nil, apiScope.stubsSourceAndApiTag, module.stubsSourceModuleName(apiS…
1033 apiScope := scopeTag.apiScope
1034 scopePaths := module.getScopePathsCreateIfNeeded(apiScope)
1056 func (module *SdkLibrary) apiDistPath(apiScope *apiScope) string {
1058 return path.Join("apistubs", module.ModuleBase.Owner(), apiScope.name)
1060 return path.Join("apistubs", "core", apiScope.name)
1062 return path.Join("apistubs", "android", apiScope.name)
1067 …SdkLibrary) sdkVersionForStubsLibrary(mctx android.EarlyModuleContext, apiScope *apiScope) string {
1068 scopeProperties := module.scopeToProperties[apiScope]
1076 return apiScope.sdkVersion
1083 func (module *SdkLibrary) latestApiFilegroupName(apiScope *apiScope) string {
1084 return ":" + module.BaseModuleName() + ".api." + apiScope.name + ".latest"
1087 func (module *SdkLibrary) latestRemovedApiFilegroupName(apiScope *apiScope) string {
1088 return ":" + module.BaseModuleName() + "-removed.api." + apiScope.name + ".latest"
1124 … (module *SdkLibrary) createStubsLibrary(mctx android.DefaultableHookContext, apiScope *apiScope) {
1153 props.Name = proptools.StringPtr(module.stubsLibraryModuleName(apiScope))
1161 props.Srcs = []string{":" + module.stubsSourceModuleName(apiScope)}
1162 sdkVersion := module.sdkVersionForStubsLibrary(mctx, apiScope)
1182 props.Dist.Dir = proptools.StringPtr(module.apiDistPath(apiScope))
1191 …ary) createStubsSourcesAndApi(mctx android.DefaultableHookContext, apiScope *apiScope, name string…
1286 currentApiFileName := apiScope.apiFilePrefix + "current.txt"
1287 removedApiFileName := apiScope.apiFilePrefix + "removed.txt"
1296 if !apiScope.unstable {
1298 latestApiFilegroupName := proptools.StringPtr(module.latestApiFilegroupName(apiScope))
1301 module.latestRemovedApiFilegroupName(apiScope))
1310 baselinePath := path.Join(apiDir, apiScope.apiFilePrefix+"lint-baseline.txt")
1328 props.Dist.Dir = proptools.StringPtr(path.Join(module.apiDistPath(apiScope), "api"))
1506 strings.Join(generatedScopes.Strings(func(s *apiScope) string { return s.apiFilePrefix }), " "))
1560 stubsLibraryModuleName(scope *apiScope, baseName string) string argument
1562 stubsSourceModuleName(scope *apiScope, baseName string) string argument
1564 apiModuleName(scope *apiScope, baseName string) string argument
1570 func (s *defaultNamingScheme) stubsLibraryModuleName(scope *apiScope, baseName string) string {
1574 func (s *defaultNamingScheme) stubsSourceModuleName(scope *apiScope, baseName string) string {
1578 func (s *defaultNamingScheme) apiModuleName(scope *apiScope, baseName string) string {
1587 func (s *frameworkModulesNamingScheme) moduleSuffix(scope *apiScope) string {
1595 func (s *frameworkModulesNamingScheme) stubsLibraryModuleName(scope *apiScope, baseName string) str…
1599 func (s *frameworkModulesNamingScheme) stubsSourceModuleName(scope *apiScope, baseName string) stri…
1603 func (s *frameworkModulesNamingScheme) apiModuleName(scope *apiScope, baseName string) string {
1643 scopeToProperties := make(map[*apiScope]*ApiScopeProperties)
1713 scopeProperties map[*apiScope]*sdkLibraryScopeProperties
1740 for _, apiScope := range allApiScopes {
1742 Name: apiScope.fieldName,
1753 func createPropertiesInstance() (interface{}, map[*apiScope]*sdkLibraryScopeProperties) {
1756 scopeProperties := make(map[*apiScope]*sdkLibraryScopeProperties)
1758 for _, apiScope := range allApiScopes {
1759 field := allScopePropertiesStruct.FieldByName(apiScope.fieldName)
1760 scopeProperties[apiScope] = field.Addr().Interface().(*sdkLibraryScopeProperties)
1805 for apiScope, scopeProperties := range module.scopeProperties {
1810 module.createJavaImportForStubs(mctx, apiScope, scopeProperties)
1813 module.createPrebuiltStubsSources(mctx, apiScope, scopeProperties)
1823 …ort) createJavaImportForStubs(mctx android.DefaultableHookContext, apiScope *apiScope, scopeProper…
1832 props.Name = proptools.StringPtr(module.stubsLibraryModuleName(apiScope))
1845 …t) createPrebuiltStubsSources(mctx android.DefaultableHookContext, apiScope *apiScope, scopeProper…
1851 props.Name = proptools.StringPtr(module.stubsSourceModuleName(apiScope))
1862 for apiScope, scopeProperties := range module.scopeProperties {
1868 …ctx.AddVariationDependencies(nil, apiScope.stubsTag, "prebuilt_"+module.stubsLibraryModuleName(api…
1872 …ctx.AddVariationDependencies(nil, apiScope.stubsSourceTag, "prebuilt_"+module.stubsSourceModuleNam…
1919 apiScope := scopeTag.apiScope
1920 scopePaths := module.getScopePathsCreateIfNeeded(apiScope)
1941 for apiScope, scopeProperties := range module.scopeProperties {
1946 paths := module.getScopePathsCreateIfNeeded(apiScope)
2170 Scopes map[*apiScope]scopeProperties
2197 s.Scopes = make(map[*apiScope]scopeProperties)
2198 for _, apiScope := range allApiScopes {
2199 paths := sdk.findScopePaths(apiScope)
2208 properties.SdkVersion = sdk.sdkVersionForStubsLibrary(ctx.SdkModuleContext(), apiScope)
2216 s.Scopes[apiScope] = properties
2233 for _, apiScope := range allApiScopes {
2234 if properties, ok := s.Scopes[apiScope]; ok {
2235 scopeSet := propertySet.AddPropertySet(apiScope.propertyName)
2237 scopeDir := filepath.Join("sdk_library", s.OsPrefix(), apiScope.name)