diff options
author | Seigo Nonaka <nona@google.com> | 2021-03-25 15:15:58 -0700 |
---|---|---|
committer | Seigo Nonaka <nona@google.com> | 2021-03-30 13:46:00 -0700 |
commit | 38fbc56351ecceb851f26f73602344c2d71c6121 (patch) | |
tree | 8d58c10860c44951933cb068b2c888fbfd852eac /tools/aapt2/java/JavaClassGenerator.cpp | |
parent | d99fcedeb3d3c9b1e426a2b6beb1a1d3330aa02b (diff) |
Use separate XML for update config in system
This CL is a refactoring to address following things:
- Separate XML definition of fonts.xml and update.
Since there are lots of concept mismatches between system font config
and update config, e.g. file paths, family variants, etc.
It is good to manage separtely.
- Stop keeping udpated config in memory in FontManagerService.
As a side effect of above change, FontManagerService no longer keeps
FontConfig.FontFamily mappings. This will be created from XML file
when necessary. This is better in FontManagerService since this map
is only necessary the boot time. After the system is booted, this
map is only necessary when the update request is called from client
which happens quite rare.
Bug: 183752879
Test: atest UpdatableFontDirTest
Test: atest FontManagerTest
Test: atest UpdatableSystemFontTest
Test: atest FontFamilyUpdateRequestTest
Test: atest PersistentSystemFontConfigTest
Change-Id: If2c12a8029f859efc52721b07cfeab04be2deb78
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator.cpp')
0 files changed, 0 insertions, 0 deletions