37 Commits

Author SHA1 Message Date
Beverly
3e7141117f kebab: overlay: Update pixel pitch
Bug: 319894241
Flag: ACONFIG com.android.systemui.device_entry_udfps_refactor DEVELOPMENT
Test: manual

Change-Id: Iaa9576cb95ebe73043b7030b2b176f67bc90e3a1
2024-10-19 19:25:34 +02:00
Omkar Chandorkar
aeebafa118 kebab: 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:52:49 +01:00
Jason Chang
28984ded6c kebab: 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 13:32:35 +01:00
LuK1337
b397db468b Revert "kebab: overlay: Define custom light sensor"
We'll be hacking sensors.ssc.so to provide wise light sensor under
android.sensor.light instead, this will make sure that other apps can
access it.

This reverts commit bd3828a7c8.

Change-Id: I0fa19cd723e58c6591c4cfae453401608d15ebcb
2023-01-20 22:14:20 +01:00
Beverly
201ae12e73 kebab: overlay: Add physical button locations
Bug: 181020504
Test: physically measured on device
Change-Id: Ia989754a7af92d4de64185f08a52ec83b0fc3618
2022-11-22 04:24:58 +00:00
LuK1337
f7ba571af2 kebab: Update config_udfps_sensor_props based off fp HAL props
[persist.vendor.fingerprint.optical.iconsize]: [190]
[persist.vendor.fingerprint.optical.sensorlocation]: [540::1897]

Change-Id: Ia8c99ebc2427927a8d39bc8f852d382433087224
2022-10-21 14:56:56 +02:00
Yuan Si
bd3828a7c8 kebab: overlay: Define custom light sensor
Signed-off-by: Yuan Si <do4suki@gmail.com>
Change-Id: Ibb8f84bedb9923d1ca9582878df5e959fc9904a1
2022-08-19 18:11:29 +02:00
Alexander Koskovich
32a59de758 kebab: overlay: Drop explicit 'sdk_version' declaration
* We don't need to manually set this anymore.

Change-Id: I1239ba541636e53f8ea4373d3815024f2cd60824
2022-08-19 18:11:29 +02:00
Alexander Koskovich
e871d767dd kebab: overlay: Update power profile from KB2005_11.C.33
Change-Id: I4770beaaca21a28c4cfed0db44b38497ea0d51c4
2022-08-19 18:11:29 +02:00
Alexander Koskovich
fa2898b39e kebab: overlay: Convert to RRO packages
Change-Id: Iae6ef9fa9743bd2447991ad11d38fa184b12981d
2022-08-19 18:11:29 +02:00
Alexander Koskovich
2d2f705c37 kebab: Don't translate def_device_name_simple
Change-Id: I36c66fc5e79f3500a4b804a2287edeaa77904b4f
2022-07-06 10:31:09 +02:00
shawnlin
2d41d0cf45 kebab: 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 18:56:44 +03:00
Michael Bestas
035c400774 kebab: overlay: Use smaller status bar in landscape
Change-Id: I8177887d4c8665d4fd6725318b0679b7b1be2c4b
2022-05-27 18:33:25 +03:00
Andrew Fluck
8bc480f53a kebab: overlay: Align status bar icons with cutout
Change-Id: Ia42d9c08c6a5a5e4243a24684a210e344bd3ad66
2022-05-27 18:33:24 +03:00
Michael Bestas
56827c1531 kebab: overlay: Drop system_icons_keyguard_padding_end
* No longer exists

Change-Id: I1976d0875588f6527b20016c01eb494e5b1a129c
2022-05-23 22:24:57 +03:00
TH779
10a55dbc1a fixup! kebab: 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:27:13 +03:00
shawnlin
359e043994 kebab: 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-31 19:45:37 +02:00
jabashque
217483b883 kebab: overlay: Set peak refresh rate to 120 Hz
We enabled smooth display in sm8250-common, but we purposely left out
setting the max refresh rate there as not all the sm8250 devices have
the same peak refresh rate. Set it for each device instead.

Change-Id: I26963dd1e26bf39ef2613a3ffc784a0128a3e3b1
2022-02-27 16:17:58 -08:00
TheScarastic
2981418d57 kebab: 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: I487e3a16fec8a7f9760a100606e7081aec5f7581
2022-02-22 01:06:17 +01:00
DarkJoker360
03f11d256a kebab: 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 22:27:25 +01:00
LuK1337
b1305e4b02 kebab: overlay: Use correct resource for keyguard status bar height
Fixes really large statusbar on Android S GSI.

Change-Id: I82cc4e6c73fb6a408aa27b1a6191f7dd96c7365c
2021-10-10 00:01:20 +02:00
LuK1337
e6ee0ea89b kebab: overlay: Set config_screenBrighteningThresholds to [0]
Matches stock odm overlay.

Change-Id: I5540bce8fa6947eebf6bf30160d63ad151d708ca
2021-08-09 17:43:27 +02:00
LuK1337
2550ae0f65 kebab: overlay: Set mask size for proper rounded corner curves
Change-Id: I8c83c30762025d1ff8091ce75bf4d3784c5a6f76
2021-06-10 12:56:27 +02:00
LuK1337
65c94eb711 kebab: 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:43:35 +02:00
Andrew Fluck
3023606d9a kebab: 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:27 +02:00
LuK1337
b9a5c0dd38 kebab: 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:28:27 +02:00
LuK1337
abf5119d06 kebab: 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:05:13 +01:00
LuK1337
1b000bb336 kebab: Reduce status_bar_padding_end to 48px to match OOS
Change-Id: Ia88b3c47b76e7b65fa3ed9310112509361e6caee
2021-02-12 10:41:58 +01:00
LuK1337
ce830a8e25 kebab: Set matching status bar padding for landscape mode
Change-Id: I5ad572fb8452c9f8db213adbfc9c1022e6755d56
2021-02-12 10:41:18 +01:00
LuK1337
688ae05041 kebab: Relocate fwb dimens to dimens.xml
* Also unset status_bar_height_landscape while at it.

Change-Id: I2d030b46d94482878aa260e2edfd3a6a07c641ac
2021-02-11 21:44:56 +01:00
LuK1337
09754cb0e3 kebab: 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:24:07 +01:00
LuK1337
b341335040 kebab: Import rounded corners config from OOS
* Drawables have been converted from PNG -> SVG using
  Image Trace feature of Adobe Illustrator.
* Also we need to set rounded_corner_radius to workaround
  SystemUI bug where updateRoundedCornerRadii only compares
  against newRoundedDefault...

Change-Id: I89ce857d15804f9a9361ff3825a9426a9382c578
2021-02-06 12:44:26 +01:00
ultranoob-5
03bbf0f2df kebab: Pull auto-brightness values from OOS
Change-Id: If174ffcbdbe3f2d11955763965a2eccc2c8a46d8
2021-02-03 12:03:22 +01:00
Giuseppe Barillari
79dac4aa41 kebab: Avoid aliasing in display cutout
Change-Id: I24e5c4e385b38352a9aabeaa4d5d5666469570cb
2021-02-02 14:56:02 +01:00
LuK1337
4d4c49c786 kebab: Pull config_mainBuiltInDisplayCutout from OOS
Change-Id: Ia2720956065137696c1a8a935f554080cd7e2c72
2021-01-31 16:53:13 +01:00
LuK1337
9660b49d7b kebab: overlay: Update cutout/padding related overlays 2020-11-26 18:47:00 +01:00
LuK1337
9f53a0e7c5 kebab: Initial commit 2020-11-26 18:47:00 +01:00