platform_build_soong/java
Paul Duffin 0bdcb27970 java_sdk_library_import - Allow it to replace java_sdk_library
Previously a java_sdk_library_import module did not replace the
corresponding java_sdk_library module, even when it was marked as
prefer=true. That is because the java_sdk_library_import had an empty
set of sources.	However, the stubs modules that are created by the
java_sdk_library_import did override the stubs modules created by the
corresponding java_sdk_library module.

That created inconsistent behavior between the cases where only the
prebuilt is available and both source and prebuilt are available and
the prebuilt is preferred. e.g. assume a java_sdk_library/import module
called SDKLIB.

When both prebuilt and source modules are available for SDKLIB then
even if the prebuilt is preferred then any dependencies on the
SDKLIB module would use the source module.

This change fixes that inconsisteny by making the array of sources
non-empty.

Bug: 148080325
Test: m droid && TARGET_BUILD_APPS=Camera2 m
Change-Id: I25395e020393921735ada20c5492f27f1260f6c5
2020-02-10 10:45:29 +00:00
..
config Add support for experimentally enabling RBE support on specific rules. 2020-01-28 12:42:47 -05:00
aapt2.go Add rules to handle asset resources. 2020-01-16 12:19:49 -08:00
aar.go Merge "Add rules to handle asset resources." 2020-02-05 22:24:39 +00:00
android_manifest.go Abstract sdk_version string using sdkSpec type 2020-01-25 21:56:43 +09:00
android_resources.go Separate device and product overlays 2019-03-21 11:25:46 +00:00
androidmk.go Export the cert path for runtime_resource_overlay. 2020-01-31 10:39:40 -08:00
androidmk_test.go AndroidMk for the hostdex library has separate AndroidMkEntries 2019-12-11 17:27:07 +09:00
app.go apex_available tracks static dependencies 2020-02-06 14:45:08 +09:00
app_builder.go Reland "Also package recursive jni_libs deps of android_apps as well as direct deps." with bug fix. 2019-12-17 16:55:20 -08:00
app_test.go Merge "Add rules to handle asset resources." 2020-02-05 22:24:39 +00:00
builder.go Add support for experimentally enabling RBE support on specific rules. 2020-01-28 12:42:47 -05:00
device_host_converter.go jacoco correctly gathers info from APK-in-APEX 2020-01-08 14:49:31 +09:00
device_host_converter_test.go Add method to determine variations from a Target 2019-10-16 14:52:30 -07:00
dex.go Merge "Add support for experimentally enabling RBE support on specific rules." 2020-01-28 19:49:05 +00:00
dexpreopt.go Remove UseApexImage and GenerateApexImage. 2020-02-07 14:19:28 +00:00
dexpreopt_bootjars.go Remove UseApexImage and GenerateApexImage. 2020-02-07 14:19:28 +00:00
dexpreopt_bootjars_test.go Revert "Move the Once cache for dexpreopt.GlobalConfig into the ..." 2020-01-27 13:44:03 +00:00
dexpreopt_config.go Remove UseApexImage and GenerateApexImage. 2020-02-07 14:19:28 +00:00
dexpreopt_test.go Add a rule about platform_apis 2019-07-29 20:48:30 +09:00
droiddoc.go Fix sdk aidl include for droiddoc 2020-02-08 20:37:07 +00:00
gen.go Shard aidl compiles into srcjars 2019-10-04 14:00:36 -07:00
genrule.go Dedup java genrule module type registration 2019-12-19 19:19:40 +00:00
hiddenapi.go Improve hiddenapi processing so it does not require white list 2019-02-28 16:13:20 +00:00
hiddenapi_singleton.go Use merge_csv python_binary. 2020-01-20 17:59:02 +00:00
jacoco.go Tune JVM, print full diagnostics on crash. 2019-06-11 13:30:13 -07:00
jacoco_test.go
java.go Add java_system_modules to sdk/module_exports 2020-02-07 14:03:03 +00:00
java_resources.go Track sources for srcjars across modules 2019-05-06 14:22:26 -07:00
java_test.go java_sdk_library use prebuilt jars for numeric sdk_version 2020-02-04 14:47:04 +00:00
jdeps.go Sandbox soong_build by changing to root directory 2020-01-11 01:11:46 +00:00
jdeps_test.go jarjar_rules: accept file-group 2019-01-23 18:05:18 +00:00
kotlin.go Add support for experimentally enabling RBE support on specific rules. 2020-01-28 12:42:47 -05:00
kotlin_test.go Java test code clean-up 2019-07-17 11:15:09 -07:00
OWNERS Add ART folks to owner of dexpreopt related file. 2019-04-30 15:33:49 +01:00
platform_compat_config.go Add support for compat config in APEX. 2020-02-05 13:33:50 +00:00
plugin.go Replace annotation_processors with plugins 2019-01-23 20:17:51 +00:00
plugin_test.go Java test code clean-up 2019-07-17 11:15:09 -07:00
prebuilt_apis.go Dedup prebuilt apis module type/mutator registration 2019-12-19 19:19:40 +00:00
proto.go Default to compiling lite protos 2019-10-26 20:35:13 +00:00
robolectric.go AndroidMkEntries() returns multiple AndroidMkEntries structs 2019-12-11 17:25:27 +09:00
sdk.go sdk_version: "module_current" is supported 2020-01-31 23:01:34 +09:00
sdk_library.go java_sdk_library_import - Allow it to replace java_sdk_library 2020-02-10 10:45:29 +00:00
sdk_test.go sdk_version: "module_current" is supported 2020-01-31 23:01:34 +09:00
support_libraries.go Allow other module types in androidx 2019-07-22 13:18:48 -07:00
sysprop.go Create public stub for platform's sysprop_library 2019-12-19 09:35:23 +09:00
system_modules.go Add java_system_modules to sdk/module_exports 2020-02-07 14:03:03 +00:00
testing.go Merge "sdk_version: "module_current" is supported" 2020-02-06 03:50:43 +00:00
tradefed.go Add tradefed_java_library_host 2019-10-18 15:14:15 -07:00