platform_build_soong/java
Paul Duffin 455b0bf922 Allow droidstubs to not generate any stubs
Needed to optimize the handling of the module_lib API surface which
currently has to be generated with two separate droidstubs instances,
one to generate the stubs and another to generate the .txt file. This
allows the module generating the .txt file to avoid also wasting time
generating stubs that are not used.

This change:
* Adds a generate_stubs property that defaults to true to allow the
  behavior to be customized on a per module basis.
* Uses either the stubs srcjar or the api .txt file as the OutputFile
  for the AndroidMkEntries to ensure that they get written out properly.
* Rearranges the code for generating stubs to make it easier to
  turn it off.

Bug: 146727827
Bug: 153306490
Test: m droid
      Check output dir of framework-sdkextensions-api-module_libs_api
	  to make sure it does not contain any sources or srcjars.
Merged-In: Ib8025019f8a7a8cf5fa8765d76b5ad470af20006
Change-Id: Ib8025019f8a7a8cf5fa8765d76b5ad470af20006
2020-04-22 12:51:53 +01:00
..
config Update ike.jar's name in code coverage configuration 2020-02-25 00:47:30 -08: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 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 Allow droidstubs to not generate any stubs 2020-04-22 12:51:53 +01: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 Merge "Check updatable APKs compile against managed SDKs." into rvc-dev 2020-04-16 13:34:39 +00:00
app_builder.go [soong] new field in Android.bp to request APK signing V4 2020-03-25 17:12:20 -07:00
app_test.go Merge "Check updatable APKs compile against managed SDKs." into rvc-dev 2020-04-16 13:34:39 +00:00
builder.go Remove Android compat annotations on jarjar transform. 2020-04-20 16:22:42 +01: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-04-03 11:25:13 +01:00
dexpreopt_bootjars.go Relax boot image check to allow platform Jacoco variant in a coverage build. 2020-04-09 14:50:44 +01:00
dexpreopt_bootjars_test.go Forbid generating boot image files for jars in updatable modules. 2020-04-09 14:50:21 +01:00
dexpreopt_config.go Distinguish boot images by target rather than arch 2020-04-03 11:25:13 +01:00
dexpreopt_test.go Add a rule about platform_apis 2019-07-29 20:48:30 +09:00
droiddoc.go Allow droidstubs to not generate any stubs 2020-04-22 12:51:53 +01: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 CSV files generated by UnsupportedAppUsageProcessor. 2020-03-21 13:01:17 +00:00
hiddenapi_singleton.go Use modular removed-dex.txt files for greylisting. 2020-03-31 14:46:39 +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 Stop requiring apex_available on java_library members of sdks 2020-04-22 12:51:51 +01: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 Create prebuilt api modules in load hook not mutator 2020-04-09 21:35:53 +01: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 Merge "Check updatable APKs compile against managed SDKs." into rvc-dev 2020-04-16 13:34:39 +00:00
sdk_library.go Parameterize scopes with additional droidstubs args 2020-04-22 12:51:49 +01:00
sdk_test.go Create a framework.aidl for non-updatable platform 2020-04-09 17:45:30 +01: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 Make system_server stubs consistent with other stubs 2020-03-19 17:42:59 +00:00
tradefed.go Add tradefed_java_library_host 2019-10-18 15:14:15 -07:00