diff options
| author | 2023-12-15 18:55:52 +0000 | |
|---|---|---|
| committer | 2024-03-04 23:05:44 +0000 | |
| commit | 5b828730283cbc7b0a55dc8c68851260aa5f8ec5 (patch) | |
| tree | 77ed5a879845516b024fd1644ad0b7336b58dc13 /libs/androidfw/StringPool.cpp | |
| parent | 082e90eabc8e8d0e7ce6c8b4fd9676aee726ecc0 (diff) | |
Make system property reading in LayoutlibLoader more DRY
The system properties can be stored in a std::unordered_map and can be
read in one fell swoop.
This reduces the amount of JNI boilerplate required to read individual
system properties.
Also remove the '**n/a**' magic string. LayoutLibLoader system property
logic is designed to support the empty string value.
This is effectively a cherry-pick of ag/25672148 but modified for
LayoutlibLoader in `main`.
Test: layoutlib-tests
Change-Id: I7562dc6eecada3199d8a3b20879b2e1b296cfb32
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions