platform_build_soong/java
Spandan Das fc12d2f494 Special-case java_sdk_library in source vs prebuilt selection
If a java_sdk_library is listed in `contents`, then restrict the source
vs prebuilt selection superseding to only the internal stub libraries.

Defer the source vs prebuilt selection mechanism of the top-level
library to the existing mechanisms for now. This is necessary because
this top-level library acts as a hook for
- hiddenapi: boot jars are deapxed from the prebuilt apex
- dexpreopt: system server jars are deapexed from the prebuilt apex and
  installed via required

If `next` uses `framework-foo` and `service-foo` as the top-level
library instead of the prebuilt equivalents, then the bootjars installed
in out/soong/dexpreopt_x86_64/apex_bootjars will come from source. And
the *.odex files of the system server jars will come from source.

Bug: 308174768
Test: Added a java_sdk_library unit test to assert that the new
mechanism supersedes the `prefer` flag

Change-Id: Ib43198a3b547c58b54f1f0966e95584215096d32
2023-11-08 18:37:24 +00:00
..
config Stop suppressing the ChangedDefault error 2023-11-07 15:44:14 +00:00
core-libraries Remove TxtStubLibraries.bp 2023-11-02 01:02:40 +00:00
aapt2.go Don't generate aapt2 srcjars when using resource processor 2023-08-02 21:50:38 -07:00
aar.go Merge "transitive r8 flags for installable {android,java}_libraries" into main 2023-11-01 15:29:11 +00:00
aar_test.go
Android.bp Revert "Use R8 for resource shrinking" 2023-11-03 10:26:38 +00:00
android_manifest.go add manifest_values application id property to soong 2023-10-23 18:26:53 +00:00
android_manifest_test.go Remove sdkPreSingleton and overlaySingleton 2023-11-01 15:29:09 -07:00
android_resources.go Remove sdkPreSingleton and overlaySingleton 2023-11-01 15:29:09 -07:00
androidmk.go Update Headers_only to a bool pointer 2023-10-05 17:18:44 -04:00
androidmk_test.go
app.go Merge "Revert "Use R8 for resource shrinking"" into main 2023-11-03 12:12:40 +00:00
app_builder.go Revert "Use R8 for resource shrinking" 2023-11-03 10:26:38 +00:00
app_import.go Revert^2 "Only allow setting presigned without preprocessed on targetSdk < 30" 2023-09-07 05:31:32 +00:00
app_import_test.go Revert^2 "Only allow setting presigned without preprocessed on targetSdk < 30" 2023-09-07 05:31:32 +00:00
app_set.go
app_set_test.go
app_test.go Remove sdkPreSingleton and overlaySingleton 2023-11-01 15:29:09 -07:00
base.go Update transitive lib propagation 2023-10-27 22:48:13 +00:00
boot_jars.go
bootclasspath.go Refactor dexpreopt for boot jars to make it flexible to config changes. 2023-07-14 12:13:28 +01:00
bootclasspath_fragment.go Remove retrieveLegacyEncodedBootDexFiles 2023-11-03 00:46:29 +00:00
bootclasspath_fragment_test.go Utilize module lib and test api superset module in hiddenapi 2023-10-11 17:06:23 +00:00
builder.go Revert^2 "Only allow setting presigned without preprocessed on targetSdk < 30" 2023-09-07 05:31:32 +00:00
classpath_element.go
classpath_fragment.go
device_host_converter.go Have ConvertWBp2build use Bp2buildMutatorContext 2023-09-20 14:49:35 +00:00
device_host_converter_test.go Strip META-INF/services from implementation jars when using as header jars 2023-07-19 21:48:11 +00:00
dex.go Merge "Revert "Use R8 for resource shrinking"" into main 2023-11-03 12:12:40 +00:00
dex_test.go transitive r8 flags for installable {android,java}_libraries 2023-10-31 18:59:04 +00:00
dexpreopt.go Use per-app package list to avoid unnecessary dexpreopt. 2023-06-28 17:59:56 +01:00
dexpreopt_bootjars.go gofmt soong 2023-10-18 17:42:59 -07:00
dexpreopt_check.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
dexpreopt_config.go Use the correct mainline BCP jars for app dexpreopt. 2023-11-06 18:44:52 +00:00
dexpreopt_config_test.go Refactor dexpreopt for boot jars to make it flexible to config changes. 2023-07-14 12:13:28 +01:00
dexpreopt_config_testing.go gofmt soong 2023-10-18 17:42:59 -07:00
dexpreopt_test.go Prepare tests for dexpreopt changes. 2023-05-11 18:24:44 +01:00
droiddoc.go Don't call android.PathForModuleSrc(ctx).String() to get ModuleDir 2023-11-02 19:07:49 +00:00
droiddoc_test.go
droidstubs.go Update checkapi error message to provide more guidance 2023-11-03 00:40:26 +00:00
droidstubs_test.go Add current api check as validation for from-text stub generation 2023-10-13 18:24:41 +00:00
fuzz.go Merge "Add use_platform_libs to fuzz config" 2023-06-05 14:41:51 +00:00
fuzz_test.go Strip META-INF/services from implementation jars when using as header jars 2023-07-19 21:48:11 +00:00
gen.go
generated_java_library.go Convert java_aconfig_library to bazel. 2023-10-02 15:04:19 -07:00
generated_java_library_test.go Convert java_aconfig_library to bazel. 2023-10-02 15:04:19 -07:00
genrule.go
genrule_test.go
hiddenapi.go Revert^2 "Only allow setting presigned without preprocessed on targetSdk < 30" 2023-09-07 05:31:32 +00:00
hiddenapi_modular.go Disable verify_overlaps test instead of hiddenapi check. 2023-11-06 09:49:16 +00:00
hiddenapi_monolithic.go
hiddenapi_singleton.go Disable Hidden API Checks for ENG Builds 2023-07-30 13:57:10 +00:00
hiddenapi_singleton_test.go Prepare tests for dexpreopt changes. 2023-05-11 18:24:44 +01:00
jacoco.go Use merge_zips instead of ziptime for resetting timestamps in jacoco outputs 2023-11-01 14:41:48 -07:00
jacoco_test.go
java.go Merge "Add the name of the sdk library to dynamically generated java modules" into main 2023-11-01 17:31:58 +00:00
java_resources.go
java_test.go Remove sdkPreSingleton and overlaySingleton 2023-11-01 15:29:09 -07:00
jdeps.go Parallelize singleton execution 2023-05-19 20:31:32 +00:00
jdeps_test.go
kotlin.go Enable restat for kapt stubs rules 2023-09-20 09:53:39 -07:00
kotlin_test.go
legacy_core_platform_api_usage.go Created empty framework-location non-updatable module 2023-08-28 17:45:30 +00:00
lint.go Add lint.suppress_exit_code attribute 2023-09-29 10:24:13 +10:00
lint_defaults.txt Downgrade newly failing lint checks 2023-08-03 00:57:41 +00:00
lint_test.go
platform_bootclasspath.go Use the correct mainline BCP jars for app dexpreopt. 2023-11-06 18:44:52 +00:00
platform_bootclasspath_test.go Add srcjar output for platform_bootclasspath 2023-09-28 13:21:21 +00:00
platform_compat_config.go Have ConvertWBp2build use Bp2buildMutatorContext 2023-09-20 14:49:35 +00:00
platform_compat_config_test.go
plugin.go Have ConvertWBp2build use Bp2buildMutatorContext 2023-09-20 14:49:35 +00:00
plugin_test.go
prebuilt_apis.go Support for incremetal platform prebuilt APIs 2023-08-25 18:03:44 +00:00
prebuilt_apis_test.go Support for incremetal platform prebuilt APIs 2023-08-25 18:03:44 +00:00
proto.go Add support for java_library proto plugin in bp2build 2023-10-05 12:53:23 -07:00
proto_test.go
resourceshrinker.go Revert "Use R8 for resource shrinking" 2023-11-03 10:26:38 +00:00
resourceshrinker_test.go Revert "Use R8 for resource shrinking" 2023-11-03 10:26:38 +00:00
robolectric.go Clean up obsolete aliases for Truth. 2023-10-07 19:59:58 +00:00
rro.go Use an option struct in aapt.buildActions & manifestMerger 2023-10-10 14:31:03 +00:00
rro_test.go Remove sdkPreSingleton and overlaySingleton 2023-11-01 15:29:09 -07:00
sdk.go Remove sdkPreSingleton and overlaySingleton 2023-11-01 15:29:09 -07:00
sdk_library.go Add a new flag to stop disabling lint errors 2023-11-07 10:14:50 +00:00
sdk_library_external.go
sdk_library_test.go Special-case java_sdk_library in source vs prebuilt selection 2023-11-08 18:37:24 +00:00
sdk_test.go
support_libraries.go Handle Android.bp files in subdirectories of androidx 2023-10-23 13:25:13 -04:00
system_modules.go
system_modules_test.go
systemserver_classpath_fragment.go
systemserver_classpath_fragment_test.go
testing.go Remove sdkPreSingleton and overlaySingleton 2023-11-01 15:29:09 -07:00
tradefed.go