33 Commits

Author SHA1 Message Date
shawnlin
6321ae0241
lemonadep: Fixed status bar glitch for apps that access internal resource dimen
Bring back old usage of status_bar_height, status_bar_height_portrait,
and status_bar_height_landscape by set the size containing cutout size.

Bug: 216782082
Test: make
Change-Id: I0bf97352bc07e45d7694f9512266f08e7139c103
2022-06-11 23:06:14 +03:00
Michael Bestas
8bf6efd855 lemonadep: overlay: Use smaller status bar in landscape
Change-Id: I8177887d4c8665d4fd6725318b0679b7b1be2c4b
2022-05-29 20:26:44 +02:00
Michael Bestas
c1c399d375 lemonadep: overlay: Align status bar icons with cutout
Change-Id: Ib18e6c4cd4a21e36f5f45ac5f7b894a824e434f3
2022-05-29 20:26:44 +02:00
Alexander Koskovich
797f2ec01d lemonadep: overlay: Update power profile from LE2125_11.C.48
Change-Id: I4770beaaca21a28c4cfed0db44b38497ea0d51c4
2022-05-29 20:26:44 +02:00
Alexander Koskovich
b6089fd9f5 lemonadep: overlay: Add white balance overlays from LE2125_11.C.48
[LuK1337]: Remove common overlays while at it.

Change-Id: Ie59f9207478965c6eaf840807635a82933e13303
2022-05-29 20:26:44 +02:00
Alexander Koskovich
1c49159bab lemonadep: overlay: Convert to RRO packages
Change-Id: Iae6ef9fa9743bd2447991ad11d38fa184b12981d
2022-05-29 20:26:44 +02:00
Michael Bestas
4be1efad71 lemonadep: overlay: Drop system_icons_keyguard_padding_end
* No longer exists

Change-Id: I1976d0875588f6527b20016c01eb494e5b1a129c
2022-05-24 14:08:11 +01:00
TH779
bb3a3d8864
fixup! lemonadep: Remove resource overlays for system bar heights
* 28dp * (450dpi / 160) = 78.75px, this will cause the height
   of the status bar to be displayed incorrectly under some apps,
   so restore it to its original value.

Change-Id: I82685a0ab33bb08daeaf87b74c93e80aba16c055
2022-05-09 01:25:23 +03:00
shawnlin
8a66297426 lemonadep: Remove resource overlays for system bar heights
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
2022-03-16 17:06:41 +00:00
TheScarastic
2284ae1930 lemonadep: Setup udfps overlays
* 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
2022-02-22 14:49:36 +00:00
DarkJoker360
83c93aaafc lemonadep: overlay: Reduce status_bar_padding_end
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
2022-02-21 21:13:34 +00:00
Bruno Martins
19a24903f8 lemonadep: Re-adjust keyguard indication bottom margin
No longer fits nicely bellow the FOD icon, so move it above.

Change-Id: Ic622ae91500b93fdd4571dd3d9f869fc5f712d69
2022-02-21 21:13:34 +00:00
LuK1337
e5c808d442 lemonadep: overlay: Use correct resource for keyguard status bar height
Fixes really large statusbar on Android S GSI.

Change-Id: I82cc4e6c73fb6a408aa27b1a6191f7dd96c7365c
2021-10-10 00:02:23 +02:00
Bruno Martins
ba1c3db829 lemonadep: overlay: Align brightness configs with stock
Change-Id: Id299ad9f3613b821318eb6e9986a3450db023682
2021-06-06 11:00:59 +02:00
LuK1337
87a8f755a5 lemonadep: overlay: Set mask size for proper rounded corner curves
Change-Id: I8c83c30762025d1ff8091ce75bf4d3784c5a6f76
2021-06-04 12:04:40 +02:00
Bruno Martins
e27a97442e lemonadep: Tweak keyguard indication bottom margin
Not perfect, but it's a good compromise to keep the text below
the FOD icon without actually appear behind it.

