c11f6679d8
Previously, a simple map from dex signature to the flags was used to store the monolithic hidden API flags. This change replaces that with a trie that uses packages and class names extracted from the signature to map from the signature to the flags. The signature is broken down into pieces consisting of package names, class names and the remaining member signature. They are used in turn to navigate through nodes in the trie to a Leaf that contains the flags associated with the signature. The flags can be retrieved from the trie in a number of ways: * Using the complete signature to retrieve the flags for a single member. * Using a class name to retrieve the flags for all the members in a class and any nested classes. * Using a package wildcard to retrieve the flags for all the members in the classes in that package. * Using a recursive package wildcard to retrieve the flags for all the members in the classes in that package and nested packages. This will allow a bootclasspath_fragment to select a subset of the monolithic flags to compare against itself without specifying the signatures of every member of that set. Before creating the trie an attempt was made to compute the subset by iterating over all the signatures in the monolithic flags and matching against a regular expression created from the patterns but that was too slow. It took minutes to run whereas using the simple map or the trie only takes a few seconds. Bug: 194063708 Test: atest --host verify_overlaps_test Change-Id: I36f5e319d3e7d62dd34305de1eec990a93cb3a89 |
||
---|---|---|
.. | ||
check_boot_jars | ||
hiddenapi | ||
Android.bp | ||
archive_repack.sh | ||
build-aml-prebuilts.sh | ||
build-mainline-modules.sh | ||
build-ndk-prebuilts.sh | ||
build-rustdocs.sh | ||
build_broken_logs.go | ||
check_do_not_merge.sh | ||
construct_context.py | ||
construct_context_test.py | ||
conv_linker_config.py | ||
diff_build_graphs.sh | ||
freeze-sysprop-api-files.sh | ||
gen-java-current-api-files.sh | ||
gen-kotlin-build-file.py | ||
gen-sysprop-api-files.sh | ||
gen_ndk_backedby_apex.sh | ||
gen_ndk_usedby_apex.sh | ||
generate-notice-files.py | ||
get_clang_version.py | ||
get_clang_version_test.py | ||
jar-args.sh | ||
jar-wrapper.sh | ||
jars-to-module-info-java.sh | ||
jsonmodify.py | ||
lint_project_xml.py | ||
lint_project_xml_test.py | ||
manifest.py | ||
manifest_check.py | ||
manifest_check_test.py | ||
manifest_fixer.py | ||
manifest_fixer_test.py | ||
mergenotice.py | ||
microfactory.bash | ||
ninja_rsp.py | ||
OWNERS | ||
package-check.sh | ||
rbc-run | ||
reverse-deps.sh | ||
rustfmt.toml | ||
setup-android-build.sh | ||
setup_go_workspace_for_soong.sh | ||
strip.sh | ||
system-clang-format | ||
system-clang-format-2 | ||
test_config_fixer.py | ||
test_config_fixer_test.py | ||
toc.sh | ||
transitive-deps.sh | ||
unpack-prebuilt-apex.sh |