platform_build_soong/java
Paul Duffin 1093158faf Add support for specifying api provided by bootclasspath_fragment
The hidden API processing needs access to dex stub jars for the API
scopes provided by the bootclasspath_fragment so that it can mark the
corresponding dex members as being part of that API. This change adds
the ability to specify the modules that provide those jars, resolve the
modules to dex jar stubs and make them available for other modules and
tests to use.

While the stubs are only needed for hidden API at the moment these were
not added to the hidden_api properties section as there are other parts
of the build that may need to access the stubs in future, e.g. api
fingerprint and aidl generation.

The stubs properties can be affected by coverage as when coverage is
enabled the jacoco-stubs needs adding to the list, just like how
jacocoagent is added to the contents.

Bug: 177892522
Test: m nothing
Change-Id: I31097d1ca45c84adeba4cbb38f693698cb289e99
2021-04-28 21:59:46 +01:00
..
config Silence kotlinc JDK9 warnings 2021-03-31 13:17:42 -07:00
aapt2.go Improve comments in java/aapt2.go 2020-11-30 14:16:02 -08:00
aar.go SdkSpec is fully using ApiLevel 2021-04-08 11:27:24 +09:00
Android.bp Rename BootImageModule to BootclasspathFragmentModule 2021-04-23 16:59:26 +01:00
android_manifest.go SdkSpec is fully using ApiLevel 2021-04-08 11:27:24 +09:00
android_resources.go Add preparer for overlay pre-singleton registration 2021-03-22 22:09:53 +00:00
androidmk.go Expose "full" dexpreopt.config 2021-04-19 18:24:42 +09:00
androidmk_test.go Remove javaFixtureFactory 2021-03-24 01:07:12 +00:00
app.go SdkSpec is fully using ApiLevel 2021-04-08 11:27:24 +09:00
app_builder.go Move android package on top of remotexec 2021-03-18 16:17:34 -07:00
app_import.go SdkSpec is fully using ApiLevel 2021-04-08 11:27:24 +09:00
app_import_test.go Remove uses of buildDir from java/app_import_test.go 2021-03-24 00:01:15 +00:00
app_set.go Break up app.go. 2020-12-21 12:31:51 -08:00
app_set_test.go Remove uses of buildDir from java/app_set_test.go 2021-03-24 00:01:15 +00:00
app_test.go Remove extraneous calls to TestingBuildParams.RelativeToTop() 2021-03-30 20:03:22 +01:00
base.go SdkSpec is fully using ApiLevel 2021-04-08 11:27:24 +09:00
boot_jars.go Add IsModulePreferred 2021-04-06 21:18:34 +01:00
bootclasspath.go Add support for specifying api provided by bootclasspath_fragment 2021-04-28 21:59:46 +01:00
bootclasspath_fragment.go Add support for specifying api provided by bootclasspath_fragment 2021-04-28 21:59:46 +01:00
bootclasspath_fragment_test.go Add support for specifying api provided by bootclasspath_fragment 2021-04-28 21:59:46 +01:00
builder.go Support multiple rsp files in REParams 2021-03-25 11:06:45 -07:00
classpath_fragment.go Generate classpaths.proto config for *CLASSPATH variables. 2021-04-14 15:03:23 +01:00
device_host_converter.go Clear remains of java.Dependency interface. 2021-03-05 14:57:51 +00:00
device_host_converter_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
dex.go SdkSpec = Scope + ApiLevel 2021-04-05 09:32:06 +09:00
dexpreopt.go Drop DexPreoptImages field in dexpreopt config 2021-04-26 23:41:40 +09:00
dexpreopt_bootjars.go Extract generateUpdatableBcpPackagesRule from updatableBcpPackagesRule 2021-04-28 09:03:46 +01:00
dexpreopt_bootjars_test.go Handle boot jars on /system_ext correctly. 2021-04-15 15:07:06 +01:00
dexpreopt_config.go Don't plumb PRODUCT_*_CLASSPATH vars to make. 2021-04-22 13:35:52 +01:00
dexpreopt_test.go Write module dexpreopt.config for Make. 2021-01-28 06:29:13 +00:00
droiddoc.go SdkSpec is fully using ApiLevel 2021-04-08 11:27:24 +09:00
droiddoc_test.go Remove extraneous calls to TestingBuildParams.RelativeToTop() 2021-03-30 20:03:22 +01:00
droidstubs.go Fix metalava api baseline update command 2021-04-16 14:55:50 -07:00
droidstubs_test.go Remove support for unsandboxed metalava 2021-03-31 13:17:42 -07:00
gen.go Take Module implementations out of java/java.go. 2021-03-19 15:46:38 -07:00
genrule.go Dedup java genrule module type registration 2019-12-19 19:19:40 +00:00
hiddenapi.go Export classesJars initialized in hiddenAPIExtractInformation 2021-04-23 09:32:14 +01:00
hiddenapi_modular.go Add support for specifying api provided by bootclasspath_fragment 2021-04-28 21:59:46 +01:00
hiddenapi_singleton.go Move monolithic stub flags generation to platform_bootclasspath 2021-04-22 14:23:28 +01:00
hiddenapi_singleton_test.go Move monolithic stub flags generation to platform_bootclasspath 2021-04-22 14:23:28 +01:00
jacoco.go Use a default exclude filter for JaCoCo in Soong. 2020-07-08 19:29:10 +00:00
jacoco_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
java.go Extract java SdkMemberType instances as vars 2021-04-26 21:21:58 +01:00
java_resources.go Track sources for srcjars across modules 2019-05-06 14:22:26 -07:00
java_test.go Merge changes Ia74a2b83,I30a46c8f,Iac7c0149 2021-04-22 15:39:41 +00:00
jdeps.go Convert java.Dependency to JavaInfo provider 2021-02-09 15:36:25 -08:00
jdeps_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
kotlin.go Silence kotlinc JDK9 warnings 2021-03-31 13:17:42 -07:00
kotlin_test.go Remove uses of buildDir from java/kotlin_test.go 2021-03-24 01:07:12 +00:00
legacy_core_platform_api_usage.go Merge "Add test suite to legacy core platform allowlist." 2021-03-16 23:02:39 +00:00
lint.go Fix minor issues in updatability lint CLs. 2021-04-22 13:40:41 -07:00
lint_defaults.txt Update soong for new lint version 2021-04-06 17:49:19 +00:00
lint_test.go Add lint.strict_updatability_linting 2021-04-21 16:56:49 -07:00
OWNERS Add ART folks to owner of dexpreopt related file. 2019-04-30 15:33:49 +01:00
platform_bootclasspath.go Move bootFrameworkProfileRule to platform_bootclasspath 2021-04-28 09:03:46 +01:00
platform_bootclasspath_test.go platform_bootclasspath: aggregate hidden API flag files from fragments 2021-04-16 00:29:53 +01:00
platform_compat_config.go Extract IsModuleInVersionedSdk 2021-04-28 00:39:52 +01:00
platform_compat_config_test.go Add platform_compat_config to sdk 2021-03-22 19:13:40 +00:00
plugin.go Register java_plugin in PrepareForTestWithJavaBuildComponents 2021-03-24 00:01:15 +00:00
plugin_test.go Revert "Make lots of tests run in parallel" 2020-10-09 18:34:24 -07:00
prebuilt_apis.go Remove special case code for obsolete files 2021-04-13 19:09:48 +01:00
proto.go Improve java.go readability. 2021-03-15 13:58:44 -07:00
robolectric.go Support robolectric prebuilts in android_robolectric_test 2021-03-05 19:22:30 +00:00
rro.go SdkSpec is fully using ApiLevel 2021-04-08 11:27:24 +09:00
rro_test.go Remove extraneous calls to TestingBuildParams.RelativeToTop() 2021-03-30 20:03:22 +01:00
sdk.go Merge "Replace source based system server stubs" 2021-04-28 15:06:22 +00:00
sdk_library.go Automatically export bootclasspath_fragment stubs from sdk 2021-04-27 23:27:34 +01:00
sdk_library_external.go Remove global state from sysprop libraries 2021-02-26 16:28:12 -08:00
sdk_test.go Remove FixturePreparer.Extend() 2021-04-01 10:33:20 +01:00
support_libraries.go Allow other module types in androidx 2019-07-22 13:18:48 -07:00
system_modules.go Allow exporting of sdk members to be done per tag 2021-04-24 22:30:26 +01:00
system_modules_test.go Remove varargs from RunTest(t *testing.T) 2021-03-31 16:03:59 +01:00
testing.go Rename BootImageModule to BootclasspathFragmentModule 2021-04-23 16:59:26 +01:00
tradefed.go Add tradefed_java_library_host 2019-10-18 15:14:15 -07:00