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
This commit is contained in:
TheScarastic 2021-11-01 13:41:26 +05:30 committed by Bruno Martins
parent 8cf2d4a133
commit 2284ae1930
4 changed files with 19 additions and 7 deletions

View File

@ -22,11 +22,6 @@ DEVICE_PATH := device/oneplus/lemonadep
# Bluetooth # Bluetooth
BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include BOARD_BLUETOOTH_BDROID_BUILDCFG_INCLUDE_DIR := $(DEVICE_PATH)/bluetooth/include
# Fingerprint
SOONG_CONFIG_ONEPLUS_FOD_POS_X = 604
SOONG_CONFIG_ONEPLUS_FOD_POS_Y = 2828
SOONG_CONFIG_ONEPLUS_FOD_SIZE = 232
# Properties # Properties
TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop TARGET_VENDOR_PROP += $(DEVICE_PATH)/vendor.prop

View File

@ -20,7 +20,13 @@
<!-- These resources are around just to allow their values to be customized <!-- These resources are around just to allow their values to be customized
for different hardware and product builds. --> for different hardware and product builds. -->
<resources> <resources>
<!-- Color of the FOD view --> <!-- Color of the UDFPS Pressed view -->
<color name="config_fodColor">#ffffe6</color> <color name="config_udfpsColor">#ffffe6</color>
<!-- HBM type of UDFPS overlay.
0 - GLOBAL HBM
1 - LOCAL HBM
-->
<integer name="config_udfpsHbmType">0</integer>
</resources> </resources>

View File

@ -497,4 +497,12 @@
black in software (to avoid aliasing or emulate a cutout that is not physically existent). black in software (to avoid aliasing or emulate a cutout that is not physically existent).
--> -->
<bool name="config_fillMainBuiltInDisplayCutout">true</bool> <bool name="config_fillMainBuiltInDisplayCutout">true</bool>
<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
<integer-array name="config_udfps_sensor_props" translatable="false" >
<item>717</item> <!-- <item>sensorLocationX</item> -->
<item>2936</item> <!-- <item>sensorLocationY</item> -->
<item>110</item> <!-- <item>sensorRadius</item> -->
</integer-array>
</resources> </resources>

View File

@ -23,4 +23,7 @@
<!-- Respect drawable/rounded.xml intrinsic size for multiple radius corner path customization --> <!-- Respect drawable/rounded.xml intrinsic size for multiple radius corner path customization -->
<bool name="config_roundedCornerMultipleRadius">true</bool> <bool name="config_roundedCornerMultipleRadius">true</bool>
<!-- The Enrollment Progress bar for UDFPS sensor in pixels -->
<integer name="config_udfpsEnrollProgressBar" translatable="false">115</integer>
</resources> </resources>