summaryrefslogtreecommitdiff
path: root/libs/hwui/FrameInfoVisualizer.cpp
diff options
context:
space:
mode:
author Evan Laird <evanlaird@google.com> 2024-02-23 14:19:46 -0500
committer Evan Laird <evanlaird@google.com> 2024-02-27 12:44:14 -0500
commit2b9f786bf22efa77b8117d51541f7737aab3ca47 (patch)
treeb24f1fcb9f01d06b4a73ea5756410afda801a23c /libs/hwui/FrameInfoVisualizer.cpp
parent7c7433ab5570e730ca4f378d1568d7b3bce25239 (diff)
[Sb] New unified battery icon
This CL adds a new style of battery drawable, `BatteryLayersDrawable`, which renders a battery meter via manual compositon and arrangement of layers. The procss is similar to the existing ThemedBatteryDrawable, where we use custom renering to achieve the correct UI encapsulated in a drawable. This new drawable employs the use of a view data class, `BatteryMeterState`, that can fully describe the desired view state, and encapsulaes battery theme colors in a `BatteryColors` class, of which there are light and dark variants. Test: compile Bug: 314812750 Flag: NONE Change-Id: I62485c1797d0da680478e6d726f6d90df357ab1e
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions