diff options
| author | 2025-01-14 08:26:38 +0800 | |
|---|---|---|
| committer | 2025-01-14 09:56:29 +0800 | |
| commit | 910bb146c18b30fc240892993d94a766adb74fe5 (patch) | |
| tree | e4cb3f843cd5b7663d090ab86caec6b2077c00dc /tools/codegen/src | |
| parent | 1ae1333237340c4a2e2c221188514d3a6b8f0e8a (diff) | |
[Catalyst] Reduce memory footprint for SettingsPreferenceValue
Current implementation has following issues:
- Not scale to value types. Each preference has only one value
(according to its type) but the class has fields for ALL value types,
which increases the memory usage unnecessarily.
- Use internal API {read/write}String8 for string type.
- Missing type check.
Fix: 389778788
Flag: com.android.settingslib.flags.settings_catalyst
Test: atest CtsSettingsPreferenceServiceTest
Change-Id: I1dd44370bc80f271564ffe60b7c5700dbfc64a15
Diffstat (limited to 'tools/codegen/src')
0 files changed, 0 insertions, 0 deletions