Change-Id: I96df93d87865a0e05f4b8fe894659087b5496ace
2021-06-02 23:55:32 +02:00
Bruno Martins
8947388735 lemonadep: overlay: Import stock power profile
Change-Id: Iaf3d246b83db150112a183e29bb87989d0a3a437
2021-06-01 15:59:11 +01:00
LuK1337
9fb5a66b4b lemonadep: overlay: Replace display cutout overlay with self made one
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
2021-06-01 15:59:11 +01:00
Bruno Martins
977f347ce7 lemonadep: Initial device tree conversion
Change-Id: I943e61b56a9e42b228dbed3872037ed84f933d48
2021-06-01 01:22:12 +02:00
LuK1337
88932432e6 instantnoodlep: Set default Settings.Global.DEVICE_NAME according to OOS
OxygenOS uses ro.display.series for default device name.

Change-Id: I310c1ffc581b72653783d1093d9e7ebde544bb16
2021-05-21 15:44:35 +02:00
Andrew Fluck
364cfca344 instantnoodlep: Add cutout approximation + set status bar padding start to 0px
[LuK1337]: Modified vector path so that its height matches regular
           cutout path + converted it from relative to absolute.

Change-Id: I792a85826041c7debf7f70e65318855c0cce65fe
2021-04-29 17:28:32 +02:00
LuK1337
116c280205 instantnoodlep: overlay: Set config_screenBrightnessSettingMaximumFloat=1.0
When config_screenBrightnessSettingMaximumFloat is unset
we are falling back to legacy (0-255 int) configuration.

Change-Id: Iecb9ad8fcc25178160e2114dd40337f59af3cf66
2021-04-06 11:26:47 +02:00
LuK1337
35e9463221 instantnoodlep: Update power profile config
* Apparently we should be using one extracted from /odm overlays
  rather than /vendor ones.

Change-Id: Id2f8858f3c6779623875f5419daf146102d46d1f
2021-03-07 11:08:07 +01:00
LuK1337
c562e9f7da instantnoodlep: Set matching status bar padding for landscape mode
Change-Id: I5ad572fb8452c9f8db213adbfc9c1022e6755d56
2021-02-12 10:39:20 +01:00
LuK1337
1e7ad0f70c instantnoodlep: Relocate fwb dimens to dimens.xml
* Also unset status_bar_height_landscape while at it.

Change-Id: I2d030b46d94482878aa260e2edfd3a6a07c641ac
2021-02-11 21:48:26 +01:00
LuK1337
ad5c96a66f instantnoodlep: Use config_roundedCornerMultipleRadius
* 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
2021-02-06 16:22:27 +01:00
LuK1337
aea57606ea instantnoodlep: Import rounded corners config from OOS
* 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
2021-02-06 11:04:36 +01:00
ultranoob-5
ced25a6b00 instantnoodlep: Pull auto-brightness values from OOS
Change-Id: If174ffcbdbe3f2d11955763965a2eccc2c8a46d8
2021-02-03 12:03:24 +01:00
Giuseppe Barillari
bf60d86bc1 instantnoodlep: Avoid aliasing in display cutout
Change-Id: I24e5c4e385b38352a9aabeaa4d5d5666469570cb
2021-02-02 14:55:46 +01:00
LuK1337
a9ea1ade22 instantnoodlep: overlay: Import display white balance config from OOS
Change-Id: I94ce623e57ff16687281b228e6e09ce2d12ce3e8
2021-02-02 11:15:27 +01:00
LuK1337
0df1febb68 instantnoodlep: Pull config_mainBuiltInDisplayCutout from OOS
Change-Id: Ia2720956065137696c1a8a935f554080cd7e2c72
2021-01-31 16:51:07 +01:00
LuK1337
4dbaefed27 instantnoodlep: overlay: Update cutout/padding related overlays
Change-Id: I5c74d72e388043c68c58bb3b835fad3db9fa814a
2020-11-21 23:33:59 +01:00
LuK1337
a443131d82 instantnoodlep: Initial commit 2020-06-26 21:34:58 +02:00