platform_build_soong/java
Paul Duffin c75bbcecdb Combine hidden API encoding with flag generation
Previously, the rules to perform hidden API encoding were generated
separately to the rules to perform hidden API flag generation. This
change combines them within the (renamed) produceHiddenAPIOutput()
method and makes the paths to the encoded dex files an output of the
generateHiddenAPIBuildActions method alongside the paths to the
generated flag files.

As encoded dex jars are now an output of the produceHiddenAPIOutput()
method which is implemented for both prebuilts and source
bootclasspath_fragment modules that necessitated the prebuilt also
providing paths to encoded dex files. That in turn required updates to
some of the tests to provide dex files from prebuilt_apex modules.

Similarly, as the produceHiddenAPIOutput() method may not be called
for some bootclasspath_fragment modules as they do not yet provide all
the information needed to perform hidden API encoding then it is
necessary to extract the encoded dex files produced by the modules
themselves. That also required a few changes to tests that did not
previously provide dex files.

Bug: 177892522
Test: m com.android.art
      - check that this change does not change the contents of the apex
        file, i.e. is byte-for-byte identical.
Merged-In: I60996a34d06ed1c87ed244ab3509621999ad86ec
Change-Id: I60996a34d06ed1c87ed244ab3509621999ad86ec
(cherry picked from commit e521881bd4)
2021-06-18 12:11:17 +01:00
..
config Time out and dump stacks from R8 processes after 30 minutes 2021-04-30 14:14:46 -07:00
aapt2.go
aar.go SdkSpec is fully using ApiLevel 2021-04-12 13:46:21 +09:00
Android.bp Separate monolithic hidden API processing from hiddenAPIFlagFileInfo 2021-05-24 18:20:07 +01:00
android_manifest.go SdkSpec is fully using ApiLevel 2021-04-12 13:46:21 +09:00
android_resources.go
androidmk.go add the LOCAL_DISABLE_TEST_CONFIG variable 2021-06-03 10:16:39 -07:00
androidmk_test.go add the LOCAL_DISABLE_TEST_CONFIG variable 2021-06-03 10:16:39 -07:00
app.go Merge "Refactor vendor snapshot to use LinkableInterface." am: 7ce2dee09e am: 61c475060a am: 001c11e93a 2021-05-12 21:13:41 +00:00
app_builder.go
app_import.go Merge "SdkSpec is fully using ApiLevel" am: f398995a64 am: fe24728dc9 2021-04-14 14:42:56 +00:00
app_import_test.go
app_set.go
app_set_test.go
app_test.go
base.go Use stem when filtering boot jars. 2021-05-25 21:16:34 +01:00
boot_jars.go Record the actual APEXes that a module is part of. 2021-05-20 17:36:22 +01:00
bootclasspath.go Remove bootclasspathApiInfo 2021-05-24 18:20:09 +01:00
bootclasspath_fragment.go Combine hidden API encoding with flag generation 2021-06-18 12:11:17 +01:00
bootclasspath_fragment_test.go Tighten bootclasspath_fragment property validation 2021-05-25 09:30:20 +01:00
builder.go
classpath_fragment.go Rename generate proto config file to match classpath type. 2021-05-24 13:38:45 +01:00
device_host_converter.go
device_host_converter_test.go
dex.go Time out and dump stacks from R8 processes after 30 minutes 2021-04-30 14:14:46 -07:00
dexpreopt.go Add usesTargetFiles option in dexpreopt_gen 2021-05-18 12:09:28 +09:00
dexpreopt_bootjars.go Make copyBootJarsToPredefinedLocations simpler and less fragile 2021-06-16 03:06:35 +01:00
dexpreopt_bootjars_test.go Build boot images in bootclasspath_fragment/platform_bootclasspath 2021-05-12 21:51:27 +01:00
dexpreopt_config.go Make copyBootJarsToPredefinedLocations simpler and less fragile 2021-06-16 03:06:35 +01:00
dexpreopt_test.go Skip TestDex2oatToolDeps on Darwin. 2021-05-20 17:36:22 +01:00
droiddoc.go Stop filtering html files from droidstubs input 2021-06-09 13:54:38 +01:00
droiddoc_test.go
droidstubs.go Revert "Hacky workaround for half-finalized builds." 2021-06-13 18:15:26 -06:00
droidstubs_test.go
gen.go
genrule.go
hiddenapi.go Maintain header order in merge_csv 2021-06-16 03:06:33 +01:00
hiddenapi_modular.go Combine hidden API encoding with flag generation 2021-06-18 12:11:17 +01:00
hiddenapi_monolithic.go Export hidden api related types and fields 2021-06-16 03:06:33 +01:00
hiddenapi_singleton.go Merge "Drop "prebuilt_" prefixes from names registered in ApexInfo.InApexXxx." 2021-05-27 17:23:16 +00:00
hiddenapi_singleton_test.go Add a test for hidden API encoding of java_sdk_library 2021-05-18 07:59:29 +01:00
jacoco.go
jacoco_test.go
java.go Don't fail if the target module is disabled in dex2oat tool 2021-05-20 17:36:02 +01:00
java_resources.go
java_test.go Move java_sdk_library tests to sdk_library_test.go 2021-06-02 08:06:40 -07:00
jdeps.go
jdeps_test.go
kotlin.go
kotlin_test.go
legacy_core_platform_api_usage.go
lint.go Always propagate some environment variables to RBE 2021-06-11 12:54:36 +01:00
lint_defaults.txt Update soong for new lint version 2021-04-06 17:49:19 +00:00
lint_test.go Strict updatability linting against dependencies. 2021-05-10 15:30:00 -07:00
OWNERS
platform_bootclasspath.go Combine hidden API encoding with flag generation 2021-06-18 12:11:17 +01:00
platform_bootclasspath_test.go Move TestPlatformBootclasspath_Fragments to apex package 2021-06-16 03:06:34 +01:00
platform_compat_config.go Extract IsModuleInVersionedSdk 2021-04-28 00:39:52 +01:00
platform_compat_config_test.go
plugin.go
plugin_test.go
prebuilt_apis.go Remove special case code for obsolete files 2021-04-13 19:09:48 +01:00
proto.go
robolectric.go
rro.go SdkSpec is fully using ApiLevel 2021-04-12 13:46:21 +09:00
rro_test.go
sdk.go Merge "Replace source based system server stubs" 2021-04-28 15:06:22 +00:00
sdk_library.go Remove core_lib property from java_sdk_library 2021-06-08 10:17:58 -07:00
sdk_library_external.go
sdk_library_test.go Don't use unsafe_ignore_missing_latest_api in TestJavaSdkLibraryDist 2021-06-08 10:17:58 -07:00
sdk_test.go
support_libraries.go
system_modules.go Make all SdkMemberTypes support transitive member deps 2021-05-06 23:13:06 +01:00
system_modules_test.go
systemserver_classpath_fragment.go Treat java libraries in classpath fragments as directly in apex 2021-05-27 13:14:33 -07:00
systemserver_classpath_fragment_test.go Rename generate proto config file to match classpath type. 2021-05-24 13:38:45 +01:00
testing.go Rename InApexes -> InApexVariants 2021-05-20 17:36:22 +01:00
tradefed.go