platform_build/tools
Mårten Kongstad 6353c6c635 aconfig: require exactly one bug field
Some consumers of `aconfig dump` do not support multiple bugs. At the
same time, we want all flags to be associated with at least one bug.

Teach aconfig to require that the bug field in the flag_declaration and
parsed_flag proto messages appear exactly once.

This change could have been implemented as a change of `repeated` to
`optional` in the proto definition. However, the chosen approach, with a
runtime check, is easier to revert if we want to support multiple bugs
in the future.

Bug: 293156797
Test: m all_aconfig_declarations && printflags
Test: atest aconfig.test aconfig.test.java aconfig.test.cpp
Change-Id: Ib87dac68b392986a8daa64e56cd85477c92fbe83
2023-07-27 09:44:00 +02:00
..
aconfig aconfig: require exactly one bug field 2023-07-27 09:44:00 +02:00
acp Fix licenses and license texts. 2022-01-24 16:19:41 -08:00
apicheck
atree Fix uninitialized value warnings. 2022-12-20 16:51:53 -08:00
canoninja Fix go.mod for tools/canoninja 2022-08-01 14:45:28 -07:00
compliance Merge "Fix usage message." 2023-06-19 19:20:15 +00:00
docker
droiddoc Fix licenses and license texts. 2022-01-24 16:19:41 -08:00
finalization Use patch instead of git apply. 2023-06-16 20:23:36 +00:00
fs_config Convert fs_config_generator.py to python 3 2022-10-21 11:16:18 -07:00
fs_get_stats Fix licenses and license texts. 2022-01-24 16:19:41 -08:00
libhost Fix licenses and license texts. 2022-01-24 16:19:41 -08:00
product_config
protos Generate SBOM of the target product in file sbom.spdx.json in product out directory. 2023-03-14 15:14:06 -07:00
rbcrun Define release flags in starlark instead of make 2023-06-09 13:10:05 -07:00
releasetools Disable copying images for target_files.zip 2023-07-17 07:46:48 +09:00
sbom Include static libraries information in Android SBOM. 2023-06-16 23:02:09 -07:00
signapk Pin signapk to Java 11 2023-02-03 18:06:46 +00:00
signtos
warn Make DeprecatedOrUnsafeBufferHandling not high severity 2023-01-09 14:19:11 -08:00
zipalign zipalign/ziptime: use ftello()/fseeko(). 2023-01-13 00:41:38 +00:00
ziptime zipalign/ziptime: use ftello()/fseeko(). 2023-01-13 00:41:38 +00:00
Android.bp Create separate python libraries for the following logic and refactor SBOM generation script accordingly. 2023-04-13 13:34:57 -07:00
auto_gen_test_config.py Convert auto_gen_test_config.py to python 3 2023-01-26 17:29:13 -08:00
auto_gen_test_config_test.py
brillo-clang-format
build-runfiles.cc make: fix memory leak 2022-06-28 11:23:21 -07:00
BUILD.bazel Add check_elf_file to BUILD.bazel 2022-09-07 22:24:33 +00:00
buildinfo.sh Make common signature system property definitions optional 2023-07-11 22:40:19 +00:00
check_elf_file.py Fix crash in check_elf_file.py 2022-11-09 12:50:35 -08:00
check_identical_lib.sh
check_radio_versions.py Convert check_radio_versions to python3 2022-10-24 21:02:00 +00:00
checkowners.py Update checkowners.py to support python3 2022-04-04 13:22:38 +01:00
compare_builds.py
event_log_tags.py Migrate java-event-logs-tags.py to python3. 2022-01-17 13:02:53 +00:00
exercise_compare_builds
extract_kernel.py
fat16copy.py
fileslist_util.py Convert fileslist_util.py to python 3 2022-10-24 18:46:03 -07:00
find_static_candidates.py Add new script to analyze static/shared library usage 2023-06-05 20:23:36 +00:00
findleaves.py Convert findleaves.py to python 3 2022-10-24 17:57:39 -07:00
fixlinebreaks.sh
generate-enforce-rro-android-manifest.py
generate-notice-files.py
generate-self-extracting-archive.py Convert generate-self-extracting-archive.py to python 3 2021-12-29 13:58:28 -08:00
generate_gts_shared_report.py Tool for generating GTS open-sourced report 2023-02-16 21:54:23 +00:00
java-event-log-tags.py Remove extra semicolons from event log tag generated files 2022-10-13 17:47:42 -07:00
list_files.py Add --classes optional flag in list_files 2023-06-27 04:46:50 +00:00
merge-event-log-tags.py Migrate java-event-logs-tags.py to python3. 2022-01-17 13:02:53 +00:00
mk2bp_catalog.py Make file list by partitions for all lunch targets 2022-04-07 11:01:19 -07:00
mk2bp_partition.py Make file list by partitions for all lunch targets 2022-04-07 11:01:19 -07:00
normalize_path.py Update normalize_path.py to Python 3. 2022-10-20 08:11:18 +00:00
OWNERS
post_process_props.py Allow setting future api level before REL 2023-04-10 15:37:19 +09:00
post_process_props_unittest.xml
print_module_licenses.sh
soong_to_convert.py Convert soong_to_convert.py to python 3 2022-11-04 17:36:13 -07:00
stub_diff_analyzer.py Create custom diff tool to compare stub contents 2022-10-28 22:45:08 +00:00
test_extract_kernel.py
test_post_process_props.py Allow setting future api level before REL 2023-04-10 15:37:19 +09:00
warn.py
whichgit The --why parameter in whichgit should be optional 2022-10-24 08:03:20 -07:00