diff options
| author | 2022-10-29 02:41:21 +0000 | |
|---|---|---|
| committer | 2022-11-05 23:57:51 +0000 | |
| commit | 9f825a8ba179c96faf428a599e28f1d2b6897cc2 (patch) | |
| tree | 0dbf3f3da195b3ce1189ff876edcf3a6f5d4807c /libs/androidfw/StringPool.cpp | |
| parent | 3345f99f8b66c735aa04094b97bbb37c07c1ff35 (diff) | |
Include all flags in our flag list.
This improves the use of reflection to include all the flags listed
in Flags.kt. One interseting finding: I can't figure out how to
get the value of a field marked with just `@Keep`. It needs to
also have `@JvmField` or not have any annotations at all.
More changes to this code will come in follow up cls, using string
names where appropriate, but this improves existing functionality.
Key takeaways:
- Reflection is terrible
- Reflection in Kotlin is worse
- Reflection on `object` instances is worse still
- Reflection mixing Java with Kotlin follows the trend line
- Reflection on annotated fields is nigh impossible
Bug: 249121873
Test: adb shell cmd statusbar flag
Change-Id: I69a96501876b01570233c3fd80b6bc7334d9fe73
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions