platform_build/tools
Zhi Dou 8ba6aa71b1 aconfig: add java codegen test mode
Add java codegen test mode. The test mode will generate Flags.java and
FeatureFlagsImpl.java differently.
    * Flags.java will have getter and setter function to switch the
      FeatureFlagsImpl. Flags.java will not initialize the instance
      of FeatureFlagsImpl during initialization, thus it will force the
      user to set up the flag values for the tests.
    * FeatureFlagsImpl removes the dependency on DeviceConfig, and
      allows the caller to set the values of flags.

Command changes
This change adds a new parameter `mode` to `create-java-lib` subcommand.
The default value of `mode` is production, which will generate files for
production usage, and keeps the same behavior as before.

The new `mode` test is added to trigger the test mode. The command is
aconfig create-java-lib --cache=<path_to_cache> --out=<out_path>
--mode=test

Test: atest aconfig.test
Bug: 288632682
Change-Id: I7566464eb762f3107142fe787f56b17f5be631b7
2023-06-27 18:57:35 +00:00
..
aconfig aconfig: add java codegen test mode 2023-06-27 18:57:35 +00: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 Merge "Handle symlinks when extracting zipfiles" 2023-06-22 01:27:35 +00: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 Remove deprecated BOARD_BUILD_SYSTEM_ROOT_IMAGE 2022-10-13 16:08:53 +08: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 Create a python script to list files given a directory as an input 2023-04-03 17:52:41 +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