Skip to content
This repository has been archived by the owner on Apr 10, 2024. It is now read-only.

Commit

Permalink
guacamole: Setup udfps overlays
Browse files Browse the repository at this point in the history
 * 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
  • Loading branch information
TheScarastic authored and luk1337 committed Feb 22, 2022
1 parent 5c16b84 commit b80bedd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 5 deletions.
5 changes: 0 additions & 5 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,6 @@ BOARD_USES_RECOVERY_AS_BOOT := true
TARGET_NO_RECOVERY := true
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/rootdir/etc/fstab.qcom

# Fingerprint
SOONG_CONFIG_ONEPLUS_FOD_POS_X = 610
SOONG_CONFIG_ONEPLUS_FOD_POS_Y = 2618
SOONG_CONFIG_ONEPLUS_FOD_SIZE = 220

# Sensors
SOONG_CONFIG_ONEPLUS_MSMNILE_SENSORS_ALS_POS_X := 1000
SOONG_CONFIG_ONEPLUS_MSMNILE_SENSORS_ALS_POS_Y := 260
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,13 @@
<integer name="config_maxVisibleNotificationIcons">6</integer>
<integer name="config_maxVisibleNotificationIconsOnLock">7</integer>

<!-- Color of the UDFPS Pressed view -->
<color name="config_udfpsColor">#00ff00</color>

<!-- HBM type of UDFPS overlay.
0 - GLOBAL HBM
1 - LOCAL HBM
-->
<integer name="config_udfpsHbmType">0</integer>

</resources>
7 changes: 7 additions & 0 deletions overlay/frameworks/base/core/res/res/values/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,11 @@
<!-- Fast brightness animation ramp rate in brightness units per second-->
<integer translatable="false" name="config_brightness_ramp_rate_fast">400</integer>

<!-- The properties of a UDFPS sensor in pixels, in the order listed below: -->
<integer-array name="config_udfps_sensor_props" translatable="false" >
<item>720</item> <!-- <item>sensorLocationX</item> -->
<item>2728</item> <!-- <item>sensorLocationY</item> -->
<item>110</item> <!-- <item>sensorRadius</item> -->
</integer-array>

</resources>
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,7 @@
<!-- Respect drawable/rounded.xml intrinsic size for multiple radius corner path customization -->
<bool name="config_roundedCornerMultipleRadius">true</bool>

<!-- The radius of the enrollment progress bar, in dp -->
<integer name="config_udfpsEnrollProgressBar" translatable="false">115</integer>

</resources>

0 comments on commit b80bedd

Please sign in to comment.