summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Evan Laird <evanlaird@google.com> 2024-03-28 11:56:20 -0400
committer Evan Laird <evanlaird@google.com> 2024-03-28 16:25:11 -0400
commit1d312ed18c615702e6c23cac03451cc677133b6f (patch)
treec94bb69ebc55ff078606460b6143de3a8994c6e7 /libs/androidfw/StringPool.cpp
parent925ff71463ac395dc1ff43863b3c85abdef7ade5 (diff)
[Battery] New icon updates
- Changed the BatteryFillDrawable to support dynamic inset between the fill and the frame. This amounts to calculating the drawing insets when the value changes, and storing local references to the non-scaled values so that we can update them. - Dynamic fill is now set to (if attribution-showing? 0 1.5) - Upgraded `showErrorState` to a `ColorProfile` type - BatteryMeterView now calculates the color profile for any given state. - Battery fill is now the only thing we color for different profiles. Everything else is using the foreground color - Lastly, reduced the height of the status bar battery from 14sp -> 12sp. This yields some gnarly decimal width, but such is life Test: manual using `adb shell cmd battery` and subcommands `unplug`, `set level N`. Test: manual by setting battery saver mode, plugging / unplugging the device Test: go/battery-2024-companion Bug: 330707481 Flag: ACONFIG com.android.settingslib.flags.new_status_bar_icons TEAMFOOD Change-Id: Idd651a023fee4a7c796c46d5990f7a90df92dc76
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions