49 Commits

Author SHA1 Message Date
pjgowtham
268b2c3e45 ferrari: Set config_autoBrightnessAdjustmentMaxGamma to 100%
mMaxGamma=1.0 when running dumpsys display on stock

Change-Id: I65ea05bc6f5b960f82bcb1843b2765cb70f6a2c8
2025-06-07 21:53:38 +05:30
pjgowtham
a9fe8fcc4f ferrari: Redo brightness configuration and move partially to displayconfig
* Updated minimum brightness calculation from 4/2047 to 4/4095
to align with display DTSI's max level (qcom,mdss-brightness-min-level = 1,
qcom,mdss-brightness-max-level = 4095).

* Synced screenBrightnessRamp with Oplus SM8650.

* screenBrightnessMap is preferred as it supports only floating-point values.

* Calculated High Brightness Mode (HBM) transition point as 2047/(4095-4).
The transition lux is also obtained from OplusSmartBrightnessController.

* Removed some overlays so as to prefer the defaults.

* Update auto brightness overlays from stock display dumpsys under
OplusSmartBrightnessController.

Change-Id: I0b2513be866728f3ddf93f7fbe296d78d862c813
2025-06-07 21:53:38 +05:30
pjgowtham
1d522b94f1 ferrari: Update framework dimming overlays
Setting up delays are no more and the default dimming array is now used.

Change-Id: I7fa7ae80e3bef7540d2dbf58058015d9a671b7a9
2025-06-07 21:53:38 +05:30
pjgowtham
e92ab26554 ferrari: Initial tree update from RMX3301_14.0.0.801(EX01)
Change-Id: I14581196331c7ba714c352c3fbca330683eedabf
2025-06-07 21:53:38 +05:30
dekefake
d79bd6d979 ferrari: overlay: Set up UDFPS framework dimming
Change-Id: I438f770c6a8ee08ddc2c7cdfc55218f3987e75c7
2024-10-22 20:03:17 +05:30
pjgowtham
6b3966cb1d ferrari: Fix lockscreen text overlapping FOD sensor location
Now the text appears at an equal distance from the fod sensor and the bottom end of the screen

Change-Id: I752488fb2ad96c5f5c67a0ad87abc4f8527dcc8a
2024-10-22 20:03:17 +05:30
pjgowtham
350b505868 ferrari: Update fod sensor location for ferrarri
sensorlocationX is calculated as width/2
sensorlocationY is calculated as (height - persist.vendor.fingerprint.optical.iconlocation) ie (3216 - 753 = 2463)
sensorRadius is calculated as persist.vendor.fingerprint.optical.iconsize/2 ie (228/2 = 114)
config_udfpsEnrollProgressBar is calculated as sensorRadius+5

Change-Id: If6556437abc7c760a45bd3f73f34e38f5d9bb3f2
2024-10-22 20:03:17 +05:30
pjgowtham
c2a34cea9d ferrari: Rebrand for realme GT 2 pro
Change-Id: I326aabe3c36b87106e567a028a59f37cf7c54603
2024-10-22 20:02:58 +05:30
Beverly
de083c4f86
lemonadep: overlay: Update pixel pitch
Bug: 319894241
Flag: ACONFIG com.android.systemui.device_entry_udfps_refactor DEVELOPMENT
Test: manual

Change-Id: Iaa9576cb95ebe73043b7030b2b176f67bc90e3a1
2024-10-20 14:09:37 +02:00
jabashque
76eda3c25c
lemonadep: overlay: Set peak refresh rate to 120 Hz
We enabled smooth display in sm8350-common, but we purposely left out
setting the max refresh rate there as not all the sm8350 devices have
the same peak refresh rate. Set it for each device instead.

Change-Id: I26963dd1e26bf39ef2613a3ffc784a0128a3e3b1
2023-12-19 01:55:00 +02:00
Omkar Chandorkar
fc45af36cb lemonadep: overlay: Move UDFPS enroll radius to settings
- required after LineageOS/android_packages_apps_Settings@af35c7c

Change-Id: I79ecd91513df0d195e1d15d20b4438d1b283743f
Signed-off-by: Omkar Chandorkar <gotenksIN@aospa.co>
2023-11-10 13:53:58 +01:00
Jason Chang
c9db37ca4e lemonadep: Phase out config_roundedCornerMultipleRadius from overlay package
Phasing out config_roundedCornerMultipleRadius config from device
overlay package.

Bug: 224688507

Test: Build ROM and pass presubmit test
Change-Id: I5cb7efdde8b03f89b74d775612b20e78c6e4d89d
2023-11-10 12:20:28 +00:00
pjgowtham
3ebd863242
lemonadep: Move some parts from common
Following adding support for lunaa and martini

Change-Id: Idaab654774f31bf8bfc44d87f3779ea6cc8db94b
2023-04-10 13:19:00 +03:00
LuK1337
ebf4e54ccf lemonadep: Update config_udfps_sensor_props based off SF dumpsys
See OnScreenFingerprintPressedIcon#0 HWC layer size and location.

Change-Id: I69971c1ead040934fcaee641ee8fc6cd66fe26a3
2022-10-22 14:16:29 +02:00
Alexander Koskovich
1b1352cf4e lemonadep: overlay: Drop explicit 'sdk_version' declaration
* We don't need to manually set this anymore.

Change-Id: I1239ba541636e53f8ea4373d3815024f2cd60824
2022-07-09 23:39:25 +02:00
Alexander Koskovich
dd2f114147 lemonadep: Don't translate def_device_name_simple
Change-Id: I36c66fc5e79f3500a4b804a2287edeaa77904b4f
2022-07-05 23:41:37 -07:00
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