platform_build_soong/apex
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
..
Android.bp Add systemserverclasspath_fragments property to apex. 2021-05-18 10:37:52 +01:00
androidmk.go Ignore cc.Module.HideFromMake when producing flattened apex Android.mk entries 2021-04-29 13:54:49 -07:00
apex.go Create APEX variant for prebuilt_apex/apex_set 2021-06-18 12:02:43 +01:00
apex_singleton.go Merge changes from topic "move_allowed_deps_txt" am: 2b077baa5e am: 0ee372ad6f am: 3c5d96925f 2021-03-22 12:45:29 +00:00
apex_test.go Combine hidden API encoding with flag generation 2021-06-18 12:11:17 +01:00
bootclasspath_fragment_test.go Combine hidden API encoding with flag generation 2021-06-18 12:11:17 +01:00
builder.go Rename test_only_no_hashtree to generate_hashtree 2021-06-09 19:43:46 +01:00
deapexer.go Generalize deapexer module to export any files 2021-05-10 14:26:37 +01:00
key.go Extract apex registration code into function for reuse 2021-03-09 23:03:40 +00:00
OWNERS Move allowed_deps.txt to packages/modules/common. 2021-03-17 15:26:16 +00:00
platform_bootclasspath_test.go Make TestPlatformBootclasspath_Fragments more realistic 2021-06-16 03:06:34 +01:00
prebuilt.go Copy implementation and header jars to make when possible 2021-06-18 12:11:17 +01:00
systemserver_classpath_fragment_test.go Rename generate proto config file to match classpath type. 2021-05-24 13:38:45 +01:00
TEST_MAPPING Add TEST_MAPPING for build/soong/apex 2019-08-07 17:33:24 +09:00
testing.go bootclasspath_fragment: Add contents to snapshot 2021-04-21 23:54:22 +01:00
vndk.go Remove global state from VNDK apexes 2021-03-02 12:23:16 -08:00
vndk_test.go Don't use incorrect version names like VER or BOARD even in tests 2021-04-05 09:32:06 +09:00