platform_build/tools/compliance
Bob Badour b285515ca1 license metadata remove path on top-down walk
Performance optimization means not every path will be traversed.

Instead of updating parents via the path, perform a 2nd bottom-up walk
after the top-down walk to propagate the new resolutions to parents.

Note: the 2nd walk method will add resolutions to statically linked
libraries etc. at deeper levels, but those do not affect what gets
reported. In particular, note that test data for dumpresolutions
changes, but none of the test data for listshare, checkshare etc.
changes.

Test: m all systemlicense listshare checkshare dumpgraph dumpresolutions

Bug: 68860345
Bug: 151177513
Bug: 151953481
Change-Id: I76361c4e33bbadbbea38cbec260430e8f9407628
2021-12-08 12:52:59 -08:00
..
cmd license metadata remove path on top-down walk 2021-12-08 12:52:59 -08:00
policy license metadata remove path on top-down walk 2021-12-08 12:52:59 -08:00
actionset.go license metadata performance 2021-12-07 15:36:10 -08:00
Android.bp compliance package documentation 2021-12-06 16:39:35 -08:00
condition.go compliance package for license metadata: dumpgraph 2021-12-06 16:37:17 -08:00
condition_test.go
conditionset.go compliance package for license metadata: dumpgraph 2021-12-06 16:37:17 -08:00
conditionset_test.go
doc.go compliance package documentation 2021-12-06 16:39:35 -08:00
graph.go
readgraph.go
readgraph_test.go
resolution.go
resolutionset.go
resolutionset_test.go compliance package policy and resolves 2021-12-03 15:52:48 -08:00
test_util.go compliance package policy and resolves 2021-12-03 15:52:48 -08:00