android_build/tools/compliance
Bob Badour 5446a6f8e1 Use struct{}
Using struct{}{} as the payload for set maps reduces memory use for
large sets.

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all
Test: m systemlicense
Test: m listshare; out/soong/host/linux-x86/bin/listshare ...
Test: m checkshare; out/soong/host/linux-x86/bin/checkshare ...
Test: m dumpgraph; out/soong/host/linux-x86/dumpgraph ...
Test: m dumpresolutions; out/soong/host/linux-x86/dumpresolutions ...

where ... is the path to the .meta_lic file for the system image. In my
case if

$ export PRODUCT=$(realpath $ANDROID_PRODUCT_OUT --relative-to=$PWD)

... can be expressed as:

${PRODUCT}/gen/META/lic_intermediates/${PRODUCT}/system.img.meta_lic

Change-Id: Ibc831ae80fc50f35e1000348fb28fc0167d0ebed
2022-01-11 10:40:50 -08:00
..
cmd license metadata remove path on top-down walk 2021-12-08 12:52:59 -08:00
policy Use struct{} 2022-01-11 10:40:50 -08:00
Android.bp compliance package documentation 2021-12-06 16:39:35 -08:00
actionset.go license metadata performance 2021-12-07 15:36:10 -08:00
condition.go compliance package for license metadata: dumpgraph 2021-12-06 16:37:17 -08:00
condition_test.go
conditionset.go Use struct{} 2022-01-11 10:40:50 -08:00
conditionset_test.go
doc.go compliance package documentation 2021-12-06 16:39:35 -08:00
graph.go Use struct{} 2022-01-11 10:40:50 -08:00
readgraph.go Use struct{} 2022-01-11 10:40:50 -08:00
readgraph_test.go
resolution.go
resolutionset.go Use struct{} 2022-01-11 10:40:50 -08:00
resolutionset_test.go
test_util.go