SdkTestCore for non-updatable modules

Provides SdkTestCore/test_core_current sdk_version for non-updatable
modules that have their test scope dependent on test apis from
framework-minus-apex.

Ignore-AOSP-First: Change in topic with internal-first projects
Bug: 289776578
Test: m checkapi

Merged-In: I855346c01bb609e81b14dbdc13330315badc339e
Change-Id: I855346c01bb609e81b14dbdc13330315badc339e
diff --git a/api/StubLibraries.bp b/api/StubLibraries.bp
index ada4b1a..55a666a 100644
--- a/api/StubLibraries.bp
+++ b/api/StubLibraries.bp
@@ -521,6 +521,22 @@
 }
 
 java_library {
+    name: "android_test_frameworks_core_stubs_current.from-source",
+    static_libs: [
+        "all-updatable-modules-system-stubs",
+        "android-non-updatable.stubs.test",
+        "private-stub-annotations-jar",
+    ],
+    defaults: [
+        "android.jar_defaults",
+        "android_stubs_dists_default",
+    ],
+    dist: {
+        dir: "apistubs/android/test-core",
+    },
+}
+
+java_library {
     name: "android_module_lib_stubs_current.from-source",
     defaults: [
         "android.jar_defaults",
diff --git a/api/api.go b/api/api.go
index 692d38f..738cf3a 100644
--- a/api/api.go
+++ b/api/api.go
@@ -393,6 +393,7 @@
 		"android_stubs_current",
 		"android_system_stubs_current",
 		"android_test_stubs_current",
+		"android_test_frameworks_core_stubs_current",
 		"android_module_lib_stubs_current",
 		"android_system_server_stubs_current",
 	}