From 10fb76f4678e9070dc15c26b449db79d49878a8a Mon Sep 17 00:00:00 2001 From: Paul Duffin Date: Wed, 3 Nov 2021 16:53:31 +0000 Subject: [PATCH] Rename core-current-stubs-system-modules to be more consistent Renames to core-public-stubs-system-modules so that it is of the format core--stubs-system-modules. Bug: 204189791 Test: m nothing Change-Id: Iac565c940c2ef92be9cc64c0c6b8102a26afe0dd --- java/core-libraries/Android.bp | 2 +- java/sdk.go | 8 ++++---- java/sdk_test.go | 8 ++++---- java/testing.go | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/java/core-libraries/Android.bp b/java/core-libraries/Android.bp index 2eafe9dc6..cf3974601 100644 --- a/java/core-libraries/Android.bp +++ b/java/core-libraries/Android.bp @@ -86,7 +86,7 @@ java_library { // Used when compiling higher-level code against core.current.stubs. java_system_modules { - name: "core-current-stubs-system-modules", + name: "core-public-stubs-system-modules", visibility: ["//visibility:public"], libs: [ "core-current-stubs-for-system-modules", diff --git a/java/sdk.go b/java/sdk.go index 34d68aee1..697deb1ec 100644 --- a/java/sdk.go +++ b/java/sdk.go @@ -186,16 +186,16 @@ func decodeSdkDep(ctx android.EarlyModuleContext, sdkContext android.SdkContext) noFrameworksLibs: true, } case android.SdkPublic: - return toModule("core-current-stubs-system-modules", "android_stubs_current", sdkFrameworkAidlPath(ctx)) + return toModule("core-public-stubs-system-modules", "android_stubs_current", sdkFrameworkAidlPath(ctx)) case android.SdkSystem: - return toModule("core-current-stubs-system-modules", "android_system_stubs_current", sdkFrameworkAidlPath(ctx)) + return toModule("core-public-stubs-system-modules", "android_system_stubs_current", sdkFrameworkAidlPath(ctx)) case android.SdkTest: - return toModule("core-current-stubs-system-modules", "android_test_stubs_current", sdkFrameworkAidlPath(ctx)) + return toModule("core-public-stubs-system-modules", "android_test_stubs_current", sdkFrameworkAidlPath(ctx)) case android.SdkCore: return sdkDep{ useModule: true, bootclasspath: []string{"core.current.stubs", config.DefaultLambdaStubsLibrary}, - systemModules: "core-current-stubs-system-modules", + systemModules: "core-public-stubs-system-modules", noFrameworksLibs: true, } case android.SdkModule: diff --git a/java/sdk_test.go b/java/sdk_test.go index 5c4a6d244..9e8ba6ed0 100644 --- a/java/sdk_test.go +++ b/java/sdk_test.go @@ -106,7 +106,7 @@ func TestClasspath(t *testing.T) { name: "current", properties: `sdk_version: "current",`, bootclasspath: []string{"android_stubs_current", "core-lambda-stubs"}, - system: "core-current-stubs-system-modules", + system: "core-public-stubs-system-modules", java9classpath: []string{"android_stubs_current"}, aidl: "-pout/soong/framework.aidl", }, @@ -129,7 +129,7 @@ func TestClasspath(t *testing.T) { name: "system_current", properties: `sdk_version: "system_current",`, bootclasspath: []string{"android_system_stubs_current", "core-lambda-stubs"}, - system: "core-current-stubs-system-modules", + system: "core-public-stubs-system-modules", java9classpath: []string{"android_system_stubs_current"}, aidl: "-pout/soong/framework.aidl", }, @@ -169,7 +169,7 @@ func TestClasspath(t *testing.T) { name: "test_current", properties: `sdk_version: "test_current",`, bootclasspath: []string{"android_test_stubs_current", "core-lambda-stubs"}, - system: "core-current-stubs-system-modules", + system: "core-public-stubs-system-modules", java9classpath: []string{"android_test_stubs_current"}, aidl: "-pout/soong/framework.aidl", }, @@ -201,7 +201,7 @@ func TestClasspath(t *testing.T) { name: "core_current", properties: `sdk_version: "core_current",`, bootclasspath: []string{"core.current.stubs", "core-lambda-stubs"}, - system: "core-current-stubs-system-modules", + system: "core-public-stubs-system-modules", }, { // Test case only applies when Always_use_prebuilt_sdks=true. diff --git a/java/testing.go b/java/testing.go index 3397e4667..7441e4497 100644 --- a/java/testing.go +++ b/java/testing.go @@ -344,7 +344,7 @@ func gatherRequiredDepsForTest() string { }` systemModules := []string{ - "core-current-stubs-system-modules", + "core-public-stubs-system-modules", "core-module-lib-stubs-system-modules", "legacy-core-platform-api-stubs-system-modules", "stable-core-platform-api-stubs-system-modules",