platform_build/tools/aconfig/fake_device_config
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
..
src/android/provider aconfig: cache flag value in generated java code 2023-10-27 23:53:09 +00:00
Android.bp Change the sdk_version to core_current. 2023-10-13 18:16:52 +00:00