summaryrefslogtreecommitdiff
path: root/compiler/optimizing/codegen_test_utils.h
diff options
context:
space:
mode:
authorDavid Brazdil <dbrazdil@google.com>2018-06-28 11:56:41 +0100
committerDavid Brazdil <dbrazdil@google.com>2018-07-03 17:21:53 +0100
commit0b6de0c0de6c760a6bdd45a37e92055f662ad4ff (patch)
treee6b1398d87f31392a0dc1ff99c1ba10efbbb782e /compiler/optimizing/codegen_test_utils.h
parent2258c2ef5f6cb25ff12a1dc6dfac1f868892c226 (diff)
hiddenapi: Add 'list' command to generate public/private API lists
In order to make decisions about non-SDK API restrictions, we need a complete list of public and private class members in the boot class path. This was previously done by Doclava but having to lower its Java view of the framework to dex level has proven cumbersome and error prone. This patch adds a new command to the `hiddenapi` build tool which builds the class hierarchy of boot class path and attempts to resolve each member of android.jar against it. Resolved members are dumped into a public API text file, the rest into a private API text file. Note that the resolution is not strictly the same as in ART and we may err on the side of caution. This should be revisited to comply with the spec. Bug: 79409988 Test: m out/target/common/obj/PACKAGING/hiddenapi-private-list.txt Change-Id: Ia82bcaad9347344aacf8dc6f7b093f769cd853ec
Diffstat (limited to 'compiler/optimizing/codegen_test_utils.h')
0 files changed, 0 insertions, 0 deletions