umi: 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

[cafebabe note: Use /vendor/build.prop values for now]

Change-Id: Ie8add9eb4958bbb55d83d4d2809eb53b1822d15e
Signed-off-by: Sebastiano Barezzi <barezzisebastiano@gmail.com>
This commit is contained in:
TheScarastic
2021-10-06 07:23:32 +00:00
committed by me-cafebabe
parent c6050f4408
commit 9ec86d7214
4 changed files with 47 additions and 7 deletions

View File

@@ -20,7 +20,12 @@
<!-- 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>
<!-- 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_udfpsHbmType">0</integer>
</resources>

View File

@@ -441,4 +441,19 @@
<!-- If true, the display will be shifted around in ambient mode. -->
<bool name="config_enableBurnInProtection">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>1907</item>
<item>99</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

@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
/*
** Copyright 2020, The LineageOS 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>
<!-- The radius of the enrollment progress bar, in dp -->
<integer name="config_udfpsEnrollProgressBar" translatable="false">104</integer>
</resources>

View File

@@ -35,8 +35,3 @@ ro.surface_flinger.wcg_composition_dataspace=143261696
ro.surface_flinger.protected_contents=true
ro.surface_flinger.set_touch_timer_ms=200
ro.surface_flinger.force_hwc_copy_for_virtual_displays=true
# Fingerprint
vendor.lineage.fod.position_x=441
vendor.lineage.fod.position_y=1808
vendor.lineage.fod.size=197