platform_build_soong/java
Jooyung Han 5e9013be22 Fix apex_available
Checking apex_available was missing some corner cases.
For example, the deps of share deps of cc_library modules are missed
while those from cc_library_shared are correctly tracked.

This was due to..

* calling DepIsInSameApex in WalkDeps: both work fine separately, but
when they are used together, it fails to work. It's due to how WalkDeps
works. (We might fix this bug too risky since it is used very widely)
* incorrect receiver for DepIsInSameApex in apex_deps mutator: receiver
is supposed to be parent, but child was used before. Interestingly lots
of deps are within the same group of module types(cc to cc, java to
java), it has worked. (note that receiver's DepIsInSameApex
implementation can be different).

This change fixes them by..

* walkPayloadDeps is now relying on ApexVariation, which is calculated
correctly by TopDown apex_deps mutator.
* use correct receiver for DepIsInSameApex in apex_deps mutator, which
requires for java.SdkLibrary to override the method and for
java.Library/Import to use passed dep instead of receiver to check its
membership of sdk.

Bug: 151071238
Test: build/boot
Change-Id: I0569ef4bb8e79635e4d97a89f421a8d8b7d26456
2020-03-10 23:52:01 +00:00
..
config Update ike.jar's name in code coverage configuration 2020-02-25 07:43:43 +00:00
aapt2.go Add rules to handle asset resources. 2020-01-16 12:19:49 -08:00
aar.go Merge "Allow for setting a logging_parent for an Android App." 2020-02-18 22:57:31 +00:00
android_manifest.go Allow for setting a logging_parent for an Android App. 2020-02-18 09:37:56 -08: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 bundle config contains (path,manifest) pairs of embedded APKs 2020-02-29 09:07:46 +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 Require apps built against the SDK to use JNI built against the NDK 2020-02-21 14:54:31 -08:00
builder.go Disable goma for javac actions in Soong 2020-03-05 20:46:15 +00: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 Distinguish boot images by target rather than arch 2020-02-26 17:04:21 +00:00
dexpreopt_bootjars.go Set '--force-determinism' option for boot image compilation. 2020-03-09 14:19:17 +00:00
dexpreopt_bootjars_test.go Reland: Move the Once cache for dexpreopt.GlobalConfig into the 2020-02-13 17:46:48 +00:00
dexpreopt_config.go Distinguish boot images by target rather than arch 2020-02-26 17:04:21 +00:00
dexpreopt_test.go Add a rule about platform_apis 2019-07-29 20:48:30 +09:00
droiddoc.go Add an order-only dependency on the build number file 2020-02-28 18:16:56 +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 Merge changes Ibaf383c4,I2b1c0736 2020-02-25 07:02:33 +00:00
hiddenapi_singleton.go Merge CSV files generated by UnsupportedAppUsageProcessor. 2020-02-20 20:21:49 +00:00
jacoco.go Tune JVM, print full diagnostics on crash. 2019-06-11 13:30:13 -07:00
jacoco_test.go Change syntax for jacoco filter wildcard params. 2018-01-29 12:46:26 -08:00
java.go Fix apex_available 2020-03-10 23:52:01 +00:00
java_resources.go Track sources for srcjars across modules 2019-05-06 14:22:26 -07:00
java_test.go Move NDK test modules into cc/testing.go 2020-02-19 18:59:15 -08: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: "system_server_current" 2020-02-12 04:36:43 +09:00
sdk_library.go Fix apex_available 2020-03-10 23:52:01 +00:00
sdk_test.go sdk_version: "system_server_current" 2020-02-12 04:36:43 +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 Allow java_system_modules_import to replace java_system_modules 2020-02-19 14:24:15 +00:00
testing.go Move NDK test modules into cc/testing.go 2020-02-19 18:59:15 -08:00
tradefed.go Add tradefed_java_library_host 2019-10-18 15:14:15 -07:00