platform_build_soong/java
Paul Duffin c4422106a7 Apply hiddenapi encoding to java_sdk_library .impl
Adds a ConfigurationName property, and ConfigurationName() method that
allows a library to separate its name (e.g. framework-tethering.impl)
from the name used in the build configuration,
    e.g. ctx.Config().BootJars().

Updates hiddenapi processing to use ConfigurationName() instead of
ctx.ModuleName().

Changes java_sdk_library to set the ConfigurationName property
of the implementation library to the name of the module instead of
<module>.impl so that it will match the name in the boot jars list.

Bug: 159683330
Test: m framework-tethering
      dexdump ${PRODUCT_OUT}/apex/com.android.tethering/javalib/framework-tethering.jar | grep hiddenapi | wc -l
      Verify that there are >0 hiddenapi entries.
      Add java_sdk_library_import prefer=true for framework-tethering
      and repeat the above to verify that there are 0 hiddenapi entries.
      Apply this change, repeat above and verify that there are the same # of entries as before.
      Remove the prebuilt for framework-tethering
      Repeat the above and verify that there is no change to the # of entries
Change-Id: I6c3016c35d0fcb1b95d4f9b37a307a69878f8e0a
2020-06-26 18:14:18 +01:00
..
config Soong package structure refactoring 2020-06-02 14:35:04 -07:00
Android.bp Add support for running Android lint on java and android modules. 2020-06-18 11:01:47 -07:00
OWNERS Add ART folks to owner of dexpreopt related file. 2019-04-30 15:33:49 +01:00
aapt2.go Add rules to handle asset resources. 2020-01-16 12:19:49 -08:00
aar.go Add support for running Android lint on java and android modules. 2020-06-18 11:01:47 -07:00
android_manifest.go Always use "${codename}.${sha}" if UNBUNDLED_BUILD_TARGET_SDK_WITH_API_FINGERPRINT=true 2020-03-03 12:06:30 +00:00
android_resources.go Separate device and product overlays 2019-03-21 11:25:46 +00:00
androidmk.go Revert "Always run package check" 2020-06-03 18:45:54 +00:00
androidmk_test.go Add a Tag field to dist to dist a tagged output 2020-03-30 13:55:32 +01:00
app.go Stem name should be fixed the same was as masterFile 2020-06-23 04:13:25 +00:00
app_builder.go Add support for remote-execution / caching of jar/zip actions 2020-05-30 19:59:10 +00:00
app_test.go Remove most paths from java.TestConfig 2020-06-15 09:46:31 -07:00
builder.go Revert "Always run package check" 2020-06-03 18:45:54 +00:00
device_host_converter.go Use inclusive language in build/soong 2020-06-15 09:46:31 -07:00
device_host_converter_test.go Add method to determine variations from a Target 2019-10-16 14:52:30 -07:00
dex.go Add support for remote-execution / caching of jar/zip actions 2020-05-30 19:59:10 +00:00
dexpreopt.go Fix host path for dexpreopted system server modules defined in Make. 2020-04-28 08:31:35 +00:00
dexpreopt_bootjars.go Collect permitted packages from java_sdk_library instances 2020-05-29 12:35:18 +01:00
dexpreopt_bootjars_test.go Revert "Generate the ART boot image for host as well (used by ART tests)." 2020-05-19 18:08:01 +00:00
dexpreopt_config.go Revert "Generate the ART boot image for host as well (used by ART tests)." 2020-05-19 18:08:01 +00:00
dexpreopt_test.go Add a rule about platform_apis 2019-07-29 20:48:30 +09:00
droiddoc.go Merge "Fix build breakages when WITHOUT_CHECK_API=true" into rvc-dev 2020-06-22 12:39:41 +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 Apply hiddenapi encoding to java_sdk_library .impl 2020-06-26 18:14:18 +01:00
hiddenapi_singleton.go Include car project in grey list removed apis 2020-06-05 09:07:27 -07: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 Apply hiddenapi encoding to java_sdk_library .impl 2020-06-26 18:14:18 +01:00
java_resources.go Track sources for srcjars across modules 2019-05-06 14:22:26 -07:00
java_test.go Remove most paths from java.TestConfig 2020-06-15 09:46:31 -07: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 Fix annotation processors in kotlin modules that generate resources 2020-06-19 12:53:09 -07:00
kotlin_test.go Repeat kapt processor argument for multiple processors 2020-04-24 11:27:59 -07:00
lint.go Set root dir in lint project.xml 2020-06-23 14:45:04 -07:00
lint_defaults.txt Add support for running Android lint on java and android modules. 2020-06-18 11:01:47 -07:00
platform_compat_config.go Add support for compat config in APEX. 2020-02-05 13:33:50 +00:00
plugin.go Consolidate adding common java properties 2020-06-18 11:01:47 -07:00
plugin_test.go Java test code clean-up 2019-07-17 11:15:09 -07:00
prebuilt_apis.go Use system modules for prebuilt SDKs >=30 2020-05-14 19:51:31 -07:00
proto.go Default to compiling lite protos 2019-10-26 20:35:13 +00:00
robolectric.go Add support for running Android lint on java and android modules. 2020-06-18 11:01:47 -07:00
sdk.go Use system modules for prebuilt SDKs >=30 2020-05-14 19:51:31 -07:00
sdk_library.go Apply hiddenapi encoding to java_sdk_library .impl 2020-06-26 18:14:18 +01:00
sdk_test.go Use system modules for prebuilt SDKs >=30 2020-05-14 19:51:31 -07: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 Remove old SdkMemberType API for creating snapshot modules 2020-04-22 12:51:45 +01:00
testing.go Remove most paths from java.TestConfig 2020-06-15 09:46:31 -07:00
tradefed.go Add tradefed_java_library_host 2019-10-18 15:14:15 -07:00