java_sdk_library: Rename createDocs to createStubsSources am: c4cea76c0d am: e616c37c88

Change-Id: I2965440bcd32aad1f9d0b4d6299df35c4b8b3c68
This commit is contained in:
Automerger Merge Worker
2020-01-02 16:16:27 +00:00

View File

@@ -478,7 +478,7 @@ func (module *SdkLibrary) createStubsLibrary(mctx android.LoadHookContext, apiSc
// Creates a droiddoc module that creates stubs source files from the given full source
// files
func (module *SdkLibrary) createDocs(mctx android.LoadHookContext, apiScope apiScope) {
func (module *SdkLibrary) createStubsSources(mctx android.LoadHookContext, apiScope apiScope) {
props := struct {
Name *string
Srcs []string
@@ -728,17 +728,17 @@ func (module *SdkLibrary) CreateInternalModules(mctx android.LoadHookContext) {
// for public API stubs
module.createStubsLibrary(mctx, apiScopePublic)
module.createDocs(mctx, apiScopePublic)
module.createStubsSources(mctx, apiScopePublic)
sdkDep := decodeSdkDep(mctx, sdkContext(&module.Library))
if sdkDep.hasStandardLibs() {
// for system API stubs
module.createStubsLibrary(mctx, apiScopeSystem)
module.createDocs(mctx, apiScopeSystem)
module.createStubsSources(mctx, apiScopeSystem)
// for test API stubs
module.createStubsLibrary(mctx, apiScopeTest)
module.createDocs(mctx, apiScopeTest)
module.createStubsSources(mctx, apiScopeTest)
// for runtime
module.createXmlFile(mctx)