summaryrefslogtreecommitdiff
path: root/packages/SystemUI/src/com/android/systemui/flags/FlagCommand.java
Commit message (Collapse)AuthorAgeFilesLines
* Step 1 of Removing Ids from Flags.Dave Mankoff2023-01-261-32/+22
| | | | | | | | | | | | With this change, we start relying more directly on the string names that are now associated with flags. The ids persist so that we can look up existing overrides and push them into the new system. After a couple of weeks, the plan will be to remove the ids entirely. Bug: 265188950 Test: manually built before and after cl to ensure overrides persist. Change-Id: I0faac671b43a0d24262e78ccdb4e23e44f73eeea
* Define server flag names for all existing flags.Dave Mankoff2022-11-091-2/+2
| | | | | | | | | Removes reflection from our flag infrastructure. Bug: 249121873 Fixes: 258235428 Test: manual Change-Id: I29bf2065ba5885789e3fe94c0d6cdbae5e42a4d0
* Include all flags in our flag list.Dave Mankoff2022-11-051-26/+13
| | | | | | | | | | | | | | | | | | | | | 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
* Enable Int and String flags.Dave Mankoff2022-11-031-26/+124
| | | | | | | | | | | | | Puts mechanics in to support IntFlag and ResourceIntFlag. Also adds support for both IntFlag and StringFlag via the command line. Support in the app will come later. Bug: 257066497 Test: manual via the command line. Change-Id: I378f0f1e0db028cee33f729c47a63262124389d7
* Restart SystemUI on DeviceConfig changes.Dave Mankoff2022-10-261-1/+3
| | | | | | Bug: 253062545 Test: atest SystemUITests Change-Id: I905b17a6b4ba639749d6d82d08cecc55bda422a7
* Use less SysUI specific code in Flags.Dave Mankoff2022-10-031-0/+196
A step along they way to sharing the flagging code as a library. Bug: 249121873 Test: atest SystemUITests Change-Id: Id48d33a6ce0d058c4b2d3c282865297841753bb7