platform_build/tools/aconfig
Zhi Dou 3dea629a9e aconfig: cache flag value in generated java code
This change add cache in generated jave code to improve the performance.

The cache is a DeviceConfig.Properties. One Properties contains all
flag values from the given namesapce.

The Properties for a given namespace is initialized as null, and the
first call for any flags in that Properties will trigger the call to
fetch all the values. After the first call, the flag values are stored
in the Properties, so the following calls will directly get the value
from the Properties instead from the backup storage.

Test: atest aconfig.test.java
Bug: 307511846
Change-Id: Ic43626101c28099199b6faa419cf1945bd53b15d
2023-10-27 23:53:09 +00:00
..
fake_device_config aconfig: cache flag value in generated java code 2023-10-27 23:53:09 +00:00
overrideflags overrideflags: change local override list name 2023-10-23 18:19:29 +00:00
printflags printflags: improve protobuf decode error message 2023-10-10 10:12:29 +02:00
protos aconfig: add fixed read only flag 2023-08-24 17:35:18 +00:00
src aconfig: cache flag value in generated java code 2023-10-27 23:53:09 +00:00
templates aconfig: cache flag value in generated java code 2023-10-27 23:53:09 +00:00
tests aconfig: re-enable development with cargo 2023-09-04 13:22:28 +02:00
.gitignore aconfig: add support for cargo 2023-05-03 09:41:11 +02:00
Android.bp printflags: introduce device tool to print feature flags 2023-09-22 13:47:49 +02:00
build.rs aconfig: add support for cargo 2023-05-03 09:41:11 +02:00
Cargo.toml aconfig: add proto bug field 2023-06-22 16:50:33 +02:00
MODULE_LICENSE_APACHE2 aconfig: add project scaffolding 2023-05-02 17:36:30 +02:00
OWNERS aconfig: add project scaffolding 2023-05-02 17:36:30 +02:00
PREUPLOAD.cfg aconfig: add project scaffolding 2023-05-02 17:36:30 +02:00
rustfmt.toml aconfig: add project scaffolding 2023-05-02 17:36:30 +02:00
TEST_MAPPING Create the TEST_MAPPING file 2023-08-21 17:23:14 +08:00