monet: Setup udfps overlays

* FOD radius = MIUI radius value / 2
 * FOD x position = MIUI x position value + (MIUI radius value / 2)
 * FOD y position = MIUI y position value + (MIUI radius value / 2)
 * FOD enroll progress radius = (MIUI radius value / 2) + 5
This commit is contained in:
TheScarastic 2021-10-29 21:17:13 +02:00 committed by xSylla
parent 865da878e8
commit ee61cddcb8
4 changed files with 48 additions and 7 deletions

View File

@ -14,11 +14,6 @@ BUILD_BROKEN_DUP_RULES := true
# Display
TARGET_SCREEN_DENSITY := 440
# Fingerprint
SOONG_CONFIG_XIAOMI_LITO_FOD_POS_X = 445
SOONG_CONFIG_XIAOMI_LITO_FOD_POS_Y = 2025
SOONG_CONFIG_XIAOMI_LITO_FOD_SIZE = 190
# Kernel
TARGET_KERNEL_CONFIG := vendor/monet_user_defconfig

View File

@ -0,0 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2009, The Android Open Source Project
**
** Licensed under the Apache License, Version 2.0 (the "License");
** you may not use this file except in compliance with the License.
** You may obtain a copy of the License at
**
** http://www.apache.org/licenses/LICENSE-2.0
**
** Unless required by applicable law or agreed to in writing, software
** distributed under the License is distributed on an "AS IS" BASIS,
** WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
** See the License for the specific language governing permissions and
** limitations under the License.
*/
-->
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources>
<!-- Color of the UDFPS pressed view -->
<color name="config_udfpsColor">#ffffff</color>
<!-- HBM type of UDFPS overlay.
0 - GLOBAL HBM
1 - LOCAL HBM
-->
<integer name="config_udfps_hbm_type">0</integer>
</resources>

View File

@ -478,4 +478,19 @@
black in software (to avoid aliasing or emulate a cutout that is not physically existent).
-->
<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>sensorLocationX</item>
<item>sensorLocationY</item>
<item>sensorRadius</item>
-->
<item>540</item>
<item>2120</item>
<item>95</item>
</integer-array>
<!-- How long it takes for the HW to start illuminating after the illumination is requested. -->
<integer name="config_udfps_illumination_transition_ms">0</integer>
</resources>

View File

@ -20,6 +20,6 @@
<!-- These resources are around just to allow their values to be customized
for different hardware and product builds. -->
<resources>
<!-- Color of the FOD view -->
<color name="config_fodColor">#ffffff</color>
<!-- The radius of the enrollment progress bar, in dp -->
<integer name="config_udfpsEnrollProgressBar" translatable="false">100</integer>
</resources>