With the new added APIs, we don't need to overlay status_bar_height that
contains cutout size and quick_qs_offset_height anymore.
Bug: 186604541
Test: make
Change-Id: I36d869866ed03d3996b7b0d8cc6d3f6bb6ab624d
* fod radius = radius value / 2
* fod x position = x position value + (radius value / 2)
* fod y position = y position value + (radius value / 2)
* fod enroll progress radius = (radius value / 2) + 5
Change-Id: I9d3a39ab6b6b5b069e4ba66ef6baa477fd6829da
It appears that on Android 12 there's a higher status bar padding by
default, thus we need to adjust it by more or less dividing current
value by 2.
Change-Id: I98e34734425e858242d96812e4aa1329c6052be2
Not perfect, but it's a good compromise to keep the text below
the FOD icon without actually appear behind it.
Change-Id: I96df93d87865a0e05f4b8fe894659087b5496ace
It appears that OnePlus is not using AOSP resources for display cutout.
Instead they are drawing it manually thus I used their x, y and radius
to prepare my own vector path:
<dimen name="op_draw_cutout_circle_r">43.0px</dimen>
<dimen name="op_draw_cutout_circle_x">155.0px</dimen>
<dimen name="op_draw_cutout_circle_y">83.0px</dimen>
Change-Id: Ia061229717cd84277d792269aa1985ded07d1ae3
[LuK1337]: Modified vector path so that its height matches regular
cutout path + converted it from relative to absolute.
Change-Id: I792a85826041c7debf7f70e65318855c0cce65fe
When config_screenBrightnessSettingMaximumFloat is unset
we are falling back to legacy (0-255 int) configuration.
Change-Id: Iecb9ad8fcc25178160e2114dd40337f59af3cf66
* Because of config_roundedCornerMultipleRadius being set to
obnoxiously high value we end up having too high corner
border radius for Android recents.
* Also we still need to set rounded_corner_radius to something
other than 0 so that we'll have our rounded border drawables
applied. I guess that 8dp is a fair value for that.
Change-Id: Ib39ac6c4aaf6c00c247b2945e4f0a71ab0789df5
* Set rounded_corner_radius instead of _top + _bottom
as they are exactly the same.
* Overlay rounded.xml with _top drawable as _bottom one
is the pretty much the same as _top after manually
rotating it by 90 degrees.
Change-Id: I89ce857d15804f9a9361ff3825a9426a9382c578